Skip to content

Commit 1f57115

Browse files
committed
Use Granite.HeaderLabel
1 parent 44662a3 commit 1f57115

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/Views/SystemView/SystemStorageView.vala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ public class Monitor.SystemStorageView : Gtk.Box {
9292
}
9393

9494
construct {
95-
var drive_name_label = new Gtk.Label (drive.model) {
96-
halign = START
95+
var drive_name_label = new Granite.HeaderLabel (drive.model) {
96+
halign = START,
97+
size = Granite.HeaderLabel.Size.H3
9798
};
98-
drive_name_label.add_css_class (Granite.HeaderLabel.Size.H3);
9999

100100
string size_string = format_size ((uint64) drive.size, IEC_UNITS);
101101
string used_string = format_size ((uint64) (drive.size - drive.free), IEC_UNITS);

src/Widgets/WidgetResource/WidgetResource.vala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class Monitor.WidgetResource : Gtk.Box {
2727
private Gtk.Box header_box;
2828
private Gtk.Overlay main_overlay;
2929
private Gtk.Box info_box;
30-
private Gtk.Label main_metric_label;
30+
private Granite.HeaderLabel main_metric_label;
3131

3232
construct {
3333
_title = new Granite.HeaderLabel (Utils.NO_DATA);
@@ -39,8 +39,9 @@ public class Monitor.WidgetResource : Gtk.Box {
3939
main_metric_title.add_css_class (Granite.CssClass.DIM);
4040
main_metric_title.add_css_class (Granite.CssClass.SMALL);
4141

42-
main_metric_label = new Gtk.Label (Utils.NO_DATA);
43-
main_metric_label.add_css_class (Granite.HeaderLabel.Size.H2);
42+
main_metric_label = new Granite.HeaderLabel (Utils.NO_DATA) {
43+
size = Granite.HeaderLabel.Size.H2
44+
};
4445

4546
var main_metric_box = new Gtk.Box (VERTICAL, 0) {
4647
margin_top = 6,

0 commit comments

Comments
 (0)