SliderInput: vim auto-format + format tweak

master
thyttan 2023-09-02 11:31:54 +02:00
parent 7e906ede25
commit b69274f364
1 changed files with 40 additions and 40 deletions

View File

@ -11,24 +11,24 @@ o.f = {}; // functions go here.
// configuration for the indicator:
o.c = Object.assign({ // constants go here.
useMap:false,
useIncr:true,
horizontal:false,
xStart:R.x2-R.w/4-4,
width:R.w/4,
yStart:R.y+4,
height:R.h-10,
steps:30, // Default corresponds to my phones volume range, [0,30]. Maybe it should be 31. Math is hard sometimes...
oversizeR:0,
oversizeL:0,
timeout:1,
colorFG:g.theme.fg2,
colorBG:g.theme.bg2,
lazy:true,
rounded:0,
propagateDrag:false,
immediatedraw:false,
autoProgress:false,
useMap:false,
useIncr:true,
horizontal:false,
xStart:R.x2-R.w/4-4,
width:R.w/4,
yStart:R.y+4,
height:R.h-10,
steps:30, // Default corresponds to my phones volume range, [0,30]. Maybe it should be 31. Math is hard sometimes...
oversizeR:0,
oversizeL:0,
timeout:1,
colorFG:g.theme.fg2,
colorBG:g.theme.bg2,
lazy:true,
rounded:0,
propagateDrag:false,
immediatedraw:false,
autoProgress:false,
},conf);
o.c._xStart = o.c.xStart + 4; // +4 to compensate for the border.
@ -155,6 +155,6 @@ return o;
}
} catch (e) {
print(e);
eval(require("Storage").read("slidertest.app.js"));
print(e);
eval(require("Storage").read("slidertest.app.js"));
}