diff --git a/GTK-3-settings-on-Wayland.md b/GTK-3-settings-on-Wayland.md index 630eb67..5d28844 100644 --- a/GTK-3-settings-on-Wayland.md +++ b/GTK-3-settings-on-Wayland.md @@ -57,6 +57,30 @@ Importing the gtk, icon, and cursor themes: 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 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.