Add reftets for border-style property

This commit is contained in:
Paolo Borelli 2012-01-06 16:34:28 +01:00 committed by Benjamin Otte
parent cc2446d29b
commit 04ea69ab38
4 changed files with 153 additions and 0 deletions

View File

@ -61,6 +61,9 @@ EXTRA_DIST += \
border-radius-clamp.css\
border-radius-clamp.ref.ui \
border-radius-clamp.ui \
border-style.css \
border-style.ref.ui \
border-style.ui \
border-style-none.css \
border-style-none.ref.ui \
border-style-none.ui \

View File

@ -0,0 +1,27 @@
@import url("reset-to-defaults.css");
GtkButton {
background-color: red;
border-color: green;
border-width: 1;
}
.button-top-left {
border-style: solid none none solid;
}
.button-top-right {
border-style: solid solid none none;
}
.button-bottom-left {
border-style: none none solid solid;
}
.button-bottom-right {
border-style: none solid solid none;
}
.button-border {
border-style: solid;
}

View File

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkWindow" id="window1">
<property name="can_focus">False</property>
<property name="type">popup</property>
<child>
<object class="GtkGrid" id="grid1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="GtkButton" id="button1">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
<property name="width_request">40</property>
<property name="height_request">40</property>
<style>
<class name="button-border"/>
</style>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
</object>
</child>
</object>
</interface>

View File

@ -0,0 +1,90 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkWindow" id="window1">
<property name="can_focus">False</property>
<property name="type">popup</property>
<child>
<object class="GtkGrid" id="grid1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="GtkButton" id="button1">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
<property name="width_request">20</property>
<property name="height_request">20</property>
<style>
<class name="button-top-left"/>
</style>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="button2">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
<property name="width_request">20</property>
<property name="height_request">20</property>
<style>
<class name="button-top-right"/>
</style>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="button3">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
<property name="width_request">20</property>
<property name="height_request">20</property>
<style>
<class name="button-bottom-left"/>
</style>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="button4">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
<property name="width_request">20</property>
<property name="height_request">20</property>
<style>
<class name="button-bottom-right"/>
</style>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
</object>
</child>
</object>
</interface>