Skip to content

Commit

Permalink
Add default-decoration style class constant (#434)
Browse files Browse the repository at this point in the history
* Add `default-decoration` style class constant

* Mention new constant STYLE_CLASS_DEFAULT_DECORATION in AppData
  • Loading branch information
meisenzahl committed Nov 4, 2020
1 parent 81cebaf commit a38b90b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions data/granite.appdata.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<p>New Constants:</p>
<ul>
<li>STYLE_CLASS_WARMTH and STYLE_CLASS_TEMPERATURE for scales</li>
<li>STYLE_CLASS_DEFAULT_DECORATION for slim headerbars</li>
<li>TRANSITION_DURATION_OPEN and TRANSITION_DURATION_CLOSE for consistent animations</li>
</ul>
<p>Other Changes:</p>
Expand Down
4 changes: 4 additions & 0 deletions lib/Constants.vala
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ namespace Granite {
* Style class for color chooser buttons to be applied to {@link Gtk.CheckButton} or {@link Gtk.RadioButton}
*/
public const string STYLE_CLASS_COLOR_BUTTON = "color-button";
/**
* Style class for slim headerbars, like in Terminal
*/
public const string STYLE_CLASS_DEFAULT_DECORATION = "default-decoration";
/**
* Style class for large primary text as seen in {@link Granite.Widgets.Welcome}
*/
Expand Down

0 comments on commit a38b90b

Please sign in to comment.