From 1ece0a83698bfee19c5edc9f3415082e78715117 Mon Sep 17 00:00:00 2001 From: machiav3lli Date: Sun, 29 May 2022 03:30:07 +0200 Subject: [PATCH] Remove: InstallButtonState --- .../ui/compose/utils/InstallButtonState.kt | 31 ------------------- 1 file changed, 31 deletions(-) delete mode 100644 src/main/kotlin/com/looker/droidify/ui/compose/utils/InstallButtonState.kt diff --git a/src/main/kotlin/com/looker/droidify/ui/compose/utils/InstallButtonState.kt b/src/main/kotlin/com/looker/droidify/ui/compose/utils/InstallButtonState.kt deleted file mode 100644 index 6cc59369..00000000 --- a/src/main/kotlin/com/looker/droidify/ui/compose/utils/InstallButtonState.kt +++ /dev/null @@ -1,31 +0,0 @@ -package com.looker.droidify.ui.compose.utils - -import androidx.compose.material.icons.Icons -import androidx.compose.material.icons.rounded.Close -import androidx.compose.material.icons.rounded.Download -import androidx.compose.material.icons.rounded.Launch -import androidx.compose.ui.graphics.vector.ImageVector - -sealed interface ButtonStates { - val icon: ImageVector - val text: String -} - -sealed class Cancelable( - override val text: String, - override val icon: ImageVector = Icons.Rounded.Close -) : ButtonStates - -object Connecting : Cancelable("Connecting") -object Downloading : Cancelable("Downloading") -object Installing : Cancelable("Installing") - - -sealed class ButtonWork( - override val text: String, - override val icon: ImageVector = Icons.Rounded.Download -) : ButtonStates - -object Download : ButtonWork("Download") -object Install : ButtonWork("Install") -object Launch : ButtonWork("Launch", Icons.Rounded.Launch) \ No newline at end of file