[fractal/multi-account] Style account switcher



commit 41a9d411a110bdc07e756f89745d7e5868e32150
Author: Alejandro Domínguez <adomu net-c com>
Date:   Wed Jul 21 01:16:29 2021 +0200

    Style account switcher

 data/resources/style.css                           | 11 +++++++++++
 data/resources/ui/sidebar-account-switcher-item.ui |  2 ++
 data/resources/ui/sidebar.ui                       |  3 +++
 3 files changed, 16 insertions(+)
---
diff --git a/data/resources/style.css b/data/resources/style.css
index ea4085e7..aec9cc4d 100644
--- a/data/resources/style.css
+++ b/data/resources/style.css
@@ -40,6 +40,17 @@ headerbar.flat {
   border: none;
 }
 
+listview.account-switcher row {
+  border-radius: 10px;
+  margin-top: 3px;
+  margin-bottom: 3px;
+}
+
+listview.account-switcher row box {
+  padding-top: 5px;
+  padding-bottom: 5px;
+}
+
 /* Sidebar */
 .sidebar row {
   padding-left: 10px;
diff --git a/data/resources/ui/sidebar-account-switcher-item.ui 
b/data/resources/ui/sidebar-account-switcher-item.ui
index aec91cf3..c311c0cb 100644
--- a/data/resources/ui/sidebar-account-switcher-item.ui
+++ b/data/resources/ui/sidebar-account-switcher-item.ui
@@ -3,8 +3,10 @@
   <template class="GtkListItem">
     <property name="child">
       <object class="GtkBox">
+        <property name="spacing">10</property>
         <child type="start">
           <object class="ComponentsAvatar">
+            <property name="size">40</property>
             <binding name="item">
               <lookup name="avatar" type="User">
                 <lookup name="user" type="Session">
diff --git a/data/resources/ui/sidebar.ui b/data/resources/ui/sidebar.ui
index 56801537..bf02da07 100644
--- a/data/resources/ui/sidebar.ui
+++ b/data/resources/ui/sidebar.ui
@@ -39,6 +39,9 @@
                         <property name="orientation">vertical</property>
                         <child>
                           <object class="GtkListView" id="account_switcher">
+                            <style>
+                              <class name="account-switcher" />
+                            </style>
                             <property name="factory">
                               <object class="GtkBuilderListItemFactory">
                                 <property 
name="resource">/org/gnome/FractalNext/sidebar-account-switcher-item.ui</property>


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