[geary: 2/3] main-toolbar: Drop the custom styles



commit 0f907c5754ac34b5f8e974d354137258c04cd261
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Thu Jan 16 14:23:21 2020 +0100

    main-toolbar: Drop the custom styles
    
    Drop the custom titlebar styles as they are not needed since we use
    HdyTitleBar, and since they can interfeer with it.

 src/client/components/main-toolbar.vala | 4 ----
 ui/geary.css                            | 9 ---------
 ui/main-toolbar.ui                      | 9 ---------
 3 files changed, 22 deletions(-)
---
diff --git a/src/client/components/main-toolbar.vala b/src/client/components/main-toolbar.vala
index 5afaea6c..e4b55743 100644
--- a/src/client/components/main-toolbar.vala
+++ b/src/client/components/main-toolbar.vala
@@ -102,8 +102,6 @@ public class MainToolbar : Gtk.Box {
 
     public void set_conversation_header(Gtk.HeaderBar header) {
         conversation_header.hide();
-        header.get_style_context().add_class("geary-titlebar");
-        header.get_style_context().add_class("geary-titlebar-right");
         guest_header_binding = bind_property("show-close-button-right", header,
             "show-close-button", BindingFlags.SYNC_CREATE);
         pack_start(header, true, true);
@@ -112,8 +110,6 @@ public class MainToolbar : Gtk.Box {
 
     public void remove_conversation_header(Gtk.HeaderBar header) {
         remove(header);
-        header.get_style_context().remove_class("geary-titlebar");
-        header.get_style_context().remove_class("geary-titlebar-right");
         guest_header_binding.unbind();
         header.decoration_layout = Gtk.Settings.get_default().gtk_decoration_layout;
         conversation_header.show();
diff --git a/ui/geary.css b/ui/geary.css
index ab8c07fb..0b21e6b5 100644
--- a/ui/geary.css
+++ b/ui/geary.css
@@ -45,15 +45,6 @@
   border-right: 0;
 }
 
-.geary-titlebar-left:dir(ltr),
-.geary-titlebar-right:dir(rtl) {
-  border-top-right-radius: 0px;
-}
-.geary-titlebar-right:dir(ltr),
-.geary-titlebar-left:dir(rtl) {
-  border-top-left-radius: 0px;
-}
-
 /* MainWindowInfoBarSet */
 
 .geary-info-bar-frame > border {
diff --git a/ui/main-toolbar.ui b/ui/main-toolbar.ui
index 83b7b978..f7576f7d 100644
--- a/ui/main-toolbar.ui
+++ b/ui/main-toolbar.ui
@@ -73,10 +73,6 @@
             <property name="position">3</property>
           </packing>
         </child>
-        <style>
-          <class name="geary-titlebar"/>
-          <class name="geary-titlebar-left"/>
-        </style>
       </object>
       <packing>
         <property name="expand">False</property>
@@ -334,11 +330,6 @@
             <property name="position">4</property>
           </packing>
         </child>
-        <style>
-          <class name="geary-titlebar"/>
-          <class name="geary-titlebar-right"/>
-          <class name="titlebar"/>
-        </style>
       </object>
       <packing>
         <property name="expand">True</property>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]