remove rounded corners and dropshadow that can be annoying

Antonín Dach 2021-11-21 19:34:36 +00:00
parent 9f0d7a97cb
commit d1b9288cab

@ -57,6 +57,30 @@ Importing the gtk, icon, and cursor themes:
exec_always import-gsettings exec_always import-gsettings
``` ```
### Removing the rounded corners and dropshadow of themes like Adwaita
If you use 1 pixel border the theme's shadow can leak underneath, also sway's border can only be without border radius so to remove any of these issues make a file at `${XDG_CONFIG_HOME}/gtk-3.0/gtk.css` put following selectors there.
```
/** Some apps use titlebar class and some window */
.titlebar,
window {
border-radius: 0;
box-shadow: none;
}
/** also remove shaddows */
decoration {
box-shadow: none;
}
decoration:backdrop {
box-shadow: none;
}
```
## XSettings ## XSettings
Some GTK applications running via XWayland, and some Java applications, need an XSettings daemon running in order to pick up the themes and font settings. Some GTK applications running via XWayland, and some Java applications, need an XSettings daemon running in order to pick up the themes and font settings.