diff options
author | Jakub Steiner <jimmac@gmail.com> | 2021-02-10 18:18:10 +0100 |
---|---|---|
committer | Jakub Steiner <jimmac@gmail.com> | 2021-02-10 18:18:10 +0100 |
commit | 6f4ebce9143a049368cf9c04610a4d1b4282cd8a (patch) | |
tree | a10d1ccf7773ba6bada1b20abf10c3b4dc9553fb | |
parent | 40295441d1dc6d397fb8180a8bf654b35ad20041 (diff) | |
download | gtk+-wip/jimmac/fix-maximized-shadows-gtk3.tar.gz |
adwaita: disable shadows when window is maximized, fullscreen, tiledwip/jimmac/fix-maximized-shadows-gtk3
These shadows cause a significant draw performance drop for maximized
windows. Disabling them increases the chances we can have faster scroll
performance of text.
There is some risk here for systems where they have a dock and you expect
the shadow to draw beneath that dock for transparency reasons.
-rw-r--r-- | gtk/theme/Adwaita/_common.scss | 2 | ||||
-rw-r--r-- | gtk/theme/Adwaita/gtk-contained-dark.css | 2 | ||||
-rw-r--r-- | gtk/theme/Adwaita/gtk-contained.css | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss index 01d1dc9324..4510cfa784 100644 --- a/gtk/theme/Adwaita/_common.scss +++ b/gtk/theme/Adwaita/_common.scss @@ -4579,7 +4579,7 @@ decoration { .tiled-top &, .tiled-right &, .tiled-bottom &, - .tiled-left & { border-radius: 0; } + .tiled-left & { border-radius: 0; box-shadow: none; } .popup & { box-shadow: none; } diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css index c10e35b9a2..a0e94dc079 100644 --- a/gtk/theme/Adwaita/gtk-contained-dark.css +++ b/gtk/theme/Adwaita/gtk-contained-dark.css @@ -1838,7 +1838,7 @@ decoration { border-radius: 8px 8px 0 0; border-width: 0px; box-shadow: 0 3px 9p decoration:backdrop { box-shadow: 0 3px 9px 1px transparent, 0 2px 6px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(27, 27, 27, 0.9); transition: 200ms ease-out; } -.maximized decoration, .fullscreen decoration, .tiled decoration, .tiled-top decoration, .tiled-right decoration, .tiled-bottom decoration, .tiled-left decoration { border-radius: 0; } +.maximized decoration, .fullscreen decoration, .tiled decoration, .tiled-top decoration, .tiled-right decoration, .tiled-bottom decoration, .tiled-left decoration { border-radius: 0; box-shadow: none; } .popup decoration { box-shadow: none; } diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css index 3b4f3dd966..56b3af7641 100644 --- a/gtk/theme/Adwaita/gtk-contained.css +++ b/gtk/theme/Adwaita/gtk-contained.css @@ -1854,7 +1854,7 @@ decoration { border-radius: 8px 8px 0 0; border-width: 0px; box-shadow: 0 3px 9p decoration:backdrop { box-shadow: 0 3px 9px 1px transparent, 0 2px 6px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.18); transition: 200ms ease-out; } -.maximized decoration, .fullscreen decoration, .tiled decoration, .tiled-top decoration, .tiled-right decoration, .tiled-bottom decoration, .tiled-left decoration { border-radius: 0; } +.maximized decoration, .fullscreen decoration, .tiled decoration, .tiled-top decoration, .tiled-right decoration, .tiled-bottom decoration, .tiled-left decoration { border-radius: 0; box-shadow: none; } .popup decoration { box-shadow: none; } |