palette config loading

This commit is contained in:
galister 2026-07-12 19:51:43 +09:00
parent bc0fad60d5
commit cb99676230
2 changed files with 3 additions and 3 deletions

View File

@ -94,7 +94,7 @@ impl DashFrontend {
show_welcome: tutorial,
has_monado: matches!(app.xr_backend, XrBackend::OpenXR),
theme: app.wgui_theme.clone(),
color_palette: "Default", // TODO
color_palette: &*app.session.config.color_palette,
})?;
frontend

View File

@ -168,7 +168,6 @@ impl AppState {
.ok();
let mut app_state = Self {
session,
tasks,
gfx,
gfx_extras,
@ -185,7 +184,7 @@ impl AppState {
&lang_provider,
&WguiFontConfig::default(),
get_config_file_path(&theme_path),
"Default", // TODO
&session.config.color_palette,
)?,
wgui_theme: Rc::new(theme),
dbus,
@ -209,6 +208,7 @@ impl AppState {
screencast_manager,
delta_time: 1.0 / 120.0,
session,
};
if let Some(error_toast) = hid_error {