From 63be9fc5416f6cd3aef911cecacdb697d7b86362 Mon Sep 17 00:00:00 2001 From: CircleShift Date: Sat, 21 Jun 2025 15:25:11 -0400 Subject: Slider percentage fixes --- scripts/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/main.js b/scripts/main.js index cd213a2..d0f4e28 100644 --- a/scripts/main.js +++ b/scripts/main.js @@ -10,7 +10,7 @@ class Client { { type: "button", name: "bt", props: {}, }, { type: "checkbox", name: "cb", props: {}, state: true }, { type: "toggle", name: "tg", props: {}, state: false }, - { type: "slider", name: "sli", props: {max: 10, min: 1}, state: 6 }, + { type: "slider", name: "sli", props: {max: 10, min: 1, percent: true}, state: 6 }, { type: "color-light", name: "cli", state: 0.7 }, { type: "color-temp", name: "ctp", state: 3000 }, { type: "color-wheel", name: "cwh", state: Color.from_rgb(255, 200, 200) }, -- cgit v1.2.3