2024-07-08 21:30:48 -04:00
|
|
|
using Gtk 4.0;
|
|
|
|
|
using Adw 1;
|
|
|
|
|
|
|
|
|
|
template $ChangeVersionPage : Adw.NavigationPage {
|
|
|
|
|
title: _("Change Versions");
|
|
|
|
|
Adw.ToolbarView {
|
|
|
|
|
[top]
|
|
|
|
|
Adw.HeaderBar {
|
|
|
|
|
}
|
2024-07-08 22:09:22 -04:00
|
|
|
Adw.ToastOverlay toast_overlay {
|
2024-07-09 17:08:37 -04:00
|
|
|
ScrolledWindow scrolled_window {}
|
2024-07-08 21:30:48 -04:00
|
|
|
}
|
|
|
|
|
[bottom]
|
|
|
|
|
ActionBar action_bar {
|
|
|
|
|
revealed: false;
|
|
|
|
|
[center]
|
|
|
|
|
Button apply_button {
|
|
|
|
|
sensitive: bind action_bar.revealed;
|
|
|
|
|
halign: center;
|
|
|
|
|
margin-top: 3;
|
|
|
|
|
margin-bottom: 3;
|
|
|
|
|
Adw.ButtonContent {
|
|
|
|
|
label: _("Change Version");
|
|
|
|
|
icon-name: "double-ended-arrows-vertical-symbolic";
|
|
|
|
|
}
|
|
|
|
|
styles ["suggested-action", "pill"]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-07-09 17:08:37 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Adw.Clamp versions_clamp {
|
|
|
|
|
Box {
|
|
|
|
|
margin-start: 12;
|
|
|
|
|
margin-end: 12;
|
|
|
|
|
margin-top: 12;
|
|
|
|
|
margin-bottom: 12;
|
|
|
|
|
spacing: 12;
|
|
|
|
|
orientation: vertical;
|
|
|
|
|
halign: fill;
|
|
|
|
|
hexpand: true;
|
|
|
|
|
|
|
|
|
|
CheckButton root_group_check_button {
|
|
|
|
|
visible: false;
|
|
|
|
|
active: true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Adw.PreferencesGroup mask_group {
|
|
|
|
|
Adw.SwitchRow mask_row {
|
|
|
|
|
title: _("Disable Updates");
|
2024-07-14 13:15:47 -04:00
|
|
|
active: true;
|
2024-07-09 17:08:37 -04:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Adw.PreferencesGroup versions_group {
|
|
|
|
|
title: _("Select a Release");
|
2024-07-14 13:15:47 -04:00
|
|
|
description: _("This will uninstall the current release and install the chosen one instead. Note that downgrading can cause issues.");
|
2024-07-09 17:08:37 -04:00
|
|
|
}
|
|
|
|
|
}
|
2024-10-27 19:49:36 -07:00
|
|
|
}
|