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

gui/tray: Dark mode switch #7561

Merged
merged 4 commits into from
Nov 25, 2024
Merged

gui/tray: Dark mode switch #7561

merged 4 commits into from
Nov 25, 2024

Conversation

claucambra
Copy link
Collaborator

@claucambra claucambra commented Nov 25, 2024

We are not correctly connecting the signal for Theme::darkModeChanged. This fixes that

We don't really need to have the check fo paletteSignalsConnected

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Theme may be instantiated before the qApp is available

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This way we avoid the computation that happens in Theme::darkMode each
time the property is accessed

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
@claucambra claucambra added this to the 3.15.0 milestone Nov 25, 2024
@claucambra claucambra self-assigned this Nov 25, 2024
@nextcloud-desktop-bot
Copy link

AppImage file: nextcloud-PR-7561-84fb45a9365c6f5080a9c18fe871fd4d0b93ab71-x86_64.AppImage

To test this change/fix you can simply download above AppImage file and test it.

Please make sure to quit your existing Nextcloud app and backup your data.

@mgallien
Copy link
Collaborator

/backport to stable-3.15

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
10 New Code Smells (required ≤ 0)
E Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@mgallien mgallien merged commit 0d3e80f into master Nov 25, 2024
11 of 15 checks passed
@mgallien mgallien deleted the bugfix/dark-mode-switch branch November 25, 2024 09:31
@claucambra claucambra changed the title Bugfix/dark mode switch gui/tray: Dark mode switch Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants