forked from AuroraMiddleware/gtk
Simplify actionbar
We don't need a frame widget here, just render a top border on the box.
This commit is contained in:
parent
b90fa7dcd1
commit
a3fd5a010b
@ -251,8 +251,9 @@ gtk_action_bar_allocate (GtkCssGadget *gadget,
|
||||
gpointer data)
|
||||
{
|
||||
GtkWidget *widget = gtk_css_gadget_get_owner (gadget);
|
||||
GtkActionBarPrivate *priv = gtk_action_bar_get_instance_private (GTK_ACTION_BAR (widget));
|
||||
|
||||
GTK_WIDGET_CLASS (gtk_action_bar_parent_class)->size_allocate (widget, (GtkAllocation *)allocation);
|
||||
gtk_widget_size_allocate (priv->revealer, (GtkAllocation *)allocation);
|
||||
|
||||
gtk_container_get_children_clip (GTK_CONTAINER (widget), out_clip);
|
||||
}
|
||||
|
@ -2514,12 +2514,9 @@ paper {
|
||||
&:backdrop { border-color: $backdrop_borders_color; }
|
||||
}
|
||||
|
||||
actionbar frame border {
|
||||
border-width: 1px 0 0;
|
||||
}
|
||||
|
||||
actionbar box {
|
||||
padding: 6px;
|
||||
border-width: 1px 0 0;
|
||||
}
|
||||
|
||||
placessidebar,
|
||||
|
@ -3506,11 +3506,9 @@ paper {
|
||||
paper:backdrop {
|
||||
border-color: #1f2222; }
|
||||
|
||||
actionbar frame border {
|
||||
border-width: 1px 0 0; }
|
||||
|
||||
actionbar box {
|
||||
padding: 6px; }
|
||||
padding: 6px;
|
||||
border-width: 1px 0 0; }
|
||||
|
||||
placessidebar viewport.frame,
|
||||
scrolledwindow viewport.frame {
|
||||
|
@ -3668,11 +3668,9 @@ paper {
|
||||
paper:backdrop {
|
||||
border-color: #a5a5a1; }
|
||||
|
||||
actionbar frame border {
|
||||
border-width: 1px 0 0; }
|
||||
|
||||
actionbar box {
|
||||
padding: 6px; }
|
||||
padding: 6px;
|
||||
border-width: 1px 0 0; }
|
||||
|
||||
placessidebar viewport.frame,
|
||||
scrolledwindow viewport.frame {
|
||||
|
@ -6,17 +6,9 @@
|
||||
<object class="GtkRevealer" id="revealer">
|
||||
<property name="visible">1</property>
|
||||
<child>
|
||||
<object class="GtkFrame" id="frame">
|
||||
<object class="GtkBox" id="box">
|
||||
<property name="visible">1</property>
|
||||
<style>
|
||||
<class name="action-bar"/>
|
||||
</style>
|
||||
<child>
|
||||
<object class="GtkBox" id="box">
|
||||
<property name="visible">1</property>
|
||||
<property name="spacing">6</property>
|
||||
</object>
|
||||
</child>
|
||||
<property name="spacing">6</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
|
Loading…
Reference in New Issue
Block a user