-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
96a7370
commit 93a9bd0
Showing
17 changed files
with
179 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Change: Theme handling | ||
|
||
The handling of themes has been throughoutly reworked. | ||
Themes now feature a human-readable title, can specify whether they are suitable as light or dark mode themes. | ||
If only one theme is provided, this theme will be set. | ||
If two themes are provided and one is a dark and one is a light mode one, there is a light/dark mode switch button in the AppBar. | ||
If more than two themes are provided or the two provided themes are not a dark and a light mode one respectively, | ||
the UI features a theme-switch button featuring a dropdown of the human-readable names of the available themes | ||
|
||
https://github.com/owncloud/web/issues/2404 | ||
https://github.com/owncloud/web/issues/8424 | ||
https://github.com/owncloud/web/issues/9403 | ||
https://github.com/owncloud/web/issues/9885 | ||
|
||
https://github.com/owncloud/web/pull/8855 | ||
https://github.com/owncloud/web/pull/9396 | ||
https://github.com/owncloud/web/pull/9401 | ||
https://github.com/owncloud/web/pull/9698 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
packages/web-runtime/src/composables/theme/useDefaultThemeName.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
export const themeNameLight = 'default' | ||
export const themeNameDark = 'default-dark' | ||
|
||
export type ThemeName = typeof themeNameDark | typeof themeNameLight | ||
|
||
export const useDefaultThemeName = (): string => { | ||
return window.matchMedia('(prefers-color-scheme: dark)').matches ? themeNameDark : themeNameLight | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.