[gtk/wip/chergert/macos-iosurface: 1/6] css: reduce overdraws from "textview > text"




commit c3dad84aaffbc6de321cf52652e4d88b0ff28923
Author: Christian Hergert <christian hergert me>
Date:   Fri Feb 11 23:02:20 2022 -0800

    css: reduce overdraws from "textview > text"
    
    This was causing us to draw the same background content twice which is a
    significant amount of bits to flip in the GPU for maximized windows,
    especially twice.

 gtk/theme/Default/_common.scss | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gtk/theme/Default/_common.scss b/gtk/theme/Default/_common.scss
index 02af5e936c..27e75a2d52 100644
--- a/gtk/theme/Default/_common.scss
+++ b/gtk/theme/Default/_common.scss
@@ -66,6 +66,8 @@ textview {
   > text {
     @extend %view;
 
+    background-color: transparent;
+
     > selection {
       background-color: $backdrop_selected_bg_color;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]