Giter Site home page Giter Site logo

Comments (4)

Luka5W avatar Luka5W commented on June 2, 2024

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 https://user-images.githubusercontent.com/78810647/284698170-b4fe7024-c5a4-4c3b-bdd6-0c38dff2267d.png)
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.

from awesome-wm-widgets.

xfzv avatar xfzv commented on June 2, 2024

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.

782f271#diff-3b353f097c213fdeca54038e3547aceb95ded674754ea27f7c94bac5e5044ceeL177-L178

- 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,

image

Plus, I cannot reproduce #316 either.

If that's OK, I can create a PR.

from awesome-wm-widgets.

Luka5W avatar Luka5W commented on June 2, 2024

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 -.-

from awesome-wm-widgets.

Luka5W avatar Luka5W commented on June 2, 2024

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

from awesome-wm-widgets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.