-
Notifications
You must be signed in to change notification settings - Fork 494
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
ui: reintroduce dark mode theme #315
Conversation
001a2f3
to
b353380
Compare
b353380
to
9d5ee2f
Compare
Fixes tailscale/corp#19137
Reintroduces the dark mode theme for the app, using mockups on Figma.
Signed-off-by: Andrea Gottardo <andrea@gottardo.me>
9d5ee2f
to
8c2b6ec
Compare
fun TailscaleLogoView(animated: Boolean = false, modifier: Modifier) { | ||
fun TailscaleLogoView( | ||
animated: Boolean = false, | ||
usesOnBackgroundColors: Boolean = false, |
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 this a parameter instead of just checking isSystemInDarkTheme()
?
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.
The colours we use to draw each dot in the logo are different depending on whether you're drawing the logo on top of a generic app surface (such as for a progress indicator, or the welcome view), or over MaterialTheme.colorScheme.logoBackground
, which you're going to use to draw the app icon (we use that in the about view). See what the iOS implementation does with the logoStyle
enum parameter.
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.
Code LGTM and visually things look in order. I'll defer to @sonovawolf for final design review.
No description provided.