From 77892d354eda07d98e2dfa5d00fca1ed1f808d8b Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Mon, 23 Mar 2026 04:16:32 +0000 Subject: feat: refactor UI to BottomNavigationView with Safety and Doc fragments Replace FAB-based navigation with a 4-tab BottomNavigationView (Map, Instruments, Log, Safety). Instruments use a collapsible bottom sheet; Log and Safety display as full-screen overlay fragments. - Add SafetyFragment with MOB and Anchor Watch controls - Add DocFragment for in-app markdown help (Markwon: core, tables, images) - Add layout_instruments_sheet with 3x3 instrument grid and PolarDiagramView - Add fragment_safety and fragment_doc layouts - Add vector drawables: ic_map, ic_instruments, ic_log, ic_safety, ic_close - Update activity_main.xml to CoordinatorLayout with bottom sheet + overlay - Fix: set isHideable=true before STATE_HIDDEN to avoid silent no-op from behavior_hideable=false default; restore false on Map/Instruments tabs Co-Authored-By: Claude Sonnet 4.6 --- android-app/app/src/main/res/values/colors.xml | 57 +++++++++++------- android-app/app/src/main/res/values/themes.xml | 81 +++++++++++++------------- 2 files changed, 79 insertions(+), 59 deletions(-) (limited to 'android-app/app/src/main/res/values') diff --git a/android-app/app/src/main/res/values/colors.xml b/android-app/app/src/main/res/values/colors.xml index 43e0076..b380d2d 100755 --- a/android-app/app/src/main/res/values/colors.xml +++ b/android-app/app/src/main/res/values/colors.xml @@ -1,28 +1,46 @@ - #FFBB86FC - #FF6200EE - #FF3700B3 - #FF03DAC5 - #FF018786 + + #005FB0 + #FFFFFF + #D6E3FF + #001B3E + + #565F71 + #FFFFFF + #DAE2F9 + #131C2C + + #BA1A1A + #FFFFFF + #FFDAD6 + #410002 + + #FDFBFF + #1A1C1E + #FDFBFF + #1A1C1E + #E0E2EC + #44474E + #74777F + + #FF000000 #FFFFFFFF - - - #0D47A1 + #005FB0 #002171 #FF6D00 - #FFFFFF - #FFFFFF - - #FFFFFFFF - #B3FFFFFF - #FFFF0000 - #FFFFFF00 - #E61E1E1E - #FFD70000 - #3F51B5 + + #1A1C1E + #44474E + #BA1A1A + #74777F + #FDFBFF + #F1F4F9 + + #BA1A1A + #005FB0 #FFFFFFFF @@ -30,12 +48,11 @@ #FF9800 #F44336 - + #FFFF0000 #FFBB0000 #FF000000 #FF000000 - #FFFF0000 #FF110000 #FFFF0000 diff --git a/android-app/app/src/main/res/values/themes.xml b/android-app/app/src/main/res/values/themes.xml index abef4b9..2281d96 100755 --- a/android-app/app/src/main/res/values/themes.xml +++ b/android-app/app/src/main/res/values/themes.xml @@ -1,64 +1,67 @@ - - - - - - - - - - + + -- cgit v1.2.3