Fresh start

Remove pretty much everything in preparation of complete overhaul for 2.X
This commit is contained in:
heliguy
2024-07-03 16:35:39 -04:00
parent 69d6a7952d
commit 342c2d4194
27 changed files with 171 additions and 6272 deletions

View File

@@ -1,84 +0,0 @@
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 {
}
[bottom]
ActionBar action_bar {
revealed: false;
[center]
Button apply_button {
visible: false;
valign: end;
halign: center;
margin-top: 6;
margin-bottom: 6;
Adw.ButtonContent {
label: _("Downgrade");
icon-name: "arrow-turn-left-down-symbolic";
}
styles [
"suggested-action",
"pill"
]
}
}
content: Adw.ToastOverlay toast_overlay {
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.");
}
}
}
};
}
}

View File

@@ -1,83 +0,0 @@
using Gtk 4.0;
using Adw 1;
template $FilterWindow: Adw.Dialog {
title: _("Set Filters");
content-width: 500;
content-height: 450;
child:
Adw.ToolbarView main_toolbar_view {
[top]
Adw.HeaderBar header_bar {
}
content: Adw.ToastOverlay toast_overlay {
Stack main_stack {
Overlay main_overlay {
ScrolledWindow scrolled_window {
vexpand: true;
Adw.Clamp {
Box outerbox {
orientation: vertical;
ListBox install_type_list {
margin-top: 12;
margin-bottom: 12;
margin-start: 12;
margin-end: 12;
hexpand: true;
valign: start;
selection-mode: none;
styles [
"boxed-list"
]
Adw.ActionRow apps_row {
title: _("Show Apps");
Switch show_apps_switch {
valign: center;
}
activatable-widget: show_apps_switch;
}
Adw.ActionRow show_runtimes_row {
title: _("Show Runtimes");
Switch show_runtimes_switch {
valign: center;
}
activatable-widget: show_runtimes_switch;
}
Adw.ExpanderRow remotes_expander {
enable-expansion: true;
title: _("Filter by Remotes");
}
Adw.ExpanderRow runtimes_expander {
enable-expansion: true;
title: _("Filter by Runtimes");
}
}
Button reset_button {
visible: true;
margin-bottom: 18;
halign: center;
label: _("Reset Filters");
styles ["pill"]
}
}
}
}
}
}
};
};
}

View File

@@ -1,135 +0,0 @@
using Gtk 4.0;
using Adw 1;
template $OrphansWindow: Adw.Dialog {
content-width: 500;
content-height: 450;
Adw.ToolbarView main_toolbar_view {
[top]
Adw.HeaderBar header_bar {
[start]
ToggleButton search_button {
icon-name: "system-search-symbolic";
tooltip-text: _("Search List");
}
[end]
Button oepn_folder_button {
icon-name: "document-open-symbolic";
tooltip-text: _("Open Data Folder");
}
}
[top]
SearchBar search_bar {
search-mode-enabled: bind search_button.active bidirectional;
key-capture-widget: main_toolbar_view;
Adw.Clamp {
maximum-size: 577;
hexpand: true;
SearchEntry search_entry {}
}
}
content: Adw.ToastOverlay toast_overlay {
Overlay main_overlay {
Stack main_stack {
Box main_box {
orientation: vertical;
ScrolledWindow scrolled_window {
vexpand: true;
Adw.Clamp {
ListBox list_of_data {
margin-top: 12;
margin-bottom: 12;
margin-start: 12;
margin-end: 12;
hexpand: true;
valign: start;
selection-mode: none;
styles [
"boxed-list"
]
}
}
}
}
Box installing {
orientation: vertical;
spacing: 10;
margin-top: 40;
margin-bottom: 20;
halign: center;
valign: center;
Spinner spinner {
margin-bottom: 35;
width-request: 30;
height-request: 30;
opacity: 0.5;
spinning: true;
}
Label {
label: _("Installing");
styles [
"title-1",
"title"
]
}
Label installing_status {
label: "";
justify: center;
styles [
"description",
"body"
]
}
}
Adw.StatusPage no_data {
icon-name: "check-plain-symbolic";
title: _("No Leftover Data");
description: _("There is no leftover user data");
}
Adw.StatusPage no_results {
icon-name: "system-search-symbolic";
title: _("No Results Found");
description: _("Try a different search term");
}
}
}
};
[bottom]
ActionBar action_bar {
[start]
ToggleButton select_all_button {
label: _("Select All");
}
[end]
Button trash_button {
label: _("Trash");
sensitive: false;
}
[end]
Button install_button {
label: _("Install");
sensitive: false;
}
}
}
}

View File

