AutoDarkMode / Windows-Auto-Night-Mode

Automatically switches between the dark and light theme of Windows 10 and Windows 11
GNU General Public License v3.0
7.37k stars 262 forks source link

ADM doesn't switch theme for Outlook #487

Open anishre opened 2 years ago

anishre commented 2 years ago

Description

ADM doesn't switch dark theme on/off for Outlook but does for other MS365 apps.

Expected Behavior

ADM should change theme for all Office apps according to time switch, but it doesn't do any toggling for outlook app. It has to be changed manually.

Log Data

service.log

Operating System

Windows 10 Pro Version 21H2, OS build 19044.1826

Commit Hash and Version

Screenshots

ADM comparison for Excel and Outlook at the same time

image

Armin2208 commented 2 years ago

Have you activated "follow system theme" at file -> office account -> office theme -> use system theme?

anishre commented 2 years ago

Yeah, I had that selected but after every "time based toggle" it would be stuck on the previous theme. For instance I set it to follow system theme when its dark (night time) and when system theme switches in the morning, theme for Outlook is still dark. Happens vice versa as well.

Spiritreader commented 2 years ago

ADM's Office Switch functionality is for Office versions that don' have the "use system theme" setting in office. It will not work with current office versions, hence it is marked as legacy

Armin2208 commented 2 years ago

What is more clear? The office version years? The legacy mark? Or something like (not 365) :D

Spiritreader commented 2 years ago

Well technically the clearest would be "for office versions that don't have the feature to follow the system theme"

KeeLee2005 commented 2 years ago

But Microsoft® Outlook® Microsoft 365MSO 2208 Build 16.0.15601.20072 doesn't have this problem.

samuelT2 commented 1 year ago

Same problem with Outlook 2210 Build 16.0.15726.20070 64 Bit (MS 365):

Scenario

Pre-condition: Office design is set to "Use system settings" (eg. in Outlook).

  1. Using the computer during the day with the light design.
  2. ADM triggers dark mode sometime during the evening, all designs go dark (Windows & Office).
  3. The next morning, computer boots up, ADM triggers light mode correctly.
  4. Office products behave differently:
    • Outlook theme setting is on "black"
    • Word theme setting is on "colorful"

Why does the office setting change anyway? Ideally, it would stay on "Use system settings".

I can provide more debug info if needed.

Edit: ADM version

Spiritreader commented 1 year ago

The office setting does not work for O365 and can't be used. If you do you get unexpected behavior. It's meant for older versions.

If must be set to disabled in ADM if you use o365

samuelT2 commented 1 year ago

Thanks @Spiritreader, I'll deactivate the Microsoft Office setting in ADM.

carlosvsilva commented 1 year ago

Any chance of supporting One Outlook (next generation) Dark Mode? It has a toggable setting in settings, but there's no option to sync with system theme.

https://www.microsoft.com/store/productId/9NRX63209R7B

Armin2208 commented 1 year ago

no chance because it's an web app

emberaholdon commented 11 months ago

Any chance of supporting One Outlook (next generation) Dark Mode? It has a toggable setting in settings, but there's no option to sync with system theme.

https://www.microsoft.com/store/productId/9NRX63209R7B

The current version of Outlook (new) (packed with Windows 11 23H2) supports auto theme switching and working fine on my computer.

If you use PWA apps, just install the Dark Reader extension for Edge.

luke7101 commented 10 months ago

I have a different question around this theme: I also noticed that the current Office 365 is correctly switching theme following the system settings if "Use system settings" is set in the Office apps. The current effect is like toggling between the "White theme" for the day and the "Black theme" for the night. My question is: would it be possible to toggle between "White" and "Dark grey" instead of "Black" ? (or suggest a workaround if there is one ?)

emberaholdon commented 10 months ago

I don't think there is one at the moment.

You can set up a custom script that modifies the registry, but the apps need to be restarted, they don't change while running.

The key is located at: HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common

Set "UI Theme" (DWORD) to:

3: Dark Grey 4: Black 5: White 6: Use system setting 7: Colourful

By the way: black has it's own advantages, for example the background of emails and Word documents also switch to dark, while in "dark grey" mode they are still white which kinda defeats the purpose of dark mode.

luke7101 commented 10 months ago

By the way: black has it's own advantages, for example the background of emails and Word documents also switch to dark, while in "dark grey" mode they are still white which kinda defeats the purpose of dark mode.

Good point!