Philipp Hörist pushed to branch master at gajim / gajim


Commits:
d3701bd4 by Philipp Hörist at 2025-11-02T12:51:15+01:00
refactor: ChatList/ActivityList: Use spacing attribute

Define spacing on the box instead of setting it on each element

- - - - -


3 changed files:

- gajim/data/gui/activity_list_row.ui
- gajim/data/gui/chat_list_row.ui
- gajim/data/style/gajim.css


Changes:

=====================================
gajim/data/gui/activity_list_row.ui
=====================================
@@ -8,12 +8,11 @@
       <object class="GtkBox">
         <property name="visible">1</property>
         <property name="can-focus">False</property>
+        <property name="spacing">12</property>
         <child>
           <object class="GtkBox" id="_account_identifier">
-            <property name="width-request">3</property>
             <property name="can-focus">False</property>
             <property name="visible">0</property>
-            <property name="margin-end">6</property>
             <property name="orientation">vertical</property>
             <child>
               <placeholder/>
@@ -27,7 +26,6 @@
           <object class="GtkImage" id="_avatar_image">
             <property name="visible">1</property>
             <property name="can-focus">False</property>
-            <property name="margin-end">12</property>
             <property name="pixel-size">32</property>
           </object>
         </child>
@@ -35,7 +33,6 @@
           <object class="GtkBox">
             <property name="visible">1</property>
             <property name="can-focus">False</property>
-            <property name="margin-end">6</property>
             <property name="hexpand">1</property>
             <property name="orientation">vertical</property>
             <child>


=====================================
gajim/data/gui/chat_list_row.ui
=====================================
@@ -5,11 +5,10 @@
     <property name="can-focus">0</property>
     <child>
       <object class="GtkBox">
+        <property name="spacing">12</property>
         <child>
           <object class="GtkBox" id="account_identifier">
             <property name="visible">0</property>
-            <property name="width-request">3</property>
-            <property name="margin-end">6</property>
             <property name="orientation">vertical</property>
             <child>
               <placeholder/>
@@ -20,13 +19,10 @@
           </object>
         </child>
         <child>
-          <object class="GtkImage" id="avatar_image">
-            <property name="margin-end">12</property>
-          </object>
+          <object class="GtkImage" id="avatar_image" />
         </child>
         <child>
           <object class="GtkBox">
-            <property name="margin-end">6</property>
             <property name="hexpand">1</property>
             <property name="orientation">vertical</property>
             <child>


=====================================
gajim/data/style/gajim.css
=====================================
@@ -264,7 +264,8 @@ .gajim-app-window .window-padding {
 
 /* Generic sidebar / chatlist elements */
 .account-identifier-bar {
-       border-radius: 6px;
+    border-radius: 6px;
+    min-width: 3px;
 }
 
 .selection-bar {
@@ -284,10 +285,6 @@ #AccountPopoverRow image {
     -gtk-icon-size: 24px;
 }
 
-#AccountPopoverRow .account-identifier-bar {
-    padding-left: 3px;
-}
-
 /* SideBarListBox */
 
 #SideBarListBox {



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/d3701bd427304929d4f2727c66379100107b5950

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/d3701bd427304929d4f2727c66379100107b5950
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to