globalforest/gpsblinker.kv

23 lines
877 B
Text
Raw Normal View History

2020-10-14 12:41:26 -04:00
<GpsBlinker>:
default_blink_size: 25
blink_size: 25
source: 'kivymd/images/transparent.png'
outer_opacity: 1
canvas.before:
# Outer circle
Color:
rgba: app.theme_cls.primary_color[:3] + [root.outer_opacity]
RoundedRectangle:
radius: [root.blink_size/2.0, ]
size: [root.blink_size, root.blink_size]
pos: root.pos[0] + root.size[0]/2.0 - root.blink_size/2.0, root.pos[1] + root.size[1]/2.0 - root.blink_size/2.0
# Inner Circle
Color:
rgba: app.theme_cls.primary_color
RoundedRectangle:
radius: [root.default_blink_size/2.0, ]
size: [root.default_blink_size, root.default_blink_size]
pos: [root.pos[0] + root.size[0]/2.0 - root.default_blink_size/2.0, root.pos[1] + root.size[1]/2.0 - root.default_blink_size/2.0]