summaryrefslogtreecommitdiff
path: root/android-app/app/src/main/res/values
diff options
context:
space:
mode:
Diffstat (limited to 'android-app/app/src/main/res/values')
-rwxr-xr-x[-rw-r--r--]android-app/app/src/main/res/values/colors.xml29
-rwxr-xr-xandroid-app/app/src/main/res/values/dimens.xml9
-rwxr-xr-x[-rw-r--r--]android-app/app/src/main/res/values/strings.xml50
-rwxr-xr-x[-rw-r--r--]android-app/app/src/main/res/values/themes.xml57
4 files changed, 143 insertions, 2 deletions
diff --git a/android-app/app/src/main/res/values/colors.xml b/android-app/app/src/main/res/values/colors.xml
index 2382364..43e0076 100644..100755
--- a/android-app/app/src/main/res/values/colors.xml
+++ b/android-app/app/src/main/res/values/colors.xml
@@ -1,12 +1,41 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
+ <color name="purple_200">#FFBB86FC</color>
+ <color name="purple_500">#FF6200EE</color>
+ <color name="purple_700">#FF3700B3</color>
+ <color name="teal_200">#FF03DAC5</color>
+ <color name="teal_700">#FF018786</color>
+ <color name="black">#FF000000</color>
+ <color name="white">#FFFFFFFF</color>
+
+ <!-- Maritime theme colors -->
<color name="primary">#0D47A1</color>
<color name="primary_dark">#002171</color>
<color name="accent">#FF6D00</color>
<color name="surface">#FFFFFF</color>
<color name="on_primary">#FFFFFF</color>
+
+ <!-- Colors for instrument display -->
+ <color name="instrument_text_normal">#FFFFFFFF</color>
+ <color name="instrument_text_secondary">#B3FFFFFF</color>
+ <color name="instrument_text_alarm">#FFFF0000</color>
+ <color name="instrument_text_stale">#FFFFFF00</color>
+ <color name="instrument_background">#E61E1E1E</color>
+ <color name="mob_button_background">#FFD70000</color>
+ <color name="anchor_button_background">#3F51B5</color>
+
+ <!-- Wind overlay colors -->
<color name="wind_arrow">#FFFFFFFF</color>
<color name="wind_slow">#4CAF50</color>
<color name="wind_medium">#FF9800</color>
<color name="wind_strong">#F44336</color>
+
+ <!-- Night Vision Mode Colors -->
+ <color name="night_red_primary">#FFFF0000</color>
+ <color name="night_red_variant">#FFBB0000</color>
+ <color name="night_on_red">#FF000000</color>
+ <color name="night_background">#FF000000</color>
+ <color name="night_on_background">#FFFF0000</color>
+ <color name="night_surface">#FF110000</color>
+ <color name="night_on_surface">#FFFF0000</color>
</resources>
diff --git a/android-app/app/src/main/res/values/dimens.xml b/android-app/app/src/main/res/values/dimens.xml
new file mode 100755
index 0000000..1b65ea9
--- /dev/null
+++ b/android-app/app/src/main/res/values/dimens.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <!-- Font sizes for instrument display -->
+ <dimen name="text_size_instrument_primary">24sp</dimen>
+ <dimen name="text_size_instrument_secondary">18sp</dimen>
+ <dimen name="text_size_instrument_label">14sp</dimen>
+ <dimen name="instrument_margin">8dp</dimen>
+ <dimen name="instrument_padding">4dp</dimen>
+</resources>
diff --git a/android-app/app/src/main/res/values/strings.xml b/android-app/app/src/main/res/values/strings.xml
index b7d3bd8..499ba8d 100644..100755
--- a/android-app/app/src/main/res/values/strings.xml
+++ b/android-app/app/src/main/res/values/strings.xml
@@ -1,8 +1,56 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
- <string name="app_name">Nav</string>
+ <string name="app_name">nav</string>
+
+ <!-- Navigation -->
<string name="nav_map">Map</string>
<string name="nav_forecast">Forecast</string>
+
+ <!-- Instrument Labels -->
+ <string name="instrument_label_wind">WIND</string>
+ <string name="instrument_label_aws">AWS</string>
+ <string name="instrument_label_tws">TWS</string>
+ <string name="instrument_label_compass">COMPASS</string>
+ <string name="instrument_label_hdg">HDG</string>
+ <string name="instrument_label_cog">COG</string>
+ <string name="instrument_label_boatspeed">BOAT SPEED</string>
+ <string name="instrument_label_bsp">BSP</string>
+ <string name="instrument_label_sog">SOG</string>
+ <string name="instrument_label_vmg">VMG</string>
+ <string name="instrument_label_depth">DEPTH</string>
+ <string name="instrument_label_polar_pct">POLAR %</string>
+ <string name="instrument_label_barometer">BAROMETER</string>
+ <string name="instrument_label_trend">TREND</string>
+
+ <!-- Placeholder values for initial display -->
+ <string name="placeholder_aws_value">--.-</string>
+ <string name="placeholder_tws_value">--.-</string>
+ <string name="placeholder_hdg_value">---</string>
+ <string name="placeholder_cog_value">---</string>
+ <string name="placeholder_bsp_value">--.-</string>
+ <string name="placeholder_sog_value">--.-</string>
+ <string name="placeholder_vmg_value">--.-</string>
+ <string name="placeholder_depth_value">--.-</string>
+ <string name="placeholder_polar_value">---</string>
+ <string name="placeholder_baro_value">----.-</string>
+
+ <string name="fab_mob_content_description">Activate Man Overboard (MOB) alarm</string>
+ <string name="fab_anchor_content_description">Toggle Anchor Watch Configuration</string>
+
+ <!-- MOB Navigation View Strings -->
+ <string name="mob_label_distance">DISTANCE TO MOB</string>
+ <string name="mob_label_elapsed_time">ELAPSED TIME</string>
+ <string name="mob_button_recovered">RECOVERED</string>
+
+ <!-- Anchor Watch Strings -->
+ <string name="anchor_config_title">Anchor Watch</string>
+ <string name="button_set_anchor">SET ANCHOR</string>
+ <string name="button_stop_anchor">STOP WATCH</string>
+ <string name="anchor_inactive">Anchor Watch Inactive</string>
+ <string name="anchor_active_format">Anchor Set at %1$.4f, %2$.4f\nRadius: %3$.1fm\nDistance: %4$.1fm (%5$.1fm from limit)</string>
+ <string name="anchor_active_dragging_format">!!! ANCHOR DRAG !!!\nAnchor Set at %1$.4f, %2$.4f\nRadius: %3$.1fm\nDistance: %4$.1fm (%5$.1fm OVER limit)</string>
+
+ <!-- Weather / Forecast Strings -->
<string name="loading_weather">Fetching weather…</string>
<string name="error_location">Could not get location. Showing default position.</string>
<string name="error_weather">Failed to load weather data.</string>
diff --git a/android-app/app/src/main/res/values/themes.xml b/android-app/app/src/main/res/values/themes.xml
index cecd32f..abef4b9 100644..100755
--- a/android-app/app/src/main/res/values/themes.xml
+++ b/android-app/app/src/main/res/values/themes.xml
@@ -1,9 +1,64 @@
<?xml version="1.0" encoding="utf-8"?>
-<resources>
+<resources xmlns:tools="http://schemas.android.com/tools">
+ <!-- Base application theme. -->
+ <style name="Theme.Nav" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
+ <item name="colorPrimary">@color/purple_200</item>
+ <item name="colorPrimaryVariant">@color/purple_700</item>
+ <item name="colorOnPrimary">@color/black</item>
+ <item name="colorSecondary">@color/teal_200</item>
+ <item name="colorSecondaryVariant">@color/teal_200</item>
+ <item name="colorOnSecondary">@color/black</item>
+ <item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
+ </style>
+
+ <!-- Maritime theme (weather/forecast features) -->
<style name="Theme.NavApp" parent="Theme.MaterialComponents.DayNight.NoActionBar">
<item name="colorPrimary">@color/primary</item>
<item name="colorPrimaryDark">@color/primary_dark</item>
<item name="colorAccent">@color/accent</item>
<item name="android:statusBarColor">@color/primary_dark</item>
</style>
+
+ <!-- Night Vision Theme -->
+ <style name="Theme.Nav.NightVision" parent="Theme.MaterialComponents.NoActionBar">
+ <item name="colorPrimary">@color/night_red_primary</item>
+ <item name="colorPrimaryVariant">@color/night_red_variant</item>
+ <item name="colorOnPrimary">@color/night_on_red</item>
+ <item name="colorSecondary">@color/night_red_primary</item>
+ <item name="colorSecondaryVariant">@color/night_red_variant</item>
+ <item name="colorOnSecondary">@color/night_on_red</item>
+ <item name="android:colorBackground">@color/night_background</item>
+ <item name="colorSurface">@color/night_surface</item>
+ <item name="colorOnSurface">@color/night_on_surface</item>
+ <item name="android:statusBarColor" tools:targetApi="l">@color/night_background</item>
+ </style>
+
+ <!-- Instrument Display Styles -->
+ <style name="InstrumentLabel" parent="Widget.AppCompat.TextView">
+ <item name="android:layout_width">0dp</item>
+ <item name="android:layout_height">wrap_content</item>
+ <item name="android:gravity">center</item>
+ <item name="android:textColor">@color/instrument_text_normal</item>
+ <item name="android:textSize">@dimen/text_size_instrument_label</item>
+ <item name="android:textStyle">bold</item>
+ <item name="android:paddingTop">@dimen/instrument_padding</item>
+ <item name="android:paddingBottom">@dimen/instrument_padding</item>
+ </style>
+
+ <style name="InstrumentPrimaryValue" parent="Widget.AppCompat.TextView">
+ <item name="android:layout_width">0dp</item>
+ <item name="android:layout_height">wrap_content</item>
+ <item name="android:gravity">center</item>
+ <item name="android:textColor">@color/instrument_text_normal</item>
+ <item name="android:textSize">@dimen/text_size_instrument_primary</item>
+ <item name="android:textStyle">bold</item>
+ </style>
+
+ <style name="InstrumentSecondaryLabel" parent="Widget.AppCompat.TextView">
+ <item name="android:layout_width">0dp</item>
+ <item name="android:layout_height">wrap_content</item>
+ <item name="android:gravity">center</item>
+ <item name="android:textColor">@color/instrument_text_normal</item>
+ <item name="android:textSize">@dimen/text_size_instrument_secondary</item>
+ </style>
</resources>