mirror of
https://github.com/liberatedsystems/openCom-Companion.git
synced 2024-11-30 01:00:37 +01:00
20 lines
756 B
Plaintext
20 lines
756 B
Plaintext
|
<StencilWidget>
|
||
|
canvas.before:
|
||
|
StencilPush
|
||
|
RoundedRectangle:
|
||
|
pos: root.pos
|
||
|
size: root.size
|
||
|
# FIXME: Sometimes the radius has the value [], which get a
|
||
|
# `GraphicException: Invalid radius value, must be list of tuples/numerics` error
|
||
|
radius: root.radius if root.radius else [0, 0, 0, 0]
|
||
|
StencilUse
|
||
|
canvas.after:
|
||
|
StencilUnUse
|
||
|
RoundedRectangle:
|
||
|
pos: root.pos
|
||
|
size: root.size
|
||
|
# FIXME: Sometimes the radius has the value [], which get a
|
||
|
# `GraphicException: Invalid radius value, must be list of tuples/numerics` error
|
||
|
radius: root.radius if root.radius else [0, 0, 0, 0]
|
||
|
StencilPop
|