From 7e5625d30cb0850e32292dc8850c02a17cb25215 Mon Sep 17 00:00:00 2001 From: Percy Wegmann Date: Mon, 1 Apr 2024 09:12:03 -0500 Subject: [PATCH] Use light colors even in dark mode Signed-off-by: Percy Wegmann --- android/src/main/AndroidManifest.xml | 6 ++++++ .../java/com/tailscale/ipn/ui/theme/Theme.kt | 18 +----------------- android/src/main/res/values/strings.xml | 2 +- 3 files changed, 8 insertions(+), 18 deletions(-) diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml index baaac9c..20a0142 100644 --- a/android/src/main/AndroidManifest.xml +++ b/android/src/main/AndroidManifest.xml @@ -48,6 +48,12 @@ + + + + + + Unit) { - val colors = - if (!useDarkTheme) { - LightColors - } else { - DarkColors - } + val colors = LightColors val typography = Typography( @@ -83,16 +77,6 @@ private val LightColors = scrim = Color(0xFF000000), // black ) -private val DarkColors = - darkColorScheme( - primary = Color(0xFFFAF9F8), - onPrimary = Color(0xFFAFACAB), - secondary = Color(0xFF232222), - onSecondary = Color(0xFF2E2D2D), - secondaryContainer = Color(0xFF4B70CC), - surface = Color(0xFF33C27F), - ) - val ColorScheme.warning: Color get() = Color(0xFFD97916) // yellow-300 diff --git a/android/src/main/res/values/strings.xml b/android/src/main/res/values/strings.xml index c29e37e..5cd8256 100644 --- a/android/src/main/res/values/strings.xml +++ b/android/src/main/res/values/strings.xml @@ -85,7 +85,7 @@ Unable to logout at this time. Please try again. Error Accounts - Add Another Account… + Add another account… Reauthenticate Unable to switch users. Please try again. Unable to add a new profile. Please try again.