Skip to content

Commit

Permalink
fix: font scaling in timeline
Browse files Browse the repository at this point in the history
closes #722
  • Loading branch information
tomasklaen committed Oct 21, 2023
1 parent 7663485 commit 5e757b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/uosc/elements/Timeline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function Timeline:update_dimensions()
self.top_border = round(options.timeline_border * state.scale)
self.line_width = round(options.timeline_line_width * state.scale)
self.progress_line_width = round(options.progress_line_width * state.scale)
self.font_size = math.floor(math.min((self.size + 60) * 0.2, self.size * 0.96) * options.font_scale)
self.font_size = math.floor(math.min((self.size + 60 * state.scale) * 0.2, self.size * 0.96) * options.font_scale)
local window_border_size = Elements:v('window_border', 'size', 0)
self.ax = window_border_size
self.ay = display.height - window_border_size - self.size - self.top_border
Expand Down

0 comments on commit 5e757b2

Please sign in to comment.