kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
Fix UI contrast and theming (#871)
rodzic
5c98936e23
commit
d16b87f5e8
|
@ -1,17 +1,18 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="@color/colorAdvancedBackground">
|
android:background="@color/colorAdvancedBackground"
|
||||||
|
>
|
||||||
|
|
||||||
<com.google.android.material.appbar.MaterialToolbar
|
<com.google.android.material.appbar.MaterialToolbar
|
||||||
|
|
||||||
android:id="@+id/toolbar"
|
android:id="@+id/toolbar"
|
||||||
style="@style/MyToolbar"
|
style="@style/MyToolbar"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="?attr/actionBarSize"
|
android:layout_height="?attr/actionBarSize"
|
||||||
android:background="@color/colorPrimary"
|
android:background="@color/toolbarBackground"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:navigationIcon="?android:attr/homeAsUpIndicator">
|
app:navigationIcon="?android:attr/homeAsUpIndicator">
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,17 @@
|
||||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
<menu
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
|
>
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/connectStatusImage"
|
android:id="@+id/connectStatusImage"
|
||||||
android:contentDescription="@string/connection_status"
|
android:contentDescription="@string/connection_status"
|
||||||
android:icon="@drawable/cloud_off"
|
android:icon="@drawable/cloud_off"
|
||||||
app:iconTint="@color/colorOnPrimary"
|
app:iconTint="@color/toolbarText"
|
||||||
android:title="@string/disconnected"
|
android:title="@string/disconnected"
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="ifRoom"
|
||||||
|
/>
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/debug"
|
android:id="@+id/debug"
|
||||||
android:title="@string/debug_panel"
|
android:title="@string/debug_panel"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<color name="colorOnPrimary">#67EA94</color>
|
<color name="colorOnPrimary">#141414</color>
|
||||||
<color name="colorPrimary">#141414</color>
|
<color name="colorPrimary">#67EA94</color>
|
||||||
<color name="colorPrimaryDark">#141414</color>
|
<color name="colorPrimaryDark">#141414</color>
|
||||||
<color name="colorMsg">#212121</color>
|
<color name="colorMsg">#212121</color>
|
||||||
<color name="colorMyMsg">#28463C</color>
|
<color name="colorMyMsg">#28463C</color>
|
||||||
|
@ -11,4 +11,6 @@
|
||||||
<color name="selectedColor">#67EA94</color>
|
<color name="selectedColor">#67EA94</color>
|
||||||
<color name="unselectedColor">#AAAAAA</color>
|
<color name="unselectedColor">#AAAAAA</color>
|
||||||
<color name="colorAnnotation">#039BE5</color>
|
<color name="colorAnnotation">#039BE5</color>
|
||||||
|
<color name="toolbarBackground">#141414</color>
|
||||||
|
<color name="toolbarText">#67EA94</color>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -13,4 +13,6 @@
|
||||||
<color name="buttonColor">#67EA94</color>
|
<color name="buttonColor">#67EA94</color>
|
||||||
<color name="colourGrey">#535353</color>
|
<color name="colourGrey">#535353</color>
|
||||||
<color name="colorAnnotation">#0288D1</color>
|
<color name="colorAnnotation">#0288D1</color>
|
||||||
|
<color name="toolbarBackground">#67EA94</color>
|
||||||
|
<color name="toolbarText">#FFFFFF</color>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -70,9 +70,8 @@
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="MyThemeOverlay_Toolbar" parent="">
|
<style name="MyThemeOverlay_Toolbar" parent="">
|
||||||
<item name="background">@color/colorPrimary</item>
|
<item name="android:textColorPrimary">@color/toolbarText</item>
|
||||||
<item name="android:textColorPrimary">@color/colorOnPrimary</item>
|
<item name="tint">@color/toolbarText</item>
|
||||||
<item name="tint">@color/colorOnPrimary</item>
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="MyActionBar" parent="@style/ThemeOverlay.MaterialComponents.ActionBar">
|
<style name="MyActionBar" parent="@style/ThemeOverlay.MaterialComponents.ActionBar">
|
||||||
|
|
Ładowanie…
Reference in New Issue