REF use semicircle for dials

This commit is contained in:
Nathan Dwarshuis 2021-07-09 23:19:26 -04:00
parent 4579bdb2f8
commit 68b2b673b4
3 changed files with 18 additions and 16 deletions

2
core

@ -1 +1 @@
Subproject commit bc8a4548e536c4a46e78712cfe6c578e85ab694b
Subproject commit 09ed55940cd075ca33b1037482e1293321dcbe4a

View File

@ -65,16 +65,17 @@ local DIAL_Y = header.bottom_y + DIAL_RADIUS + _DIAL_THICKNESS_ / 2
-- arc_pattern = _G_Patterns_.INDICATOR_BG
-- }
local dial = _G_Widget_.Dial(
DIAL_X,
DIAL_Y,
DIAL_RADIUS,
90,
360,
_DIAL_THICKNESS_,
_G_Patterns_.INDICATOR_BG,
_G_Patterns_.INDICATOR_FG_PRIMARY,
_G_Patterns_.INDICATOR_FG_CRITICAL,
0.8
_G_Widget_.make_semicircle(
_G_Widget_.make_point(DIAL_X, DIAL_Y),
DIAL_RADIUS,
90,
360
),
_DIAL_THICKNESS_,
_G_Patterns_.INDICATOR_BG,
_G_Patterns_.INDICATOR_FG_PRIMARY,
_G_Patterns_.INDICATOR_FG_CRITICAL,
0.8
)
-- local cache_arc = _G_Widget_.Arc{
-- x = DIAL_X,

View File

@ -69,16 +69,17 @@ local _create_core_ = function(cores, id, x, y)
-- arc_pattern = _G_Patterns_.INDICATOR_BG
-- },
dials = _G_Widget_.CompoundDial(
x,
y,
90,
360,
_G_Widget_.make_semicircle(
_G_Widget_.make_point(x, y),
_DIAL_OUTER_RADIUS_,
90,
360
),
_G_Patterns_.INDICATOR_BG,
_G_Patterns_.INDICATOR_FG_PRIMARY,
_G_Patterns_.INDICATOR_FG_CRITICAL,
0.8,
_DIAL_INNER_RADIUS_,
_DIAL_OUTER_RADIUS_,
_DIAL_SPACING_,
NUM_THREADS_PER_CORE
),