Skip to content

Commit

Permalink
console.lua: inherit --osd-back-color
Browse files Browse the repository at this point in the history
The previous commit changed --osd-back/shadow-color to nearly the same
one console was using. This allows unhardcoding it from there and using
--osd-back-color even with --osd-border-style=outline-and-shadow for
consistency with the rest of the OSD.
  • Loading branch information
guidocella committed Dec 20, 2024
1 parent ecf5bdc commit 85d4372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion player/lua/console.lua
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ local function update()
local has_shadow = mp.get_property('osd-border-style'):find('box$') == nil
local font = get_font()
local style = '{\\r' ..
(has_shadow and '\\4a&H99&\\4c&H000000&\\xshad0\\yshad1' or '') ..
(has_shadow and '\\xshad0\\yshad1' or '') ..
(font and '\\fn' .. font or '') ..
'\\fs' .. opts.font_size ..
'\\bord' .. opts.border_size .. '\\fsp0' ..
Expand Down

0 comments on commit 85d4372

Please sign in to comment.