diff --git a/app/src/main/java/com/example/lostmyphone/MainActivity.kt b/app/src/main/java/com/example/lostmyphone/MainActivity.kt
index ed67505..6123068 100644
--- a/app/src/main/java/com/example/lostmyphone/MainActivity.kt
+++ b/app/src/main/java/com/example/lostmyphone/MainActivity.kt
@@ -4,7 +4,6 @@ import android.Manifest
import android.app.NotificationManager
import android.content.Intent
import android.content.pm.PackageManager
-import android.graphics.Color
import android.os.Build
import android.os.Bundle
import android.provider.Settings
@@ -155,7 +154,9 @@ class MainActivity : AppCompatActivity() {
} else {
getString(R.string.dnd_status_denied)
}
- tvDnd.setTextColor(if (dndGranted) Color.parseColor("#4CAF50") else Color.parseColor("#F44336"))
+ tvDnd.setTextColor(
+ ContextCompat.getColor(this, if (dndGranted) R.color.status_good else R.color.status_bad)
+ )
tvStatus.text = buildString {
append("RECEIVE_SMS: ${if (isSmsGranted()) "granted" else "NOT granted"}\n")
diff --git a/app/src/main/res/drawable/bg_input.xml b/app/src/main/res/drawable/bg_input.xml
new file mode 100644
index 0000000..48fbe0f
--- /dev/null
+++ b/app/src/main/res/drawable/bg_input.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index 47c1bef..636e170 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -1,7 +1,9 @@
+
-
-
-
-
-
-
-
-
-
-
+
+
-
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_settings.xml b/app/src/main/res/layout/activity_settings.xml
index 4eb1b52..5effefa 100644
--- a/app/src/main/res/layout/activity_settings.xml
+++ b/app/src/main/res/layout/activity_settings.xml
@@ -1,7 +1,9 @@
+
-
-
-
-
+
+ android:layout_marginBottom="16dp">
-
-
-
-
-
-
-
-
-
-
+ android:orientation="vertical"
+ android:padding="18dp">
-
+
+
+
+
+
+
+
+
+
+
+
-
+ android:orientation="vertical"
+ android:padding="18dp">
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ android:layout_marginBottom="16dp">
-
+
-
+
-
+
-
-
+
-
+
-
+
-
-
-
-
-
-
-
-
-
-
+
+
+
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
index 04b6721..e1c7c2a 100644
--- a/app/src/main/res/values/colors.xml
+++ b/app/src/main/res/values/colors.xml
@@ -1,6 +1,17 @@
- #1A73E8
- #174EA6
- #FFFFFF
+ #0F0F13
+ #1A1A21
+ #23232C
+ #F2F2F5
+ #8F8F9C
+ #2C2C35
+ #7C7CF0
+ #101016
+ #3FB98A
+ #E5534B
+
+ @color/accent
+ @color/accent
+ @color/on_surface
\ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 99ec568..edcd5f3 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -2,6 +2,11 @@
Lost My Phone
+ Find your phone with an SMS
+ Do Not Disturb
+ Permissions
+ Ring
+
Ring Playback
Media playback channel for ring-alert playback
@@ -37,6 +42,10 @@
Ring Settings
Control the SMS trigger, the sound it plays, and how long it rings.
+ Trigger
+ Sound
+ Timing
+
Trigger phrase (SMS content)
e.g. RING_NOW
An incoming SMS containing exactly this text (case-insensitive, trimmed) triggers the ring.
diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml
index 45f565a..7e5c400 100644
--- a/app/src/main/res/values/themes.xml
+++ b/app/src/main/res/values/themes.xml
@@ -1,8 +1,31 @@
-
+
+
\ No newline at end of file