Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Access/Dialog.vala
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ public class Access.Dialog : Granite.MessageDialog, PantheonWayland.ExtendedBeha
grant_button = add_button (_("Grant Access"), Gtk.ResponseType.OK) as Gtk.Button;

if (action == ButtonAction.SUGGESTED) {
grant_button.add_css_class (Granite.STYLE_CLASS_SUGGESTED_ACTION);
grant_button.add_css_class (Granite.CssClass.SUGGESTED);
default_widget = grant_button;
} else {
grant_button.add_css_class (Granite.STYLE_CLASS_DESTRUCTIVE_ACTION);
grant_button.add_css_class (Granite.CssClass.DESTRUCTIVE);
default_widget = deny_button;
}

Expand Down
2 changes: 1 addition & 1 deletion src/AppChooser/Dialog.vala
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public class AppChooser.Dialog : Gtk.Window {
open_button = new Gtk.Button.with_label (_("Open")) {
receives_default = true
};
open_button.add_css_class (Granite.STYLE_CLASS_SUGGESTED_ACTION);
open_button.add_css_class (Granite.CssClass.SUGGESTED);

var button_box = new Gtk.Box (Gtk.Orientation.HORIZONTAL, 0) {
halign = Gtk.Align.END
Expand Down
2 changes: 1 addition & 1 deletion src/ScreenCast/Dialog.vala
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public class ScreenCast.Dialog : Granite.MessageDialog {
add_button (_("Cancel"), Gtk.ResponseType.CANCEL);

var accept_button = add_button (_("Share"), Gtk.ResponseType.ACCEPT);
accept_button.add_css_class (Granite.STYLE_CLASS_SUGGESTED_ACTION);
accept_button.add_css_class (Granite.CssClass.SUGGESTED);
bind_property ("n-selected", accept_button, "sensitive", SYNC_CREATE, (binding, from_val, ref to_val) => {
to_val.set_boolean (n_selected > 0);
return true;
Expand Down
4 changes: 2 additions & 2 deletions src/ScreenCast/SelectionRow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ public class ScreenCast.SelectionRow : Gtk.ListBoxRow {
wrap = true,
xalign = 0
};
description_label.add_css_class (Granite.STYLE_CLASS_DIM_LABEL);
description_label.add_css_class (Granite.STYLE_CLASS_SMALL_LABEL);
description_label.add_css_class (Granite.CssClass.DIM);
description_label.add_css_class (Granite.CssClass.SMALL);

label_box.append (description_label);
}
Expand Down
8 changes: 4 additions & 4 deletions src/Screenshot/SetupDialog.vala
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public class Screenshot.SetupDialog : Gtk.Window {
};

var all_label = new Gtk.Label (_("Screen")) ;
all_label.add_css_class (Granite.STYLE_CLASS_SMALL_LABEL);
all_label.add_css_class (Granite.CssClass.SMALL);

var all_box = new Gtk.Box (VERTICAL, 3);
all_box.append (all_image);
Expand All @@ -73,7 +73,7 @@ public class Screenshot.SetupDialog : Gtk.Window {
};

var curr_label = new Gtk.Label (_("Window"));
curr_label.add_css_class (Granite.STYLE_CLASS_SMALL_LABEL);
curr_label.add_css_class (Granite.CssClass.SMALL);

var curr_box = new Gtk.Box (VERTICAL, 3);
curr_box.append (curr_image);
Expand All @@ -92,7 +92,7 @@ public class Screenshot.SetupDialog : Gtk.Window {
};

var selection_label = new Gtk.Label (_("Area"));
selection_label.add_css_class (Granite.STYLE_CLASS_SMALL_LABEL);
selection_label.add_css_class (Granite.CssClass.SMALL);

var selection_box = new Gtk.Box (VERTICAL, 3);
selection_box.append (selection_image);
Expand Down Expand Up @@ -133,7 +133,7 @@ public class Screenshot.SetupDialog : Gtk.Window {
var take_btn = new Gtk.Button.with_label (_("Take Screenshot")) {
receives_default = true
};
take_btn.add_css_class (Granite.STYLE_CLASS_SUGGESTED_ACTION);
take_btn.add_css_class (Granite.CssClass.SUGGESTED);

take_btn.clicked.connect (() => {
response (Gtk.ResponseType.OK);
Expand Down