Commit 35808237 authored by Paolo Borelli's avatar Paolo Borelli

Remove custom split headerbar css

It is now handled automatically by Adwaita
parent ae5b5d6f
......@@ -2349,12 +2349,10 @@ side_panel_visibility_changed (GtkWidget *panel,
context = gtk_widget_get_style_context (window->priv->headerbar);
if (visible)
{
gtk_style_context_add_class (context, "gedit-titlebar-right");
gtk_widget_grab_focus (window->priv->side_panel);
}
else
{
gtk_style_context_remove_class (context, "gedit-titlebar-right");
gtk_widget_grab_focus (GTK_WIDGET (window->priv->multi_notebook));
}
......
.gedit-titlebar-left:dir(ltr),
.gedit-titlebar-right:dir(rtl) {
border-top-right-radius: 0;
}
.gedit-titlebar-right:dir(ltr),
.gedit-titlebar-left:dir(rtl) {
border-top-left-radius: 0;
}
.gedit-headerbar-paned.pane-separator:dir(ltr),
.gedit-headerbar-paned.pane-separator:hover:dir(ltr) {
border-radius: 0;
border-width: 0 1px 1px 0;
}
.gedit-side-panel-paned.pane-separator:dir(ltr),
.gedit-side-panel-paned.pane-separator:hover:dir(ltr) {
border-radius: 0;
border-width: 0 1px 0 0;
}
.gedit-headerbar-paned.pane-separator:dir(rtl),
.gedit-headerbar-paned.pane-separator:hover:dir(rtl) {
border-radius: 0;
border-width: 0 0 1px 1px;
}
.gedit-side-panel-paned.pane-separator:dir(rtl),
.gedit-side-panel-paned.pane-separator:hover:dir(rtl) {
border-radius: 0;
......
......@@ -9,18 +9,11 @@
<object class="GtkPaned" id="titlebar_paned">
<property name="visible">True</property>
<property name="position" bind-source="hpaned" bind-property="position" bind-flags="bidirectional|sync-create"/>
<style>
<class name="gedit-headerbar-paned"/>
</style>
<child>
<object class="GtkHeaderBar" id="side_headerbar">
<property name="visible" bind-source="side_panel" bind-property="visible" bind-flags="sync-create"/>
<property name="show_close_button">False</property>
<property name="title" translatable="yes">Documents</property>
<style>
<class name="gedit-titlebar-left"/>
<class name="titlebar"/>
</style>
</object>
<packing>
<property name="resize">False</property>
......@@ -31,9 +24,6 @@
<object class="GtkHeaderBar" id="headerbar">
<property name="visible">True</property>
<property name="show_close_button">True</property>
<style>
<class name="titlebar"/>
</style>
<child>
<object class="GtkMenuButton" id="open_button">
<property name="visible">True</property>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment