Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cfw:open-ical-calendar hard-codes the color of the text #143

Open
phil-s opened this issue May 17, 2022 · 0 comments
Open

cfw:open-ical-calendar hard-codes the color of the text #143

phil-s opened this issue May 17, 2022 · 0 comments

Comments

@phil-s
Copy link

phil-s commented May 17, 2022

(list (cfw:ical-create-source "ical" url "#2952a3")))))

Obviously this can conflict badly with themes.

I think there should be a defcustom color or even a face for this text?

For example:

(defcustom cfw:color-ical "#2952a3"
  "Colour used by `cfw:open-ical-calendar'."
  :type 'color
  :group 'calfw)

and:

-               (list (cfw:ical-create-source "ical" url "#2952a3")))))
+               (list (cfw:ical-create-source "ical" url cfw:color-ical)))))

I can see that this command is in some ways more of a template (and personally I wanted multiple sources visible together, and I could see how to achieve that with different colours for each with a custom variant of the function); but as the default is still useful as a command, I think hard-coding that colour seems wrong, and then themes can add support so users might have reasonable defaults if that default command serves their needs in other respects.


Thank you for these packages. I found https://ict4g.net/adolfo/notes/emacs/emacs-caldav.html and tried it out, and I am very grateful to now have my work calendars viewable in Emacs without the need for an external program.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant