Skip to content

Commit

Permalink
Airpod pro2 icon iteration (#64)
Browse files Browse the repository at this point in the history
* Update airpods pro icons to SVG variant

* Fix AirPodsPro2 not using the new icons

* Revert "Update airpods pro icons to SVG variant"

This reverts commit d7ca13d.

* Add padding to icons
  • Loading branch information
d4rken authored Dec 24, 2022
1 parent 6c678be commit 8305fb4
Show file tree
Hide file tree
Showing 21 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package eu.darken.capod.pods.core.apple.airpods

import androidx.annotation.DrawableRes
import eu.darken.capod.common.R
import eu.darken.capod.common.bluetooth.BleScanResult
import eu.darken.capod.common.debug.logging.logTag
import eu.darken.capod.pods.core.PodDevice
Expand All @@ -26,6 +28,22 @@ data class AirPodsPro2(

override val model: PodDevice.Model = PodDevice.Model.AIRPODS_PRO2

@get:DrawableRes
override val iconRes: Int
get() = R.drawable.devic_airpods_pro2_both

@get:DrawableRes
override val caseIcon: Int
get() = R.drawable.devic_airpods_pro2_case

@get:DrawableRes
override val leftPodIcon: Int
get() = R.drawable.devic_airpods_pro2_left

@get:DrawableRes
override val rightPodIcon: Int
get() = R.drawable.devic_airpods_pro2_right

override val batteryCasePercent: Float?
get() = super.batteryCasePercent ?: cachedBatteryPercentage

Expand Down
Binary file modified app-common/src/main/res/drawable-hdpi/devic_airpods_pro2_both.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app-common/src/main/res/drawable-hdpi/devic_airpods_pro2_case.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app-common/src/main/res/drawable-hdpi/devic_airpods_pro2_left.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app-common/src/main/res/drawable-hdpi/devic_airpods_pro2_right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app-common/src/main/res/drawable-mdpi/devic_airpods_pro2_both.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app-common/src/main/res/drawable-mdpi/devic_airpods_pro2_case.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app-common/src/main/res/drawable-xhdpi/devic_airpods_pro2_both.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app-common/src/main/res/drawable-xhdpi/devic_airpods_pro2_case.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app-common/src/main/res/drawable-xhdpi/devic_airpods_pro2_left.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app-common/src/main/res/drawable-xxhdpi/devic_airpods_pro2_both.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8305fb4

Please sign in to comment.