diff --git a/app/build.gradle b/app/build.gradle
index 2718d09..80a3bc4 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -47,7 +47,7 @@ dependencies {
implementation 'me.dm7.barcodescanner:zxing:1.9.8'
implementation 'com.beust:klaxon:5.5'
implementation 'com.squareup.okhttp3:okhttp:4.3.0'
- implementation 'com.google.android.material:material:1.1.0-beta02'
+ implementation 'com.google.android.material:material:1.4.0'
implementation 'net.swiftzer.semver:semver:1.1.1'
implementation 'io.sentry:sentry-android:1.7.27'
implementation 'org.slf4j:slf4j-nop:1.7.25'
diff --git a/app/src/main/ic_launcher-playstore-dark.png b/app/src/main/ic_launcher-playstore-dark.png
new file mode 100644
index 0000000..3e08559
Binary files /dev/null and b/app/src/main/ic_launcher-playstore-dark.png differ
diff --git a/app/src/main/ic_launcher-playstore-light.png b/app/src/main/ic_launcher-playstore-light.png
new file mode 100644
index 0000000..e376018
Binary files /dev/null and b/app/src/main/ic_launcher-playstore-light.png differ
diff --git a/app/src/main/ic_launcher-playstore.png b/app/src/main/ic_launcher-playstore.png
deleted file mode 100644
index cafe08c..0000000
Binary files a/app/src/main/ic_launcher-playstore.png and /dev/null differ
diff --git a/app/src/main/java/tech/httptoolkit/android/ApplicationListActivity.kt b/app/src/main/java/tech/httptoolkit/android/ApplicationListActivity.kt
index 40f7b5d..3244d21 100644
--- a/app/src/main/java/tech/httptoolkit/android/ApplicationListActivity.kt
+++ b/app/src/main/java/tech/httptoolkit/android/ApplicationListActivity.kt
@@ -9,6 +9,7 @@ import android.view.MenuItem
import android.view.View
import android.widget.PopupMenu
import androidx.appcompat.app.AppCompatActivity
+import androidx.appcompat.view.ContextThemeWrapper
import androidx.core.widget.doAfterTextChanged
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout
import kotlinx.android.synthetic.main.apps_list.*
@@ -146,7 +147,7 @@ class ApplicationListActivity : AppCompatActivity(), SwipeRefreshLayout.OnRefres
override fun onClick(v: View?) {
when (v?.id) {
R.id.apps_list_more_menu -> {
- PopupMenu(this, apps_list_more_menu).apply {
+ PopupMenu(ContextThemeWrapper(this, R.style.PopupMenu), apps_list_more_menu).apply {
this.inflate(R.menu.menu_app_list)
this.menu.findItem(R.id.action_show_system).isChecked = showSystem
this.menu.findItem(R.id.action_show_enabled).isChecked = showEnabledOnly
diff --git a/app/src/main/java/tech/httptoolkit/android/PortListActivity.kt b/app/src/main/java/tech/httptoolkit/android/PortListActivity.kt
index c177712..a0d787e 100644
--- a/app/src/main/java/tech/httptoolkit/android/PortListActivity.kt
+++ b/app/src/main/java/tech/httptoolkit/android/PortListActivity.kt
@@ -4,6 +4,7 @@ import android.content.Intent
import android.os.Bundle
import android.widget.PopupMenu
import androidx.appcompat.app.AppCompatActivity
+import androidx.appcompat.view.ContextThemeWrapper
import androidx.core.widget.doAfterTextChanged
import kotlinx.android.synthetic.main.ports_list.*
import kotlinx.coroutines.*
@@ -55,7 +56,7 @@ class PortListActivity : AppCompatActivity(), CoroutineScope by MainScope() {
// Show the menu, and listen for clicks:
ports_list_more_menu.setOnClickListener {
- PopupMenu(this, ports_list_more_menu).apply {
+ PopupMenu(ContextThemeWrapper(this, R.style.PopupMenu), ports_list_more_menu).apply {
this.inflate(R.menu.menu_ports_list)
this.menu.findItem(R.id.action_reset_ports).isEnabled =
diff --git a/app/src/main/res/drawable-night/ic_launcher_background.png b/app/src/main/res/drawable-night/ic_launcher_background.png
new file mode 100644
index 0000000..597340d
Binary files /dev/null and b/app/src/main/res/drawable-night/ic_launcher_background.png differ
diff --git a/app/src/main/res/drawable/ic_launcher_background.png b/app/src/main/res/drawable/ic_launcher_background.png
new file mode 100644
index 0000000..0b439b2
Binary files /dev/null and b/app/src/main/res/drawable/ic_launcher_background.png differ
diff --git a/app/src/main/res/drawable/ic_launcher_background.xml b/app/src/main/res/drawable/ic_launcher_background.xml
deleted file mode 100644
index a0ad202..0000000
--- a/app/src/main/res/drawable/ic_launcher_background.xml
+++ /dev/null
@@ -1,74 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/app/src/main/res/drawable/ic_launcher_foreground.xml b/app/src/main/res/drawable/ic_launcher_foreground.xml
index f40fcb1..df2da75 100644
--- a/app/src/main/res/drawable/ic_launcher_foreground.xml
+++ b/app/src/main/res/drawable/ic_launcher_foreground.xml
@@ -1,31 +1,23 @@
-
+ android:viewportWidth="120"
+ android:viewportHeight="120">
+
+ android:pathData="M39,107.6L64,22.1l0,0c0.2,-0.8 1,-1.4 1.9,-1.4H75c0.9,0 1.5,0.8 1.3,1.7l-27.9,95.8c-0.3,1.1 -1.3,1.9 -2.5,1.9H23.6C10.6,120 0,109.4 0,96.4V23.6C0,10.6 10.6,0 23.6,0H81c0.9,0 1.5,0.8 1.3,1.7L79.6,11c-0.2,0.8 -1,1.4 -1.9,1.4H23.4c-6.1,0 -11,4.9 -11,11v73.2c0,6.1 4.9,11 11,11H39z"
+ android:fillColor="#E24120"/>
+ android:pathData="M96.4,0c13,0 23.6,10.6 23.6,23.6v72.8c0,13 -10.6,23.6 -23.6,23.6H57.8c-0.9,0 -1.5,-0.8 -1.3,-1.7l2.7,-9.3c0.2,-0.8 1,-1.4 1.9,-1.4h35.5c6.1,0 11,-4.9 11,-11V23.4c0,-5 -3.3,-9.2 -7.9,-10.6l-24.8,85c-0.2,0.8 -1,1.4 -1.9,1.4h-9.2c-0.9,0 -1.5,-0.8 -1.3,-1.7L90.5,1.9C90.8,0.8 91.8,0 93,0H96.4L96.4,0z"
+ android:fillColor="#E24120"/>
+ android:pathData="M34.2,37.2h2c2.9,0 5.2,2.3 5.2,5.2v2c0,2.9 -2.3,5.2 -5.2,5.2h-2c-2.9,0 -5.2,-2.3 -5.2,-5.2v-2C29,39.6 31.3,37.2 34.2,37.2z"
+ android:fillColor="#E24120"/>
+ android:pathData="M34.2,66.2h2c2.9,0 5.2,2.3 5.2,5.2v2c0,2.9 -2.3,5.2 -5.2,5.2h-2c-2.9,0 -5.2,-2.3 -5.2,-5.2v-2C29,68.5 31.3,66.2 34.2,66.2z"
+ android:fillColor="#E24120"/>
diff --git a/app/src/main/res/drawable/ic_transparent_icon.xml b/app/src/main/res/drawable/ic_transparent_icon.xml
index 7f359c1..99efb45 100644
--- a/app/src/main/res/drawable/ic_transparent_icon.xml
+++ b/app/src/main/res/drawable/ic_transparent_icon.xml
@@ -1,30 +1,18 @@
+ android:width="120dp"
+ android:height="120dp"
+ android:viewportWidth="120"
+ android:viewportHeight="120">
+ android:pathData="M39,107.6L64,22.1l0,0c0.2,-0.8 1,-1.4 1.9,-1.4H75c0.9,0 1.5,0.8 1.3,1.7l-27.9,95.8c-0.3,1.1 -1.3,1.9 -2.5,1.9H23.6C10.6,120 0,109.4 0,96.4V23.6C0,10.6 10.6,0 23.6,0H81c0.9,0 1.5,0.8 1.3,1.7L79.6,11c-0.2,0.8 -1,1.4 -1.9,1.4H23.4c-6.1,0 -11,4.9 -11,11v73.2c0,6.1 4.9,11 11,11H39z"
+ android:fillColor="#E24120"/>
+ android:pathData="M96.4,0c13,0 23.6,10.6 23.6,23.6v72.8c0,13 -10.6,23.6 -23.6,23.6H57.8c-0.9,0 -1.5,-0.8 -1.3,-1.7l2.7,-9.3c0.2,-0.8 1,-1.4 1.9,-1.4h35.5c6.1,0 11,-4.9 11,-11V23.4c0,-5 -3.3,-9.2 -7.9,-10.6l-24.8,85c-0.2,0.8 -1,1.4 -1.9,1.4h-9.2c-0.9,0 -1.5,-0.8 -1.3,-1.7L90.5,1.9C90.8,0.8 91.8,0 93,0H96.4L96.4,0z"
+ android:fillColor="#E24120"/>
+ android:pathData="M34.2,37.2h2c2.9,0 5.2,2.3 5.2,5.2v2c0,2.9 -2.3,5.2 -5.2,5.2h-2c-2.9,0 -5.2,-2.3 -5.2,-5.2v-2C29,39.6 31.3,37.2 34.2,37.2z"
+ android:fillColor="#E24120"/>
+ android:pathData="M34.2,66.2h2c2.9,0 5.2,2.3 5.2,5.2v2c0,2.9 -2.3,5.2 -5.2,5.2h-2c-2.9,0 -5.2,-2.3 -5.2,-5.2v-2C29,68.5 31.3,66.2 34.2,66.2z"
+ android:fillColor="#E24120"/>
diff --git a/app/src/main/res/font/dmsans.ttf b/app/src/main/res/font/dmsans.ttf
new file mode 100644
index 0000000..07266ae
Binary files /dev/null and b/app/src/main/res/font/dmsans.ttf differ
diff --git a/app/src/main/res/font/dmsans_bold.ttf b/app/src/main/res/font/dmsans_bold.ttf
new file mode 100644
index 0000000..4f5412d
Binary files /dev/null and b/app/src/main/res/font/dmsans_bold.ttf differ
diff --git a/app/src/main/res/font/lato.ttf b/app/src/main/res/font/lato.ttf
deleted file mode 100644
index 04ea8ef..0000000
Binary files a/app/src/main/res/font/lato.ttf and /dev/null differ
diff --git a/app/src/main/res/font/lato_bold.ttf b/app/src/main/res/font/lato_bold.ttf
deleted file mode 100644
index 7434369..0000000
Binary files a/app/src/main/res/font/lato_bold.ttf and /dev/null differ
diff --git a/app/src/main/res/layout/app_interception_status.xml b/app/src/main/res/layout/app_interception_status.xml
index 3ad490b..a20f48c 100644
--- a/app/src/main/res/layout/app_interception_status.xml
+++ b/app/src/main/res/layout/app_interception_status.xml
@@ -26,7 +26,7 @@
style="@style/ConnectionStatusButtonText"
android:layout_width="wrap_content"
android:layout_height="match_parent"
- android:drawableStart="@drawable/ic_apps_24"
+ app:drawableStartCompat="@drawable/ic_apps_24"
android:text="@string/all_apps" />
@@ -47,7 +47,7 @@
style="@style/ConnectionStatusButtonText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:drawableStart="@drawable/ic_network_ports_24"
+ app:drawableStartCompat="@drawable/ic_network_ports_24"
android:text="@string/default_ports" />
diff --git a/app/src/main/res/layout/apps_list.xml b/app/src/main/res/layout/apps_list.xml
index d5d5478..24a7801 100644
--- a/app/src/main/res/layout/apps_list.xml
+++ b/app/src/main/res/layout/apps_list.xml
@@ -11,7 +11,8 @@
android:layout_height="wrap_content"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
- app:cardBackgroundColor="#FFFFFF"
+
+ app:cardBackgroundColor="@color/textInputBackground"
app:cardCornerRadius="2dp"
app:cardElevation="4dp"
app:cardUseCompatPadding="true">
@@ -26,6 +27,8 @@
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@android:color/transparent"
+ android:textColor="@color/textInputColor"
+ android:textColorHint="@color/textInputPlaceholderColor"
android:hint="@string/all_applications"
android:padding="16dp"
android:textSize="18sp"
@@ -37,6 +40,7 @@
android:layout_height="wrap_content"
android:id="@+id/apps_list_more_menu"
android:padding="16dp"
+ app:tint="@color/textInputColor"
app:srcCompat="@drawable/ic_baseline_more_vert_24"
tools:ignore="ContentDescription" />
diff --git a/app/src/main/res/layout/connection_status_user.xml b/app/src/main/res/layout/connection_status_user.xml
index a5fe926..ae8b2fd 100644
--- a/app/src/main/res/layout/connection_status_user.xml
+++ b/app/src/main/res/layout/connection_status_user.xml
@@ -42,7 +42,6 @@
style="@style/ConnectionStatusText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:textColorLink="@color/primaryInputBackground"
android:text="@string/user_connection_status_details" />
diff --git a/app/src/main/res/layout/item_app_row.xml b/app/src/main/res/layout/item_app_row.xml
index 1a0a401..463d382 100644
--- a/app/src/main/res/layout/item_app_row.xml
+++ b/app/src/main/res/layout/item_app_row.xml
@@ -24,6 +24,7 @@
android:layout_toEndOf="@id/row_app_icon_image"
android:paddingStart="16dp"
android:paddingEnd="16dp"
+ android:textColor="@color/textColor"
tools:text="@tools:sample/full_names" />
\ No newline at end of file
diff --git a/app/src/main/res/layout/main_layout.xml b/app/src/main/res/layout/main_layout.xml
index d091bbb..21b9078 100644
--- a/app/src/main/res/layout/main_layout.xml
+++ b/app/src/main/res/layout/main_layout.xml
@@ -18,7 +18,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:alpha="0.3"
- android:tint="#fff"
+ app:tint="@color/mainBackground"
android:layout_marginBottom="120dp"
app:srcCompat="@drawable/ic_transparent_icon"
tools:ignore="ContentDescription" />
diff --git a/app/src/main/res/layout/ports_list.xml b/app/src/main/res/layout/ports_list.xml
index 36f96ff..a9b048c 100644
--- a/app/src/main/res/layout/ports_list.xml
+++ b/app/src/main/res/layout/ports_list.xml
@@ -20,7 +20,8 @@
android:layout_height="wrap_content"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
- app:cardBackgroundColor="#FFFFFF"
+
+ app:cardBackgroundColor="@color/textInputBackground"
app:cardCornerRadius="2dp"
app:cardElevation="4dp"
app:cardUseCompatPadding="true">
@@ -35,6 +36,8 @@
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@android:color/transparent"
+ android:textColor="@color/textInputColor"
+ android:textColorHint="@color/textInputPlaceholderColor"
android:hint="@string/add_port_prompt"
android:padding="16dp"
android:textSize="18sp"
@@ -51,6 +54,7 @@
android:layout_height="wrap_content"
android:minWidth="0dp"
android:minHeight="0dp"
+ app:tint="@color/textInputColor"
tools:ignore="ContentDescription,RtlSymmetry" />
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
index ef49c99..50ec886 100644
--- a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
index ef49c99..50ec886 100644
--- a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.png b/app/src/main/res/mipmap-hdpi/ic_launcher.png
index be158bc..28748e8 100644
Binary files a/app/src/main/res/mipmap-hdpi/ic_launcher.png and b/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
index 5f8d470..32af5a5 100644
Binary files a/app/src/main/res/mipmap-hdpi/ic_launcher_round.png and b/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher.png b/app/src/main/res/mipmap-mdpi/ic_launcher.png
index 3eaf311..b771754 100644
Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher.png and b/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
index 01f63f9..0ef5ea0 100644
Binary files a/app/src/main/res/mipmap-mdpi/ic_launcher_round.png and b/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/app/src/main/res/mipmap-xhdpi/ic_launcher.png
index 463c03e..8b23457 100644
Binary files a/app/src/main/res/mipmap-xhdpi/ic_launcher.png and b/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
index d5983f8..c124bfa 100644
Binary files a/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png and b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
index a83ba3a..f4b5892 100644
Binary files a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
index 17afc24..b7ca95f 100644
Binary files a/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png and b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
index 522a112..b7e427b 100644
Binary files a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
index 06b62d2..ba14d53 100644
Binary files a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/values-night/colors.xml b/app/src/main/res/values-night/colors.xml
new file mode 100644
index 0000000..abf8ebe
--- /dev/null
+++ b/app/src/main/res/values-night/colors.xml
@@ -0,0 +1,22 @@
+
+
+ #ffffff
+ #e1421f
+ #9a9da8
+ #567BFF
+
+ #4caf7d
+ #f1971f
+
+ #1e2028
+ #32343b
+
+ #2d4cbd
+ #ffffff
+
+ #32343b
+ #ffffff
+ #818490
+
+ #00000000
+
diff --git a/app/src/main/res/values-v23/styles.xml b/app/src/main/res/values-v23/styles.xml
deleted file mode 100644
index 454351f..0000000
--- a/app/src/main/res/values-v23/styles.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
index 0fec6b8..6a9a579 100644
--- a/app/src/main/res/values/colors.xml
+++ b/app/src/main/res/values/colors.xml
@@ -1,17 +1,22 @@
- #222222
+ #1e2028
#e1421f
- #808f8f
+ #818490
+ #0C36CF
#4caf7d
#f1971f
- #d8e2e6
+ #e4e8ed
#fafafa
- #1076b9
- #fafafa
+ #2d4cbd
+ #ffffff
+
+ #fafafa
+ #1e2028
+ #53565e
#00000000
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index c8ce23e..e23f334 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -1,21 +1,33 @@
-
+
+
+
+