Skip to content

Commit

Permalink
Gtk4 Prep: don't use primary label (#778)
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit authored May 28, 2024
1 parent e61a9e5 commit 2e0543b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Views/LanguageView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class Installer.LanguageView : AbstractInstallerView {

select_stack = new Gtk.Stack ();
select_stack.valign = Gtk.Align.START;
select_stack.get_style_context ().add_class ("h2");
select_stack.get_style_context ().add_class (Granite.STYLE_CLASS_H2_LABEL);
select_stack.transition_type = Gtk.StackTransitionType.CROSSFADE;
select_stack.add (select_label);

Expand Down
2 changes: 1 addition & 1 deletion src/Views/SuccessView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class SuccessView : AbstractInstallerView {
wrap = true,
xalign = 0
};
primary_label.get_style_context ().add_class (Granite.STYLE_CLASS_PRIMARY_LABEL);
primary_label.get_style_context ().add_class (Granite.STYLE_CLASS_H3_LABEL);

secondary_label = new Gtk.Label (null) {
max_width_chars = 1, // Make Gtk wrap, but not expand the window
Expand Down
2 changes: 1 addition & 1 deletion src/Widgets/DecryptMenu.vala
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class Installer.DecryptMenu: Gtk.Popover {
overlay.add_overlay (overlay_image);

var primary_label = new Gtk.Label (_("Decrypt This Partition"));
primary_label.get_style_context ().add_class (Granite.STYLE_CLASS_PRIMARY_LABEL);
primary_label.get_style_context ().add_class (Granite.STYLE_CLASS_H3_LABEL);
primary_label.halign = Gtk.Align.START;

var secondary_label = new Gtk.Label (_("Enter the partition's encryption password and set a device name for the decrypted partition."));
Expand Down
2 changes: 1 addition & 1 deletion src/Widgets/DiskGrid.vala
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class Installer.DiskButton : Gtk.RadioButton {
halign = Gtk.Align.START,
valign = Gtk.Align.END
};
name_label.get_style_context ().add_class (Granite.STYLE_CLASS_PRIMARY_LABEL);
name_label.get_style_context ().add_class (Granite.STYLE_CLASS_H3_LABEL);

var size_label = new Gtk.Label ("%s %s".printf (disk_path, GLib.format_size (size))) {
ellipsize = Pango.EllipsizeMode.MIDDLE,
Expand Down
2 changes: 1 addition & 1 deletion src/Widgets/InstallTypeGrid.vala
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class Installer.InstallTypeButton : Gtk.RadioButton {
hexpand = true,
xalign = 0
};
title_label.get_style_context ().add_class (Granite.STYLE_CLASS_PRIMARY_LABEL);
title_label.get_style_context ().add_class (Granite.STYLE_CLASS_H3_LABEL);

var subtitle_label = new Gtk.Label (subtitle) {
max_width_chars = 1, // Make Gtk wrap, but not expand the window
Expand Down

0 comments on commit 2e0543b

Please sign in to comment.