mirror of
https://github.com/PancakeTAS/lsfg-vk.git
synced 2025-12-23 16:32:19 +00:00
ui: redrafting the ui
This commit is contained in:
parent
ad180b793e
commit
c04a224c38
2 changed files with 271 additions and 0 deletions
6
ui/rsc/resources.gresource.xml
Normal file
6
ui/rsc/resources.gresource.xml
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<gresources>
|
||||||
|
<gresource prefix="/gay/pancake/lsfg-vk/">
|
||||||
|
<file compressed="true" preprocess="xml-stripblanks">window.ui</file>
|
||||||
|
</gresource>
|
||||||
|
</gresources>
|
||||||
265
ui/rsc/window.ui
Normal file
265
ui/rsc/window.ui
Normal file
|
|
@ -0,0 +1,265 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<interface>
|
||||||
|
|
||||||
|
<template class="LSApplicationWindow" parent="AdwApplicationWindow">
|
||||||
|
<property name="title">lsfg-vk Configuration Window</property>
|
||||||
|
<property name="default-width">800</property>
|
||||||
|
<property name="default-height">600</property>
|
||||||
|
<property name="content">
|
||||||
|
<!-- Split View -->
|
||||||
|
<object class="AdwNavigationSplitView">
|
||||||
|
<property name="min-sidebar-width">200</property>
|
||||||
|
<property name="max-sidebar-width">300</property>
|
||||||
|
<!-- Split View: Left Sidebar -->
|
||||||
|
<property name="sidebar">
|
||||||
|
<object class="AdwNavigationPage">
|
||||||
|
<child>
|
||||||
|
<object class="AdwToolbarView">
|
||||||
|
<!-- Left Sidebar: Header -->
|
||||||
|
<child type="top">
|
||||||
|
<object class="AdwHeaderBar">
|
||||||
|
<property name="title-widget">
|
||||||
|
<object class="AdwWindowTitle">
|
||||||
|
<property name="title">Profiles</property>
|
||||||
|
</object>
|
||||||
|
</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<!-- Left Sidebar: Content -->
|
||||||
|
<!-- TODO: content -->
|
||||||
|
|
||||||
|
<!-- Left Sidebar: Footer -->
|
||||||
|
<child type="bottom">
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<property name="margin-start">12</property>
|
||||||
|
<property name="margin-end">12</property>
|
||||||
|
<property name="margin-top">12</property>
|
||||||
|
<property name="margin-bottom">12</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton">
|
||||||
|
<property name="label">Create New Profile</property>
|
||||||
|
<property name="css-classes">suggested-action</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</property>
|
||||||
|
<!-- Split View: Main Content -->
|
||||||
|
<property name="content">
|
||||||
|
<object class="AdwNavigationPage">
|
||||||
|
<child>
|
||||||
|
<object class="AdwToolbarView">
|
||||||
|
<!-- Main Content: Header -->
|
||||||
|
<child type="top">
|
||||||
|
<object class="AdwHeaderBar">
|
||||||
|
<property name="title-widget">
|
||||||
|
<object class="AdwWindowTitle">
|
||||||
|
<property name="title">lsfg-vk Configuration Menu</property>
|
||||||
|
</object>
|
||||||
|
</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<!-- Main Content: Content -->
|
||||||
|
<property name="content">
|
||||||
|
<object class="GtkScrolledWindow">
|
||||||
|
<property name="hscrollbar-policy">never</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox" id="main_box">
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<property name="margin-start">48</property>
|
||||||
|
<property name="margin-end">48</property>
|
||||||
|
<property name="margin-top">32</property>
|
||||||
|
<property name="margin-bottom">32</property>
|
||||||
|
<property name="spacing">32</property>
|
||||||
|
<!-- Content: Frame Generation -->
|
||||||
|
<child>
|
||||||
|
<object class="AdwPreferencesGroup">
|
||||||
|
<property name="title">Frame Generation</property>
|
||||||
|
<!-- Frame Generation: Multiplier -->
|
||||||
|
<child>
|
||||||
|
<object class="AdwPreferencesRow">
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="orientation">horizontal</property>
|
||||||
|
<property name="spacing">16</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="margin-start">12</property>
|
||||||
|
<property name="margin-end">12</property>
|
||||||
|
<property name="margin-top">8</property>
|
||||||
|
<property name="margin-bottom">8</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="label">Multiplier</property>
|
||||||
|
<property name="halign">start</property>
|
||||||
|
<property name="hexpand">true</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkDropDown"> <!-- FIXME: make number field -->
|
||||||
|
<property name="selected">0</property>
|
||||||
|
<property name="model">
|
||||||
|
<object class="GtkStringList">
|
||||||
|
<items>
|
||||||
|
<item>2x</item>
|
||||||
|
<item>3x</item>
|
||||||
|
<item>4x</item>
|
||||||
|
</items>
|
||||||
|
</object>
|
||||||
|
</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<!-- Frame Generation: Flow Scale -->
|
||||||
|
<child>
|
||||||
|
<object class="AdwPreferencesRow">
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="orientation">horizontal</property>
|
||||||
|
<property name="spacing">16</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="margin-start">12</property>
|
||||||
|
<property name="margin-end">12</property>
|
||||||
|
<property name="margin-top">8</property>
|
||||||
|
<property name="margin-bottom">8</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="label">Flow Scale</property>
|
||||||
|
<property name="halign">start</property>
|
||||||
|
<property name="hexpand">true</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkEntry"> <!-- FIXME: make slider -->
|
||||||
|
<property name="text">0.7</property>
|
||||||
|
<property name="input-purpose">number</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<!-- Frame Generation: Performance Mode -->
|
||||||
|
<child>
|
||||||
|
<object class="AdwPreferencesRow">
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="orientation">horizontal</property>
|
||||||
|
<property name="spacing">16</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="margin-start">12</property>
|
||||||
|
<property name="margin-end">12</property>
|
||||||
|
<property name="margin-top">8</property>
|
||||||
|
<property name="margin-bottom">8</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="label">Performance Mode</property>
|
||||||
|
<property name="halign">start</property>
|
||||||
|
<property name="hexpand">true</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkSwitch">
|
||||||
|
<property name="active">true</property>
|
||||||
|
<property name="css-classes">compact</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<!-- Content: Misc -->
|
||||||
|
<object class="AdwPreferencesGroup">
|
||||||
|
<property name="title">Frame Generation</property>
|
||||||
|
<!-- Misc: HDR Mode -->
|
||||||
|
<child>
|
||||||
|
<object class="AdwPreferencesRow">
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="orientation">horizontal</property>
|
||||||
|
<property name="spacing">16</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="margin-start">12</property>
|
||||||
|
<property name="margin-end">12</property>
|
||||||
|
<property name="margin-top">8</property>
|
||||||
|
<property name="margin-bottom">8</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="label">HDR Mode</property>
|
||||||
|
<property name="halign">start</property>
|
||||||
|
<property name="hexpand">true</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkSwitch">
|
||||||
|
<property name="active">false</property>
|
||||||
|
<property name="css-classes">compact</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<!-- Misc: Experimental Present Mode -->
|
||||||
|
<child>
|
||||||
|
<object class="AdwPreferencesRow">
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="orientation">horizontal</property>
|
||||||
|
<property name="spacing">16</property>
|
||||||
|
<property name="valign">center</property>
|
||||||
|
<property name="margin-start">12</property>
|
||||||
|
<property name="margin-end">12</property>
|
||||||
|
<property name="margin-top">8</property>
|
||||||
|
<property name="margin-bottom">8</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<property name="label">Experimental Present Mode</property>
|
||||||
|
<property name="halign">start</property>
|
||||||
|
<property name="hexpand">true</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkDropDown"> <!-- FIXME: make number field -->
|
||||||
|
<property name="selected">0</property>
|
||||||
|
<property name="model">
|
||||||
|
<object class="GtkStringList">
|
||||||
|
<items>
|
||||||
|
<item>vsync/fifo</item>
|
||||||
|
<item>mailbox</item>
|
||||||
|
<item>immediate</item>
|
||||||
|
</items>
|
||||||
|
</object>
|
||||||
|
</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</property>
|
||||||
|
</object>
|
||||||
|
</property>
|
||||||
|
</template>
|
||||||
|
</interface>
|
||||||
Loading…
Add table
Reference in a new issue