-
Notifications
You must be signed in to change notification settings - Fork 35
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
Does not change Windows border colors #43
Comments
Hello there @riceissa. Damn Windows. Is this also a problem when you start Emacs with I am not entirely sure how we could "force" from "within Emacs" a change on system window decoration. Also, It's been a while since I've fired up some Windows machine. Would you please inform your Windows and Emacs versions? |
I appreciate the response! Yes, the same thing happens when I run Emacs version is: GNU Emacs 29.1 (build 2, x86_64-w64-mingw32) of 2023-07-30. Windows version is: Windows 10 (Pro) Version 22H2 (OS Build 19045.3930). |
Just wanted to give an update that a new version of Emacs (19.2) came out yesterday and I've upgraded to that version, but the problem is still there. |
Tonight, I had some time to address this issue, and I encountered almost all the problems you described myself :) Some screenshots here: https://imgur.com/a/zSSx2tk This is good; it means the issue is reproducible. It appears to be beyond the scope of auto-dark-mode, lying somewhere between the Emacs GUI toolkit on Windows and Windows itself. Having said that, I opened a bug report with Emacs for further exploration of what we could do about it. If there's something we can do with ELISP (I tried several things with no success), auto-dark provides hooks that can execute extra code whenever a change is detected. This can help in setting what is needed for a 'complete change with titlebar and scrollbar'. This issue will remain open while we explore possibilities. |
Thank you for looking into this! Is there a link to the Emacs bug report? |
Sure! You can follow the bug report here: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=68766 |
This is what MicaForEveryone is for. It works very well with Windows Auto Dark Mode. Emacs on Windows runs as a "Win32" app so it uses the "legacy" tookit. Live changing Win32 title bar colors (for already open windows) can be done via the registry, though it can only change for all of them, so it wouldn't be possible to change just for Emacs. |
@11xx I would be fine with changing all the title bar colors (not just Emacs); in fact, I would prefer that. I don't know how the registry works; is there a command I can run from the command prompt or Windows PowerShell? |
I'd really recommend installing MicaForEveryone, Other than having it running no configuration is required, you can even choose to give the title bar the acrylic look too, here's an example of it working on Windows 11 emacs-mica-titlebar.git.mp4But traditionally the registry key to change the title bar color would be PS example:
where cccccc is a light grey and 333333 is a dark grey But again, there's no reason for changing the registry manually like this. Sorry for the off-topic of the repo, just wanted to point out that this is a non-Emacs thing and it does have a third-party solution. |
@11xx Thank you. That video looks very nice. I tried the PowerShell lines you gave and it didn't change the Emacs windows border for me. I also tried installing MicaForEveryone but it complains about not having .NET Core even though I installed both the latest version and the one linked in their FAQ. So for now, the only approach that works on my computer is to close Emacs and open it again. |
@riceissa I remember having to install version 3.1 from that link. Make sure it's the Yeah so apparently the registry approach worked until Windows 10 update 19something so.. :c |
auto-dark does not seem to change the border colors on Windows; the border colors only get set whenever I open Emacs. For example, if I open Emacs at night (when Windows has dark mode) and then wake up in the morning (when I have a program that automatically sets Windows to be in light mode), Emacs will have a light inside with a dark border:
(notice how the top bar and scrollbar are black)
If I close Emacs and restart it then the borders turn light (assuming it is daytime).
The text was updated successfully, but these errors were encountered: