First Steps
A tour of Palette's window: its panels and what each is for, the menus, the status bar and how to arrange the panels. Then a first theme, made in a few minutes.
1. The window
The default layout, which View > Reset Layout brings back. Each box links to the page that describes it.
| Panel | Where it starts | What it is for |
|---|---|---|
| Picker | Top left | Picking colors from the screen. Under it are the Style controls for the preview. |
| Mockup | Middle | The live preview of the chosen toolkit, with its theme controls along the top. |
| Formats | Top right | The current color in a color space of your choice, as hex, with its alpha, and your Favorites. |
| Harmony | Right, under Formats | A color wheel with thirteen harmony schemes, Free among them. |
| Gradient | Bottom, under Picker and Mockup | A gradient editor with thirteen output formats. |
| Status bar | Very bottom | Names what is under a dragged swatch, what is picked or locked, and the theme color it follows. |
The Picker, Formats, Harmony and Gradient panels are described in Color Panels, the Mockup in The Mockup Preview and the Style controls in The Style Panel.
2. The menus
| Menu | Item | What it does |
|---|---|---|
| File | Open... | Opens a theme file into its toolkit (Ctrl+O). |
| Open Theme Folder... | Opens every toolkit's file found in a theme folder (Ctrl+Shift+O). |
|
| Import As... | Reads the colors of another toolkit's theme file into the toolkit shown. | |
| Save | Saves the toolkit shown over the theme it was saved as last, after asking. When there is none yet, it works as Save As (Ctrl+S). |
|
| Save As... | Saves the toolkit shown as a theme folder you choose (Ctrl+Shift+S). |
|
| Save All | Saves every toolkit into the theme folder saved last, after asking. When there is none yet, it works as Save All As. | |
| Save All As... | Saves every toolkit into a theme folder you choose. | |
| Exit | Quits Palette, asking first about unsaved changes. Closing the window does the same. | |
| Edit | Undo | Undoes the last change to the colors, in whichever toolkit it was made (Ctrl+Z). See Undo and Redo below. |
| Redo | Does it again (Ctrl+Shift+Z or Ctrl+Y). |
|
| Reset Picked Color | After asking, sets the picked color back to black and clears the magnifier's image. | |
| Configuration | Opens palette.conf in a text editor. Palette reads it again when you save it. |
|
| View | Picker, Formats, Harmony, Gradient | Shows or hides that panel. A check mark shows which are shown. |
| Reset Layout | Puts every panel back where it starts. | |
| Theme | Lists Palette's own themes. Choosing one restyles all of Palette at once. | |
| Help | Palette | Shows the About window: the version, what Palette is, and a link to the project's page, which opens in your browser. OK, Enter or Escape closes it. |
The File menu's items are described in Theme Files, View > Theme in xtk Themes, and Edit > Configuration in Tips and Troubleshooting.
3. Arranging the panels
Every panel except the Mockup can be moved, floated, hidden at its edge and closed. The Mockup has no header and stays docked in the middle. A panel's header has three icons: the pin, the ... menu and the close icon.
- Moving. Drag a panel by its header to another edge of the window, or beside or under another panel. While you drag, an outline shows where the panel will go.
- The bottom edge can run under all three columns or under two of them. Drop a panel in the bottom left corner to put it under the left and middle columns (the right column then runs the full height), in the bottom right corner to put it under the middle and right columns, or in the bottom middle to put it under all three.
- Floating. A panel dragged away from the window becomes a window of its own.
- The ... menu in a panel's header has Move to Left, Move to Right and Move to Bottom (the edge the panel is on already is greyed out), Float (or Dock, for a floating panel), Auto Hide and Close.
- Auto Hide folds the panel into a narrow strip along its edge, which gives its room to the others. Click the strip's button to show the panel over the others; click it again, or anywhere else, to fold it away. Choose Auto Hide again to dock the panel as before.
- Pinning. Click the pin icon to lock the panel where it is: it can then not be dragged, and the menu's Move and Float items are greyed out. Click the pin again to unlock it. The pin is not kept between runs.
- Closing. The close icon in a panel's header, or Close in its menu, hides it. The View menu brings it back. A closed panel stays closed when Palette starts again.
- Resizing. Drag the line between two panels.
The layout, including which panel is above or beside which, which panels float or are folded away, and which are closed, is kept between runs, in dock_layout.txt. View > Reset Layout puts the panels back as in the picture above.
The mouse wheel scrolls the panel under the pointer, also when the pointer is over one of its buttons or swatches. Over a spin box that has the keyboard focus, the wheel steps its value instead.
4. The status bar and the hints
The status bar along the bottom of the window tells you what Palette is doing: what is under a swatch you drag, what you picked or locked, the theme color it follows, what was just saved or opened and where, and why something did not work. Point at a greyed-out control in the Style controls, and the status bar says why it does not apply now.
Rest the pointer for a moment on one of the Mockup's drop-downs and buttons, a cell of its color grid, the Harmony panel's Scheme drop-down, the Gradient panel's Follow Harmony, Stop at, Remove Stop, Add Stop and Space Evenly, or a row of an engine's or style's settings, and a hint says what it does.
5. A first theme in a few minutes
-
Choose a toolkit. Choose GTK3 in the Mockup's first drop-down. GTK's widget factory appears in the preview, in the theme last shown for GTK3 (at first, Adwaita).
-
Pick a color. Press Pick Color in the Picker and click anywhere on your screen: a wallpaper, a photo, a web page. The big swatch under the magnifier takes the color.
-
Drop it. Drag the big swatch onto a button in the preview. While you drag, the part under the pointer is outlined, and the status bar names it, for example
button - background, and the Adwaita color it follows. Let go: only that part changes.
A swatch dragged over the GTK3 preview. The zone under its corner is outlined.
-
Change the whole family. Drag again, but hold
Shiftwhen you let go. Every part that follows the same theme color changes with it, and so does everything the theme works out from it, such as hover shades and borders, just as Adwaita computes them. -
Reach the rest. While dragging, turn the mouse wheel to step through everything else of that widget: its hover, pressed and disabled looks, its text, border, shadow and focus ring.
-
Try states. In the Style controls under the Picker, press Hover or Disabled. The preview's widgets really go into that state, so you can see and color it. Press the button again to go back.
-
Save it. Choose File > Save All As..., choose a folder (the dialog starts in
~/.themes, or in your home folder when there is none), type the theme's name in Theme name and press OK. You get a theme folder laid out like the ones in/usr/share/themes, with every toolkit's files in it. See Theme Files.
Made a mistake? Undo and Redo in the Mockup header step through your edits. Reset, after asking, puts the toolkit's theme back to its defaults.
Undo and Redo
Undo and Redo (the Mockup's buttons, the Edit menu, Ctrl+Z, Ctrl+Shift+Z and Ctrl+Y) work on your edits of every toolkit at once. While a text field has the keyboard focus, these keys work on its text instead.
- There is one history for all the toolkits, 32 steps deep. Each step holds the colors of every toolkit. When it is full, the oldest step is dropped.
- After you switch toolkits, Undo still takes back the last change you made, whichever toolkit it was in. Palette does not switch the preview to that toolkit: if your last change was to GTK3 and the Mockup now shows Qt 5, Undo changes GTK3, and the Qt 5 preview stays as it is. Switch back to GTK3 to see it.
- Every drop, every change made in the Style controls, Apply To, Import As, opening a Qt style sheet (
.qss) and Reset is one step. One Undo takes back all of Apply To, in every toolkit it changed. - Undo and Redo never change the engine or style you chose, or its settings. So an Undo after Reset brings back the colors and the theme file the toolkit was opened from, but the toolkit keeps its default engine or style.
- Choosing a preset in the Theme list is not a step. Undo goes on through your other toolkits' changes, but never brings back the colors that the preset replaced.
- Opening a theme file or a theme folder, and choosing an installed theme in the Theme list, clears the whole history, for every toolkit. The history is not kept when Palette quits.
- A new change after an Undo clears what Redo could have put back.
6. Where to go next
- The other toolkits work a little differently: GTK2 has a grid of state colors, and Qt has color roles and KDE color sets. See The Mockup Preview.
- Shadows, borders, corners, fonts, opacity, menus held open and exact targeting without dragging: The Style Panel.
- Harmonies, gradients and favorites: Color Panels.
