Feature/night mode exceptions#2809
Conversation
7a6dffa to
43a0917
Compare
43a0917 to
566ade1
Compare
Drawing heavily on hthienloc/DankMaterialShell@de3e8cf (excluded media players), give the possibility to specify a list of applications excluded from NightMode, alongside the ability to exclude fullscreen applications. (Logic is implemented on newly focused windows, and integrates with compositors overview mode so that NightMode is resumed on overview.) + Update GammaControlTab main section to use a SettingsCard component.
…ceptions - Use the appId matching function abstracted to Paths.qml. - Use common appId normalization functions to append/remove from settings list. - Align with GammaControlTab app list input fields to fix bug where white spaces only input would prevent field clearing on accept. - Align with GammaControlTab and use a Loader for AppBrowserPopup so that it can be recreated in case the popup is not closed with the dedicated button (i.e., via the compositor).
…ecreated if closed (Align with GammaControlTab changes)
566ade1 to
e5c7dcc
Compare
|
I noticed that when the Fullscreen Applications is turned on, and if any one app in the workspace is fullscreen, it turns of night mode for all the apps in the workspace. Is it intentional? |
e5c7dcc to
6470274
Compare
|
That's a regression caused by the unnecessary additional commit I carelessly pushed earlier. Thank you ! |
|
The "excluding apps from night mode" makes sense, but the one with "full screen disabling night mode" doesn't make sense to me. Anyway, up to the maintainers to approve |
|
To me, the point of allowing users to disable night mode for fullscreen apps is to ensure color accuracy for applications typically run in fullscreen mode, like media players and video games. |
|
Two shortcomings I've noticed1 and I'm not sure how to solve:
Footnotes
|
Description
Add night mode exceptions (fullscreen and custom app list).
Drawing heavily on hthienloc/DankMaterialShell@de3e8cf, give the possibility to specify a list of applications excluded from Night Mode, alongside the ability to exclude fullscreen applications.
Logic is implemented on newly focused windows, and integrates with compositors overview mode so that Night Mode is resumed on overview.1
Notes
MprisController:qml:20toPaths.qml:154with other (loosely-)related functions.Type of change
Related issues
Screenshots / video2
contrib_night-mode-exceptions.webm
Checklist
I18n.tr()with translator context, reusing existing terms where possiblemake fmt, added/updated tests,make testpasses, andgo mod tidyis cleanmake lint-qmlwith no new warningsFootnotes
This means that enabling fullscreen exclusion while fullscreen will do nothing because the implementation reacts to Toplevel change (application focus). ↩
Screen gamma change is obviously not visible in the video, but "it works on my machine". ↩