diff --git a/app/src/main/kotlin/com/simplemobiletools/clock/extensions/Context.kt b/app/src/main/kotlin/com/simplemobiletools/clock/extensions/Context.kt index 8dc24594..d63114b6 100644 --- a/app/src/main/kotlin/com/simplemobiletools/clock/extensions/Context.kt +++ b/app/src/main/kotlin/com/simplemobiletools/clock/extensions/Context.kt @@ -313,7 +313,7 @@ fun Context.getTimerNotification(timer: Timer, pendingIntent: PendingIntent, add val builder = NotificationCompat.Builder(this) .setContentTitle(if(timer.label.isEmpty()) getString(R.string.timer) else timer.label) .setContentText(getString(R.string.time_expired)) - .setSmallIcon(R.drawable.ic_timer) + .setSmallIcon(R.drawable.ic_hourglass_vector) .setContentIntent(pendingIntent) .setPriority(NotificationCompat.PRIORITY_MAX) .setDefaults(Notification.DEFAULT_LIGHTS) diff --git a/app/src/main/kotlin/com/simplemobiletools/clock/fragments/StopwatchFragment.kt b/app/src/main/kotlin/com/simplemobiletools/clock/fragments/StopwatchFragment.kt index 9aa37fb8..b2dc7b6d 100644 --- a/app/src/main/kotlin/com/simplemobiletools/clock/fragments/StopwatchFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/clock/fragments/StopwatchFragment.kt @@ -267,7 +267,7 @@ class StopwatchFragment : Fragment() { } private fun updateSortingIndicators() { - var bitmap = requireContext().resources.getColoredBitmap(R.drawable.ic_sorting_triangle, requireContext().getAdjustedPrimaryColor()) + var bitmap = requireContext().resources.getColoredBitmap(R.drawable.ic_sorting_triangle_vector, requireContext().getAdjustedPrimaryColor()) view.apply { stopwatch_sorting_indicator_1.beInvisibleIf(sorting and SORT_BY_LAP == 0) stopwatch_sorting_indicator_2.beInvisibleIf(sorting and SORT_BY_LAP_TIME == 0) diff --git a/app/src/main/kotlin/com/simplemobiletools/clock/services/TimerService.kt b/app/src/main/kotlin/com/simplemobiletools/clock/services/TimerService.kt index ea8e7f36..efce8159 100644 --- a/app/src/main/kotlin/com/simplemobiletools/clock/services/TimerService.kt +++ b/app/src/main/kotlin/com/simplemobiletools/clock/services/TimerService.kt @@ -102,7 +102,7 @@ class TimerService : Service() { val builder = NotificationCompat.Builder(this) .setContentTitle(title) .setContentText(contentText) - .setSmallIcon(R.drawable.ic_timer) + .setSmallIcon(R.drawable.ic_hourglass_vector) .setPriority(Notification.PRIORITY_DEFAULT) .setSound(null) .setOngoing(true) diff --git a/app/src/main/res/drawable-hdpi/ic_dismiss_alarm_big.png b/app/src/main/res/drawable-hdpi/ic_dismiss_alarm_big.png deleted file mode 100644 index 28988eb4..00000000 Binary files a/app/src/main/res/drawable-hdpi/ic_dismiss_alarm_big.png and /dev/null differ diff --git a/app/src/main/res/drawable-hdpi/ic_sorting_triangle.png b/app/src/main/res/drawable-hdpi/ic_sorting_triangle.png deleted file mode 100644 index 0bb1f5e6..00000000 Binary files a/app/src/main/res/drawable-hdpi/ic_sorting_triangle.png and /dev/null differ diff --git a/app/src/main/res/drawable-hdpi/ic_timer.png b/app/src/main/res/drawable-hdpi/ic_timer.png deleted file mode 100644 index b2360106..00000000 Binary files a/app/src/main/res/drawable-hdpi/ic_timer.png and /dev/null differ diff --git a/app/src/main/res/drawable-xhdpi/ic_dismiss_alarm_big.png b/app/src/main/res/drawable-xhdpi/ic_dismiss_alarm_big.png deleted file mode 100644 index 4703ce91..00000000 Binary files a/app/src/main/res/drawable-xhdpi/ic_dismiss_alarm_big.png and /dev/null differ diff --git a/app/src/main/res/drawable-xhdpi/ic_sorting_triangle.png b/app/src/main/res/drawable-xhdpi/ic_sorting_triangle.png deleted file mode 100644 index a2f99e7d..00000000 Binary files a/app/src/main/res/drawable-xhdpi/ic_sorting_triangle.png and /dev/null differ diff --git a/app/src/main/res/drawable-xhdpi/ic_timer.png b/app/src/main/res/drawable-xhdpi/ic_timer.png deleted file mode 100644 index 621fb4d4..00000000 Binary files a/app/src/main/res/drawable-xhdpi/ic_timer.png and /dev/null differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_dismiss_alarm_big.png b/app/src/main/res/drawable-xxhdpi/ic_dismiss_alarm_big.png deleted file mode 100644 index fadca3b5..00000000 Binary files a/app/src/main/res/drawable-xxhdpi/ic_dismiss_alarm_big.png and /dev/null differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_sorting_triangle.png b/app/src/main/res/drawable-xxhdpi/ic_sorting_triangle.png deleted file mode 100644 index 3422289b..00000000 Binary files a/app/src/main/res/drawable-xxhdpi/ic_sorting_triangle.png and /dev/null differ diff --git a/app/src/main/res/drawable-xxhdpi/ic_timer.png b/app/src/main/res/drawable-xxhdpi/ic_timer.png deleted file mode 100644 index d662b66e..00000000 Binary files a/app/src/main/res/drawable-xxhdpi/ic_timer.png and /dev/null differ diff --git a/app/src/main/res/drawable-xxxhdpi/ic_dismiss_alarm_big.png b/app/src/main/res/drawable-xxxhdpi/ic_dismiss_alarm_big.png deleted file mode 100644 index 222be58d..00000000 Binary files a/app/src/main/res/drawable-xxxhdpi/ic_dismiss_alarm_big.png and /dev/null differ diff --git a/app/src/main/res/drawable-xxxhdpi/ic_sorting_triangle.png b/app/src/main/res/drawable-xxxhdpi/ic_sorting_triangle.png deleted file mode 100644 index 4c0f76b6..00000000 Binary files a/app/src/main/res/drawable-xxxhdpi/ic_sorting_triangle.png and /dev/null differ diff --git a/app/src/main/res/drawable-xxxhdpi/ic_timer.png b/app/src/main/res/drawable-xxxhdpi/ic_timer.png deleted file mode 100644 index 1c68403a..00000000 Binary files a/app/src/main/res/drawable-xxxhdpi/ic_timer.png and /dev/null differ diff --git a/app/src/main/res/drawable/ic_alarm_off_vector.xml b/app/src/main/res/drawable/ic_alarm_off_vector.xml new file mode 100644 index 00000000..3ed91869 --- /dev/null +++ b/app/src/main/res/drawable/ic_alarm_off_vector.xml @@ -0,0 +1,3 @@ + + + diff --git a/app/src/main/res/drawable/ic_alarm_vector.xml b/app/src/main/res/drawable/ic_alarm_vector.xml index a1ba6700..c02d78ba 100644 --- a/app/src/main/res/drawable/ic_alarm_vector.xml +++ b/app/src/main/res/drawable/ic_alarm_vector.xml @@ -1,11 +1,3 @@ - - - + + diff --git a/app/src/main/res/drawable/ic_hourglass_vector.xml b/app/src/main/res/drawable/ic_hourglass_vector.xml new file mode 100644 index 00000000..3b724473 --- /dev/null +++ b/app/src/main/res/drawable/ic_hourglass_vector.xml @@ -0,0 +1,3 @@ + + + diff --git a/app/src/main/res/drawable/ic_sorting_triangle_vector.xml b/app/src/main/res/drawable/ic_sorting_triangle_vector.xml new file mode 100644 index 00000000..3d549803 --- /dev/null +++ b/app/src/main/res/drawable/ic_sorting_triangle_vector.xml @@ -0,0 +1,3 @@ + + + diff --git a/app/src/main/res/drawable/ic_stopwatch_vector.xml b/app/src/main/res/drawable/ic_stopwatch_vector.xml index 166f126b..f35f4d5a 100644 --- a/app/src/main/res/drawable/ic_stopwatch_vector.xml +++ b/app/src/main/res/drawable/ic_stopwatch_vector.xml @@ -1,9 +1,4 @@ - - + + + diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index ec3574aa..8097fc96 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -38,7 +38,7 @@ android:id="@+id/tab_timer" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:icon="@drawable/ic_timer"/> + android:icon="@drawable/ic_hourglass_vector"/> - + tools:text="@string/time_expired" /> + tools:text="14:00" /> + app:layout_constraintTop_toTopOf="@+id/reminder_draggable" /> + app:layout_constraintTop_toBottomOf="@+id/reminder_text" /> + app:layout_constraintTop_toBottomOf="@+id/reminder_text" /> + app:layout_constraintTop_toTopOf="@+id/reminder_draggable" /> + app:layout_constraintTop_toBottomOf="@+id/reminder_draggable" /> + app:layout_constraintStart_toStartOf="parent" /> diff --git a/app/src/main/res/layout/dialog_edit_timer.xml b/app/src/main/res/layout/dialog_edit_timer.xml index f72ba1b4..7eee2199 100644 --- a/app/src/main/res/layout/dialog_edit_timer.xml +++ b/app/src/main/res/layout/dialog_edit_timer.xml @@ -18,7 +18,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:background="?attr/selectableItemBackground" - android:drawableLeft="@drawable/ic_timer" + android:drawableStart="@drawable/ic_hourglass_vector" android:drawablePadding="@dimen/normal_margin" android:padding="@dimen/activity_margin" android:textSize="@dimen/bigger_text_size" @@ -39,7 +39,7 @@ android:layout_height="wrap_content" android:background="@null" android:clickable="false" - android:drawableLeft="@drawable/ic_vibrate_vector" + android:drawableStart="@drawable/ic_vibrate_vector" android:drawablePadding="@dimen/normal_margin" android:text="@string/vibrate" android:textSize="@dimen/bigger_text_size" /> @@ -51,7 +51,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:background="?attr/selectableItemBackground" - android:drawableLeft="@drawable/ic_bell_vector" + android:drawableStart="@drawable/ic_bell_vector" android:drawablePadding="@dimen/normal_margin" android:padding="@dimen/activity_margin" android:textSize="@dimen/bigger_text_size"