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


Commits:
3221cdcb by Daniel Brötzmann at 2021-03-10T09:24:33+01:00
Main: Use popover menu

- - - - -
6b08a106 by Daniel Brötzmann at 2021-03-10T09:56:50+01:00
WorkspaceSidebar: Improve Add button styling

- - - - -


4 changed files:

- gajim/data/gui/main.ui
- gajim/data/style/gajim.css
- gajim/gtk/main.py
- gajim/gtk/workspace_side_bar.py


Changes:

=====================================
gajim/data/gui/main.ui
=====================================
@@ -180,7 +180,6 @@
                             <property name="can-focus">True</property>
                             <property name="focus-on-click">False</property>
                             <property name="receives-default">True</property>
-                            <property name="use-popover">False</property>
                             <child>
                               <object class="GtkImage">
                                 <property name="visible">True</property>


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


=====================================
gajim/gtk/main.py
=====================================
@@ -8,7 +8,6 @@
 from gajim.common import app
 from gajim.common import ged
 from gajim.common.helpers import ask_for_status_message
-from gajim.common.helpers import jid_is_blocked
 from gajim.common.i18n import _
 from gajim.common.nec import EventHelper
 
@@ -555,7 +554,8 @@ def _load_chats(self):
 
         self._startup_finished = True
 
-    def _on_start_chat_clicked(self, _button):
+    @staticmethod
+    def _on_start_chat_clicked(_button):
         app.app.activate_action('start-chat', GLib.Variant('s', ''))
 
     def _on_event(self, event):


=====================================
gajim/gtk/workspace_side_bar.py
=====================================
@@ -275,6 +275,7 @@ def __init__(self, workspace_id):
         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/-/compare/5ffb2902d2b01512d95d9660719dc537ce41e23f...6b08a1065e3a30c98ef6e3f1e66a97147973694b

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/5ffb2902d2b01512d95d9660719dc537ce41e23f...6b08a1065e3a30c98ef6e3f1e66a97147973694b
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