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 #15711.
  • Loading branch information
guidocella committed Feb 24, 2025
1 parent d8a79a1 commit 4d880fc
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 @@ -790,7 +790,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 4d880fc

Please sign in to comment.