Map screen version
This commit is contained in:
+17
@@ -57,6 +57,23 @@ static func badge(h_margin: float = 8.0, v_margin: float = 2.0) -> StyleBoxFlat:
|
||||
return s
|
||||
|
||||
|
||||
## Round token for the run map — a filled disc with an even border and the shared warm
|
||||
## shadow. Unlike plaque()'s chiselled tablet the border is uniform, so it reads as a
|
||||
## marker rather than a plate. A large corner radius clamps to a full circle on any pip
|
||||
## size. Keeps map pips inside the single styling source instead of a hand-rolled box.
|
||||
static func disc(fill: Color, border: Color, border_w: int = 3) -> StyleBoxFlat:
|
||||
var s := StyleBoxFlat.new()
|
||||
s.bg_color = fill
|
||||
s.set_corner_radius_all(999)
|
||||
s.corner_detail = 8
|
||||
s.set_border_width_all(border_w)
|
||||
s.border_color = border
|
||||
s.shadow_color = SHADOW
|
||||
s.shadow_size = 6
|
||||
s.shadow_offset = Vector2(0.0, 3.0)
|
||||
return s
|
||||
|
||||
|
||||
## Thin gold rule for separating rows inside a plaque — brighter at the centre than
|
||||
## the surrounding trim so it reads as an inlaid line.
|
||||
static func rule() -> StyleBoxFlat:
|
||||
|
||||
Reference in New Issue
Block a user