From e4ae5ac3a83f1da940ab33c93da4ed3e03cd7f14 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 11 Apr 2026 09:53:34 +0000 Subject: Fix bottom sheet corners; add full light/dark mode palette MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rounded corners: - Replace androidx CardView with MaterialCardView + ShapeAppearance.Nav.BottomSheet so only the top-left and top-right corners are rounded (24dp); bottom corners are square flush with the screen edge Light/dark mode: - Introduce values-night/colors.xml with the existing dark M3 palette (moved from values/colors.xml); instrument values stay dark (#E6E1E5 text, #1C1B1F bg) - values/colors.xml now carries the light M3 palette: surface #FFFBFE, onSurface #1C1B1F, surfaceVariant #E7E0EB etc.; instrument text flips to dark (#1C1B1F normal, #6F6878 secondary) for readability on light backgrounds - Fix InstrumentUnit hardcoded #6B6070 → ?attr/colorOnSurfaceVariant so the unit labels adapt automatically in both modes - Mark the forecast row (ocean navy #0D2137) and WaveView with android:forceDarkAllowed="false" so the system never inverts them — the ocean section is intentionally always dark regardless of system theme https://claude.ai/code/session_01HXPjBsogsJVRwCiekDGkJX --- .../app/src/main/res/layout/activity_main.xml | 6 ++-- .../main/res/layout/layout_instruments_sheet.xml | 6 ++-- .../app/src/main/res/values-night/colors.xml | 32 +++++++++++++++++++ android-app/app/src/main/res/values/colors.xml | 36 +++++++++++----------- android-app/app/src/main/res/values/themes.xml | 11 ++++++- 5 files changed, 67 insertions(+), 24 deletions(-) create mode 100644 android-app/app/src/main/res/values-night/colors.xml (limited to 'android-app/app/src/main/res') diff --git a/android-app/app/src/main/res/layout/activity_main.xml b/android-app/app/src/main/res/layout/activity_main.xml index 1bb88b3..5f1c8c2 100644 --- a/android-app/app/src/main/res/layout/activity_main.xml +++ b/android-app/app/src/main/res/layout/activity_main.xml @@ -82,14 +82,14 @@ - - + - + - + + + + #A8C8FF + #00315E + #004886 + #D6E3FF + + #BBC7DB + #253140 + #3B4858 + #DAE2F9 + + #FFB4AB + #690005 + #93000A + #FFDAD6 + + #1C1B1F + #E6E1E5 + #1C1B1F + #E6E1E5 + #49454F + #CAC4D0 + #938F99 + + + #E6E1E5 + #9A94A0 + #1C1B1F + #2B2930 + diff --git a/android-app/app/src/main/res/values/colors.xml b/android-app/app/src/main/res/values/colors.xml index eb62cb2..a470c0c 100755 --- a/android-app/app/src/main/res/values/colors.xml +++ b/android-app/app/src/main/res/values/colors.xml @@ -1,28 +1,28 @@ - + #005FB0 #FFFFFF #D6E3FF #001B3E - + #565F71 #FFFFFF #DAE2F9 #131C2C - + #BA1A1A #FFFFFF #FFDAD6 #410002 - - #1C1B1F - #E6E1E5 - #1C1B1F - #E6E1E5 - #49454F - #CAC4D0 - #938F99 + + #FFFBFE + #1C1B1F + #FFFBFE + #1C1B1F + #E7E0EB + #49454F + #7A757F #FF000000 @@ -31,13 +31,13 @@ #002171 #FF6D00 - - #E6E1E5 - #9A94A0 - #FF5449 - #49454F - #1C1B1F - #2B2930 + + #1C1B1F + #6F6878 + #BA1A1A + #9A94A0 + #FFFBFE + #F2EDF7 #BA1A1A #005FB0 diff --git a/android-app/app/src/main/res/values/themes.xml b/android-app/app/src/main/res/values/themes.xml index 8baa509..a48a721 100755 --- a/android-app/app/src/main/res/values/themes.xml +++ b/android-app/app/src/main/res/values/themes.xml @@ -63,7 +63,7 @@ + + +