add icon for CCS Type 1 connector (#6)

This commit is contained in:
johan12345
2021-07-11 12:44:01 +02:00
parent 20b04e55fb
commit 91df749bc4
3 changed files with 54 additions and 3 deletions

View File

@@ -88,9 +88,9 @@ fun equivalentPlugTypes(type: String): Set<String> {
@DrawableRes
fun iconForPlugType(type: String): Int =
when (type) {
Chargepoint.CCS_TYPE_2 -> R.drawable.ic_connector_ccs
Chargepoint.CCS_UNKNOWN -> R.drawable.ic_connector_ccs
Chargepoint.CCS_TYPE_1 -> 0 // TODO: add CCS Type 1
Chargepoint.CCS_TYPE_2 -> R.drawable.ic_connector_ccs_typ2
Chargepoint.CCS_UNKNOWN -> R.drawable.ic_connector_ccs_typ2
Chargepoint.CCS_TYPE_1 -> R.drawable.ic_connector_ccs_typ1
Chargepoint.CHADEMO -> R.drawable.ic_connector_chademo
Chargepoint.SCHUKO -> R.drawable.ic_connector_schuko
Chargepoint.SUPERCHARGER -> R.drawable.ic_connector_supercharger

View File

@@ -0,0 +1,51 @@
<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="M9,18.7m-1.4,0a1.4,1.4 0,1 1,2.8 0a1.4,1.4 0,1 1,-2.8 0" />
<path
android:fillColor="#FF000000"
android:pathData="M15,18.7m-1.4,0a1.4,1.4 0,1 1,2.8 0a1.4,1.4 0,1 1,-2.8 0" />
<path
android:pathData="M8.9,16.1h6.2c1.5,0 2.7,1.2 2.7,2.7l0,0c0,1.5 -1.2,2.7 -2.7,2.7H8.9c-1.5,0 -2.7,-1.2 -2.7,-2.7l0,0C6.2,17.3 7.4,16.1 8.9,16.1z"
android:strokeWidth="2"
android:fillColor="#00000000"
android:strokeColor="#000000" />
<path
android:fillColor="#FF000000"
android:pathData="M14.7,6.4m-1.3,0a1.3,1.3 0,1 1,2.6 0a1.3,1.3 0,1 1,-2.6 0" />
<path
android:fillColor="#FF000000"
android:pathData="M15.3,10.5m-0.8,0a0.8,0.8 0,1 1,1.6 0a0.8,0.8 0,1 1,-1.6 0" />
<path
android:fillColor="#FF000000"
android:pathData="M8.7,10.5m-0.8,0a0.8,0.8 0,1 1,1.6 0a0.8,0.8 0,1 1,-1.6 0" />
<path
android:fillColor="#FF000000"
android:pathData="M9.3,6.4m-1.3,0a1.3,1.3 0,1 1,2.6 0a1.3,1.3 0,1 1,-2.6 0" />
<path
android:fillColor="#FF000000"
android:pathData="M12,13.1m-1.3,0a1.3,1.3 0,1 1,2.6 0a1.3,1.3 0,1 1,-2.6 0" />
<path
android:pathData="M12,9.1m-6.3,0a6.3,6.3 0,1 1,12.6 0a6.3,6.3 0,1 1,-12.6 0"
android:strokeWidth="1.7"
android:fillColor="#00000000"
android:strokeColor="#000000" />
<path
android:fillColor="#FF000000"
android:pathData="M11,15.4h2v1.3h-2z" />
<path
android:pathData="M10.9,1.3L13.1,1.3"
android:strokeWidth="0.5"
android:fillColor="#00000000"
android:strokeColor="#000000" />
<path
android:fillColor="#FF000000"
android:pathData="M13.1,0.9l0,1.5l1.4,0.7l-0.7,-2.1z" />
<path
android:fillColor="#FF000000"
android:pathData="M10.9,0.9l0,1.5l-1.4,0.7l0.7,-2.1z" />
</vector>