klj
This commit is contained in:
@@ -68,7 +68,7 @@ loop-file
|
||||
|
||||
# Enable the screensaver when images are kept open forever.
|
||||
[screensaver]
|
||||
profile-cond=p['current-tracks/video'].image and image_display_duration == math.huge
|
||||
profile-cond=get('current-tracks/video', {}).image and image_display_duration == math.huge
|
||||
profile-restore=copy
|
||||
stop-screensaver=no
|
||||
|
||||
|
||||
@@ -249,7 +249,7 @@ function TopBar:render()
|
||||
local button_fg = is_hover and (button.hover_fg or bg) or fg
|
||||
local button_bg = is_hover and (button.hover_bg or fg) or bg
|
||||
|
||||
cursor:zone('primary_down', rect, button.command)
|
||||
cursor:zone('primary_click', rect, button.command)
|
||||
|
||||
local bg_size = self.size - margin
|
||||
local bg_ax, bg_ay = rect.ax + (is_left and margin or 0), rect.ay + margin
|
||||
@@ -302,7 +302,7 @@ function TopBar:render()
|
||||
if left_aligned then title_bx = rect.ax - margin else title_ax = rect.bx + margin end
|
||||
|
||||
-- Click action
|
||||
cursor:zone('primary_down', rect, function() mp.command('script-binding uosc/playlist') end)
|
||||
cursor:zone('primary_click', rect, function() mp.command('script-binding uosc/playlist') end)
|
||||
end
|
||||
|
||||
-- Skip rendering titles if there's not enough horizontal space
|
||||
@@ -325,7 +325,7 @@ function TopBar:render()
|
||||
local title_rect = {ax = ax, ay = title_ay, bx = ax + rect_width, by = by}
|
||||
|
||||
if options.top_bar_alt_title_place == 'toggle' then
|
||||
cursor:zone('primary_down', title_rect, function() self:toggle_title() end)
|
||||
cursor:zone('primary_click', title_rect, function() self:toggle_title() end)
|
||||
end
|
||||
|
||||
ass:rect(title_rect.ax, title_rect.ay, title_rect.bx, title_rect.by, {
|
||||
@@ -415,7 +415,7 @@ function TopBar:render()
|
||||
|
||||
-- Click action
|
||||
rect.bx = time_bx
|
||||
cursor:zone('primary_down', rect, function() mp.command('script-binding uosc/chapters') end)
|
||||
cursor:zone('primary_click', rect, function() mp.command('script-binding uosc/chapters') end)
|
||||
|
||||
title_ay = rect.by + self.title_spacing
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user