@@ -1,59 +0,0 @@
using Gtk 4.0;
using Adw 1;
template $PopularRemotesWindow: Adw.Window {
default-width: 450;
default-height: 530;
title: "";
Adw.ToolbarView main_toolbar_view {
[top]
HeaderBar header_bar {}
content: Adw.ToastOverlay toast_overlay {
vexpand: true;
Adw.StatusPage {
valign: start;
title: _("Add Remote");
description: _("Choose from a list of popular remotes or add a new one");
Adw.Clamp {
Box {
orientation: vertical;
ListBox list_of_remotes {
hexpand: true;
valign: start;
selection-mode: none;
styles [
"boxed-list"
]
}
ListBox custom_list {
hexpand: true;
valign: start;
selection-mode: none;
styles [
"boxed-list"
]
Adw.ActionRow add_from_file {
title: _("Add a Repo File");
activatable: true;
}
Adw.ActionRow custom_remote {
title: _("Add a Custom Remote");
activatable: true;
}
}
}
}
}
};
}
}

View File

@@ -1,164 +0,0 @@
using Gtk 4.0;
using Adw 1;
template $PropertiesWindow: Adw.Dialog {
content-width: 350;
content-height: 999999;
title: _("Properties");
Adw.ToolbarView main_toolbar_view {
[top]
Adw.HeaderBar header_bar {}
content: Adw.ToastOverlay toast_overlay {
Box {
orientation: vertical;
Adw.Banner eol_app_banner {}
Adw.Banner eol_runtime_banner {}
Adw.Banner mask_banner {}
ScrolledWindow {
Adw.Clamp {
Box {
orientation: vertical;
hexpand: false;
vexpand: true;
spacing: 12;
margin-top: 12;
margin-start: 12;
margin-end: 12;
margin-bottom: 12;
Image app_icon {
pixel-size: 100;
styles [
"icon-dropshadow"
]
}
Label name {
wrap: true;
styles [
"title-1"
]
}
Button description_button {
styles [
"title-4",
"flat"
]
Box {
spacing: 12;
Label description {
halign: start;
wrap: true;
hexpand: true;
}
Image {
icon-name: "edit-copy-symbolic";
}
}
}
Adw.PreferencesGroup upper {
Adw.ActionRow data_row {
title: _("Loading User Data");
[suffix]
Button open_data {
icon-name: "document-open-symbolic";
tooltip-text: _("Open User Data Folder");
valign: center;
visible: false;
styles [
"flat"
]
}
[suffix]
Button trash_data {
icon-name: "user-trash-symbolic";
tooltip-text: _("Trash User Data");
valign: center;
visible: false;
styles [
"flat"
]
}
[suffix]
Spinner spinner {
spinning: true;
}
styles["property"]
}
Adw.ActionRow view_apps {
title: _("Show Apps Using This Runtime");
activatable: true;
visible: false;
[suffix]
Image {
icon-name: "funnel-symbolic";
}
}
Adw.ActionRow runtime {
title: _("Runtime");
[suffix]
Button runtime_properties {
icon-name: "info-symbolic";
tooltip-text: _("View Properties");
valign: center;
styles [
"flat"
]
}
[suffix]
Button runtime_copy {
icon-name: "edit-copy-symbolic";
tooltip-text: _("Copy");
valign: center;
styles [
"flat"
]
}
styles["property"]
}
Adw.ActionRow details {
title: _("Show Details in Store");
activatable: true;
[suffix]
Image {
icon-name: "adw-external-link-symbolic";
}
}
}
Adw.PreferencesGroup lower {}
}
}
}
}
};
}
}

View File

@@ -1,95 +0,0 @@
using Gtk 4.0;
using Adw 1;
template $RemotesWindow: Adw.Dialog {
title: _("Manage Remotes");
content-width: 500;
content-height: 450;
Adw.ToolbarView main_toolbar_view {
[top]
Adw.HeaderBar header_bar {
Button refresh {
icon-name: "view-refresh-symbolic";
tooltip-text: _("Refresh List of Remotes");
}
}
content: Adw.ToastOverlay toast_overlay {
Stack stack {
Adw.PreferencesPage main_group {
Adw.PreferencesGroup remotes_list {
title: _("Installed Remotes");
header-suffix: ToggleButton show_disabled_button {
Adw.ButtonContent show_disabled_button_button_content {
icon-name: "eye-not-looking-symbolic";
label: _("Show Disabled");
styles["flat"]
}
// spacing: 6;
// margin-end: 6;
// Label {
// label: _("Show Disabled");
// styles["heading", "h4"]
// }
// Switch show_disabled {
// valign: center;
// }
};
Adw.ActionRow no_remotes {
title: _("No Remotes Found");
}
}
Adw.PreferencesGroup popular_remotes_list {
title: _("Add a Popular Remote");
visible: false;
}
Adw.PreferencesGroup manual_remotes_list {
title: _("Add Other Remotes");
Adw.ActionRow add_from_file {
title: _("Add a Repo File");
activatable: true;
}
Adw.ActionRow custom_remote {
title: _("Add a Custom Remote");
activatable: true;
}
}
}
Box adding {
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 {
label: _("Adding Remote");
styles [
"title-1",
"title"
]
}
Label {
label: _("This should only take a moment");
styles ["description", "body"]
}
}
}
};
}
}

