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

Invert the default faces as initial config? #72

Open
kresdjan opened this issue Oct 9, 2024 · 1 comment
Open

Invert the default faces as initial config? #72

kresdjan opened this issue Oct 9, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@kresdjan
Copy link

kresdjan commented Oct 9, 2024

[Feature request] Maybe a good default starting point would be to just toggle or invert the default faces with M-x invert-face RET default RET to swap the default colours. Instead of setting wombat and leuven as default themes. The same emacs-mac works out of the box on macOS?

@LionyxML
Copy link
Owner

LionyxML commented Oct 9, 2024

Hello there @kresdjan, thanks for reaching out!

I may be biased, but I don't think this should be the default behavior for this package.

I don't mean this is not what anyone else would desire though. You can accomplish what you suggested by configuring auto-dark this way:

(use-package auto-dark
  :ensure t
  :hook
  ((auto-dark-dark-mode . (lambda ()
                              (invert-face 'default t)
                              (message "Dark mode: faces reverted")))
   (auto-dark-light-mode . (lambda ()
                               (invert-face 'default nil)
                               (message "Light mode: faces inverted"))))
  :config
  (auto-dark-mode))

As you see, inverting is just that, if you're using a base 'dark' theme it will be inverted, if your base theme is 'light', something else will happen. Thus, although this config might be what you're looking for, there's no way to ensure dark/light behaviors this way 😄

What do you mean here? Sorry I didn't get you:

The same emacs-mac works out of the box on macOS

@LionyxML LionyxML added the enhancement New feature or request label Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants