From 2d7714d423d8340cc449874b54f92d6ade911cde Mon Sep 17 00:00:00 2001 From: galister <22305755+galister@users.noreply.github.com> Date: Mon, 24 Nov 2025 14:18:04 +0900 Subject: [PATCH] watch: highlight current set --- wgui/src/components/button.rs | 6 +-- wlx-overlay-s/src/assets/gui/watch.xml | 4 +- wlx-overlay-s/src/backend/input.rs | 4 +- wlx-overlay-s/src/backend/openvr/lines.rs | 8 +++- wlx-overlay-s/src/gui/panel/mod.rs | 35 ++++++++++++---- wlx-overlay-s/src/overlays/edit/mod.rs | 5 ++- wlx-overlay-s/src/overlays/keyboard/mod.rs | 10 ++++- wlx-overlay-s/src/overlays/mirror.rs | 12 +++++- wlx-overlay-s/src/overlays/screen/backend.rs | 8 +++- wlx-overlay-s/src/overlays/watch.rs | 42 ++++++++++++++++++-- wlx-overlay-s/src/overlays/wayvr.rs | 13 +++++- wlx-overlay-s/src/windowing/backend.rs | 10 +++++ wlx-overlay-s/src/windowing/manager.rs | 9 +++++ 13 files changed, 141 insertions(+), 25 deletions(-) diff --git a/wgui/src/components/button.rs b/wgui/src/components/button.rs index f6a47fa2..7ecac10e 100644 --- a/wgui/src/components/button.rs +++ b/wgui/src/components/button.rs @@ -1,6 +1,6 @@ use crate::{ animation::{Animation, AnimationEasing}, - components::{self, Component, ComponentBase, ComponentTrait, RefreshData, tooltip::ComponentTooltip}, + components::{self, tooltip::ComponentTooltip, Component, ComponentBase, ComponentTrait, RefreshData}, drawing::{self, Boundary, Color}, event::{CallbackDataCommon, EventListenerCollection, EventListenerID, EventListenerKind}, i18n::Translation, @@ -10,15 +10,15 @@ use crate::{ util::centered_matrix, }, widget::{ - ConstructEssentials, EventResult, WidgetData, label::{WidgetLabel, WidgetLabelParams}, rectangle::{WidgetRectangle, WidgetRectangleParams}, util::WLength, + ConstructEssentials, EventResult, WidgetData, }, }; use glam::{Mat4, Vec3}; use std::{cell::RefCell, rc::Rc}; -use taffy::{AlignItems, JustifyContent, prelude::length}; +use taffy::{prelude::length, AlignItems, JustifyContent}; pub struct Params { pub text: Option, // if unset, label will not be populated diff --git a/wlx-overlay-s/src/assets/gui/watch.xml b/wlx-overlay-s/src/assets/gui/watch.xml index 601848ab..971db1d8 100644 --- a/wlx-overlay-s/src/assets/gui/watch.xml +++ b/wlx-overlay-s/src/assets/gui/watch.xml @@ -26,7 +26,7 @@