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

Switch to Night Mode based on system-wide Dark Mode #4918

Closed
hutattedonmyarm opened this issue Jun 29, 2018 · 6 comments
Closed

Switch to Night Mode based on system-wide Dark Mode #4918

hutattedonmyarm opened this issue Jun 29, 2018 · 6 comments

Comments

@hutattedonmyarm
Copy link

macOS 10.14 has added a system-wide dark mode. I'd like to request the feature to set two different themes, one for light, and one for dark mode. Telegram Desktop should automatically apply the correct theme based on the system setting and switch when the system setting changes

@stek29
Copy link
Contributor

stek29 commented Jun 30, 2018

See electron/electron#13387 for nice overview of related APIs

@stek29
Copy link
Contributor

stek29 commented Sep 21, 2018

Also, on Windows HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize\AppsUseLightTheme might be used, I guess.

@stek29 stek29 changed the title Darkmode in macOS 10.14 Mojave Switch to Night Mode based on system-wide Dark Mode Sep 21, 2018
@Aokromes
Copy link
Collaborator

356e3c6

@ilya-fedin
Copy link
Contributor

There are QWindowsNativeInterface::isDarkMode()
Native interface can be observed via https://doc.qt.io/qt-5/qguiapplication.html#platformNativeInterface
But it is added just in Qt 5.15

@ilya-fedin
Copy link
Contributor

47a237c
25d6943

@github-actions
Copy link

github-actions bot commented Mar 4, 2021

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants