Closed xfzv closed 1 year ago
the themes implementation in widgets seems a little bit complicated/ inconsistant imo but im not good at lua and new to awesome.
i'm using the theme light
and its working fine. (see your 3rd screenshot )
but i found this mysterious comment below:
--theme = 'naughty', -- naughty theme is broken
in my rc.lua.
what is lain/ markup? have you tried making a backup of your user config, copying the default config (/etc/xdg/awesome/rc.lua
) to yor config dir and modify it?
this is my config
-- Create a textclock widget
mytextclock = wibox.widget.textclock('%a, %Y-<b>%m</b>-<b>%d</b> // <b>%H</b>:<b>%M</b>:%S', 1)
local cw = calendar_widget({
theme = 'light',
--theme = 'naughty', -- naughty theme is broken
placement = 'top_right',
radius = 8,
week_numbers = true,
})
i have not looked in the code yet but i believe the themes were designed for that broken naughty theme - or i have an old version or something. i guess i find some time in the next few days. streetturtle could revert the changes otherwise as a hotfix.
Thank you for the reply.
what is lain/ markup?
This is a tool that I use to customize font/color for some of my widgets.
I did some further tests. It seems that this is the change causing the issue, reverting it solves it on my end.
- bg = default_bg,
+ bg = props.bg_color or default_bg,
It doesn't seem to lead to any additional breakage. I tried all the themes (including naughty
that I use personally). No issue either with
start_sunday = true,
week_numbers = true,
Plus, I cannot reproduce #316 either.
If that's OK, I can create a PR.
not quite sure what happened but i've got a (very) different version of calendar.lua. i believe i messed things up when i merged stuff in my fork -.-
naughty is kind of fixed with that solution. but i messed my codes completely now...
i believe it is because my theme (gtk) doesnt specify fg
andbg
but fg_normal
and bg_normal
.
the current behavior is:
cell(s) | bold | bg color | fg color |
---|---|---|---|
month/ year | yes | default | default |
week days | yes | default | default |
week nums | no | default | default |
week days | no | default | default |
weekend | no | focus | default |
today | yes | fg color | bg color |
focus (for internal themes) = any color which is a little bit lighter for dark themes or darker for light themes.
focus (for naughty theme) = focus color
default fg (for naughty theme) = beautiful.notification_fg or beautiful.fg or beautiful.fg_normal
default bg (for naughty theme) = beautiful.notification_bg or beautiful.bg or beautiful.bg_normal
After updating to Oct 8, 2023 commits:
focus_date_bg
andfocus_date_fg
colors are no longer working on my end, regardless of which theme is used. Reverting to 7702f00efad8c1bcfa34b9e5cce4e99f3ac8bf1a solves the issue for me.Screenshots (before/after):
Nord
Outrun
Light
Dark
My config:
Anyone else? Pinging @Luka5W considering he's the author of said commits.