Delta added and clone lightened
This commit is contained in:
parent
acfd9621b7
commit
87f7dc0422
|
@ -108,7 +108,7 @@ class TriggerDelta(injector: HasAndroidInjector) : Trigger(injector) {
|
|||
override fun friendlyDescription(): String =
|
||||
resourceHelper.gs(R.string.deltacompared, resourceHelper.gs(comparator.value.stringRes), delta.value, resourceHelper.gs(delta.deltaType.stringRes))
|
||||
|
||||
override fun icon(): Optional<Int?> = Optional.of(R.drawable.icon_auto_delta)
|
||||
override fun icon(): Optional<Int?> = Optional.of(R.drawable.ic_auto_delta)
|
||||
|
||||
override fun duplicate(): Trigger = TriggerDelta(injector, this)
|
||||
|
||||
|
|
10
app/src/main/res/drawable/ic_auto_delta.xml
Normal file
10
app/src/main/res/drawable/ic_auto_delta.xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="48dp"
|
||||
android:height="48dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:pathData="M12,4L5.087,20h13.826L12,4zM11.375,8.236l4.614,10.678H6.761L11.375,8.236z"
|
||||
android:fillColor="#36FF00"/>
|
||||
</vector>
|
|
@ -5,5 +5,5 @@
|
|||
android:viewportHeight="24">
|
||||
<path
|
||||
android:pathData="M20.964,12.509V2.983l-2.932,2.932c-4.317,-3.412 -9.981,-3.694 -13.245,-0.43c-3.581,3.581 -2.909,10.058 1.5,14.467c0.427,0.427 0.877,0.807 1.338,1.163c-0.548,-0.841 -1.031,-1.781 -1.411,-2.812C4.438,13.481 5.49,8.653 8.565,7.519c1.867,-0.688 4.047,0.152 5.872,1.99l-3,3H20.964z"
|
||||
android:fillColor="#005AF9"/>
|
||||
android:fillColor="#739BE0"/>
|
||||
</vector>
|
||||
|
|
|
@ -93,7 +93,7 @@ class TriggerDeltaTest : TriggerTestBase() {
|
|||
}
|
||||
|
||||
@Test fun iconTest() {
|
||||
Assert.assertEquals(Optional.of(R.drawable.icon_auto_delta), TriggerDelta(injector).icon())
|
||||
Assert.assertEquals(Optional.of(R.drawable.ic_auto_delta), TriggerDelta(injector).icon())
|
||||
}
|
||||
|
||||
@Test fun initializerTest() {
|
||||
|
|
13
icons/auto_delta.svg
Normal file
13
icons/auto_delta.svg
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 17.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="24px"
|
||||
height="24px" viewBox="0 0 24 24" enable-background="new 0 0 24 24" xml:space="preserve">
|
||||
<g id="auto_x5F_delta">
|
||||
<g>
|
||||
<g>
|
||||
<path fill="#36FF00" d="M12,4L5.087,20h13.826L12,4z M11.375,8.236l4.614,10.678H6.761L11.375,8.236z"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 616 B |
|
@ -4,7 +4,7 @@
|
|||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="24px"
|
||||
height="24px" viewBox="0 0 24 24" enable-background="new 0 0 24 24" xml:space="preserve">
|
||||
<g id="clone">
|
||||
<path fill="#005AF9" d="M20.964,12.509V2.983l-2.932,2.932c-4.317-3.412-9.981-3.694-13.245-0.43
|
||||
<path fill="#739BE0" d="M20.964,12.509V2.983l-2.932,2.932c-4.317-3.412-9.981-3.694-13.245-0.43
|
||||
c-3.581,3.581-2.909,10.058,1.5,14.467c0.427,0.427,0.877,0.807,1.338,1.163c-0.548-0.841-1.031-1.781-1.411-2.812
|
||||
C4.438,13.481,5.49,8.653,8.565,7.519c1.867-0.688,4.047,0.152,5.872,1.99l-3,3H20.964z"/>
|
||||
</g>
|
||||
|
|
Before Width: | Height: | Size: 777 B After Width: | Height: | Size: 777 B |
Loading…
Reference in a new issue