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


Commits:
d4378658 by wurstsalat at 2021-03-10T23:08:41+01:00
WorkspaceSidebar: Attempt to fix icon position

- - - - -


2 changed files:

- gajim/data/style/gajim.css
- gajim/gtk/workspace_side_bar.py


Changes:

=====================================
gajim/data/style/gajim.css
=====================================
@@ -96,11 +96,16 @@
     border-bottom: 1px solid #4e9a06;
 }
 .workspace-add {
-    padding-left: 3px;
+    padding: 0 0 0 6px;
+    margin: 6px 12px;
+}
+.workspace-add image {
+    margin: 0px;
+    padding: 0px;
     color: alpha(@theme_text_color, 0.7);
     background-color: shade(@theme_base_color, 0.9);
 }
-.workspace-sidebar-item:hover .workspace-add {
+.workspace-add:hover image {
     background-color: shade(@theme_base_color, 0.85);
 }
 


=====================================
gajim/gtk/workspace_side_bar.py
=====================================
@@ -271,12 +271,10 @@ def __init__(self, workspace_id):
         CommonWorkspace.__init__(self, workspace_id)
         self.set_selectable(False)
         self.set_tooltip_text(_('Add Workspace'))
+        self.get_style_context().add_class('workspace-add')
 
         image = Gtk.Image.new_from_icon_name('list-add-symbolic',
                                              Gtk.IconSize.DND)
-        image.set_halign(Gtk.Align.CENTER)
-        image.set_margin_left(6)
-        image.get_style_context().add_class('workspace-add')
         self.add(image)
         self.show_all()
 



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

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


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to