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


Commits:
e4c26498 by cal0pteryx at 2026-04-11T15:46:25+02:00
imprv: Use Adwaita colors for group chat subject and call box

- - - - -


5 changed files:

- gajim/data/style/default-dark.css
- gajim/data/style/default.css
- gajim/data/style/gajim.css
- gajim/gtk/conversation/rows/call.py
- gajim/gtk/conversation/rows/muc_subject.py


Changes:

=====================================
gajim/data/style/default-dark.css
=====================================
@@ -11,14 +11,6 @@ .gajim-conversation-text {
 .gajim-status-message {
     color: rgb(140, 175, 210);
 }
-.gajim-subject-message {
-    color: rgb(205, 225, 255);
-    background: rgb(40, 60, 80);
-}
-.gajim-call-message {
-    color: rgb(205, 225, 255);
-    background: rgb(40, 60, 80);
-}
 .gajim-mention-highlight {
     background: rgb(100, 50, 10);
 }


=====================================
gajim/data/style/default.css
=====================================
@@ -11,14 +11,6 @@ .gajim-conversation-text {
 .gajim-status-message {
     color: rgb(100, 130, 160);
 }
-.gajim-subject-message {
-    color: rgb(40, 70, 100);
-    background: rgb(225, 235, 250);
-}
-.gajim-call-message {
-    color: rgb(70, 70, 70);
-    background: rgb(230, 230, 230);
-}
 .gajim-command-error {
     background-color: rgb(10, 50, 70);
     color: rgb(220, 80, 80);


=====================================
gajim/data/style/gajim.css
=====================================
@@ -655,10 +655,13 @@ .conversation-row-highlight {
 }
 
 /* Row widgets ============================================================ */
-.conversation-subject-box,
+.conversation-subject-box {
+    color: mix(var(--accent-blue), var(--view-fg-color), 0.7);
+    background-color: alpha(var(--accent-blue), 0.15);
+}
 .conversation-call-box {
-    border-radius: 6px;
-    padding: 12px;
+    color: mix(var(--accent-slate), var(--view-fg-color), 0.7);
+    background-color: alpha(var(--accent-slate), 0.15);
 }
 
 /* QuoteWidget */


=====================================
gajim/gtk/conversation/rows/call.py
=====================================
@@ -161,8 +161,9 @@ def _add_history_call_widget(self) -> None:
     def _add_incoming_call_widget(self) -> None:
         self._call_box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, 
spacing=6)
         self._call_box.set_size_request(350, -1)
+        self._call_box.add_css_class("card")
+        self._call_box.add_css_class("p-12")
         self._call_box.add_css_class("conversation-call-box")
-        self._call_box.add_css_class("gajim-call-message")
 
         scale = self.get_scale_factor()
         avatar = self._contact.get_avatar(AvatarSize.CALL, scale, 
add_show=False)


=====================================
gajim/gtk/conversation/rows/muc_subject.py
=====================================
@@ -40,8 +40,9 @@ def __init__(
 
         subject_box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
         subject_box.set_halign(Gtk.Align.START)
+        subject_box.add_css_class("card")
+        subject_box.add_css_class("p-12")
         subject_box.add_css_class("conversation-subject-box")
-        subject_box.add_css_class("gajim-subject-message")
 
         title = Gtk.Label(label=_("Subject"))
         title.set_halign(Gtk.Align.START)



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

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