sync current work

This commit is contained in:
heliguy
2024-07-26 21:10:46 -04:00
parent a2d9f38f84
commit 8449b08a62
5 changed files with 71 additions and 62 deletions

View File

@@ -18,6 +18,7 @@ blueprints = custom_target('blueprints',
'remotes_page/add_remote_dialog.blp',
'change_version_page/change_version_page.blp',
'snapshot_page/snapshot_page.blp',
'snapshot_page/snapshots_list_page.blp',
),
output: '.',
command: [find_program('blueprint-compiler'), 'batch-compile', '@OUTPUT@', '@CURRENT_SOURCE_DIR@', '@INPUT@'],
@@ -74,6 +75,7 @@ warehouse_sources = [
'remotes_page/remote_row.py',
'remotes_page/add_remote_dialog.py',
'snapshot_page/snapshot_page.py',
'snapshot_page/snapshots_list_page.py',
'../data/style.css',
]

View File

@@ -30,74 +30,67 @@ template $SnapshotPage : Adw.BreakpointBin {
sidebar:
Adw.NavigationPage sidebar_navpage {
title: _("Snapshots");
Adw.BreakpointBin {
width-request: 1;
height-request: 1;
Adw.Breakpoint bp2 {
condition ("max-width: 595")
setters {
header_bar.title-widget: null;
switcher_bar.reveal: true;
Adw.ToolbarView sidebar_tbv {
[top]
Adw.HeaderBar header_bar {
[start]
ToggleButton sidebar_button {
icon-name: "dock-left-symbolic";
tooltip-text: _("Show Sidebar");
}
[start]
ToggleButton search_button {
icon-name: "loupe-large-symbolic";
tooltip-text: _("Search Packages");
}
[end]
Button new_button {
icon-name: "plus-large-symbolic";
tooltip-text: _("New Snapshot");
}
[end]
ToggleButton select_button {
icon-name: "selection-mode-symbolic";
tooltip-text: _("Select Packages");
}
}
Adw.ToolbarView sidebar_tbv {
[top]
Adw.HeaderBar header_bar {
title-widget:
Adw.ViewSwitcher {
stack: view_stack;
policy: wide;
}
;
[start]
ToggleButton sidebar_button {
icon-name: "dock-left-symbolic";
tooltip-text: _("Show Sidebar");
ScrolledWindow scrolled_window {
Box {
orientation: vertical;
margin-start: 12;
margin-end: 12;
Label {
label: _("Active Snapshots");
halign: start;
styles ["heading"]
margin-top: 3;
margin-bottom: 6;
}
[start]
ToggleButton search_button {
icon-name: "loupe-large-symbolic";
tooltip-text: _("Search Packages");
Label {
label: _("Snapshots of installed apps");
halign: start;
styles ["dim-label"]
}
[end]
ToggleButton select_button {
icon-name: "selection-mode-symbolic";
tooltip-text: _("Select Packages");
ListBox active_listbox {
styles ["navigation-sidebar"]
valign: start;
}
}
[bottom]
Adw.ViewSwitcherBar switcher_bar {
stack: view_stack;
}
Adw.ViewStack view_stack {
Adw.ViewStackPage {
title: _("Active Snapshots");
child:
ScrolledWindow {
ListBox {
styles ["navigation-sidebar"]
Adw.ActionRow {
title: "sussy baka";
}
}
}
;
Label {
label: _("Leftover Snapshots");
halign: start;
styles ["heading"]
margin-top: 3;
margin-bottom: 6;
}
Adw.ViewStackPage {
title: _("Leftover Snapshots");
child:
ScrolledWindow {
ListBox {
styles ["navigation-sidebar"]
Adw.ActionRow {
title: "skibidi toilet";
}
}
}
;
Label {
label: _("Snapshots of apps that are no longer installed");
halign: start;
styles ["dim-label"]
}
ListBox leftover_listbox {
styles ["navigation-sidebar"]
valign: start;
}
}
}
@@ -110,7 +103,6 @@ template $SnapshotPage : Adw.BreakpointBin {
Adw.ToolbarView {
[top]
Adw.HeaderBar {
}
}
}

View File

@@ -0,0 +1,6 @@
using Gtk 4.0;
using Adw 1;
template $SnapshotsListPage : Adw.NavigationPage {
title: _("Snapshots");
}

View File

@@ -0,0 +1,8 @@
from gi.repository import Adw, Gtk, GLib, Gio
from .host_info import HostInfo
from .error_toast import ErrorToast
@Gtk.Template(resource_path="/io/github/flattool/Warehouse/snapshot_page/snapshots_list_page.ui")
class SnapshotsListPage(Adw.NavigationPage):
__gtype_name__ = "SnapshotsListPage"
gtc = Gtk.Template.Child

View File

@@ -16,6 +16,7 @@
<file preprocess="xml-stripblanks">remotes_page/remote_row.ui</file>
<file preprocess="xml-stripblanks">remotes_page/add_remote_dialog.ui</file>
<file preprocess="xml-stripblanks">snapshot_page/snapshot_page.ui</file>
<file preprocess="xml-stripblanks">snapshot_page/snapshots_list_page.ui</file>
<!-- <file preprocess="xml-stripblanks">../data/io.github.flattool.Warehouse.metainfo.xml.in</file> -->
</gresource>
<gresource prefix="/io/github/flattool/Warehouse/icons/scalable/actions/">