apps: calc: Draw a closed grid
Currently the calculator uses an open grid. It's a matter of taste but I prefer a closed grid. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
This commit is contained in:
parent
0884d22799
commit
60fecc9469
1 changed files with 3 additions and 0 deletions
|
@ -87,6 +87,9 @@ class CalculatorApp():
|
||||||
draw.line(x0=0,y0=(i+1)*47,x1=239,y1=(i+1)*47)
|
draw.line(x0=0,y0=(i+1)*47,x1=239,y1=(i+1)*47)
|
||||||
# vertical lines
|
# vertical lines
|
||||||
draw.line(x0=(i+1)*47,y0=47,x1=(i+1)*47,y1=239)
|
draw.line(x0=(i+1)*47,y0=47,x1=(i+1)*47,y1=239)
|
||||||
|
draw.line(x0=0, y0=47, x1=0, y1=239)
|
||||||
|
draw.line(x0=239, y0=47, x1=239, y1=239)
|
||||||
|
draw.line(x0=0, y0=239, x1=239, y1=239)
|
||||||
# Draw button label:
|
# Draw button label:
|
||||||
draw.set_color(wasp.system.theme('accent-hi'))
|
draw.set_color(wasp.system.theme('accent-hi'))
|
||||||
for x in range(5):
|
for x in range(5):
|
||||||
|
|
Loading…
Reference in a new issue