Tips and Troubleshooting
Every key and mouse action in one place, some tips, the files and settings Palette keeps, its known limitations, and how to report a problem.
1. Keys
| Key | What it does |
|---|---|
Ctrl+O |
Open a theme file |
Ctrl+Shift+O |
Open a theme folder |
Ctrl+S |
Save the theme of the toolkit shown |
Ctrl+Shift+S |
Save As |
Ctrl+Z |
Undo the last change to the theme, in whichever toolkit it was made (see Undo and Redo). In a text field: undo the typing. |
Ctrl+Shift+Z, Ctrl+Y |
Redo. In a text field: redo the typing. |
Ctrl+Alt+Z |
Start picking a color, while Palette has the keyboard focus |
Escape |
Close or cancel what is open: a menu, a drop-down, a dialog, the About window, a Style panel pick, a color pick. It never quits; File > Exit does. |
Tab, Shift+Tab |
Move the keyboard focus to the next or the previous text field on the screen: the hex field, the Harmony panel's fields, the Gradient panel's output, and the Style panel's Selector, Property and Value. A field in a hidden panel, or one the Harmony scheme does not use, is passed over. |
Ctrl+C, Ctrl+X, Ctrl+V, Ctrl+A |
Copy, cut, paste and select all in text fields |
| Arrow keys, while picking | Move the pointer one pixel |
Enter, while picking |
Pick the pixel under the pointer |
+ (or =), -, while picking |
Zoom the magnifier in and out |
The file dialog has keys of its own; see Theme Files. Palette's questions (Reset, Replace, unsaved changes) take Enter for their first button and Escape to cancel.
Mouse
| Action | What it does |
|---|---|
| Drag a swatch onto the preview | Color the part under the swatch's corner |
Shift while dropping |
Change the theme color the part follows, and everything that follows it |
Ctrl while dropping (Qt) |
Only that widget class |
| Mouse wheel while dragging | Step through the widget's other states and parts |
| Mouse wheel over a panel | Scroll it (over a focused spin box: step its value) |
| Mouse wheel while picking | Zoom the magnifier |
| Right-click while picking | Cancel the pick (Escape does too) |
Ctrl+click on the preview |
Find out what colors that spot |
| Click a GTK2 grid cell | See what that color paints |
| Click a KDE color set cell (Breeze) | See where that color is drawn |
| Drop a swatch on the Favorites frame | Keep the color |
| Right-click a favorite | Remove it |
| Click a Harmony hex label | Copy it to the clipboard |
| Rest the pointer on a Mockup control, a cell of its grid, the Harmony Scheme drop-down, a Gradient stop control or a settings row | A hint says what it does |
2. Tips
- Cannot hit a thin border? In the Style panel, press Border under Part to color, then drop anywhere on the widget. Or Pick and lock it, then press Apply.
- Undo changed nothing you can see? There is one history for all the toolkits, so Undo takes back the last change wherever you made it, also in a toolkit that is not shown. Switch to that toolkit to see it, or press Redo.
- Something in the Style controls is greyed out? Point at it: the status bar says why it does not apply now.
- A typed property did nothing? The status bar shows the preview's own error for it.
- Want a hover or pressed color? Press Hover or Pressed among the states in the Style panel. The widgets stay in that state while you work, and Pick then takes that look.
- Menus and tooltips vanish? Press Menu or Tooltip under Keep open or hovered: they stay up until you press the button again.
- Change a whole theme's accent at once: Shift+drop on something selected or highlighted.
- Start from a theme you like: choose it in the Theme list (it lists your installed themes), edit it, then use Save All As.
- Colors from a photo: pick a color from it, then use the Harmony panel's swatches for the rest of the theme.
- A Qt style ignores your colors? Set its Colors setting to "Palette's"; see Engines and Styles.
- A theme file does not show in the Open dialog? A Blackbox or Fluxbox style can have any name, so the Theme files filter cannot know it: choose All Files in the file type drop-down, or open its folder with Open Theme Folder.
- The same look in every toolkit: make it in one, then use Apply To > All Toolkits.
3. The files Palette keeps
Everything goes into ~/.config/palette/, or $XDG_CONFIG_HOME/palette/ when that variable is set to a full path (one that starts with /):
| File | What is in it |
|---|---|
palette.conf |
Your settings (below), the look of Palette's own widgets, the Mockup's themes and edits, the state of the panels, your favorites, the magnifier's colors and whether its crosshair and square show. |
themes.dat |
The theme files opened and saved and the last theme folders, each toolkit's preset, engine or style and their settings, GTK3's and GTK4's settings, the KDE color sets you set, the Kvantum themes opened, and GTK2's widget class colors. |
themes/ |
Palette's own xtk themes, which View > Theme lists. xtk's 14 presets are written there when they are missing. |
gtk2-pixmaps/ |
The images of GTK2 gradient backgrounds. |
dock_layout.txt |
Where the panels are and their sizes, which float, which are folded away by Auto Hide, and which are closed. |
file_dialog.txt |
What the file dialogs remember: favorites, hidden files, columns and the sort. |
window.dat |
The window's position, the last color, the magnifier's zoom level. |
last_zoom.dat |
The magnifier's last image. |
Deleting that folder puts Palette back to its defaults: a window of 1700 by 860 pixels (smaller on a smaller screen), the default layout, and the first preset of each toolkit.
Palette also uses ~/.cache/palette/ (or $XDG_CACHE_HOME/palette/): gresource/ holds the unpacked copies of themes that keep their stylesheets in a bundle, and kvantum/Default/ the copy of Kvantum's built-in theme. While it runs, the previews read temporary files in /tmp (palette_mockup_*, palette_qt_config_*, palette_gtk2_config_*), which are written again on every change. Palette removes the style files and the Qt folder when it quits.
4. Settings in palette.conf
Edit > Configuration opens palette.conf in the editor named by editor under [paths], or in your desktop's own editor for text (through xdg-open) when that is empty. When the file does not exist yet, Palette writes one with its defaults first. Palette reads the file again as soon as you save it. Besides the look of Palette's own widgets, it holds these settings:
| Section and key | What it does | Default |
|---|---|---|
[main] start-color |
The color shown at start when there is no last picked one | White |
[main] theme |
Palette's own theme, as View > Theme chooses it | None |
[main] icon-theme |
Palette's icons: empty to follow every xtk program's choice (the theme line of ~/.config/xtk/icons.conf, which Unryu, Hanshi and Skein set in their Preferences), or "desktop" (the icon theme your desktop uses: the one it announces, else GTK's gtk-icon-theme-name, else KDE's), "builtin" (xtk's own one-color icons), or an installed icon theme's folder name (from /usr/share/icons or ~/.local/share/icons, such as Papirus-Dark). A theme's icons are drawn in its own colors, as GTK programs show them; where it has no icon for something, Palette draws its own. Palette follows a change of the desktop's theme, or of icons.conf, while it runs. |
Empty |
[sizes] main-width, main-height |
The window's size, kept as you resize it: 0, or from 100 to 32767 | 0: Palette's own size, 1700 by 860, or smaller on a smaller screen |
[sizes] about-width, about-height |
The About window's size | 520, 360 |
[behavior] hex-case |
Hex values in upper or lower case |
upper |
[behavior] remember-position |
Open the window where it was last | true |
[behavior] always-on-top |
Keep the window above the others | false |
[clipboard] auto-copy |
Copy the current color to the clipboard each time it changes: a pick, a typed hex value, a slider, the wheel | false |
[clipboard] auto-copy-format |
How it is copied: hex, hsv, hsl, rgb (0 to 1) or rgbi (0 to 255) |
hex |
[clipboard] hex-prefix |
Copy a hex value with its # |
true |
[paths] browser |
The program that opens links (the About window's) | Empty: xdg-open |
[paths] editor |
The program Edit > Configuration uses | Empty: xdg-open |
[zoom] crosshair-color, square-color |
The colors of the magnifier's crosshair and square | #00C000 (green), #C00000 (red) |
[zoom-widget] crosshair-show, square-show, crosshair-show-after-pick, square-show-after-pick |
Whether the crosshair and the square show while picking and after it | Shown while picking |
[zoom-hex] show, position, font, font-size, color, background, border, border-show, border-width |
The hex value shown in the magnifier: whether it shows (the Picker's Live hex), its corner (bottom-right, bottom-left, top-right, top-left), its font and colors |
Shown, bottom-right, monospace 12 |
The other sections, [harmony], the gradient's, the Mockup's and so on, are kept by Palette as you use it; there is no need to change them by hand.
Palette checks every value it reads. A value that is not what its key takes (a word where a number belongs, a number out of range) is named on standard error, for example palette.conf: [gradient] opacity = 1x0: not a number from 0 to 100, ignored, and that setting keeps its default. Start Palette from a terminal to see these messages. Every file Palette keeps is written whole or not at all: a crash or a full disk while saving leaves the old file as it was.
5. Known limitations
- Alpha software. Things change and break from one version to the next; please report them.
- X11 only. Palette runs under XWayland, but not on Wayland itself.
- The GTK3, GTK4, xtk and window manager previews flicker once when a drag first reaches them, while Palette maps the zones.
- GTK2 shows one state at a time, its grid's rows, and has no colors for Mixed or Unfocused.
- The previews are the toolkits' demo programs: a widget none of them has cannot be previewed.
- SVG images in themes are drawn by xtk's own SVG renderer, which draws shapes, paths, gradients, transforms and style attributes. It draws text in one plain sans-serif font only, and it does not draw filters, masks, clip paths, patterns, embedded images, reused (
use) elements or<style>sheets. - Some Qt styles draw with their own colors until their Colors setting is "Palette's".
- A window manager theme's images are drawn only where the kernel's jail can be set up; see Window Manager Themes.
- Murrine's translucency needs a compositing desktop, and the preview does not show it.
- Only the Kvantum theme variant you worked on is saved, not its dark variant.
6. Reporting a problem
Open an issue at https://gitlab.com/liquibyte/palette/-/issues with:
- what you did, what you expected and what happened;
- the toolkit and theme you were on;
- your distribution, and what
./paletteprinted when started from a terminal, if anything; - a screenshot, if it is something you can see.