From e66a8d27c98968d0cbe4c7fdc57ef04c0723f40d Mon Sep 17 00:00:00 2001 From: AdiMCS <32852821+AdalynBlack@users.noreply.github.com> Date: Thu, 27 Feb 2025 18:07:55 -0700 Subject: [PATCH] Add "Toggle Dashboard" button to the WayVR example watch config (#166) --- contrib/wayvr/watch_wayvr_example.yaml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/contrib/wayvr/watch_wayvr_example.yaml b/contrib/wayvr/watch_wayvr_example.yaml index 5c9a695..4c58117 100644 --- a/contrib/wayvr/watch_wayvr_example.yaml +++ b/contrib/wayvr/watch_wayvr_example.yaml @@ -28,9 +28,21 @@ elements: target: settings action: Destroy # only triggers if exists since before current frame + # Dashboard toggle button + - type: Button + rect: [32, 162, 48, 36] + corner_radius: 4 + font_size: 15 + bg_color: "#2288FF" + fg_color: "#24273a" + text: "Dash" + click_up: + - type: WayVR + action: ToggleDashboard + # Keyboard button - type: Button - rect: [32, 162, 60, 36] + rect: [84, 162, 48, 36] corner_radius: 4 font_size: 15 fg_color: "#24273a" @@ -65,7 +77,7 @@ elements: # bottom row, of keyboard + overlays - type: OverlayList - rect: [94, 160, 306, 40] + rect: [134, 160, 266, 40] corner_radius: 4 font_size: 15 fg_color: "#cad3f5"