mirror of
https://github.com/mpv-player/mpv.git
synced 2026-05-07 20:02:49 +00:00
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:
@@ -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 ..
|
||||
|
||||
Reference in New Issue
Block a user