ErikReider / SwayOSD

A GTK based on screen display for keyboard shortcuts like caps-lock and volume
GNU General Public License v3.0
562 stars 35 forks source link

make background adapt to gtk theme #59

Closed haaase closed 10 months ago

haaase commented 11 months ago

This simple change fixes #58.

Since the default style.css uses @theme_fg_color for the images and labels, this PR uses @theme_bg_color for the background. This will also alter the "default" dark look so that it does not look exactly like the images in the readme.

Here is what it looks like with Adwaita and Adwaita-dark respectively: light_cropped

dark_cropped

cervyesterday commented 10 months ago

This simple change fixes #58.

Since the default style.css uses @theme_fg_color for the images and labels, this PR uses @theme_bg_color for the background. This will also alter the "default" dark look so that it does not look exactly like the images in the readme.

Here is what it looks like with Adwaita and Adwaita-dark respectively: light_cropped

dark_cropped

What should i do to fix it? I've added what you suggested in src/data/style/style.css but nothing happened.

haaase commented 10 months ago

Hi @cervyesterday,

you probably have to rebuild the project after changing the file.

The simplest way to apply the fix without rebuilding is to drop the following in ~/.config/swayosd/style.css:


window {
    background: alpha(@theme_bg_color, 0.8);
}

Hope this helps. Cheers!