nwg-piotr / nwg-drawer

Application drawer for wlroots-based Wayland compositors
MIT License
240 stars 25 forks source link

Styling issue. #44

Closed triyan1975 closed 2 years ago

triyan1975 commented 2 years ago

Hi! Nice project. My first install on FreeBSD 13, Sway, default css file. What`s wrong? screenshot

nwg-piotr commented 2 years ago

Did you apply your GTK theme?

triyan1975 commented 2 years ago

Yes, "Adwaita". Gtk applications looks good.

nwg-piotr commented 2 years ago

Well, the default drawer.css matches dark styles. You need either to edit it to fit your theme, or use another one with the -s argument. Or use Adwaita-dark, as I do. :)

jbeich commented 2 years ago

Adwaita-dark is part of gnome-themes-extra on Gtk < 4 but nwg-drawer is a Gtk3 application, so it may not be installed by default.

# Packages that bootleg Adwaita for Gtk2 and Adwaita-dark for Gtk2/Gtk3
$ pkg rquery -r FreeBSD %ro gnome-themes-extra | sort -u
misc/lxde-common
x11-themes/materia-gtk-theme
x11/cinnamon
x11/gnome3
nwg-piotr commented 2 years ago

Possibly, but I don't deliver styles for all occasions, at least as long as this project is a solo flight. Feel free to contribute.

triyan1975 commented 2 years ago

I modified drawer.css and all is ok! =========drawer.css============ window { background-color: rgba (36, 47, 79, 0.95); color: #eeeeee; text-shadow: none; }

/ search entry / entry { background-color: rgba (0, 0, 0, 0.2); color: #eeeeee; }

button, image { background: none; border: none; box-shadow: none; text-shadow: none; color: #eeeeee; }

button:hover, button:focus { background-color: rgba (255, 255, 255, 0.1); }

/ in case you wanted to give category buttons a different look /

category-button {

margin: 0 10px 0 10px;

}

pinned-box {

padding-bottom: 5px;
border-bottom: 1px dotted gray;

}

files-box {

padding: 5px;
border: 1px dotted gray;
border-radius: 15px;

}

screenshot

nwg-piotr commented 2 years ago

Excellent! This file could be added as a sample drawer-light.css.