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


Commits:
8f31b8cc by wurstsalat at 2025-09-09T21:49:18+02:00
cfix: Sidebar: Don't show empty popover when no accounts are enabled

- - - - -
25e380b0 by wurstsalat at 2025-09-09T21:52:05+02:00
cfix: Icons: Add back accidentally removed icon; improve processing script

- - - - -
194d378b by wurstsalat at 2025-09-09T21:52:51+02:00
cfix: Sidebar: Use Lucide icon for connectivity issues

- - - - -


5 changed files:

- + gajim/data/icons/hicolor/scalable/devices/lucide-cloud-off.svg
- + gajim/data/icons/hicolor/scalable/devices/lucide-user.svg
- gajim/gtk/app_side_bar.py
- gajim/gtk/avatar.py
- scripts/process_svg.py


Changes:

=====================================
gajim/data/icons/hicolor/scalable/devices/lucide-cloud-off.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="lucide lucide-cloud-off-icon 
lucide-cloud-off"><path d="m2 2 20 20"/><path d="M5.782 5.782A7 7 0 0 0 9 
19h8.5a4.5 4.5 0 0 0 1.307-.193"/><path d="M21.532 16.5A4.5 4.5 0 0 0 17.5 
10h-1.79A7.008 7.008 0 0 0 10 5.07"/></svg>
\ No newline at end of file


=====================================
gajim/data/icons/hicolor/scalable/devices/lucide-user.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="lucide lucide-user-icon lucide-user"><path 
d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" 
r="4"/></svg>
\ No newline at end of file


=====================================
gajim/gtk/app_side_bar.py
=====================================
@@ -134,7 +134,6 @@ def _on_account_clicked(
         _popover: AccountPopover,
         account: str,
     ) -> None:
-
         app.window.show_account_page(account)
         self._bottom_listbox.select_row(self._account_row)
 
@@ -159,6 +158,9 @@ def _on_account_button_press(
             self._status_popover.popdown()
 
             accounts = app.settings.get_active_accounts()
+            if len(accounts) == 0:
+                return Gdk.EVENT_PROPAGATE
+
             if len(accounts) == 1:
                 app.window.show_account_page(accounts[0])
                 self._bottom_listbox.select_row(self._account_row)


=====================================
gajim/gtk/avatar.py
=====================================
@@ -581,7 +581,7 @@ def get_account_button_texture(
             context.set_source_rgb(0.75, 0.75, 0.75)
             context.rectangle(0, 0, width, height)
             context.fill()
-            icon_surface = load_icon_surface("dialog-warning", int(size * 
0.7), scale)
+            icon_surface = load_icon_surface("lucide-cloud-off", int(size * 
0.7), scale)
             if icon_surface is not None:
                 pos = (width - width * 0.7) / 2
                 context.set_source_surface(icon_surface, pos, pos)


=====================================
scripts/process_svg.py
=====================================
@@ -78,7 +78,9 @@ def process_file(file_name: str) -> None:
                 if not file_path.suffix == ".svg":
                     continue
 
-                if file_path.stem.startswith("lucide"):
+                if file_path.stem.startswith("lucide") or 
file_path.stem.endswith(
+                    "symbolic"
+                ):
                     continue
 
                 process_file(file)



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/243ab702e2dcec579215d1bcc9e526d6e16f3ea1...194d378b65ec81a3559921110e610aeed3443f5e

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/243ab702e2dcec579215d1bcc9e526d6e16f3ea1...194d378b65ec81a3559921110e610aeed3443f5e
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