From ec626c424b787a84234ad585585338cde8c76ba4 Mon Sep 17 00:00:00 2001 From: Surferlul Date: Mon, 9 Aug 2021 04:23:37 +0200 Subject: [PATCH] fixed menubar colors --- menubar/init.lua | 3 ++- rc.lua | 2 +- themes/zenburn/theme.lua | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/menubar/init.lua b/menubar/init.lua index 96445e8..c7e241a 100644 --- a/menubar/init.lua +++ b/menubar/init.lua @@ -157,7 +157,7 @@ end -- @return item name, item background color, background image, item icon, item args. local function label(o) 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 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 @@ -561,6 +561,7 @@ function menubar.show(scr) end, keypressed_callback = prompt_keypressed_callback } + default_prompt_args.textbox.forced_height = 18 awful.prompt.run(setmetatable(menubar.prompt_args, {__index=default_prompt_args})) diff --git a/rc.lua b/rc.lua index e3ac851..40b5d10 100644 --- a/rc.lua +++ b/rc.lua @@ -16,7 +16,7 @@ local naughty = require("naughty") local menubar = require("menubar") local menu_width = 200 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") diff --git a/themes/zenburn/theme.lua b/themes/zenburn/theme.lua index 19d4178..f31e1e5 100644 --- a/themes/zenburn/theme.lua +++ b/themes/zenburn/theme.lua @@ -39,7 +39,8 @@ theme.hotkeys_description_font = "Indie Flower Bold 10" theme.hotkeys_border_width = 2 theme.hotkeys_border_color = "#6f6f6f55" 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_bg_focus = "#333344FF" theme.menubar_fg_focus = "#BBBBFF"