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

ui: reintroduce dark mode theme #315

Merged
merged 1 commit into from
Apr 12, 2024
Merged

Conversation

agottardo
Copy link
Contributor

No description provided.

@agottardo agottardo self-assigned this Apr 11, 2024
@agottardo agottardo force-pushed the angott/reintroduce-dark-mode branch 2 times, most recently from 001a2f3 to b353380 Compare April 11, 2024 21:23
@agottardo agottardo marked this pull request as ready for review April 11, 2024 21:24
@agottardo agottardo force-pushed the angott/reintroduce-dark-mode branch from b353380 to 9d5ee2f Compare April 11, 2024 21:26
Fixes tailscale/corp#19137

Reintroduces the dark mode theme for the app, using mockups on Figma.

Signed-off-by: Andrea Gottardo <andrea@gottardo.me>
@agottardo agottardo force-pushed the angott/reintroduce-dark-mode branch from 9d5ee2f to 8c2b6ec Compare April 11, 2024 21:55
fun TailscaleLogoView(animated: Boolean = false, modifier: Modifier) {
fun TailscaleLogoView(
animated: Boolean = false,
usesOnBackgroundColors: Boolean = false,
Copy link
Contributor

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()?

Copy link
Contributor Author

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.

Copy link
Contributor

@oxtoacart oxtoacart left a 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.

@agottardo agottardo merged commit 164a243 into main Apr 12, 2024
4 checks passed
kari-ts pushed a commit that referenced this pull request Apr 25, 2024
@agottardo agottardo deleted the angott/reintroduce-dark-mode branch May 13, 2024 21:33
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.

2 participants