From d1b9288cabe13c62e7eaa3831adc396c957b305d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=C3=ADn=20Dach?= Date: Sun, 21 Nov 2021 19:34:36 +0000 Subject: [PATCH] remove rounded corners and dropshadow that can be annoying --- GTK-3-settings-on-Wayland.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) 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.