Broke up UI into seperate file, reorganisation of dirtree, added ViewStack

This commit is contained in:
2025-12-02 23:04:11 +01:00
parent cc1401ff96
commit f8a10249bb
41 changed files with 2742 additions and 3564 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,13 @@
using Gtk 4.0;
using Adw 1;
template $HomePage: Box {
Adw.StatusPage {
title: _("Home");
Box {
Text {
text: _("This is a placeholder.");
}
}
}
}

25
data/resources/ui/home.ui Normal file
View File

@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
DO NOT EDIT!
This file was @generated by blueprint-compiler. Instead, edit the
corresponding .blp file and regenerate this file with blueprint-compiler.
-->
<interface>
<requires lib="gtk" version="4.0"/>
<template class="HomePage" parent="GtkBox">
<child>
<object class="AdwStatusPage">
<property name="title" translatable="yes">Home</property>
<child>
<object class="GtkBox">
<child>
<object class="GtkText">
<property name="text" translatable="yes">This is a placeholder.</property>
</object>
</child>
</object>
</child>
</object>
</child>
</template>
</interface>

View File

@@ -0,0 +1,12 @@
using Gtk 4.0;
using Adw 1;
template $SettingsPage: Box {
Adw.Clamp {
Box {
Text {
text: _("This is a placeholder!");
}
}
}
}

View File

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
DO NOT EDIT!
This file was @generated by blueprint-compiler. Instead, edit the
corresponding .blp file and regenerate this file with blueprint-compiler.
-->
<interface>
<requires lib="gtk" version="4.0"/>
<template class="SettingsPage" parent="GtkBox">
<child>
<object class="AdwClamp">
<child>
<object class="GtkBox">
<child>
<object class="GtkText">
<property name="text" translatable="yes">This is a placeholder!</property>
</object>
</child>
</object>
</child>
</object>
</child>
</template>
</interface>

View File

@@ -0,0 +1,16 @@
using Gtk 4.0;
using Adw 1;
Adw.ShortcutsDialog {
Adw.ShortcutsSection {
title: _("Shortcuts");
Adw.ShortcutsItem {
title: _("Show Shortcuts");
action-name: "app.shortcuts";
}
Adw.ShortcutsItem {
title: _("Quit");
action-name: "app.quit";
}
}
}

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
DO NOT EDIT!
This file was @generated by blueprint-compiler. Instead, edit the
corresponding .blp file and regenerate this file with blueprint-compiler.
-->
<interface>
<requires lib="gtk" version="4.0"/>
<object class="AdwShortcutsDialog">
<child>
<object class="AdwShortcutsSection">
<property name="title" translatable="yes">Shortcuts</property>
<child>
<object class="AdwShortcutsItem">
<property name="title" translatable="yes">Show Shortcuts</property>
<property name="action-name">app.shortcuts</property>
</object>
</child>
<child>
<object class="AdwShortcutsItem">
<property name="title" translatable="yes">Quit</property>
<property name="action-name">app.quit</property>
</object>
</child>
</object>
</child>
</object>
</interface>

View File

@@ -0,0 +1,9 @@
using Gtk 4.0;
using Adw 1;
Adw.Dialog {
title: _("Welcome to Gnomeframe!");
Text {
text: _("Thank you for installing Gnomeframe! Please note that this is a fan project. Digital Extremes Ltd, Warframe and the logo Warframe are registered trademarks. All rights are reserved worldwide. This application has no official link with Digital Extremes Ltd or Warframe. All artwork, screenshots, characters or other recognizable features of the intellectual property relating to these trademarks are likewise the intellectual property of Digital Extremes Ltd.");
}
}

View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
DO NOT EDIT!
This file was @generated by blueprint-compiler. Instead, edit the
corresponding .blp file and regenerate this file with blueprint-compiler.
-->
<interface>
<requires lib="gtk" version="4.0"/>
<object class="AdwDialog">
<property name="title" translatable="yes">Welcome to Gnomeframe!</property>
<child>
<object class="GtkText">
<property name="text" translatable="yes">Thank you for installing Gnomeframe! Please note that this is a fan project. Digital Extremes Ltd, Warframe and the logo Warframe are registered trademarks. All rights are reserved worldwide. This application has no official link with Digital Extremes Ltd or Warframe. All artwork, screenshots, characters or other recognizable features of the intellectual property relating to these trademarks are likewise the intellectual property of Digital Extremes Ltd.</property>
</object>
</child>
</object>
</interface>

View File

@@ -0,0 +1,66 @@
using Gtk 4.0;
using Adw 1;
template $GnomeframeWindow: Adw.ApplicationWindow {
default-width: 800;
default-height: 600;
title: "Gnomeframe";
content:
// Scaffolding
Adw.ToolbarView {
// Header bar
[top]
Adw.HeaderBar {
[start]
Button btn_save_as {
tooltip-text: _("Save as…");
icon-name: "floppy-symbolic";
}
[end]
MenuButton {
icon-name: "open-menu-symbolic";
menu-model: primary_menu;
tooltip-text: _("Main Menu");
primary: true;
}
title-widget:
Adw.ViewSwitcher {
policy: wide;
stack: viewstack;
};
}
// Main View
content:
Adw.ViewStack viewstack {
};
[bottom]
Adw.ViewSwitcherBar switcher_bar {
stack: viewstack;
}
};
}
menu primary_menu {
section {
item {
label: _("_Preferences");
action: "app.preferences";
}
item {
label: _("_Keyboard Shortcuts");
action: "win.show-help-overlay";
}
item {
label: _("_Help");
action: "app.help";
}
item {
label: _("_About Gnomeframe");
action: "app.about";
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
DO NOT EDIT!
This file was @generated by blueprint-compiler. Instead, edit the
corresponding .blp file and regenerate this file with blueprint-compiler.
-->
<interface>
<requires lib="gtk" version="4.0"/>
<template class="GnomeframeWindow" parent="AdwApplicationWindow">
<property name="default-width">800</property>
<property name="default-height">600</property>
<property name="title">Gnomeframe</property>
<property name="content">
<object class="AdwToolbarView">
<child type="top">
<object class="AdwHeaderBar">
<child type="start">
<object class="GtkButton" id="btn_save_as">
<property name="tooltip-text" translatable="yes">Save as…</property>
<property name="icon-name">floppy-symbolic</property>
</object>
</child>
<child type="end">
<object class="GtkMenuButton">
<property name="icon-name">open-menu-symbolic</property>
<property name="menu-model">primary_menu</property>
<property name="tooltip-text" translatable="yes">Main Menu</property>
<property name="primary">true</property>
</object>
</child>
<property name="title-widget">
<object class="AdwViewSwitcher">
<property name="policy">1</property>
<property name="stack">viewstack</property>
</object>
</property>
</object>
</child>
<property name="content">
<object class="AdwViewStack" id="viewstack"></object>
</property>
<child type="bottom">
<object class="AdwViewSwitcherBar" id="switcher_bar">
<property name="stack">viewstack</property>
</object>
</child>
</object>
</property>
</template>
<menu id="primary_menu">
<section>
<item>
<attribute name="label" translatable="yes">_Preferences</attribute>
<attribute name="action">app.preferences</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_Keyboard Shortcuts</attribute>
<attribute name="action">win.show-help-overlay</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_Help</attribute>
<attribute name="action">app.help</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_About Gnomeframe</attribute>
<attribute name="action">app.about</attribute>
</item>
</section>
</menu>
</interface>