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


Commits:
5a557ba6 by Philipp Hörist at 2025-01-24T17:24:28+01:00
cfix: Some CSS

- - - - -
4dd23f5d by Philipp Hörist at 2025-01-24T18:05:08+01:00
Simplify css

- - - - -


3 changed files:

- gajim/data/style/gajim.css
- gajim/gtk/dialogs.py
- gajim/gtk/main.py


Changes:

=====================================
gajim/data/style/gajim.css
=====================================
@@ -35,11 +35,9 @@ button.flat.link { padding: 0; border: 0; }
 
 .tabular-digits { font-feature-settings: "tnum"; }
 
-.confirmation-dialog > box { margin: 18px; }
-.confirmation-dialog > box > box > box > box > :first-child {
-    font-size: large;
-}
-.confirmation-dialog-button {
+.confirmation-dialog .dialog-vbox { margin: 18px; }
+.confirmation-dialog .dialog-vbox > :first-child { margin-bottom: 12px; }
+.confirmation-dialog button {
     border-radius: 9px; border: none;
 }
 


=====================================
gajim/gtk/dialogs.py
=====================================
@@ -108,9 +108,8 @@ def __init__(
             if button.is_default:
                 self.set_default_response(button.response)
 
-            widget = cast(Gtk.Button, 
self.get_widget_for_response(button.response))
-            widget.add_css_class("confirmation-dialog-button")
             if button.action is not None:
+                widget = cast(Gtk.Button, 
self.get_widget_for_response(button.response))
                 widget.add_css_class(button.action.value)
 
         if buttons:


=====================================
gajim/gtk/main.py
=====================================
@@ -1286,7 +1286,7 @@ def _remove_contact():
             contact, BareContact | GroupchatContact | GroupchatParticipant
         )
         sec_text = _(
-            "You are about to remove %(name)s (%(jid)s) from your contact 
list.\n"
+            "You are about to remove %(name)s (%(jid)s) from your contact 
list."
         ) % {"name": contact.name, "jid": jid}
 
         ConfirmationDialog(



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/bdb8ae0c798c697de3148371c4307eb34834f4fd...4dd23f5d0c99002d17b0c3e8d9d26e8198c0741a

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/bdb8ae0c798c697de3148371c4307eb34834f4fd...4dd23f5d0c99002d17b0c3e8d9d26e8198c0741a
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