tweak: scale BufferingIndicator with window
This commit is contained in:
@@ -2710,10 +2710,10 @@ function BufferingIndicator:on_prop_cache_underrun() self:decide_enabled() end
|
||||
function BufferingIndicator:render()
|
||||
local ass = assdraw.ass_new()
|
||||
ass:rect(0, 0, display.width, display.height, {color = bg, opacity = 0.3})
|
||||
local progress = state.render_last_time * 2 % 1
|
||||
local size = round(40 + math.min(display.width, display.height) / 8)
|
||||
local opacity = (Elements.menu and not Elements.menu.is_closing) and 0.3 or nil
|
||||
local opts = {rotate = progress * -360, color = fg, opacity = opacity}
|
||||
ass:icon(display.width / 2, display.height / 2, state.fullormaxed and 120 or 90, 'autorenew', opts)
|
||||
local opts = {rotate = (state.render_last_time * 2 % 1) * -360, color = fg, opacity = opacity}
|
||||
ass:icon(display.width / 2, display.height / 2, size, 'autorenew', opts)
|
||||
request_render()
|
||||
return ass
|
||||
end
|
||||
|
Reference in New Issue
Block a user