mirror of https://github.com/espruino/BangleApps
Slider: reorder default config values
parent
795fec654e
commit
944da80186
|
@ -13,28 +13,31 @@ try { // For making it possiblie to run the test app in the following catch stat
|
||||||
|
|
||||||
// Default configuration for the indicator, modified by parameter `conf`:
|
// Default configuration for the indicator, modified by parameter `conf`:
|
||||||
o.c = Object.assign({ // constants go here.
|
o.c = Object.assign({ // constants go here.
|
||||||
useMap:false,
|
currLevel:undefined,
|
||||||
useIncr:true,
|
|
||||||
horizontal:false,
|
horizontal:false,
|
||||||
xStart:R.x2-R.w/4-4,
|
xStart:R.x2-R.w/4-4,
|
||||||
width:R.w/4,
|
width:R.w/4,
|
||||||
yStart:R.y+4,
|
yStart:R.y+4,
|
||||||
height:R.h-10,
|
height:R.h-10,
|
||||||
steps:30, // Default corresponds to my phones volume range, [0,30]. Maybe it should be 31. Math is hard sometimes...
|
steps:30,
|
||||||
|
|
||||||
|
dragableSlider:true,
|
||||||
|
dragRect:R,
|
||||||
|
useIncr:true,
|
||||||
|
useMap:false,
|
||||||
oversizeR:0,
|
oversizeR:0,
|
||||||
oversizeL:0,
|
oversizeL:0,
|
||||||
|
propagateDrag:false,
|
||||||
timeout:1,
|
timeout:1,
|
||||||
|
|
||||||
|
drawableSlider:true,
|
||||||
colorFG:g.theme.fg2,
|
colorFG:g.theme.fg2,
|
||||||
colorBG:g.theme.bg2,
|
colorBG:g.theme.bg2,
|
||||||
rounded:true,
|
rounded:true,
|
||||||
propagateDrag:false,
|
|
||||||
autoProgress:false,
|
|
||||||
outerBorderSize:2,
|
outerBorderSize:2,
|
||||||
innerBorderSize:2,
|
innerBorderSize:2,
|
||||||
drawableSlider:true,
|
|
||||||
dragableSlider:true,
|
autoProgress:false,
|
||||||
currLevel:undefined,
|
|
||||||
dragRect:R,
|
|
||||||
},conf);
|
},conf);
|
||||||
|
|
||||||
// If horizontal, flip things around.
|
// If horizontal, flip things around.
|
||||||
|
|
Loading…
Reference in New Issue