Bug 456811

Summary: Doesn't automatically switch to dark mode on macOS
Product: [Frameworks and Libraries] frameworks-kconfigwidgets Reporter: Alice <quarkyalice>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED FIXED    
Severity: minor CC: christoph, nicolas.fella, nilsding
Priority: NOR    
Version: 5.97.0   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Alice 2022-07-16 19:10:20 UTC
SUMMARY
Kate doesn't support dark mode on macOS.

STEPS TO REPRODUCE
1.  Set macOS to use dark mode
2.  Launch Kate

OBSERVED RESULT
It doesn't use dark mode.

EXPECTED RESULT
It uses dark mode (breeze dark).

SOFTWARE/OS VERSIONS
macOS: 12.4
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5
Comment 1 Alice 2022-07-16 19:16:22 UTC
*I meant doesn't automatically switch to dark mode, not doesn't support. You can manually switch it to dark mode but it would be nice if it could do it automatically.
Comment 2 Nicolas Fella 2022-07-17 11:25:07 UTC
We have code to do this for Windows in KColorSchemeManager. It reads the system preferenceand switches between Breeze Light and Dark accordingly

https://invent.kde.org/frameworks/kconfigwidgets/-/blob/master/src/kcolorschememanager.cpp#L101

Someone would need to add a macOS variant of that code
Comment 3 Bug Janitor Service 2022-08-26 14:17:45 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kconfigwidgets/-/merge_requests/155