Installing
Palette is built from source with a single make. This page says what you need, what the build makes, how to run Palette from its source folder or install it for the whole system, and what happens the first time it runs.
1. What you need
Palette runs on Linux with X11. It also runs under XWayland. To build it you need GCC with its C++ compiler (g++), make, pkg-config, binutils, and the development files of a few X11 libraries: X11, Xext, Xrender, Xft, fontconfig, FreeType, Xpm and Xcursor. On Debian, Devuan or Ubuntu:
sudo apt install build-essential pkg-config libx11-dev libxext-dev \
libxrender-dev libxft-dev libfontconfig-dev libfreetype-dev \
libxpm-dev libxcursor-dev
On other distributions, install the same development packages and binutils. Fedora also needs glibc-static and libstdc++-static, because the previews are linked statically.
You do not need GTK, Qt, GLib, cairo or pango on your system. Everything the previews use is in the source tree, under vendor/, and is compiled from there.
2. Building
Get the source and build it:
git clone https://gitlab.com/liquibyte/palette.git
cd palette
make
make builds these programs:
| Program | What it is |
|---|---|
palette |
Palette itself, in the source folder. |
vendor/toolkits/xtk-gallery |
The xtk preview: xtk's own widget gallery, built from the same xtk files as Palette. |
vendor/toolkits/wm-preview |
The window manager preview: a desktop drawn the way Openbox, Blackbox or Fluxbox draws its themes. |
vendor/toolkits/gtk2-widget-factory-static and the same for gtk3, gtk4, qt3, qt4, qt5 and qt6 |
The seven toolkit previews: each toolkit's own demo program, with every library it needs (GLib, cairo, pango, FreeType, fontconfig, the X11 client libraries, the toolkit itself, its theme engines and styles), built into one static program. |
The toolkit previews take a few minutes the first time. They are built one after another, each on every CPU of the machine, unless you give make a -j of your own. A preview that is already built is not built again. When the build is done, only the programs and a small vendor/build/ folder with the data they read are left behind; the intermediate files are deleted.
The build treats every warning in Palette's own code as an error. make clean removes everything that was built, the previews included, so the next make builds them all again.
3. Running it from the source folder
./palette
Palette runs straight from the folder it was built in, and can be started from any directory: it finds its previews and their data next to the program. It takes no command line options and opens no files given to it; you open themes from its File menu. Your settings go into ~/.config/palette/ (or $XDG_CONFIG_HOME/palette/ when that variable is set to a full path).
4. Installing for the whole system
After make, install as root:
sudo make install
make install refuses to run until every program is built, and says which one is missing. It puts the files here:
| What | Where |
|---|---|
| The program | /usr/bin/palette |
| The nine previews (the seven toolkit previews, the xtk gallery and the window manager preview) | /usr/libexec/palette/ |
| Their data: icons, the GTK3 preview's and GTK2 preview's icons, and the fontconfig settings the previews read | /usr/share/palette/ |
| Your settings | ~/.config/palette/, made on the first run |
An installed Palette finds its previews and data relative to itself, just as it does in the source folder.
make install PREFIX=/usr/localinstalls under another prefix (/usr/local/bin,/usr/local/libexec/palette,/usr/local/share/palette).make install DESTDIR=<folder>stages the install in a folder, for packaging.sudo make uninstallremoves the installed files. Your settings in~/.config/palette/stay.
make install does not add Palette to your desktop's application menu. To do that, copy palette.desktop from the source folder to ~/.local/share/applications/, and put logo.png into your icon theme as palette.png.
5. The first run
The first time it runs, Palette makes its configuration folder and writes xtk's 14 themes into ~/.config/palette/themes/, as starting points for View > Theme (see xtk Themes). It does that at every start for each of the 14 that is missing, so one you delete comes back; one you changed is never written over. The window opens at the size of the default layout, 1700 by 860 pixels, or smaller when the screen is smaller. The panels are where View > Reset Layout puts them: the Picker at the top left, the Mockup preview in the middle, Formats over Harmony on the right, and Gradient along the bottom under the Picker and the Mockup. The Mockup shows Qt 5 at first.
From then on Palette keeps where you left everything: the window's size and position, the panels, the last color, the toolkit shown, each toolkit's theme and your edits. Tips and Troubleshooting lists the files it keeps. Deleting ~/.config/palette/ puts Palette back to how it was on the first run.
Next: First Steps.