-
Notifications
You must be signed in to change notification settings - Fork 3
Feature/dark mode #1973
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
base: develop
Are you sure you want to change the base?
Feature/dark mode #1973
Conversation
JeltevanBoheemen
left a comment
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.
Nice dropdown.
Very well documented.
Code makes sense.
So my very minor two cents: I find the primary color too dark in dark mode. Maybe explore a slightly less saturated or lighter shade. (again, minor stuff)
| @@ -0,0 +1,67 @@ | |||
| # Styling | |||
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.
Beyond impressed by this documentation.
| import { stylePreset } from './primeng-theme'; | ||
| import { CoreModule } from './core/core.module'; | ||
|
|
||
|
|
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.
Load-bearing whitespace?
| theme$: Observable<Theme>; | ||
|
|
||
| /** Default dark/light preference from the browser/OS */ | ||
| private systemTheme$: Observable<Theme>; |
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.
They're called System Team
| chart: Chart; | ||
|
|
||
| constructor() { } | ||
| constructor() {} |
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.
Non-load-bearing whitespace?
|
Just noticed that this is a draft PR. Sorry if the review is premature. |
|
Not sure why I marked this as a draft, I think the code is done but I wasn't sure about the colours. |
The dark mode look is mostly just from bulma / primeNG, but I changed some CSS variables to increase contrast for text/borders. I'm not super happy about the look but I guess it's fine?
There is a component to let users pick dark/light mode. Default is "auto", i.e. adapt to system theme. But I would not mind using "light" as the default setting.
I used the
runInIframesetting so Peace Portal always uses the light theme.There is some extra logic to adjust colours for visualisations.