From 19537a49961d0c5af80321bfa0476024216b4b1f Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Tue, 17 Dec 2024 10:21:54 +0100 Subject: [PATCH] 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. --- player/lua/console.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/player/lua/console.lua b/player/lua/console.lua index c2ed26e9df..a22dd143df 100644 --- a/player/lua/console.lua +++ b/player/lua/console.lua @@ -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 ..