From a5c5038981f43894556cdb8aaa99c23025635178 Mon Sep 17 00:00:00 2001 From: Infi Date: Wed, 23 Mar 2022 23:42:07 +0100 Subject: [PATCH 1/2] feat: merge demo mockup UI Co-authored-by: LolzDEV --- .gitignore | 1 + data/resources/ui/window.ui | 112 ++++++++++++++++++++++++++++++------ src/window.rs | 6 +- 3 files changed, 100 insertions(+), 19 deletions(-) diff --git a/.gitignore b/.gitignore index 1a3a73a..a06cb20 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ vendor flatpak_app/ .flatpak-builder/ recompile/ +.vscode diff --git a/data/resources/ui/window.ui b/data/resources/ui/window.ui index 239a221..bf9eba6 100644 --- a/data/resources/ui/window.ui +++ b/data/resources/ui/window.ui @@ -17,32 +17,112 @@ diff --git a/src/window.rs b/src/window.rs index 1117457..1fce7d8 100644 --- a/src/window.rs +++ b/src/window.rs @@ -14,15 +14,15 @@ mod imp { #[derive(Debug, CompositeTemplate)] #[template(resource = "/chat/revolt/Mutiny/ui/window.ui")] pub struct MutinyAppWindow { - #[template_child] - pub headerbar: TemplateChild, + // #[template_child] + // pub headerbar: TemplateChild, pub settings: gio::Settings, } impl Default for MutinyAppWindow { fn default() -> Self { Self { - headerbar: TemplateChild::default(), + // headerbar: TemplateChild::default(), settings: gio::Settings::new(APP_ID), } } From 345b1471251dae82bb5ac616fad2e9847a14ee36 Mon Sep 17 00:00:00 2001 From: Lorenzo Torres <52113626+LolzDEV@users.noreply.github.com> Date: Wed, 23 Mar 2022 23:43:39 +0100 Subject: [PATCH 2/2] chore: stabilize flatpak runtime version --- build-aux/chat.revolt.Mutiny.Devel.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-aux/chat.revolt.Mutiny.Devel.json b/build-aux/chat.revolt.Mutiny.Devel.json index 376b120..b02e963 100644 --- a/build-aux/chat.revolt.Mutiny.Devel.json +++ b/build-aux/chat.revolt.Mutiny.Devel.json @@ -1,7 +1,7 @@ { "app-id": "chat.revolt.Mutiny.Devel", "runtime": "org.gnome.Platform", - "runtime-version": "master", + "runtime-version": "42", "sdk": "org.gnome.Sdk", "sdk-extensions": [ "org.freedesktop.Sdk.Extension.rust-stable"