Theming Whisker Menu redux

I still get questions about how to theme Whisker Menu from time to time, but now they are about the GTK+3 version. Which makes sense, because the information in my previous blog post is about how to theme the GTK+2 version and none of that applies anymore. If you are using Whisker Menu 2.0.0 or newer, this is what you need.

So! How to do it? It is surprisingly easy, actually. You need to modify the file ~/.config/gtk-3.0/gtk.css (create it if it doesn’t exist), and just start putting things in there. It uses GTK+’s CSS, with properties you can read about on gnome.org. To apply your theme changes you need to either log out and log in, or restart your panel by running:

xfce4-panel -r

To modify only Whisker Menu, make sure to put #whiskermenu-window at the start of each section. That will restrict the styling to just Whisker Menu, and leave the rest of your GTK+3 programs alone. Here is a quick and dirty example (which I am sure could be done much more cleanly) to match the theming from the original blog post:

#whiskermenu-window {
	background-color: #404040;
	color: #ccc;
}

/* Make sidebar buttons match */
#whiskermenu-window button {
	background-color: #404040;
	color: #ccc;
}
#whiskermenu-window button:hover {
	background-color: #808080;
	color: #fff;
}
#whiskermenu-window button:checked {
	background-color: #606060;
	color: #fff;
}

/* Make treeview match */
#whiskermenu-window treeview {
	background-color: #404040;
	color: #ccc;
}
#whiskermenu-window treeview:hover {
	background-color: #808080;
	color: #fff;
}

Whisker Menu dark tree GTK+3

The panel button is also named. If for some reason you want the Whisker Menu panel button to not match the rest of your panel, just use #whiskermenu-button at the start of a section.

CSS is quite powerful, and you can do a lot more with it than I have done here. This is just to get you started! Please don’t ask me for more help beyond this, though. I don’t have much experience with using CSS for GTK+ styling, and I don’t really expect to. I don’t theme my own menu. 😉

Advertisements

Another small FocusWriter release

I made a small bugfix release of FocusWriter, version 1.6.7. I fixed a few minor issues: the printing now no longer adds extra indenting; the window margin of the themes respects 1-pixel margins again; and finally the background of the text area is no longer incorrectly scaled on HiDPI displays. Enjoy!

More releases!

I just realized I forgot to announce the releases I made at the beginning of the month! Oops. This poor, neglected blog.

I updated all of my projects, and for the most part it was a very minor release that fixed an installation bug in Linux or updated the translations. Of course, FocusWriter had a few more fixes than the rest, but that is to be expected as it is a much more complicated program. And Tanglet actually had a feature release, thanks to Markus Enzenberger. If you have not yet updated, enjoy!

Minor Whisker Menu release

Not much to announce here, because there were only two small bugs fixed in my newest Whisker Menu release, version 1.7.2 (and version 2.1.2 for those using GTK+3). Both bugs were related to the category names turning off, so it is an important but small release. Enjoy!

Small FocusWriter release

I made a small bugfix release of FocusWriter, version 1.6.4. This release mainly fixes issues with backgrounds on HiDPI displays. As I don’t have such a display myself, I did not notice these issues during development. Please enjoy!

Tiny, but important, Kapow release

I have made a very small bugfix release of Kapow, version 1.5.2. The only change is that reports now properly handle commas in the totals, so for all non-English speakers it should now report the correct values. Enjoy!

Releases galore!

Over the past week and a half, I have made releases for all of my projects. Most of them were pretty minor, and just amounted to updating the translations (and fixing an issue where the Qt-supplied translations were not being properly loaded). Packagers will now need to depend on lrelease, because I no longer include the precompiled binary .qm files.

The projects with actual feature releases were CuteMaze, Hexalate, Tanglet, and Tetzle. For the most part, the features added will not be obvious unless you have a 4K monitor, because the biggest thing I added was support for high-DPI displays. I did also finish moving my projects to be Qt 5 only, and to use C++11.

As usual, report any issues you have. Enjoy!

Another FocusWriter release!

I just made a bugfix release of FocusWriter, version 1.6.1. This release has fixes for a few issues, primarily with OOXML files. They solve data loss, so if you are using FocusWriter with OOXML files I recommend you update immediately. The other fixes are much more minor, but still nice to have. Enjoy!

A new Kapow release!

And another project rises from the ashes like a phoenix: I have finally made a new feature release of Kapow, version 1.5.0! There are not a whole lot of user-visible changes, but some very important code cleanup happened. The most noticeable changes are that you can now start, stop, or cancel sessions by right-clicking on the sidebar. It also prevents you from removing a project that has a timer running in a subproject. Enjoy!

And finally … a new FocusWriter!

I am pleased to announce a new feature release of FocusWriter, version 1.6.0! It has been a long time coming. Anyway, new in this release are a few things that I know people will be very happy about: I relented and merged code that allows you to always show the user interface. I also added support for headings, so you can make your chapter titles bigger than the rest of your text. And quite a bit of behind-the-scenes work went into adding support for high DPI displays (which I don’t happen to have, so if my testing missed some things, let me know).

I also added four new themes! I don’t want to overload the install with too many themes, but I always felt the selection was a bit lacking. The original themes are still provided, of course, but they are now complemented by:

Bitter Skies

Bitter Skies

Enchantment

Enchantment

Spy Games

Spy Games

Tranquility

Tranquility

Go forth and enjoy!