From 28a9ed2c27c40ccc65e684c21c3496fc8d1166fc Mon Sep 17 00:00:00 2001
From: galister <22305755+galister@users.noreply.github.com>
Date: Mon, 13 Jul 2026 01:52:20 +0900
Subject: [PATCH] slider & checkbox & keycaps
---
wayvr/src/assets/gui/keyboard.xml | 8 ++++----
wgui/src/components/checkbox.rs | 3 ++-
wgui/src/components/slider.rs | 4 ++--
3 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/wayvr/src/assets/gui/keyboard.xml b/wayvr/src/assets/gui/keyboard.xml
index 920a5296..148df951 100644
--- a/wayvr/src/assets/gui/keyboard.xml
+++ b/wayvr/src/assets/gui/keyboard.xml
@@ -49,7 +49,7 @@
-
+
@@ -59,7 +59,7 @@
-
+
@@ -71,14 +71,14 @@
diff --git a/wgui/src/components/checkbox.rs b/wgui/src/components/checkbox.rs
index 3b98aab3..ab3cbdc6 100644
--- a/wgui/src/components/checkbox.rs
+++ b/wgui/src/components/checkbox.rs
@@ -97,7 +97,8 @@ pub struct ComponentCheckbox {
state: Rc>,
}
-const COLOR_UNCHECKED: drawing::Color = drawing::Color::new(0.0, 0.0, 0.0, 0.0);
+const COLOR_UNCHECKED: WguiColor = WguiColorName::Background.to_wgui_color();
+const COLOR_HOVERED: WguiColor = WguiColorName::Tertiary.to_wgui_color();
impl ComponentTrait for ComponentCheckbox {
fn base(&self) -> &ComponentBase {
diff --git a/wgui/src/components/slider.rs b/wgui/src/components/slider.rs
index b358366a..aecb0559 100644
--- a/wgui/src/components/slider.rs
+++ b/wgui/src/components/slider.rs
@@ -350,9 +350,9 @@ impl State {
const BODY_COLOR: WguiColor = WguiColorName::Background.to_wgui_color();
const BODY_BORDER_COLOR: WguiColor = WguiColorName::Outline.to_wgui_color();
const HANDLE_COLOR: WguiColorName = WguiColorName::BackgroundVariant;
-const HANDLE_COLOR_HOVERED: WguiColor = WguiColorName::Secondary.to_wgui_color();
+const HANDLE_COLOR_HOVERED: WguiColor = WguiColorName::Tertiary.to_wgui_color();
const HANDLE_BORDER_COLOR: WguiColor = WguiColorName::Outline.to_wgui_color();
-const HANDLE_BORDER_COLOR_HOVERED: WguiColor = WguiColorName::Primary.to_wgui_color().mult_rgb(1.25);
+const HANDLE_BORDER_COLOR_HOVERED: WguiColor = WguiColorName::OnTertiary.to_wgui_color();
const HANDLE_TEXT_COLOR: WguiColorName = WguiColorName::OnBackgroundVariant;
const HANDLE_TEXT_COLOR_HOVERED: WguiColorName = WguiColorName::OnSecondary;