View File

@@ -1,193 +0,0 @@
using Gtk 4.0;
using Adw 1;
template $SearchInstallWindow: Adw.Dialog {
content-width: 500;
content-height: 450;
title: "";
Adw.ToolbarView main_toolbar_view {
content:
Stack outer_stack {
Adw.NavigationView nav_view {
Adw.NavigationPage search_page {
title: _("Search Criteria");
Adw.ToastOverlay toast_overlay {
Adw.ToolbarView {
[top]
Adw.HeaderBar {
}
content:
Adw.StatusPage {
title: _("Choose a Remote to Search");
valign: start;
child:
Adw.Clamp {
ListBox remotes_list {
selection-mode: none;
styles ["boxed-list"]
}
};
};
}
}
}
Adw.NavigationPage results_page {
title: _("Results");
Adw.ToolbarView {
[top]
Adw.HeaderBar {
}
[bottom]
ActionBar action_bar {
revealed: false;
[center]
Button install_button {
margin-top: 6;
margin-bottom: 6;
styles[
"pill",
"suggested-action"
]
Adw.ButtonContent {
label: _("Install");
icon-name: "plus-large-symbolic";
}
}
}
[top]
Adw.Clamp {
Box search_box {
margin-top: 4;
margin-start: 12;
margin-end: 12;
margin-bottom: 6;
SearchEntry search_entry {
hexpand: true;
}
Button search_button {
icon-name: "right-large-symbolic";
tooltip-text: _("Start Search");
}
styles ["linked"]
}
}
content:
Stack inner_stack {
Adw.StatusPage blank_page {
title: _("Search for Flatpaks");
icon-name: "flatpak-symbolic";
description: _("Search for Flatpaks that you want to install");
}
Adw.StatusPage no_results {
icon-name: "system-search-symbolic";
title: _("No Results Found");
description: _("Try a different search term");
}
Box loading_page {
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 {
label: _("Searching");
styles [
"title-1",
"title"
]
}
}
Adw.StatusPage too_many {
icon-name: "error-symbolic";
title: _("Too Many Results");
description: _("Try being more specific with your search");
}
ScrolledWindow results_scroll {
vexpand: true;
Adw.Clamp {
ListBox results_list {
margin-top: 6;
margin-bottom: 12;
margin-start: 12;
margin-end: 12;
hexpand: true;
valign: start;
selection-mode: none;
styles ["boxed-list"]
}
}
}
};
}
}
}
Adw.ToolbarView installing {
[top]
Adw.HeaderBar {
}
content:
Overlay overlay {
[overlay]
ProgressBar progress_bar {
visible: false;
can-target: false;
styles ["osd"]
}
Box {
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 {
label: _("Installing");
styles [
"title-1",
"title"
]
}
Label installing_status {
label: "";
justify: center;
styles [
"description",
"body"
]
}
}
};
}
};
}
}

View File

@@ -1,90 +0,0 @@
using Gtk 4.0;
using Adw 1;
template $SnapshotsWindow: Adw.Dialog {
content-width: 500;
content-height: 455;
Adw.ToolbarView main_toolbar_view {
[top]
Adw.HeaderBar header_bar {
[end]
Button open_folder_button {
icon-name: "document-open-symbolic";
tooltip-text: _("Open Snapshots Folder");
}
}
[bottom]
ActionBar action_bar {
[center]
Button new_snapshot {
halign: center;
sensitive: bind action_bar.revealed;
margin-top: 6;
margin-bottom: 6;
styles[
"pill",
"suggested-action"
]
Adw.ButtonContent {
label: _("New Snapshot");
icon-name: "plus-large-symbolic";
}
}
}
content: Adw.ToastOverlay toast_overlay {
Stack main_stack {
ScrolledWindow outerbox {
Adw.Clamp {
ListBox snapshots_group {
margin-top: 12;
margin-bottom: 12;
margin-start: 12;
margin-end: 12;
valign: start;
selection-mode: none;
styles [
"boxed-list"
]
}
}
}
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 {
styles [
"title-1",
"title"
]
}
}
Adw.StatusPage no_snapshots {
title: _("No Snapshots");
description: _("Snapshots are backups of the app's user data. They can be reapplied at any time.");
icon-name: "clock-alt-symbolic";
}
}
};
}
}

View File

