[gtk/wip/chergert/glproto] adwaita: disable shadows when window is maximized or fullscreen
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto] adwaita: disable shadows when window is maximized or fullscreen
- Date: Thu, 4 Feb 2021 00:15:09 +0000 (UTC)
commit cba5a0ff611d186d156f2eb9b71b98e64a1a401e
Author: Christian Hergert <chergert redhat com>
Date: Wed Feb 3 16:15:02 2021 -0800
adwaita: disable shadows when window is maximized or fullscreen
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.
gtk/theme/Adwaita/_common.scss | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index d64cc120da..24b9c2de5c 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -4074,6 +4074,9 @@ window {
&:backdrop { box-shadow: inset 0 0 0 3px $backdrop_bg_color, inset 0 1px $top_hilight; }
}
+
+ &.maximized,
+ &.fullscreen { box-shadow: none; }
}
&.maximized,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]