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


Commits:
8a1392a6 by Daniel Brötzmann at 2021-05-04T09:34:47+02:00
Improve conversation widgets style

- - - - -
60dbba44 by Daniel Brötzmann at 2021-05-04T09:36:48+02:00
ChatPlaceholderBox: Dim Gajim icon

- - - - -
d99cd7c4 by Daniel Brötzmann at 2021-05-04T09:42:03+02:00
GroupchatState: Improve styling

- - - - -
8d25a0f6 by Daniel Brötzmann at 2021-05-04T09:54:25+02:00
MUCUserStatus: Add styling for status message

- - - - -


4 changed files:

- gajim/data/gui/groupchat_state.ui
- gajim/data/style/gajim.css
- gajim/gtk/chat_stack.py
- gajim/gtk/conversation/rows/muc_user_status.py


Changes:

=====================================
gajim/data/gui/groupchat_state.ui
=====================================
@@ -55,10 +55,10 @@
         <property name="can-focus">False</property>
         <property name="spacing">12</property>
         <child>
-          <object class="GtkLabel">
+          <object class="GtkSpinner">
             <property name="visible">True</property>
             <property name="can-focus">False</property>
-            <property name="label" translatable="yes">Joining…</property>
+            <property name="active">True</property>
           </object>
           <packing>
             <property name="expand">False</property>
@@ -67,10 +67,10 @@
           </packing>
         </child>
         <child>
-          <object class="GtkSpinner">
+          <object class="GtkLabel">
             <property name="visible">True</property>
             <property name="can-focus">False</property>
-            <property name="active">True</property>
+            <property name="label" translatable="yes">Joining…</property>
           </object>
           <packing>
             <property name="expand">False</property>
@@ -106,10 +106,9 @@
         <property name="can-focus">False</property>
         <property name="spacing">12</property>
         <child>
-          <object class="GtkLabel">
+          <object class="GtkSpinner">
             <property name="visible">True</property>
             <property name="can-focus">False</property>
-            <property name="label" translatable="yes">Fetching 
messages…</property>
           </object>
           <packing>
             <property name="expand">False</property>
@@ -118,9 +117,10 @@
           </packing>
         </child>
         <child>
-          <object class="GtkSpinner">
+          <object class="GtkLabel">
             <property name="visible">True</property>
             <property name="can-focus">False</property>
+            <property name="label" translatable="yes">Fetching 
messages…</property>
           </object>
           <packing>
             <property name="expand">False</property>


=====================================
gajim/data/style/gajim.css
=====================================
@@ -95,10 +95,14 @@
 .code-widget {
     border: 1px solid @borders;
     border-radius: 4px;
+    margin-top: 6px;
+    margin-bottom: 6px;
 }
 .code-widget-header {
     background-color: alpha(@insensitive_fg_color, 0.4);
     padding: 0 6px;
+    border-top-left-radius: 3px;
+    border-top-right-radius: 3px;
 }
 .code-widget-header label {
     font-size: small;
@@ -576,15 +580,15 @@ infobar.error > revealer > box {
 #GroupchatConfig treeview { padding: 5px; }
 
 .groupchat-state box {
-    background-color: alpha(rgb(70, 70, 70), 0.8);
+    background-color: alpha(rgb(70, 70, 70), 0.9);
     padding: 12px;
     border-radius: 6px;
 }
 .groupchat-state box > label {
-    color: @theme_base_color;
+    color: @theme_text_color;
 }
 .groupchat-state box > spinner {
-    color: @theme_base_color;
+    color: @theme_text_color;
 }
 
 /* Popover Treeview */
@@ -781,11 +785,12 @@ messagedialog.confirmation-dialog > box { margin-top: 
18px; }
 .conversation-quote {
     padding-bottom: 6px;
 }
-.conversation-quote textview text {
+.conversation-quote textview text,
+.conversation-quote label {
     color: alpha(@theme_text_color, 0.6);
 }
 .conversation-quote-bar {
-    background-color: @unfocused_borders;
+    background-color: alpha(@theme_text_color, 0.2);
 }
 .conversation-more-button {
     padding-top: 0px;


=====================================
gajim/gtk/chat_stack.py
=====================================
@@ -124,7 +124,9 @@ def __init__(self):
             100,
             self.get_scale_factor(),
             0)
-        self.add(Gtk.Image.new_from_pixbuf(pixbuf))
+        image = Gtk.Image.new_from_pixbuf(pixbuf)
+        image.get_style_context().add_class('dim-label')
+        self.add(image)
 
         label = Gtk.Label(label=_('Start a Chat'))
         label.get_style_context().add_class('dim-label')


=====================================
gajim/gtk/conversation/rows/muc_user_status.py
=====================================
@@ -60,6 +60,7 @@ def __init__(self, account, user_contact, is_self):
         if user_contact.status is not None:
             result = process(user_contact.status)
             message_widget = MessageWidget(account)
+            
message_widget.get_style_context().add_class('gajim-status-message')
             message_widget.add_content(result)
             self.grid.attach(message_widget, 2, 1, 1, 1)
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/d4bf2ee3d102d6b464cfcf85e53701aaf12beb4c...8d25a0f6ec7caca8a839a8b46b4e6b3f9d3cfa89

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/d4bf2ee3d102d6b464cfcf85e53701aaf12beb4c...8d25a0f6ec7caca8a839a8b46b4e6b3f9d3cfa89
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