wc-themegen, a console utility for automatically adjusting the Wine theme


wc-themegen, a console utility for automatically adjusting the Wine theme

A year ago I learned C, mastered GTK and in the process wrote a wrapper for Wine, which simplifies the configuration of many tedious actions. Now I don’t have the time or energy to finish the project, but it had a convenient function for adapting the Wine theme to the current GTK3 theme, which I moved into a separate console utility. I know that Wine-staging has a function to “mimic” the GTK theme, but it’s done very crookedly, some of the widgets stop responding or are displayed at all, and this has been going on for several years, so my solution is much more usable, although far from ideal .

The utility pulls colors from the current GTK-3 theme and adjusts them optimally for use with WinAPI widgets. The algorithm is optimized for use with both light and dark themes. Unfortunately, the features of themes a la "windows 95" do not allow for a modern flat design, in any case, some of the widgets are displayed incorrectly. For picky users, there are several keys for finer tuning for themselves.

Usage:
--prefix, -p $PATH — path to the prefix

--not-run-winecfg, -w — do not run Winecfg after applying the theme

--loader-dir, -l $DIR — path to a custom Wine loader, for example, "/opt/wine-staging/bin"

—set-default, -d — cancel all the fun with flowers and return to default

--main-color, -m $COLOR — arbitrary background color of widgets, for example, "#fa4500"

--highlight-color, -c $COLOR — highlight color of selected widgets

--active-color, -a $COLOR — active window title color

--inactive-color, -i $COLOR — inactive window title color

—text-color, -t $COLOR — text color

--contrast, -c $VALUE - final theme contrast setting, from 0.1 to 2.0, default 1.0

--help, -? - reference
Compiled binary (amd64)
Screenshots of several famous themes

Source: linux.org.ru

Add a comment