1 The Style Panel
liquibyte edited this page 2026-11-19 16:23:31 -06:00

The Style Panel

The Style controls sit in the Picker panel, under the big swatch, headed "Style the preview: Pick a part, then color it". They give you precise control over the Mockup preview without dragging or careful aim. This page describes every control on them, in the order they come.

1. The order of the controls

The Style controls from top to bottom: Show settings and Apply; Pick and Unlock; Keep open or hovered; the widget list; the state; the part to color; color it; other properties; your changes

The Style controls from top to bottom. The left column chooses what to work on, the right one what to do with it.

The Style controls under the Picker

The Style controls as they look in the Picker panel.

A control that cannot apply to the toolkit shown is greyed out. Point at it and the status bar says why: for example, Qt has no Focus or Visited state of its own, and its palette has no text shadow color.

2. Show settings and Apply

Show settings opens a list of every setting of the Mockup's GTK2 engine or Qt style, or of GTK3's and GTK4's own. Each setting has a drop-down of its choices, a number or a color, and a Default button that leaves it to the theme. Changes in the list wait for Apply, beside Show settings, so that the preview reloads once and not on every click. While the list is open the button reads Hide settings; press it to close the list. The button is greyed where the toolkit, engine or style has no settings, as for xtk and the window managers. Changing a setting is not an edit: it is not an Undo step and does not make the theme unsaved. Every setting is described in Engines and Styles.

3. Pick and lock a part

  • Press Pick, then click a part of the preview to lock it. It stays outlined, and the status bar names it. Pick is greyed for GTK2: drop swatches on its preview or its grid instead.
  • Pick takes the part's normal look, not the hover look the pointer itself puts the widget in while you pick. For its hover or pressed look, press that state first (see below).
  • Escape or a right-click cancels a pick. Unlock lets go of the locked part.
  • While something is locked, a swatch dropped anywhere on the preview colors the locked part.
  • The outline follows the program when the window moves or the panel scrolls. If the locked state is not showing, it outlines the same part in the state that is.

Once a part is locked, the heading of the state buttons says which of its looks a drop colors. Pick alone locks the normal look, and the heading reads "Coloring its normal look - to color it hovered, pressed... press that state". Press Hover, or another state, and it reads "Coloring its look in the states pressed here". Press the state again to go back to the normal look.

4. Keep open or hovered in the preview

Some things a program shows only for a moment, and some parts only the pointer puts into their hover look. These buttons keep them up, or hovered, over the preview, so that they can be picked, dropped on and Ctrl+clicked like everything else. What they show never goes away by itself, not on a drop, a reloaded theme or a click elsewhere: only pressing the button again, or another one, lets it go. One is shown at a time.

Button What it shows
Popover A menu button's popover (GTK3, GTK4). Qt and xtk show a menu.
Menu A menu from the program's menu bar. In Qt, a menu with checked, disabled and submenu items.
Submenu That menu with a submenu open beside it. In GTK4, its menu turned to the submenu, as GTK4 shows them.
Context menu A right-click menu: a text entry's own (GTK3's .context-menu); in xtk, the tree's.
Menu bar A menu bar with its first item open and its menu under it: the program's own, or one of Palette's where the program shows none (GTK3's widget factory, Qt's galleries, TQt 3).
Combo list A combo box's open list (in xtk, its dropdown- colors), turning first to a page that has one where needed.
Tooltip A tooltip, drawn the way the toolkit draws its own (in xtk, its [tooltip] colors).
Dialog A dialog.
Tab A notebook's tab that is not the current one, hovered. Kvantum's too.
Scroll bar, Slider The handle, hovered.
Spin arrow A spin button's up arrow, hovered.
Header A list's first column header, hovered. Not in xtk, whose headers have no hover look of their own.
List row A list's second row, hovered.
Status message xtk only: the status bar's message pill.
Drop target What something dragged over shows: xtk's dock outline, GTK's :drop(active) on an entry, Qt's drop indicator on a list's row.
Title button A title bar's close button, hovered: xtk's tool window, Qt's floating dock widget.
Rubber band The rectangle a dragged-out selection draws (GTK3, GTK4, Qt).
Completion An entry's completion list (GTK3, GTK4, Qt).
Overlay An overlay's notification, .app-notification.osd (GTK3, GTK4).
Splitter A splitter's handle, hovered (Qt).
Tab close A tab's close button, hovered (Qt; the tabs are made closable for the while).
Menu arrow A tool button's menu arrow, hovered (Qt).
Calendar A date edit's calendar (Qt).

