diff --git a/dash-frontend/assets/gui/tab/settings.xml b/dash-frontend/assets/gui/tab/settings.xml
index 9ca21283..61583d75 100644
--- a/dash-frontend/assets/gui/tab/settings.xml
+++ b/dash-frontend/assets/gui/tab/settings.xml
@@ -48,6 +48,7 @@
+
@@ -59,4 +60,4 @@
-
\ No newline at end of file
+
diff --git a/dash-frontend/assets/lang/en.json b/dash-frontend/assets/lang/en.json
index 7d5e2e05..81fe3df7 100644
--- a/dash-frontend/assets/lang/en.json
+++ b/dash-frontend/assets/lang/en.json
@@ -99,6 +99,7 @@
"SCREEN_RENDER_DOWN_HELP": "Helps with aliasing on high-res screens",
"SCROLL_SPEED": "Scroll speed",
"SETS_ON_WATCH": "Sets on watch",
+ "SKYBOX": "Skybox",
"SPACE_DRAG_MULTIPLIER": "Space drag multiplier",
"SPACE_DRAG_UNLOCKED": "Allow space drag on all axes",
"SPACE_ROTATE_UNLOCKED": "Allow space rotate on all axes",
diff --git a/dash-frontend/src/tab/settings/mod.rs b/dash-frontend/src/tab/settings/mod.rs
index 55eb02a9..0374fd95 100644
--- a/dash-frontend/src/tab/settings/mod.rs
+++ b/dash-frontend/src/tab/settings/mod.rs
@@ -33,6 +33,7 @@ mod tab_controls;
mod tab_features;
mod tab_look_and_feel;
mod tab_misc;
+mod tab_skybox;
mod tab_troubleshooting;
#[derive(Clone)]
@@ -43,6 +44,7 @@ enum TabNameEnum {
Misc,
AutostartApps,
Troubleshooting,
+ Skybox,
}
impl TabNameEnum {
@@ -54,6 +56,7 @@ impl TabNameEnum {
"misc" => Some(TabNameEnum::Misc),
"autostart_apps" => Some(TabNameEnum::AutostartApps),
"troubleshooting" => Some(TabNameEnum::Troubleshooting),
+ "skybox" => Some(TabNameEnum::Skybox),
_ => None,
}
}
@@ -533,6 +536,9 @@ impl TabSettings {
TabNameEnum::Troubleshooting => {
tab_troubleshooting::mount(&mut mp, root)?;
}
+ TabNameEnum::Skybox => {
+ tab_skybox::mount(&mut mp, root)?;
+ }
}
Ok(())
diff --git a/dash-frontend/src/tab/settings/tab_look_and_feel.rs b/dash-frontend/src/tab/settings/tab_look_and_feel.rs
index 6fe40420..ad2d1a5a 100644
--- a/dash-frontend/src/tab/settings/tab_look_and_feel.rs
+++ b/dash-frontend/src/tab/settings/tab_look_and_feel.rs
@@ -7,14 +7,12 @@ use wgui::layout::WidgetID;
pub fn mount(mp: &mut MacroParams, parent: WidgetID) -> anyhow::Result<()> {
let c = options_category(mp, parent, "APP_SETTINGS.LOOK_AND_FEEL", "dashboard/palette.svg")?;
options_dropdown::(mp, c, &SettingType::Language)?;
- options_checkbox(mp, c, SettingType::OpaqueBackground)?;
options_checkbox(mp, c, SettingType::HideUsername)?;
options_checkbox(mp, c, SettingType::HideGrabHelp)?;
options_slider_f32(mp, c, SettingType::UiAnimationSpeed, 0.5, 5.0, 0.1)?; // min, max, step
options_slider_f32(mp, c, SettingType::UiGradientIntensity, 0.0, 1.0, 0.05)?; // min, max, step
options_slider_f32(mp, c, SettingType::UiRoundMultiplier, 0.5, 5.0, 0.1)?;
options_checkbox(mp, c, SettingType::SetsOnWatch)?;
- options_checkbox(mp, c, SettingType::UseSkybox)?;
options_slider_f32(mp, c, SettingType::GridOpacity, 0.0, 1.0, 0.05)?; // min, max, step
options_checkbox(mp, c, SettingType::UsePassthrough)?;
options_checkbox(mp, c, SettingType::Clock12h)?;
diff --git a/dash-frontend/src/tab/settings/tab_skybox.rs b/dash-frontend/src/tab/settings/tab_skybox.rs
new file mode 100644
index 00000000..41d05831
--- /dev/null
+++ b/dash-frontend/src/tab/settings/tab_skybox.rs
@@ -0,0 +1,12 @@
+use crate::tab::settings::{
+ SettingType,
+ macros::{MacroParams, options_category, options_checkbox},
+};
+use wgui::layout::WidgetID;
+
+pub fn mount(mp: &mut MacroParams, parent: WidgetID) -> anyhow::Result<()> {
+ let c = options_category(mp, parent, "APP_SETTINGS.SKYBOX", "dashboard/globe.svg")?;
+ options_checkbox(mp, c, SettingType::UseSkybox)?;
+ options_checkbox(mp, c, SettingType::OpaqueBackground)?;
+ Ok(())
+}
diff --git a/wayvr/src/backend/openxr/monado_state.rs b/wayvr/src/backend/openxr/monado_state.rs
index 418e5673..ff27fc00 100644
--- a/wayvr/src/backend/openxr/monado_state.rs
+++ b/wayvr/src/backend/openxr/monado_state.rs
@@ -19,6 +19,8 @@ impl MonadoState {
Ok(res)
}
+ #[allow(clippy::missing_const_for_fn)]
+ #[allow(clippy::unused_self)]
pub fn update(&mut self) {
#[cfg(feature = "feat-monado-metrics")]
if let Some(metrics) = &mut self.metrics {
@@ -30,6 +32,10 @@ impl MonadoState {
}
}
+ #[allow(clippy::missing_const_for_fn)]
+ #[allow(clippy::unused_self)]
+ #[allow(clippy::unnecessary_wraps)]
+ #[cfg(feature = "feat-monado-metrics")]
pub fn set_metrics_enabled(&mut self, enabled: bool) -> anyhow::Result<()> {
#[cfg(feature = "feat-monado-metrics")]
{
diff --git a/wayvr/src/state.rs b/wayvr/src/state.rs
index 9e8d7da2..051427c3 100644
--- a/wayvr/src/state.rs
+++ b/wayvr/src/state.rs
@@ -9,7 +9,6 @@ use wgui::{
drawing, font_config::WguiFontConfig, gfx::WGfx, globals::WguiGlobals, parser::parse_color_hex,
renderer_vk::context::SharedContext as WSharedContext,
};
-use wlx_common::async_executor::AsyncExecutor;
use wlx_common::locale::WayVRLangProvider;
use wlx_common::{
audio,
@@ -38,7 +37,6 @@ use crate::{
pub struct AppState {
pub session: AppSession,
pub tasks: TaskContainer,
- pub executor: AsyncExecutor,
pub gfx: Arc,
pub gfx_extras: WGfxExtras,
@@ -157,12 +155,9 @@ impl AppState {
let lang_provider = WayVRLangProvider::from_config(&session.config);
- let executor = Rc::new(smol::LocalExecutor::new());
-
Ok(Self {
session,
tasks,
- executor,
gfx,
gfx_extras,
hid_provider,
diff --git a/wayvr/src/subsystem/monado_metrics/metrics_fd.rs b/wayvr/src/subsystem/monado_metrics/metrics_fd.rs
index 983a39c9..4e349ca1 100644
--- a/wayvr/src/subsystem/monado_metrics/metrics_fd.rs
+++ b/wayvr/src/subsystem/monado_metrics/metrics_fd.rs
@@ -8,6 +8,7 @@ use crate::subsystem::monado_metrics::proto;
pub struct MonadoMetricsFd {
stream_reader: UnixStream,
+ #[allow(dead_code)]
stream_writer: UnixStream,
records: VecDeque,