From cc411ba75de7bbc750c44b33893a79e9a5344416 Mon Sep 17 00:00:00 2001 From: kalynstricklin Date: Tue, 7 Jul 2026 09:31:41 -0500 Subject: [PATCH 1/2] updated switches to use material switch, updated back arrow + bottom nav color to match background color --- .../res/color/bottom_nav_selector.xml | 4 +- .../res/layout/activity_main.xml | 2 +- .../res/layout/pref_switch_bottom.xml | 6 +- .../res/layout/pref_switch_mid.xml | 6 +- .../res/layout/pref_switch_top.xml | 6 +- .../res/layout/preference_switch_item.xml | 7 +- sensorhub-android-app/res/values/colors.xml | 76 +++++++++---------- sensorhub-android-app/res/values/styles.xml | 18 +++-- .../res/xml/pref_settings.xml | 27 +++---- 9 files changed, 72 insertions(+), 80 deletions(-) diff --git a/sensorhub-android-app/res/color/bottom_nav_selector.xml b/sensorhub-android-app/res/color/bottom_nav_selector.xml index 68a6dc2..32651b2 100644 --- a/sensorhub-android-app/res/color/bottom_nav_selector.xml +++ b/sensorhub-android-app/res/color/bottom_nav_selector.xml @@ -1,5 +1,5 @@ - - + + diff --git a/sensorhub-android-app/res/layout/activity_main.xml b/sensorhub-android-app/res/layout/activity_main.xml index f7ce38a..104e5b3 100644 --- a/sensorhub-android-app/res/layout/activity_main.xml +++ b/sensorhub-android-app/res/layout/activity_main.xml @@ -83,7 +83,7 @@ android:id="@+id/bottom_nav" android:layout_width="match_parent" android:layout_height="75dp" - android:background="@color/md_theme_secondaryContainer" + android:background="@color/md_theme_background" app:itemIconTint="@color/bottom_nav_selector" app:itemTextColor="@color/bottom_nav_selector" app:menu="@menu/bottom_nav_menu" diff --git a/sensorhub-android-app/res/layout/pref_switch_bottom.xml b/sensorhub-android-app/res/layout/pref_switch_bottom.xml index 514d43b..d62c246 100644 --- a/sensorhub-android-app/res/layout/pref_switch_bottom.xml +++ b/sensorhub-android-app/res/layout/pref_switch_bottom.xml @@ -35,12 +35,10 @@ android:layout_marginTop="2dp" /> - + android:clickable="false" /> diff --git a/sensorhub-android-app/res/layout/pref_switch_mid.xml b/sensorhub-android-app/res/layout/pref_switch_mid.xml index 4141a24..82b7919 100644 --- a/sensorhub-android-app/res/layout/pref_switch_mid.xml +++ b/sensorhub-android-app/res/layout/pref_switch_mid.xml @@ -35,12 +35,10 @@ android:layout_marginTop="2dp" /> - + android:clickable="false" /> diff --git a/sensorhub-android-app/res/layout/pref_switch_top.xml b/sensorhub-android-app/res/layout/pref_switch_top.xml index 9bf2228..e23458f 100644 --- a/sensorhub-android-app/res/layout/pref_switch_top.xml +++ b/sensorhub-android-app/res/layout/pref_switch_top.xml @@ -35,12 +35,10 @@ android:layout_marginTop="2dp" /> - + android:clickable="false" /> diff --git a/sensorhub-android-app/res/layout/preference_switch_item.xml b/sensorhub-android-app/res/layout/preference_switch_item.xml index 24ec3c5..6a6101c 100644 --- a/sensorhub-android-app/res/layout/preference_switch_item.xml +++ b/sensorhub-android-app/res/layout/preference_switch_item.xml @@ -30,16 +30,13 @@ android:textAlignment="viewStart" /> - + android:paddingEnd="0dp" /> \ No newline at end of file diff --git a/sensorhub-android-app/res/values/colors.xml b/sensorhub-android-app/res/values/colors.xml index d04f4a1..425e6c5 100644 --- a/sensorhub-android-app/res/values/colors.xml +++ b/sensorhub-android-app/res/values/colors.xml @@ -1,73 +1,73 @@ - #D35400 + #E64A19 #FFFFFF - #24160A - #E6B89C + #4E1700 + #FFCCBC - #C24E00 + #BF360C - #9A9A9A + #9E9E9E #0A0A0A - #242424 - #F5F5F5 + #424242 + #E0E0E0 - #B84A0D + #FF7043 #FFFFFF - #1C0A00 - #E6B89C + #4E1700 + #FFCCBC #CF6679 #1C0006 - #4A0011 - #FFB3BA + #93000A + #FFDAD6 - #0A0A0A + #121212 - #F5F5F5 + #E0E0E0 - #141414 - #F5F5F5 + #1E1E1E + #E0E0E0 - #1C1C1C - #9A9A9A + #2C2C2C + #BDBDBD - #2E2E2E + #616161 - #0A0A0A - #141414 - #1C1C1C - #242424 + #E64A19 + #1E1E1E + #2C2C2C + #333333 - #F5F5F5 - #9A9A9A - #5A5A5A + #E0E0E0 + #BDBDBD + #757575 - #D35400 - #C24E00 - #1AD35400 + #E64A19 + #BF360C + #1AE64A19 - #141414 - #F5F5F5 + #E64A19 + #FFFFFF - #141414 - #D35400 - #6A6A6A + #1E1E1E + #E64A19 + #757575 #4CAF50 - #F44336 + #EF5350 #FF9800 - #5A5A5A + #757575 #1AFFFFFF #99000000 - #1C1C1C + #2C2C2C - \ No newline at end of file + diff --git a/sensorhub-android-app/res/values/styles.xml b/sensorhub-android-app/res/values/styles.xml index f7d52d6..52d73e7 100644 --- a/sensorhub-android-app/res/values/styles.xml +++ b/sensorhub-android-app/res/values/styles.xml @@ -4,7 +4,7 @@ - @@ -214,6 +217,8 @@ bold sans-serif-medium 16sp + 10dp + - \ No newline at end of file diff --git a/sensorhub-android-app/res/xml/pref_settings.xml b/sensorhub-android-app/res/xml/pref_settings.xml index 4394087..6a30d18 100644 --- a/sensorhub-android-app/res/xml/pref_settings.xml +++ b/sensorhub-android-app/res/xml/pref_settings.xml @@ -1,28 +1,26 @@ + xmlns:app="http://schemas.android.com/apk/res-auto"> - - + + + android:selectAllOnFocus="true" + app:useSimpleSummaryProvider="true" + android:layout="@layout/pref_value_single" /> - - - + + android:layout="@layout/pref_switch_top" /> + android:layout="@layout/pref_switch_mid" /> + android:layout="@layout/pref_switch_bottom" /> + android:layout="@layout/pref_edit_bottom" /> - - \ No newline at end of file + From 8cb780ed89c26d0b2b51a68b5252322feaa8c0aa Mon Sep 17 00:00:00 2001 From: kalynstricklin Date: Tue, 7 Jul 2026 14:01:44 -0500 Subject: [PATCH 2/2] updated theme --- .../layout/activity_edit_server_profile.xml | 6 +++--- .../res/layout/fragment_dashboard.xml | 4 ++-- .../res/layout/item_faq_entry.xml | 8 ++++---- .../res/layout/item_server_profile.xml | 3 +-- .../res/layout/item_server_status.xml | 2 +- sensorhub-android-app/res/values/colors.xml | 3 ++- sensorhub-android-app/res/values/styles.xml | 12 ++++++++++++ .../sensorhub/android/DashboardFragment.java | 19 +++++++++++++++++++ 8 files changed, 44 insertions(+), 13 deletions(-) diff --git a/sensorhub-android-app/res/layout/activity_edit_server_profile.xml b/sensorhub-android-app/res/layout/activity_edit_server_profile.xml index 87f7256..b819919 100644 --- a/sensorhub-android-app/res/layout/activity_edit_server_profile.xml +++ b/sensorhub-android-app/res/layout/activity_edit_server_profile.xml @@ -36,7 +36,7 @@ app:cardCornerRadius="@dimen/card_corner_radius" app:cardElevation="0dp" app:strokeColor="@color/md_theme_outline" - app:strokeWidth="1dp"> + app:strokeWidth="0dp"> + app:strokeWidth="0dp"> + app:strokeWidth="0dp"> + app:strokeWidth="0dp"> + app:strokeWidth="0dp"> + app:cardBackgroundColor="@color/dialog_bg"> @@ -36,7 +36,7 @@ android:layout_height="24dp" android:layout_marginStart="8dp" android:src="@drawable/ic_expand_more" - app:tint="@color/md_theme_onSurfaceVariant" + app:tint="@android:color/white" android:contentDescription="Expand" /> @@ -46,7 +46,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="12dp" - android:textColor="@color/md_theme_onSurfaceVariant" + android:textColor="@android:color/white" android:textSize="14sp" android:lineSpacingExtra="4dp" android:visibility="gone" /> diff --git a/sensorhub-android-app/res/layout/item_server_profile.xml b/sensorhub-android-app/res/layout/item_server_profile.xml index 45fa407..19bdf7d 100644 --- a/sensorhub-android-app/res/layout/item_server_profile.xml +++ b/sensorhub-android-app/res/layout/item_server_profile.xml @@ -11,8 +11,7 @@ app:cardCornerRadius="@dimen/card_corner_radius" app:cardElevation="0dp" app:cardBackgroundColor="@color/surface_card" - app:strokeColor="@color/md_theme_outline" - app:strokeWidth="1dp"> + app:strokeWidth="0dp"> + app:strokeWidth="0dp"> #1AFFFFFF #99000000 - #2C2C2C + #212121 + #212121 diff --git a/sensorhub-android-app/res/values/styles.xml b/sensorhub-android-app/res/values/styles.xml index 52d73e7..bdd6d7f 100644 --- a/sensorhub-android-app/res/values/styles.xml +++ b/sensorhub-android-app/res/values/styles.xml @@ -52,9 +52,21 @@ @style/AppCard @style/AppButton @style/AppTextInput + @style/AppDialog + @style/AppDialog +