Skip to content

Commit

Permalink
chore(tailor_gui): Use newer adwaita styles
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronErhardt committed Nov 13, 2024
1 parent 7af40a7 commit e56a546
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
4 changes: 2 additions & 2 deletions tailor_gui/data/resources/style.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.title-header{
.title-header {
font-size: 36px;
font-weight: bold;
}
Expand All @@ -14,4 +14,4 @@ levelbar trough block {

.fan-dialog .message-area {
padding: 12px;
}
}
1 change: 0 additions & 1 deletion tailor_gui/src/components/fan_edit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ impl Component for FanEdit {
}
}
},
gtk::Separator {},

#[template]
templates::MsgDialogButtons {
Expand Down
4 changes: 0 additions & 4 deletions tailor_gui/src/components/led_edit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ impl Component for LedEdit {
},

gtk::ScrolledWindow {
add_css_class: "background",

adw::Clamp {
set_margin_all: 12,
set_vexpand: true,
Expand Down Expand Up @@ -149,8 +147,6 @@ impl Component for LedEdit {
}
},

gtk::Separator {},

#[template]
templates::MsgDialogButtons {
#[template_child]
Expand Down
5 changes: 2 additions & 3 deletions tailor_gui/src/templates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,14 @@ impl WidgetTemplate for MsgDialogButtons {
set_label: "Cancel",
set_hexpand: true,
#[iterate]
add_css_class: &["flat", "destructive"],
add_css_class: &["destructive-action"],
},
gtk::Separator,
#[name(save_button)]
gtk::Button {
set_label: "Save",
set_hexpand: true,
#[iterate]
add_css_class: &["flat", "suggested"],
add_css_class: &["suggested-action"],
},
}
}
Expand Down

0 comments on commit e56a546

Please sign in to comment.