diff --git a/ui/build.rs b/ui/build.rs
index 71763a3..7ad38a0 100644
--- a/ui/build.rs
+++ b/ui/build.rs
@@ -1,7 +1,7 @@
fn main() {
glib_build_tools::compile_resources(
&["rsc"],
- "rsc/resources.gresource.xml",
- "ui.gresource",
+ "rsc/lsfg-vk.xml",
+ "lsfg-vk.gresource",
);
}
diff --git a/ui/rsc/entry.ui b/ui/rsc/entry/entry.ui
similarity index 100%
rename from ui/rsc/entry.ui
rename to ui/rsc/entry/entry.ui
diff --git a/ui/rsc/resources.gresource.xml b/ui/rsc/lsfg-vk.xml
similarity index 90%
rename from ui/rsc/resources.gresource.xml
rename to ui/rsc/lsfg-vk.xml
index b1d3e98..ca7a1fa 100644
--- a/ui/rsc/resources.gresource.xml
+++ b/ui/rsc/lsfg-vk.xml
@@ -1,8 +1,7 @@
- entry.ui
- window.ui
+ entry/entry.ui
pane/main.ui
pane/sidebar.ui
pref/dropdown.ui
@@ -10,5 +9,6 @@
pref/entry.ui
pref/slider.ui
pref/switch.ui
+ window.ui
diff --git a/ui/rsc/pane/main.ui b/ui/rsc/pane/main.ui
index e4a0f03..45fd1bc 100644
--- a/ui/rsc/pane/main.ui
+++ b/ui/rsc/pane/main.ui
@@ -34,12 +34,14 @@
@@ -52,18 +54,21 @@
@@ -77,18 +82,20 @@
diff --git a/ui/src/main.rs b/ui/src/main.rs
index 1093d1d..48be441 100644
--- a/ui/src/main.rs
+++ b/ui/src/main.rs
@@ -17,7 +17,7 @@ struct State {
static STATE: OnceLock>> = OnceLock::new();
fn main() {
- gio::resources_register_include!("ui.gresource")
+ gio::resources_register_include!("lsfg-vk.gresource")
.expect("Failed to register resources");
config::load_config()
.expect("Failed to load configuration");
diff --git a/ui/src/wrapper/entry/entry.rs b/ui/src/wrapper/entry/entry.rs
index 0a65df7..301e974 100644
--- a/ui/src/wrapper/entry/entry.rs
+++ b/ui/src/wrapper/entry/entry.rs
@@ -6,7 +6,7 @@ use gtk::prelude::*;
#[derive(gtk::CompositeTemplate, glib::Properties, Default)]
#[properties(wrapper_type = super::Entry)]
-#[template(resource = "/gay/pancake/lsfg-vk/entry.ui")]
+#[template(resource = "/gay/pancake/lsfg-vk/entry/entry.ui")]
pub struct Entry {
#[property(get, set)]
exe: RefCell,
diff --git a/ui/src/wrapper/pref/dropdown.rs b/ui/src/wrapper/pref/dropdown.rs
index 0895a76..2020a6a 100644
--- a/ui/src/wrapper/pref/dropdown.rs
+++ b/ui/src/wrapper/pref/dropdown.rs
@@ -12,6 +12,8 @@ pub struct PrefDropdown {
#[property(get, set)]
opt_name: RefCell,
#[property(get, set)]
+ opt_subtitle: RefCell,
+ #[property(get, set)]
default_selection: RefCell,
#[property(get, set)]
options: RefCell,
diff --git a/ui/src/wrapper/pref/entry.rs b/ui/src/wrapper/pref/entry.rs
index a6a5b38..fbfd793 100644
--- a/ui/src/wrapper/pref/entry.rs
+++ b/ui/src/wrapper/pref/entry.rs
@@ -12,6 +12,8 @@ pub struct PrefEntry {
#[property(get, set)]
opt_name: RefCell,
#[property(get, set)]
+ opt_subtitle: RefCell,
+ #[property(get, set)]
default_text: RefCell,
#[property(get, set)]
tooltip_text: RefCell,
diff --git a/ui/src/wrapper/pref/number.rs b/ui/src/wrapper/pref/number.rs
index 5d96c96..fc6bad3 100644
--- a/ui/src/wrapper/pref/number.rs
+++ b/ui/src/wrapper/pref/number.rs
@@ -11,6 +11,8 @@ use adw::prelude::*;
pub struct PrefNumber {
#[property(get, set)]
opt_name: RefCell,
+ #[property(get, set)]
+ opt_subtitle: RefCell,
#[template_child]
pub number: TemplateChild,
diff --git a/ui/src/wrapper/pref/slider.rs b/ui/src/wrapper/pref/slider.rs
index 7cd7edd..207cbd0 100644
--- a/ui/src/wrapper/pref/slider.rs
+++ b/ui/src/wrapper/pref/slider.rs
@@ -11,6 +11,8 @@ use adw::prelude::*;
pub struct PrefSlider {
#[property(get, set)]
opt_name: RefCell,
+ #[property(get, set)]
+ opt_subtitle: RefCell,
#[template_child]
pub slider: TemplateChild,
diff --git a/ui/src/wrapper/pref/switch.rs b/ui/src/wrapper/pref/switch.rs
index e438546..7f3d77b 100644
--- a/ui/src/wrapper/pref/switch.rs
+++ b/ui/src/wrapper/pref/switch.rs
@@ -12,6 +12,8 @@ pub struct PrefSwitch {
#[property(get, set)]
opt_name: RefCell,
#[property(get, set)]
+ opt_subtitle: RefCell,
+ #[property(get, set)]
default_state: RefCell,
#[template_child]