fixed menubar colors

This commit is contained in:
Surferlul 2021-08-09 04:23:37 +02:00
parent 0511540de6
commit ec626c424b
3 changed files with 5 additions and 3 deletions

View File

@ -157,7 +157,7 @@ end
-- @return item name, item background color, background image, item icon, item args. -- @return item name, item background color, background image, item icon, item args.
local function label(o) local function label(o)
local fg_color = theme.menubar_fg_normal or theme.menu_fg_normal or theme.fg_normal local fg_color = theme.menubar_fg_normal or theme.menu_fg_normal or theme.fg_normal
local bg_color = theme.menubar_bg_normal or theme.menu_bg_normal or theme.bg_normal local bg_color = theme.menubar_tag_bg_normal or theme.menu_tag_bg_normal or theme.tag_bg_normal or "#00000000" -- option to set tag background color different than background color. Needed because the normal way would make tags darker than the background anyways -> was annoying
if o.focused then if o.focused then
fg_color = theme.menubar_fg_focus or theme.menu_fg_focus or theme.fg_focus fg_color = theme.menubar_fg_focus or theme.menu_fg_focus or theme.fg_focus
bg_color = theme.menubar_bg_focus or theme.menu_bg_focus or theme.bg_focus bg_color = theme.menubar_bg_focus or theme.menu_bg_focus or theme.bg_focus
@ -561,6 +561,7 @@ function menubar.show(scr)
end, end,
keypressed_callback = prompt_keypressed_callback keypressed_callback = prompt_keypressed_callback
} }
default_prompt_args.textbox.forced_height = 18
awful.prompt.run(setmetatable(menubar.prompt_args, {__index=default_prompt_args})) awful.prompt.run(setmetatable(menubar.prompt_args, {__index=default_prompt_args}))

2
rc.lua
View File

@ -16,7 +16,7 @@ local naughty = require("naughty")
local menubar = require("menubar") local menubar = require("menubar")
local menu_width = 200 local menu_width = 200
local tmp_screen = { 1080, 1920 } local tmp_screen = { 1080, 1920 }
menubar.geometry = { height = tmp_screen[1], width = menu_width, x = tmp_screen[2] - menu_width } menubar.geometry = { height = tmp_screen[1], width = menu_width, x = 20 }
--local hotkeys_popup = require("awful.hotkeys_popup") --local hotkeys_popup = require("awful.hotkeys_popup")

View File

@ -39,7 +39,8 @@ theme.hotkeys_description_font = "Indie Flower Bold 10"
theme.hotkeys_border_width = 2 theme.hotkeys_border_width = 2
theme.hotkeys_border_color = "#6f6f6f55" theme.hotkeys_border_color = "#6f6f6f55"
theme.hotkeys_shape = function(cr, width, height) gears.shape.rounded_rect(cr, width, height, 15) end theme.hotkeys_shape = function(cr, width, height) gears.shape.rounded_rect(cr, width, height, 15) end
theme.menubar_bg_normal = "#11112299" theme.menubar_bg_normal = "#111122CC"
theme.menubar_tag_bg_normal = "#00000000"
theme.menubar_fg_normal = "#FFBBBB" theme.menubar_fg_normal = "#FFBBBB"
theme.menubar_bg_focus = "#333344FF" theme.menubar_bg_focus = "#333344FF"
theme.menubar_fg_focus = "#BBBBFF" theme.menubar_fg_focus = "#BBBBFF"