console.lua: inherit --osd-color and --osd-outline-color

Stop overriding the OSD font and outline color in the console input line
and log, except for the lines already in a different color. This allows
configuring the console color and makes it consistent with the rest of
the OSD, like 51bd00c33a did for stats.
This commit is contained in:
Guido Cella
2024-12-17 10:21:54 +01:00
committed by Dudemanguy
parent 5354a50f9f
commit 19537a4996
+3 -1
View File
@@ -57,6 +57,9 @@ local styles = {
selected_suggestion = '{\\1c&H2fbdfa&\\b1}',
disabled = '{\\1c&Hcccccc&}',
}
for key, style in pairs(styles) do
styles[key] = style .. '{\\1a&H00&\\3c&H111111&\\3a&H00&}'
end
local terminal_styles = {
debug = '\027[90m',
@@ -546,7 +549,6 @@ local function update()
local has_shadow = mp.get_property('osd-border-style'):find('box$') == nil
local font = get_font()
local style = '{\\r' ..
'\\1a&H00&\\3a&H00&\\1c&Heeeeee&\\3c&H111111&' ..
(has_shadow and '\\4a&H99&\\4c&H000000&\\xshad0\\yshad1' or '') ..
(font and '\\fn' .. font or '') ..
'\\fs' .. opts.font_size ..