@@ -1,299 +0,0 @@
using Gtk 4.0;
using Adw 1;
template $WarehouseWindow: Adw.ApplicationWindow {
title: "Warehouse";
Adw.ToolbarView main_toolbar_view {
[top]
HeaderBar header_bar {
[start]
ToggleButton search_button {
icon-name: "system-search-symbolic";
tooltip-text: _("Search List");
}
[start]
Button filter_button {
icon-name: "funnel-symbolic";
tooltip-text: _("Filter List");
}
[end]
MenuButton main_menu {
icon-name: "open-menu-symbolic";
tooltip-text: _("Main Menu");
menu-model: primary_menu;
}
[end]
ToggleButton batch_mode_button {
icon-name: "selection-mode-symbolic";
tooltip-text: _("Toggle Selection Mode");
}
}
[top]
SearchBar search_bar {
search-mode-enabled: bind search_button.active bidirectional;
key-capture-widget: main_toolbar_view;
Adw.Clamp {
maximum-size: 577;
hexpand: true;
SearchEntry search_entry {}
}
}
content: Adw.ToastOverlay toast_overlay {
Overlay main_overlay {
Stack main_stack {
Adw.StatusPage loading_flatpaks {
icon-name: "clock-alt-symbolic";
title: _("Loading Flatpaks");
description: _("This should only take a moment");
}
Box main_box {
orientation: vertical;
ScrolledWindow scrolled_window {
vexpand: true;
Adw.Clamp {
ListBox flatpaks_list_box {
margin-top: 12;
margin-bottom: 12;
margin-start: 12;
margin-end: 12;
hexpand: true;
valign: start;
selection-mode: none;
styles [
"boxed-list"
]
}
}
}
}
Box installing {
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 {
label: _("Installing");
styles [
"title-1",
"title"
]
}
Label {
label: _("This could take a while");
styles ["description", "body"]
}
}
Box uninstalling {
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 {
label: _("Uninstalling");
styles ["title-1", "title"]
}
Label uninstalling_status {
label: "";
justify: center;
styles ["description", "body"]
}
}
Box snapshotting {
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 {
label: _("Creating Snapshots");
styles ["title-1", "title"]
}
Label {
label: _("This could take a while");
styles ["description", "body"]
}
}
Adw.StatusPage no_flatpaks {
icon-name: "error-symbolic";
title: _("No Flatpaks Found");
description: _("Warehouse cannot see the list of installed Flatpaks or the system has no Flatpaks installed");
}
Adw.StatusPage no_matches {
icon-name: "funnel-symbolic";
title: _("No Flatpaks Match Filters");
description: _("No installed Flatpak matches all of the currently applied filters");
[child]
Button reset_filters_button {
label: _("Reset Filters");
halign: center;
styles["pill"]
}
}
Adw.StatusPage no_results {
icon-name: "system-search-symbolic";
title: _("No Results Found");
description: _("Try a different search term");
}
Adw.StatusPage refreshing {
icon-name: "arrow-circular-top-right-symbolic";
title: _("Refreshing List");
description: _("This should only take a moment");
}
}
}
};
[bottom]
ActionBar batch_mode_bar {
revealed: false;
[start]
ToggleButton batch_select_all_button {
label: _("Select All");
}
[end]
Button batch_uninstall_button {
icon-name: "cross-filled-symbolic";
tooltip-text: _("Uninstall Selected Apps");
}
[end]
Button batch_clean_button {
icon-name: "user-trash-symbolic";
tooltip-text: _("Send Selected Apps' Data to the Trash");
}
[end]
MenuButton batch_copy_button {
icon-name: "edit-copy-symbolic";
tooltip-text: _("Open Copy Menu");
menu-model: copy_menu;
}
[end]
Button batch_snapshot_button {
icon-name: "clock-alt-symbolic";
tooltip-text: _("Snapshot Selected Apps' Data");
visible: true;
}
}
}
}
menu primary_menu {
section {
item {
label: _("Manage Leftover Data…");
action: "app.manage-data-folders";
}
/*item {
label: _("_Preferences");
action: "app.preferences";
}*/
item {
label: _("Manage Remotes…");
action: "app.show-remotes-window";
}
}
section {
item {
label: _("Install From File…");
action: "app.install-from-file";
}
item {
label: _("Install From The Web…");
action: "app.open-search-install";
}
}
section {
item {
label: _("Refresh List");
action: "app.refresh-list";
}
item {
label: _("_Keyboard Shortcuts");
action: "win.show-help-overlay";
}
item {
label: _("_About Warehouse");
action: "app.about";
}
}
}
menu copy_menu {
section {
item {
label: _("Copy Names");
action: "win.copy-names";
}
item {
label: _("Copy IDs");
action: "win.copy-ids";
}
item {
label: _("Copy Refs");
action: "win.copy-refs";
}
}
}