Change Theme For Wine Application Installed by Snap Aug 31st 2020 Words: 475

There are always some Windows applications that has no perfect replacement in Linux. Snapd provide a quick and clean way to install wine apps like Notepad++ and foobar2000, so you don’t have to spend time tweaking wine all day long. However, as the following screenshot shows, the default UI of the app sometimes is so antique that my eyes will bleed even glance at it.

Original appearance

winecfg

Unlike traditional wine app, to access the wine config utility, you need to use <appname> winecfg command in shell. For example, to access wine config for foobar2000, execute foobar2000 winecfg.

Royale theme

Under Desktop integration tab, there’s a pull down menu that allows you to choose the theme used for the app. Wine support installation of Windows XP theme.

Windows XP royale theme:

BreezeDark theme

There is also a breeze dark theme for wine app made by [email protected]. It suits pretty well on the dark theme, although the appearance of the button still looks win95.

To install this theme, exit the application first. Then append the registry to the end of ~/snap/foobar2000/common/.wine/user.reg.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
[Control Panel\\Colors] 1491939580
#time=1d2b2fb5c69191c
"ActiveBorder"="49 54 58"
"ActiveTitle"="49 54 58"
"AppWorkSpace"="60 64 72"
"Background"="49 54 58"
"ButtonAlternativeFace"="200 0 0"
"ButtonDkShadow"="154 154 154"
"ButtonFace"="49 54 58"
"ButtonHilight"="119 126 140"
"ButtonLight"="60 64 72"
"ButtonShadow"="60 64 72"
"ButtonText"="219 220 222"
"GradientActiveTitle"="49 54 58"
"GradientInactiveTitle"="49 54 58"
"GrayText"="155 155 155"
"Hilight"="119 126 140"
"HilightText"="255 255 255"
"InactiveBorder"="49 54 58"
"InactiveTitle"="49 54 58"
"InactiveTitleText"="219 220 222"
"InfoText"="159 167 180"
"InfoWindow"="49 54 58"
"Menu"="49 54 58"
"MenuBar"="49 54 58"
"MenuHilight"="119 126 140"
"MenuText"="219 220 222"
"Scrollbar"="73 78 88"
"TitleText"="219 220 222"
"Window"="35 38 41"
"WindowFrame"="49 54 58"
"WindowText"="219 220 222"

Start the app and the new theme should be applied.