-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
fix(theming): enforce theme should still provide dark as fallback #46504
Conversation
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
@@ -28,7 +28,7 @@ public function __construct( | |||
private LoggerInterface $logger, | |||
private DefaultTheme $defaultTheme, | |||
LightTheme $lightTheme, | |||
DarkTheme $darkTheme, | |||
private DarkTheme $darkTheme, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why make it private?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because it is now used in getThemes
method, before this was not a class attribute but just a constructor parameter (it is now promoted as a private class attribute).
Backport? |
/backport to stable29 |
/backport to stable28 |
Discovered from
@nextcloud/vue
to 8.14.0 viewer#2358Otherwise apps cannot enforce some areas of their UI to be dark, like the Modal component which is always dark.
Here is the result otherwise: