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

Add automatic dark mode in Microsoft Office #24

Closed
VincentJoshuaET opened this issue May 5, 2019 · 20 comments
Closed

Add automatic dark mode in Microsoft Office #24

VincentJoshuaET opened this issue May 5, 2019 · 20 comments
Labels
enhancement New feature or request

Comments

@VincentJoshuaET
Copy link

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Common\UI Theme value should just be also changed for automatic dark theme.

@Armin2208
Copy link
Member

Armin2208 commented May 5, 2019

Thanks for the idea and providing me the right Registry Key.
Sadly Office always reverts this Value back to the UserConfig.
I set it to 4, I start word, it's dark. I close Word, reopen it, again white and the value is set to 0.
I could block access, but when users can't change the theme anymore in the apps itself. 😭

@Armin2208 Armin2208 added the enhancement New feature or request label Jul 11, 2019
@xtprion
Copy link

xtprion commented Aug 10, 2019

Well, what if you give us another option, so since user know that they'll lost access to change theme via apps itself, they will have an option to use it or not.

@Armin2208
Copy link
Member

@xtprion your are smart lol

@VincentJoshuaET
Copy link
Author

Any update on this?

@Armin2208
Copy link
Member

I never did something

@jpweytjens
Copy link

Are you considering to add this option with the warning mentioned above?

@udobehm
Copy link

udobehm commented Dec 24, 2019

It was awesome if the office theme would change too. Maybe some more keys/code needs to be changed in order the theme will not only change but also stay till your app would change it again. What does the Office support say to this?? Can they help you (easily) implementing this function?

@udobehm
Copy link

udobehm commented Dec 27, 2019

Ok, I see. But thanks for investigating it!

@kcorax
Copy link

kcorax commented Jan 24, 2020

Just donated. More coming if you find a solution for this.

@Armin2208
Copy link
Member

@kcorax you know how life works haha

@berot3
Copy link

berot3 commented Feb 7, 2020

Can't wait for this to happen! For me it doesn't make much sense to you your auto-switcher until office is not switching along too (sorry).

Also, I think there are quite a lot who are using office, especially in the office! 😃

@kcorax
Copy link

kcorax commented Feb 10, 2020

I'm afraid I've confirmed it's not possible though. Even if you intercept messages to the app. The only option would be to write directly in memmory like game trainers do, but that would be extremely fragile code. There's no point in encouraging a productivity app to crash for aesthetics.

@douglangille
Copy link

Is there something in this powershell script that might help? I hacked away at the scheduled tasks in ADM and made something workable based on this, but I have to deal with a PS window popping up. It'd be better in-app if at all possible.

https://www.cloudappie.nl/change-theme-officeproplus-powershell/

@Armin2208
Copy link
Member

thanks for sharing @douglangille

@Armin2208
Copy link
Member

Is there something in this powershell script that might help? I hacked away at the scheduled tasks in ADM and made something workable based on this, but I have to deal with a PS window popping up. It'd be better in-app if at all possible.

https://www.cloudappie.nl/change-theme-officeproplus-powershell/

thanks to this site I was able to re-create the powershell as c# code. It works very well. Thanks again for sharing, 2.4 will bring Office theme switch! :)
BUT NO it's not possible to change the office theme while one program is running. You need to restart office to see the changes.

@Armin2208
Copy link
Member

I updated the Beta release under releases. You can now test Office theme switch. Thank you!

@kcorax
Copy link

kcorax commented Jun 3, 2020

Donated as promised

@Armin2208 Armin2208 pinned this issue Jun 4, 2020
@Armin2208 Armin2208 unpinned this issue Jul 15, 2020
@juhaszp95
Copy link

Hi There,

I think the Office theme switch still doesn't really work (it doesn't switch to night mode for sure - I'm using Office 365). However, you can set Office to set its theme according to the system mode. However, if I set that, that setting seems to go away / be overriden somehow by Auto Dark Mode. I wonder if I could prevent Auto Dark Mode from interfering with my Office setting, such that it would follow the system setting (set by Auto Dark Mode) effectively? (I see there is a "Microsoft Office (legacy)" switch on the Apps tab, but I'm not sure what that does if anything. It was set to "Adapt to system" so far.)

@Spiritreader
Copy link
Member

Spiritreader commented Feb 10, 2023

Hi There,

I think the Office theme switch still doesn't really work (it doesn't switch to night mode for sure - I'm using Office 365). However, you can set Office to set its theme according to the system mode. However, if I set that, that setting seems to go away / be overriden somehow by Auto Dark Mode. I wonder if I could prevent Auto Dark Mode from interfering with my Office setting, such that it would follow the system setting (set by Auto Dark Mode) effectively? (I see there is a "Microsoft Office (legacy)" switch on the Apps tab, but I'm not sure what that does if anything. It was set to "Adapt to system" so far.)

The office theme switch doesn't work for 365, which is intentional because MS added an option for Office to follow the system theme. The ADM option is only meant for older versions that are still using the year-style version number.

Two things you can try:

  1. Set it to "let the app decide" and see if that works.

  2. You can set it to "disabled" (as it should be for non-legacy office) and ADM will not modify the office theme registry keys anymore.
    MS have changed the theme definitions for newer versions. Since those versions include a "follow system theme" option on their own, it's no longer necessary to use ADM for it.

Sadly detecting office versions are a bit convoluted, so the user has to make the correct decision whether to tell Office to follow the system them or try the auto dark mode legacy implementation if the first option isn't available on their installed Office version.

@juhaszp95
Copy link

juhaszp95 commented Feb 13, 2023 via email

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

10 participants