Each button is greyed where its toolkit has no such thing. The last ten, from Status message on, are not in GTK2 or TQt 3, whose themes have no colors of their own for them. For the window managers all of them are greyed: their preview already shows its menu, the highlighted item and hovered and pressed buttons.

  • Where the page shown has none (in xtk and TQt 3), the preview first turns to a page that has one.
  • With Hover on, a shown menu's or list's items show hovered too (in xtk, the first item).
  • With Pressed on, a held handle, arrow, tab or header shows pressed instead of hovered. Nothing is really pressed, so a value never moves: Qt's style draws it pressed, GTK2 and GTK3 hold it down (a spin button's value is given back afterwards), and GTK4 shows every part pressed with Pressed alone. xtk draws its pressed handles and arrows in their hover colors, so there is nothing more to color.

What is shown stays over the preview, and a click in Palette does not bury it. A tooltip's background, text and border can be picked and dropped on in GTK3, GTK4, Qt and xtk; in GTK2, drop on it or on the grid. Qt 6 with Breeze's own colors draws tooltips from the KDE color sets: the grid's Tooltip row.

A menu kept open over the preview

Menu pressed: a menu stays open over the preview, to be picked and colored.

5. Or choose a widget from the list

The drop-down under "Or choose a widget from the list" holds every widget of the preview program, indented as they nest: for GTK their CSS node and style classes, for Qt their class and object name. It is empty until you press Refresh, which reads the widgets again at any time.

Choosing one frames that widget in cyan in the preview, so that you can see which one it is, and locks its background as a pick would. The lock is outlined in magenta on every widget like it, because a theme colors the whole kind of widget, not one widget. For Qt it also puts the widget's class into the Selector field (see Other properties below). For GTK2 the widget is only framed: drop a swatch on it to color its whole widget class.

The widget list for Qt

The widget list of a Qt preview, with one widget chosen.

6. The state to show and edit

The state buttons put the preview's widgets into that state, each only where it really happens:

Button What the preview does
Hover, Pressed On what reacts to the pointer.
Checked Really checks toggle buttons and check boxes.
Selected Really selects list rows and text.
Disabled, Unfocused On everything; Unfocused shows the colors of a window without the focus.
Focus Shows the focus rings.
Mixed Half-checks the check boxes.
Visited Shows links as visited.

GTK3, GTK4, Qt and xtk can combine states. For Qt, Disabled and Unfocused show its Disabled and Inactive color groups; Focus shows every widget that takes the keyboard as focused (TQt 3: the first one, the only one it draws), and Visited draws links in LinkVisited. xtk has every state but Visited (its links have one color): Selected selects text and rows, Unfocused shows a list's selection without the keyboard (inactive-selected-background), and Mixed half-checks the check boxes.

GTK2 shows one state at a time, its grid's rows: Hover, Pressed, Checked, Selected and Disabled. It also has Focus (an entry has the keyboard, and a drop on it colors GtkWidget::cursor-color) and Visited (its link buttons are visited, and a drop on one colors GtkWidget::visited-link-color). GTK2 has no colors for Mixed or Unfocused, so those two are greyed.

With a state pressed, only that state's parts take drops and Pick: what the theme draws for that state, such as GTK's :hover and :checked rules, xtk's hover-, focus-border and selected-background keys, Qt's Disabled and Inactive groups, and Kvantum's -focused, -pressed, -toggled and -disabled elements. The rest of the preview is no zone until the state is off, and the mouse wheel steps through that state's parts only. A state a toolkit draws nothing of its own for (Qt's palette has no hover colors, for example) leaves every part to drop on.

Some parts only the pointer puts into their hover look: a notebook's tab, a scroll bar's or slider's handle, a spin button's arrow, a list's column header or row. Keep open or hovered (above) holds one of each hovered.

7. Part to color

Thin parts, like a one-pixel border or a focus ring, are hard to hit with the pointer. Part to color solves that: press a part, and every drop and Pick takes that part of whatever widget you point at, wherever on the widget you are.

For example, press Border, then drop a swatch anywhere on a button. The button's border takes the color, not its background. The status bar says "Part to color: Border", and after a drop it names the part, as in [Border] button - border.

The parts are Background, Text, Border, Shadow, Text shadow, Icon shadow, Focus ring, Cursor and Underline. Press the pressed button again to go back to whatever is under the pointer. For Qt they choose among the color roles of that kind (Border is Dark, Mid, Shadow, Light, Midlight or Window), and for xtk among the widget's keys of that kind.

8. Color it

The color is the Picker's big swatch, at the Formats panel's alpha.

  • Apply puts it on the locked part.
  • Transparent makes the locked part transparent.
  • Reset gives the part back to the theme.
  • Takes its color from links the locked part to one of the colors the toolkit's theme is built on, the ones a Shift+drop sets (Adwaita's, GTK4 Default's, Fusion's in Qt 5 and Qt 6, Plastique's in Qt 4, Plastik's in TQt 3, xtk's roles or the window manager theme's), so that it changes when that color changes. Its first item, its own color, unlinks it and keeps the color it has now.

You can also drag the big swatch onto the preview: while a part is locked, a drop anywhere colors it.

9. Other properties

Everything else a theme can set, such as shadows, corners and fonts, on the locked part or on any selector you type:

Field What it holds
Selector Filled in from the lock (GTK: its CSS selector) or from the widget list's choice (Qt: its class). Type your own: button:hover, .titlebar, QPushButton:pressed.
Property The list under it fills it in, or type any property name (letters, digits, dashes and dots).
The two lists The first lists the properties the toolkit has; the second, the values for the property chosen.
Value Type a value and press Set.
  1. Choose the property in the first list, or type it.
  2. Choose a value in the second list. Where a value has a color, the Picker swatch's color goes into it; where it has a gradient, the Gradient panel's does.
  3. Or type into Value and press Set. You can type a value (0 2px 4px rgba(0,0,0,0.3)), a property and its value (border-radius: 12px), or whole rules (label { color: #333; text-shadow: 0 1px white }).
  4. Clear gives the property back to the theme.

If the preview cannot read what was set, its own error shows in the status bar, for example Theme parsing error at ...css:1005:21 'banana' is not a valid color name. Qt only says that it could not parse the style sheet, and then ignores all of it until that rule is reverted under Your changes. Sizes and borders move things, so the zones are mapped again after such a change.

Toolkit Properties
GTK3, GTK4 box-shadow, text-shadow, icon shadow, border width, style, radius and image, outline width, style and offset, opacity, background image, size, repeat, position, clip, origin and blend mode, padding, margin, minimum width and height, font size, weight and style, letter spacing, text decoration, icon style and transform, transition.
GTK3 only Outline radius, icon effect.
GTK4 only filter (blur, brightness, contrast, grayscale, saturate, sepia, invert, hue-rotate and more), transform (rotate, scale, translate, skew), icon size, icon filter.
Qt 4, Qt 5, Qt 6 Qt style sheet (QSS) rules on the widget class picked or chosen in the widget list: background, color, border, border radius, style, width and color, padding, margin, minimum sizes, fonts, the selection colors, the alternate background, grid lines, outline, opacity. They apply live to the preview, and are saved as a .qss file beside the Qt theme. File > Open reads a .qss too.
TQt 3 None: TQt 3 has no style sheets.
xtk highlight and shade: a bevel's light and dark edges on the widget picked (its section, such as button), for a raised look. See xtk Themes.
Window managers bg, a part's texture (such as Raised Gradient Vertical Bevel1, Flat Solid, ParentRelative), on the part picked. The whole theme's sizes (border.width, padding.width, padding.height, window.handle.width, window.client.padding.width, menu.border.width), justify and fonts (window.font, menu.title.font, menu.items.font, toolbar.font) go on style by themselves, with no selector needed. A typed border.width: 4 works too, and while a font is the property, the colons in a value stay in it (sans-9:bold). See Window Manager Themes.

A QSS background on every QPushButton

A style sheet background set on QPushButton in Qt: every push button takes it.

10. Your changes

Your changes lists everything colored or set on its own: each zone you dropped on, each part you set, each property. Click one to select it again, or press Revert to undo only that change and give the part back to the theme.