mirror of
https://github.com/morgan9e/warehouse
synced 2026-04-14 00:04:08 +09:00
83 lines
1.9 KiB
Plaintext
83 lines
1.9 KiB
Plaintext
using Gtk 4.0;
|
|
using Adw 1;
|
|
|
|
template $DowngradeWindow: Adw.Dialog {
|
|
content-width: 500;
|
|
content-height: 450;
|
|
|
|
Adw.ToolbarView main_toolbar_view {
|
|
[top]
|
|
Adw.HeaderBar header_bar {
|
|
}
|
|
|
|
content: Adw.ToastOverlay toast_overlay {
|
|
Overlay {
|
|
[overlay]
|
|
Button apply_button {
|
|
visible: false;
|
|
valign: end;
|
|
halign: center;
|
|
margin-bottom: 12;
|
|
sensitive: false;
|
|
Adw.ButtonContent {
|
|
label: _("Downgrade");
|
|
icon-name: "arrow-turn-left-down-symbolic";
|
|
}
|
|
|
|
styles [
|
|
"suggested-action",
|
|
"pill"
|
|
]
|
|
}
|
|
|
|
Stack main_stack {
|
|
Box loading {
|
|
orientation: vertical;
|
|
spacing: 10;
|
|
margin-top: 40;
|
|
margin-bottom: 20;
|
|
halign: center;
|
|
valign: center;
|
|
|
|
Spinner {
|
|
margin-bottom: 35;
|
|
width-request: 30;
|
|
height-request: 30;
|
|
opacity: 0.5;
|
|
spinning: true;
|
|
}
|
|
|
|
Label loading_label {
|
|
label: _("Fetching Releases");
|
|
styles [
|
|
"title-1",
|
|
"title"
|
|
]
|
|
}
|
|
|
|
Label {
|
|
label: _("This could take a while");
|
|
styles ["description", "body"]
|
|
}
|
|
}
|
|
|
|
Adw.PreferencesPage outerbox {
|
|
Adw.PreferencesGroup {
|
|
Adw.SwitchRow mask_row {
|
|
title: _("Disable Updates");
|
|
active: true;
|
|
}
|
|
}
|
|
|
|
Adw.PreferencesGroup versions_group {
|
|
title: _("Select a Release");
|
|
description: _("This will uninstall the current release and install the chosen one instead. Note that downgrading can cause issues.");
|
|
margin-bottom: 42;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
}
|
|
}
|