Add dark mode support and fix app icon
- Switch to Material3 DayNight theme for system dark mode - Remove adaptive icon XMLs to use designed PNG icons - Remove hardcoded background from preview TextView
This commit is contained in:
@@ -1,32 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:width="108dp"
|
|
||||||
android:height="108dp"
|
|
||||||
android:viewportWidth="108"
|
|
||||||
android:viewportHeight="108">
|
|
||||||
<!-- Signal bars icon centered in adaptive icon safe zone -->
|
|
||||||
<group
|
|
||||||
android:translateX="27"
|
|
||||||
android:translateY="27">
|
|
||||||
<!-- Bar 1 (shortest) -->
|
|
||||||
<path
|
|
||||||
android:fillColor="#FFFFFF"
|
|
||||||
android:pathData="M4,44 L12,44 L12,54 L4,54 Z" />
|
|
||||||
<!-- Bar 2 -->
|
|
||||||
<path
|
|
||||||
android:fillColor="#FFFFFF"
|
|
||||||
android:pathData="M16,34 L24,34 L24,54 L16,54 Z" />
|
|
||||||
<!-- Bar 3 -->
|
|
||||||
<path
|
|
||||||
android:fillColor="#FFFFFF"
|
|
||||||
android:pathData="M28,24 L36,24 L36,54 L28,54 Z" />
|
|
||||||
<!-- Bar 4 (tallest) -->
|
|
||||||
<path
|
|
||||||
android:fillColor="#FFFFFF"
|
|
||||||
android:pathData="M40,14 L48,14 L48,54 L40,54 Z" />
|
|
||||||
<!-- API text -->
|
|
||||||
<path
|
|
||||||
android:fillColor="#FFFFFF"
|
|
||||||
android:pathData="M4,4 L10,4 L14,12 L18,4 L24,4 L24,6 L20,6 L16,14 L12,6 L8,6 L8,4 Z" />
|
|
||||||
</group>
|
|
||||||
</vector>
|
|
||||||
@@ -176,7 +176,6 @@
|
|||||||
android:id="@+id/previewText"
|
android:id="@+id/previewText"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="#F8F9FA"
|
|
||||||
android:fontFamily="monospace"
|
android:fontFamily="monospace"
|
||||||
android:padding="12dp"
|
android:padding="12dp"
|
||||||
android:textIsSelectable="true"
|
android:textIsSelectable="true"
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<background android:drawable="@color/primary"/>
|
|
||||||
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
|
|
||||||
</adaptive-icon>
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
|
||||||
<background android:drawable="@color/primary"/>
|
|
||||||
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
|
|
||||||
</adaptive-icon>
|
|
||||||
@@ -1,16 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<style name="Theme.TetherAPI" parent="Theme.Material3.Light.NoActionBar">
|
<style name="Theme.TetherAPI" parent="Theme.Material3.DayNight.NoActionBar">
|
||||||
<item name="colorPrimary">@color/primary</item>
|
<item name="colorPrimary">@color/primary</item>
|
||||||
<item name="colorPrimaryVariant">@color/primary_variant</item>
|
<item name="colorPrimaryVariant">@color/primary_variant</item>
|
||||||
<item name="colorSecondary">@color/secondary</item>
|
<item name="colorSecondary">@color/secondary</item>
|
||||||
<item name="android:colorBackground">@color/background</item>
|
|
||||||
<item name="colorSurface">@color/surface</item>
|
|
||||||
<item name="colorError">@color/error</item>
|
|
||||||
<item name="colorOnPrimary">@color/on_primary</item>
|
|
||||||
<item name="colorOnSecondary">@color/on_secondary</item>
|
|
||||||
<item name="colorOnBackground">@color/on_background</item>
|
|
||||||
<item name="colorOnSurface">@color/on_surface</item>
|
|
||||||
<item name="colorOnError">@color/on_error</item>
|
|
||||||
</style>
|
</style>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
Reference in New Issue
Block a user