[fractal/wip/cdavis/next-style-cleanup: 4/6] session.ui: Use minimum fold threshold policy for leaflet




commit 998a045a023fd453eb0183289b2a453bd6ae99a7
Author: Christopher Davis <christopherdavis gnome org>
Date:   Thu Jun 24 23:04:47 2021 -0700

    session.ui: Use minimum fold threshold policy for leaflet
    
    This fixes https://gitlab.gnome.org/GNOME/fractal/-/issues/780
    by using the sum of minimum sizes as the size to fold the
    leaflet at.

 data/resources/style.css     | 5 ++---
 data/resources/ui/session.ui | 1 +
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/data/resources/style.css b/data/resources/style.css
index 34e8d98e..ea4085e7 100644
--- a/data/resources/style.css
+++ b/data/resources/style.css
@@ -90,8 +90,7 @@ headerbar.flat {
 }
 
 .sidebar .room .highlight {
-  /* TODO: use correct color variable */
-  background-color: @theme_selected_bg_color;
+  background-color: @accent_bg_color;
 }
 
 /* Content */
@@ -147,7 +146,7 @@ headerbar.flat {
 }
 
 .message-entry > .view:focus {
-  border: 2px solid @theme_selected_bg_color;
+  border: 2px solid @accent_bg_color;
   padding: 5px;
 }
 
diff --git a/data/resources/ui/session.ui b/data/resources/ui/session.ui
index b53a91db..3330f2a2 100644
--- a/data/resources/ui/session.ui
+++ b/data/resources/ui/session.ui
@@ -46,6 +46,7 @@
             </child>
             <child>
               <object class="AdwLeaflet" id="content">
+                <property name="fold-threshold-policy">minimum</property>
                 <child>
                   <object class="Sidebar" id="sidebar">
                     <property name="compact" bind-source="content" bind-property="folded" 
bind-flags="sync-create"/>


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