Skip to content

Commit

Permalink
CSSView: Update title class name label (#675)
Browse files Browse the repository at this point in the history
h* style classes are renamed to title-* in 15bd5eb
  • Loading branch information
ryonakano authored Jan 1, 2024
1 parent 264cdc5 commit 9a58858
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions demo/Views/CSSView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@ public class CSSView : Gtk.Box {
}

construct {
var header1 = new Gtk.Label ("\"h1\" Style Class") {
var header1 = new Gtk.Label ("\"title-1\" Style Class") {
margin_end = 24,
margin_start = 24,
margin_top = 12
};
header1.add_css_class (Granite.STYLE_CLASS_H1_LABEL);

var header2 = new Gtk.Label ("\"h2\" Style Class");
var header2 = new Gtk.Label ("\"title-2\" Style Class");
header2.add_css_class (Granite.STYLE_CLASS_H2_LABEL);

var header3 = new Gtk.Label ("\"h3\" Style Class");
var header3 = new Gtk.Label ("\"title-3\" Style Class");
header3.add_css_class (Granite.STYLE_CLASS_H3_LABEL);

var header4 = new Gtk.Label ("\"h4\" Style Class") {
var header4 = new Gtk.Label ("\"title-4\" Style Class") {
margin_bottom = 12
};
header4.add_css_class (Granite.STYLE_CLASS_H4_LABEL);
Expand Down

0 comments on commit 9a58858

Please sign in to comment.