lets replace an icon with a vector drawable for testing

This commit is contained in:
tibbi 2019-08-07 21:03:52 +02:00
parent 9c827b3ca7
commit 6309c9e324
19 changed files with 23 additions and 8 deletions

View File

@ -17,6 +17,7 @@ android {
versionCode 13 versionCode 13
versionName "5.0.2" versionName "5.0.2"
setProperty("archivesBaseName", "clock") setProperty("archivesBaseName", "clock")
vectorDrawables.useSupportLibrary = true
} }
signingConfigs { signingConfigs {

View File

@ -77,6 +77,9 @@ class ReminderActivity : SimpleActivity() {
reminder_stop.beGone() reminder_stop.beGone()
reminder_draggable_background.startAnimation(AnimationUtils.loadAnimation(this, R.anim.pulsing_animation)) reminder_draggable_background.startAnimation(AnimationUtils.loadAnimation(this, R.anim.pulsing_animation))
reminder_draggable_background.applyColorFilter(getAdjustedPrimaryColor()) reminder_draggable_background.applyColorFilter(getAdjustedPrimaryColor())
reminder_dismiss.applyColorFilter(config.textColor)
reminder_draggable.applyColorFilter(config.textColor)
reminder_snooze.applyColorFilter(config.textColor) reminder_snooze.applyColorFilter(config.textColor)
var minDragX = 0f var minDragX = 0f

View File

@ -336,7 +336,7 @@ fun Context.getAlarmNotification(pendingIntent: PendingIntent, alarm: Alarm): No
val builder = NotificationCompat.Builder(this) val builder = NotificationCompat.Builder(this)
.setContentTitle(label) .setContentTitle(label)
.setContentText(getFormattedTime(getPassedSeconds(), false, false)) .setContentText(getFormattedTime(getPassedSeconds(), false, false))
.setSmallIcon(R.drawable.ic_alarm) .setSmallIcon(R.drawable.ic_alarm_vector)
.setContentIntent(pendingIntent) .setContentIntent(pendingIntent)
.setPriority(Notification.PRIORITY_HIGH) .setPriority(Notification.PRIORITY_HIGH)
.setDefaults(Notification.DEFAULT_LIGHTS) .setDefaults(Notification.DEFAULT_LIGHTS)

View File

@ -2,10 +2,10 @@ package com.simplemobiletools.clock.fragments
import android.os.Bundle import android.os.Bundle
import android.os.Handler import android.os.Handler
import androidx.fragment.app.Fragment
import android.view.LayoutInflater import android.view.LayoutInflater
import android.view.View import android.view.View
import android.view.ViewGroup import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.simplemobiletools.clock.R import com.simplemobiletools.clock.R
import com.simplemobiletools.clock.activities.SimpleActivity import com.simplemobiletools.clock.activities.SimpleActivity
import com.simplemobiletools.clock.adapters.TimeZonesAdapter import com.simplemobiletools.clock.adapters.TimeZonesAdapter

Binary file not shown.

Before

Width:  |  Height:  |  Size: 610 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 895 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 821 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

View File

@ -0,0 +1,11 @@
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FF000000"
android:pathData="M22,5.72l-4.6,-3.86 -1.29,1.53 4.6,3.86L22,5.72zM7.88,3.39L6.6,1.86 2,5.71l1.29,1.53 4.59,-3.85zM12.5,8L11,8v6l4.75,2.85 0.75,-1.23 -4,-2.37L12.5,8zM12,4c-4.97,0 -9,4.03 -9,9s4.02,9 9,9c4.97,0 9,-4.03 9,-9s-4.03,-9 -9,-9zM12,20c-3.87,0 -7,-3.13 -7,-7s3.13,-7 7,-7 7,3.13 7,7 -3.13,7 -7,7z"/>
</vector>

View File

@ -26,7 +26,7 @@
android:id="@+id/tab_alarm" android:id="@+id/tab_alarm"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:icon="@drawable/ic_alarm"/> android:icon="@drawable/ic_alarm_vector"/>
<com.google.android.material.tabs.TabItem <com.google.android.material.tabs.TabItem
android:id="@+id/tab_stopwatch" android:id="@+id/tab_stopwatch"

View File

@ -63,7 +63,7 @@
android:layout_height="@dimen/reminder_background_min_size" android:layout_height="@dimen/reminder_background_min_size"
android:layout_marginBottom="@dimen/activity_margin" android:layout_marginBottom="@dimen/activity_margin"
android:padding="@dimen/activity_margin" android:padding="@dimen/activity_margin"
android:src="@drawable/ic_alarm_big" android:src="@drawable/ic_alarm_vector"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/reminder_dismiss" app:layout_constraintEnd_toStartOf="@+id/reminder_dismiss"
app:layout_constraintHorizontal_bias="0.5" app:layout_constraintHorizontal_bias="0.5"

View File

@ -52,7 +52,7 @@
android:layout_height="@dimen/widget_alarm_icon_size" android:layout_height="@dimen/widget_alarm_icon_size"
android:layout_alignBottom="@+id/widget_next_alarm" android:layout_alignBottom="@+id/widget_next_alarm"
android:layout_alignTop="@+id/widget_next_alarm" android:layout_alignTop="@+id/widget_next_alarm"
android:src="@drawable/ic_alarm"/> android:src="@drawable/ic_alarm_vector"/>
<TextView <TextView
android:id="@+id/widget_next_alarm" android:id="@+id/widget_next_alarm"

View File

@ -42,7 +42,7 @@
android:layout_height="@dimen/widget_alarm_icon_size" android:layout_height="@dimen/widget_alarm_icon_size"
android:layout_alignTop="@+id/widget_next_alarm" android:layout_alignTop="@+id/widget_next_alarm"
android:layout_alignBottom="@+id/widget_next_alarm" android:layout_alignBottom="@+id/widget_next_alarm"
android:src="@drawable/ic_alarm"/> android:src="@drawable/ic_alarm_vector"/>
<TextView <TextView
android:id="@+id/widget_next_alarm" android:id="@+id/widget_next_alarm"

View File

@ -58,7 +58,7 @@
android:layout_height="@dimen/widget_alarm_icon_size" android:layout_height="@dimen/widget_alarm_icon_size"
android:layout_alignTop="@+id/widget_next_alarm" android:layout_alignTop="@+id/widget_next_alarm"
android:layout_alignBottom="@+id/widget_next_alarm" android:layout_alignBottom="@+id/widget_next_alarm"
android:src="@drawable/ic_alarm"/> android:src="@drawable/ic_alarm_vector"/>
<TextView <TextView
android:id="@+id/widget_next_alarm" android:id="@+id/widget_next_alarm"

View File

@ -48,7 +48,7 @@
android:layout_height="@dimen/widget_alarm_icon_size" android:layout_height="@dimen/widget_alarm_icon_size"
android:layout_alignTop="@+id/widget_next_alarm" android:layout_alignTop="@+id/widget_next_alarm"
android:layout_alignBottom="@+id/widget_next_alarm" android:layout_alignBottom="@+id/widget_next_alarm"
android:src="@drawable/ic_alarm"/> android:src="@drawable/ic_alarm_vector"/>
<TextView <TextView
android:id="@+id/widget_next_alarm" android:id="@+id/widget_next_alarm"