mirror of
https://github.com/nacabaro/vbhelper.git
synced 2026-01-27 16:05:32 +00:00
Added missing icons, ready to merge!
This commit is contained in:
parent
35a7c9d959
commit
972a640394
@ -27,7 +27,6 @@ import androidx.compose.ui.window.DialogProperties
|
|||||||
import com.github.nacabaro.vbhelper.R
|
import com.github.nacabaro.vbhelper.R
|
||||||
import com.github.nacabaro.vbhelper.screens.itemsScreen.ItemsScreenControllerImpl
|
import com.github.nacabaro.vbhelper.screens.itemsScreen.ItemsScreenControllerImpl
|
||||||
import com.github.nacabaro.vbhelper.ui.theme.VBHelperTheme
|
import com.github.nacabaro.vbhelper.ui.theme.VBHelperTheme
|
||||||
import kotlin.math.absoluteValue
|
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun ItemElement(
|
fun ItemElement(
|
||||||
@ -173,15 +172,24 @@ fun getIconResource(index: Int): Int {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun getLengthResource(index: Int): Int {
|
fun getLengthResource(index: Int): Int {
|
||||||
return when (index.absoluteValue) {
|
return when (index) {
|
||||||
15 -> R.drawable.baseline_15_min_timer
|
15 -> R.drawable.baseline_15_min_timer
|
||||||
30 -> R.drawable.baseline_30_min_timer
|
30 -> R.drawable.baseline_30_min_timer
|
||||||
60 -> R.drawable.baseline_60_min_timer
|
60 -> R.drawable.baseline_60_min_timer
|
||||||
|
-60 -> R.drawable.baseline_60_min_timer
|
||||||
300 -> R.drawable.baseline_5_hour_timer
|
300 -> R.drawable.baseline_5_hour_timer
|
||||||
600 -> R.drawable.baseline_10_hour_timer
|
600 -> R.drawable.baseline_10_hour_timer
|
||||||
720 -> R.drawable.baseline_12_hour_timer
|
-720 -> R.drawable.baseline_12_hour_timer
|
||||||
1440 -> R.drawable.baseline_24_hour_timer
|
-1440 -> R.drawable.baseline_24_hour_timer
|
||||||
6000 -> R.drawable.baseline_reset_24
|
6000 -> R.drawable.baseline_reset_24
|
||||||
|
1000 -> R.drawable.baseline_single_arrow_up
|
||||||
|
2500 -> R.drawable.baseline_double_arrow_up
|
||||||
|
5000 -> R.drawable.baseline_triple_arrow_up
|
||||||
|
9999 -> R.drawable.baseline_health_24
|
||||||
|
-500 -> R.drawable.baseline_single_arrow_down
|
||||||
|
-1000 -> R.drawable.baseline_double_arrow_down
|
||||||
|
-2500 -> R.drawable.baseline_triple_arrow_down
|
||||||
|
-9999 -> R.drawable.baseline_reset_24
|
||||||
else -> R.drawable.baseline_question_mark_24
|
else -> R.drawable.baseline_question_mark_24
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
12
app/src/main/res/drawable/baseline_double_arrow_down.xml
Normal file
12
app/src/main/res/drawable/baseline_double_arrow_down.xml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportWidth="960"
|
||||||
|
android:viewportHeight="960">
|
||||||
|
<path
|
||||||
|
android:pathData="m664,229.06 l56,56 -240,240 -240,-240 56,-56 184,183z"
|
||||||
|
android:fillColor="#000000"/>
|
||||||
|
<path
|
||||||
|
android:pathData="m664,434.94 l56,56 -240,240 -240,-240 56,-56 184,183z"
|
||||||
|
android:fillColor="#000000"/>
|
||||||
|
</vector>
|
||||||
12
app/src/main/res/drawable/baseline_double_arrow_up.xml
Normal file
12
app/src/main/res/drawable/baseline_double_arrow_up.xml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportWidth="960"
|
||||||
|
android:viewportHeight="960">
|
||||||
|
<path
|
||||||
|
android:pathData="m296,730.94 l-56,-56 240,-240 240,240 -56,56 -184,-183z"
|
||||||
|
android:fillColor="#000000"/>
|
||||||
|
<path
|
||||||
|
android:pathData="m296,525.06 l-56,-56 240,-240 240,240 -56,56 -184,-183z"
|
||||||
|
android:fillColor="#000000"/>
|
||||||
|
</vector>
|
||||||
9
app/src/main/res/drawable/baseline_single_arrow_down.xml
Normal file
9
app/src/main/res/drawable/baseline_single_arrow_down.xml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportWidth="960"
|
||||||
|
android:viewportHeight="960">
|
||||||
|
<path
|
||||||
|
android:pathData="m664,332 l56,56 -240,240 -240,-240 56,-56 184,183z"
|
||||||
|
android:fillColor="#000000"/>
|
||||||
|
</vector>
|
||||||
9
app/src/main/res/drawable/baseline_single_arrow_up.xml
Normal file
9
app/src/main/res/drawable/baseline_single_arrow_up.xml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportWidth="960"
|
||||||
|
android:viewportHeight="960">
|
||||||
|
<path
|
||||||
|
android:pathData="m296,628 l-56,-56 240,-240 240,240 -56,56 -184,-183z"
|
||||||
|
android:fillColor="#000000"/>
|
||||||
|
</vector>
|
||||||
15
app/src/main/res/drawable/baseline_triple_arrow_down.xml
Normal file
15
app/src/main/res/drawable/baseline_triple_arrow_down.xml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportWidth="960"
|
||||||
|
android:viewportHeight="960">
|
||||||
|
<path
|
||||||
|
android:pathData="m664,332 l56,56 -240,240 -240,-240 56,-56 184,183z"
|
||||||
|
android:fillColor="#000000"/>
|
||||||
|
<path
|
||||||
|
android:pathData="m664,537.89 l56,56 -240,240 -240,-240 56,-56 184,183z"
|
||||||
|
android:fillColor="#000000"/>
|
||||||
|
<path
|
||||||
|
android:pathData="m664,126.11 l56,56 -240,240 -240,-240 56,-56 184,183z"
|
||||||
|
android:fillColor="#000000"/>
|
||||||
|
</vector>
|
||||||
15
app/src/main/res/drawable/baseline_triple_arrow_up.xml
Normal file
15
app/src/main/res/drawable/baseline_triple_arrow_up.xml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportWidth="960"
|
||||||
|
android:viewportHeight="960">
|
||||||
|
<path
|
||||||
|
android:pathData="m296,628 l-56,-56 240,-240 240,240 -56,56 -184,-183z"
|
||||||
|
android:fillColor="#000000"/>
|
||||||
|
<path
|
||||||
|
android:pathData="m296,422.11 l-56,-56 240,-240 240,240 -56,56 -184,-183z"
|
||||||
|
android:fillColor="#000000"/>
|
||||||
|
<path
|
||||||
|
android:pathData="m296,833.89 l-56,-56 240,-240 240,240 -56,56 -184,-183z"
|
||||||
|
android:fillColor="#000000"/>
|
||||||
|
</vector>
|
||||||
Loading…
x
Reference in New Issue
Block a user