REF use new arc style api

This commit is contained in:
Nathan Dwarshuis 2021-07-18 19:59:41 -04:00
parent 38b0aaee27
commit 83374784d7
2 changed files with 5 additions and 5 deletions

2
core

@ -1 +1 @@
Subproject commit 13ef06edb13e9dbead0745e39e11798f4941b9bc Subproject commit 580ee5cabaf0288d0222d1efe439908f8975a7bb

View File

@ -288,7 +288,7 @@ end
M.arc = function(x, y, r, thickness, pattern) M.arc = function(x, y, r, thickness, pattern)
return Arc.build( return Arc.build(
Startup.make_semicircle(x, y, r, 90, 360), Startup.make_semicircle(x, y, r, 90, 360),
Startup.arc_style(thickness, pattern) Arc.style(thickness, pattern)
) )
end end
@ -298,7 +298,7 @@ end
M.initRing = function(x, y, r) M.initRing = function(x, y, r)
return Arc.build( return Arc.build(
Startup.make_semicircle(x, y, r, 0, 360), Startup.make_semicircle(x, y, r, 0, 360),
Startup.arc_style(ARC_WIDTH, Theme.BORDER_FG) Arc.style(ARC_WIDTH, Theme.BORDER_FG)
) )
end end
@ -349,7 +349,7 @@ end
M.dial = function(x, y, radius, thickness, threshold) M.dial = function(x, y, radius, thickness, threshold)
return Dial.build( return Dial.build(
Startup.make_semicircle(x, y, radius, DIAL_THETA0, DIAL_THETA1), Startup.make_semicircle(x, y, radius, DIAL_THETA0, DIAL_THETA1),
Startup.arc_style(thickness, Theme.INDICATOR_BG), Arc.style(thickness, Theme.INDICATOR_BG),
threshold_indicator(threshold) threshold_indicator(threshold)
) )
end end
@ -361,7 +361,7 @@ M.compound_dial = function(x, y, outer_radius, inner_radius, thickness,
threshold, num_dials) threshold, num_dials)
return CompoundDial.build( return CompoundDial.build(
Startup.make_semicircle(x, y, outer_radius, DIAL_THETA0, DIAL_THETA1), Startup.make_semicircle(x, y, outer_radius, DIAL_THETA0, DIAL_THETA1),
Startup.arc_style(thickness, Theme.INDICATOR_BG), Arc.style(thickness, Theme.INDICATOR_BG),
threshold_indicator(threshold), threshold_indicator(threshold),
inner_radius, inner_radius,
num_dials num_dials