Gradience/data/ui/preset_row.blp

99 lines
1.6 KiB
Text
Raw Normal View History

2022-08-22 13:48:27 +00:00
using Gtk 4.0;
using Adw 1;
2022-09-14 14:55:35 +00:00
Popover pop_actions {
styles [
"menu",
]
Box {
orientation: vertical;
margin-top: 6;
margin-bottom: 6;
margin-start: 6;
margin-end: 6;
Button remove_button {
valign: center;
label: _("Remove preset");
tooltip-text: _("Remove preset");
clicked => on_remove_button_clicked();
}
Separator {
}
.GtkModelButton btn_report {
text: _("Report a Bug…");
}
}
}
2022-08-22 13:48:27 +00:00
template GradiencePresetRow : Adw.ActionRow {
2022-09-14 14:55:35 +00:00
Box {
spacing: 6;
Label label_grade {
2022-08-23 07:22:42 +00:00
valign: center;
2022-09-14 14:55:35 +00:00
label: _("Unknown");
styles [
"tag",
"caption",
]
2022-08-23 07:22:42 +00:00
}
2022-09-14 14:55:35 +00:00
Separator {
margin-top: 12;
margin-bottom: 12;
2022-08-23 07:22:42 +00:00
}
2022-08-22 13:48:27 +00:00
2022-09-14 14:55:35 +00:00
Stack value_stack {
valign: center;
hhomogeneous: false;
interpolate-size: true;
transition-type: crossfade;
Button apply_button {
valign: center;
icon-name: "checkmark-small-symbolic";
tooltip-text: _("Apply preset");
clicked => on_apply_button_clicked();
styles [
"flat",
]
}
Entry name_entry {
text: "Name";
changed => on_name_entry_changed();
}
}
ToggleButton name_entry_toggle {
valign: center;
icon-name: "document-edit-symbolic";
tooltip-text: _("Edit preset name");
toggled => on_name_entry_toggled();
styles [
"flat",
]
}
MenuButton {
valign: center;
popover: pop_actions;
icon-name: "view-more-symbolic";
styles [
"flat",
]
}
2022-08-23 07:22:42 +00:00
2022-08-22 13:48:27 +00:00
2022-08-23 10:11:32 +00:00
}
2022-08-22 13:48:27 +00:00
}