From d1bac2b3090c01d0c8a9fd2a0935c119a973214d Mon Sep 17 00:00:00 2001 From: "kepler155c@gmail.com" Date: Fri, 12 Jul 2019 12:48:36 -0600 Subject: [PATCH] replace volume setting with slider control --- milo/plugins/speakerView.lua | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/milo/plugins/speakerView.lua b/milo/plugins/speakerView.lua index e637d74..95a11eb 100644 --- a/milo/plugins/speakerView.lua +++ b/milo/plugins/speakerView.lua @@ -23,14 +23,13 @@ local wizardPage = UI.WizardPage { form = UI.Form { x = 2, ex = -2, y = 3, ey = -2, manualControls = true, - volume = UI.TextEntry { + volume = UI.Slider { formLabel = 'Volume', formKey = 'volume', - width = 5, limit = 3, - validate = 'numeric', - help = 'A value from 0 (mute) to 1 (loud)', + min = 0, max = 1, + help = 'Volume setting', }, testSound = UI.Button { - x = 15, y = 2, + x = 15, y = 3, text = 'Test', event = 'test_sound', help = 'Test sound volume', },