Skip to content

Commit

Permalink
console.lua: increase the opacity of the default item background
Browse files Browse the repository at this point in the history
This needs to strike a fine balance between being visible and having
contrast with the text color and not taking attention away from the
selected item. Make it slightly more opaque to differentiate it more
easily.

Fixes mpv-player#15711 (comment)
  • Loading branch information
guidocella committed Feb 22, 2025
1 parent 448abf1 commit 3e167c6
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 @@ -723,7 +723,7 @@ local function render()
ass:append('{\\blur0\\bord0\\4aH&ff&\\1c&H' ..
option_color_to_ass(opts.selected_back_color) .. '&}')
if first_match_to_print - 1 + i ~= selected_match then
ass:append('{\\1aH&dd&}')
ass:append('{\\1aH&cc&}')
end
ass:draw_start()
ass:rect_cw(-opts.padding, 0, max_item_width + opts.padding, line_height)
Expand Down

0 comments on commit 3e167c6

Please sign in to comment.