Daniel Brötzmann pushed to branch gtk4 at gajim / gajim


Commits:
07274e37 by wurstsalat at 2024-11-09T23:53:05+01:00
refactor: GroupchatRoster: Improve styling

- - - - -


4 changed files:

- gajim/data/gui/groupchat_contact_header_view_item.ui
- gajim/data/gui/groupchat_contact_view_item.ui
- + gajim/data/icons/hicolor/scalable/devices/feather-tag-symbolic.svg
- gajim/gtk/groupchat_roster.py


Changes:

=====================================
gajim/data/gui/groupchat_contact_header_view_item.ui
=====================================
@@ -9,7 +9,10 @@
         <property name="width-chars">20</property>
         <property name="ellipsize">3</property>
         <style>
-          <class name="bold14"/>
+          <class name="bold"/>
+          <class name="pt-6"/>
+          <class name="pb-3"/>
+          <class name="px-6"/>
         </style>
       </object>
     </child>


=====================================
gajim/data/gui/groupchat_contact_view_item.ui
=====================================
@@ -26,9 +26,6 @@
             <property name="xalign">0</property>
             <property name="max-width-chars">20</property>
             <property name="ellipsize">3</property>
-            <style>
-              <class name="bold14"/>
-            </style>
           </object>
         </child>
         <child>
@@ -38,6 +35,10 @@
             <property name="max-width-chars">20</property>
             <property name="single-line-mode">1</property>
             <property name="ellipsize">3</property>
+            <style>
+              <class name="dim-label"/>
+              <class name="small-label"/>
+            </style>
           </object>
         </child>
         <layout>
@@ -50,11 +51,14 @@
       <object class="GtkImage" id="_hat_image">
         <property name="halign">1</property>
         <property name="pixel-size">16</property>
-        <property name="icon-name">avatar-default-symbolic</property>
+        <property name="icon-name">feather-tag-symbolic</property>
         <layout>
           <property name="column">2</property>
           <property name="row">0</property>
         </layout>
+        <style>
+          <class name="dim-label"/>
+        </style>
       </object>
     </child>
   </template>


=====================================
gajim/data/icons/hicolor/scalable/devices/feather-tag-symbolic.svg
=====================================
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg"; width="24" height="24" viewBox="0 0 24 
24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" 
stroke-linejoin="round" class="feather feather-tag"><path d="M20.59 13.41l-7.17 
7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"></path><line 
x1="7" y1="7" x2="7.01" y2="7"></line></svg>
\ No newline at end of file


=====================================
gajim/gtk/groupchat_roster.py
=====================================
@@ -276,6 +276,7 @@ def invalidate_sort(self) -> None:
 class GroupchatContactListView(Gtk.ListView):
     def __init__(self) -> None:
         Gtk.ListView.__init__(self)
+        self.add_css_class("p-12")
 
         self._model = Gio.ListStore(item_type=GroupchatContactListItem)
 



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

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/07274e377008d3032d960719b86e13967999fd00
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