Slider: fix level=0 on rounded horizontal sliders
parent
c2b2620268
commit
6f4b87666a
|
|
@ -163,8 +163,8 @@ try { // for making it possiblie to run the test app in the following catch stat
|
||||||
setColor(0==level?o.c.colorBG:o.c.colorFG).
|
setColor(0==level?o.c.colorBG:o.c.colorFG).
|
||||||
fillRect(o.f.updateBar((!o.c.rounded?0:(2*o.c.rounded-7))+level*o.c.STEP_SIZE)); // Here the bar is drawn.
|
fillRect(o.f.updateBar((!o.c.rounded?0:(2*o.c.rounded-7))+level*o.c.STEP_SIZE)); // Here the bar is drawn.
|
||||||
if (o.c.rounded && level===0) {
|
if (o.c.rounded && level===0) {
|
||||||
g.setColor(o.c.colorFG).fillCircle(o.c._xStart+o.c._width/2,o.c._yStart+o.c._height-o.c.rounded+2, o.c.rounded-o.c.innerBorderSize);
|
g.setColor(o.c.colorFG).fillCircle(o.c._xStart+(!o.c.horizontal?o.c._width/2:o.c.rounded-2), o.c._yStart+o.c._height-o.c.rounded+2, o.c.rounded-o.c.innerBorderSize);
|
||||||
g.setColor(o.c.colorBG).fillCircle(o.c._xStart+o.c._width/2,o.c._yStart+o.c._height-o.c.rounded+2, o.c.rounded-o.c.innerBorderSize-2);
|
g.setColor(o.c.colorBG).fillCircle(o.c._xStart+(!o.c.horizontal?o.c._width/2:o.c.rounded-2), o.c._yStart+o.c._height-o.c.rounded+2, o.c.rounded-o.c.innerBorderSize-2);
|
||||||
}
|
}
|
||||||
|
|
||||||
//print(level);
|
//print(level);
|
||||||
|
|
@ -196,6 +196,6 @@ try { // for making it possiblie to run the test app in the following catch stat
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
print(e);
|
print(e);
|
||||||
let appName = "slidertest";
|
let appName = "spotrem";
|
||||||
eval(require("Storage").read(appName+".app.js"));
|
eval(require("Storage").read(appName+".app.js"));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue