More consistent ChevronIcon usage on the context actions
This commit is contained in:
parent
2113847162
commit
7fa1bf4c55
|
@ -8,6 +8,7 @@ import com.artemchep.keyguard.feature.navigation.Route
|
|||
import com.artemchep.keyguard.feature.navigation.state.TranslatorScope
|
||||
import com.artemchep.keyguard.res.Res
|
||||
import com.artemchep.keyguard.ui.FlatItemAction
|
||||
import com.artemchep.keyguard.ui.icons.ChevronIcon
|
||||
import com.artemchep.keyguard.ui.icons.iconSmall
|
||||
|
||||
object EmailRelayListRoute : Route {
|
||||
|
@ -25,6 +26,9 @@ object EmailRelayListRoute : Route {
|
|||
) = FlatItemAction(
|
||||
leading = iconSmall(Icons.Outlined.ForwardToInbox),
|
||||
title = translator.translate(Res.strings.emailrelay_list_header_title),
|
||||
trailing = {
|
||||
ChevronIcon()
|
||||
},
|
||||
onClick = {
|
||||
val route = EmailRelayListRoute
|
||||
val intent = NavigationIntent.NavigateToRoute(route)
|
||||
|
|
|
@ -7,6 +7,7 @@ import com.artemchep.keyguard.feature.navigation.Route
|
|||
import com.artemchep.keyguard.feature.navigation.state.TranslatorScope
|
||||
import com.artemchep.keyguard.res.Res
|
||||
import com.artemchep.keyguard.ui.FlatItemAction
|
||||
import com.artemchep.keyguard.ui.icons.ChevronIcon
|
||||
import com.artemchep.keyguard.ui.icons.KeyguardWordlist
|
||||
import com.artemchep.keyguard.ui.icons.iconSmall
|
||||
|
||||
|
@ -25,6 +26,9 @@ object WordlistRoute : Route {
|
|||
) = FlatItemAction(
|
||||
leading = iconSmall(Icons.Outlined.KeyguardWordlist),
|
||||
title = translator.translate(Res.strings.wordlist_list_header_title),
|
||||
trailing = {
|
||||
ChevronIcon()
|
||||
},
|
||||
onClick = {
|
||||
val route = WordlistRoute
|
||||
val intent = NavigationIntent.NavigateToRoute(route)
|
||||
|
|
|
@ -384,6 +384,9 @@ fun vaultListScreenState(
|
|||
Icon(Icons.Outlined.Delete, null)
|
||||
},
|
||||
title = translate(Res.strings.trash),
|
||||
trailing = {
|
||||
ChevronIcon()
|
||||
},
|
||||
onClick = {
|
||||
val newArgs = args.copy(
|
||||
appBar = VaultRoute.Args.AppBar(
|
||||
|
@ -406,6 +409,9 @@ fun vaultListScreenState(
|
|||
Icon(Icons.Outlined.Download, null)
|
||||
},
|
||||
title = translate(Res.strings.downloads),
|
||||
trailing = {
|
||||
ChevronIcon()
|
||||
},
|
||||
onClick = {
|
||||
val route = AttachmentsRoute()
|
||||
val intent = NavigationIntent.NavigateToRoute(route)
|
||||
|
|
|
@ -53,6 +53,7 @@ import com.artemchep.keyguard.feature.navigation.state.RememberStateFlowScope
|
|||
import com.artemchep.keyguard.res.Res
|
||||
import com.artemchep.keyguard.ui.FlatItemAction
|
||||
import com.artemchep.keyguard.ui.SimpleNote
|
||||
import com.artemchep.keyguard.ui.icons.ChevronIcon
|
||||
import com.artemchep.keyguard.ui.icons.icon
|
||||
import com.artemchep.keyguard.ui.theme.badgeContainer
|
||||
|
||||
|
@ -513,6 +514,9 @@ fun RememberStateFlowScope.cipherViewPasswordHistoryAction(
|
|||
}
|
||||
},
|
||||
title = title,
|
||||
trailing = {
|
||||
ChevronIcon()
|
||||
},
|
||||
onClick = {
|
||||
val intent = NavigationIntent.NavigateToRoute(
|
||||
VaultViewPasswordHistoryRoute(
|
||||
|
|
|
@ -9,6 +9,7 @@ import com.artemchep.keyguard.feature.navigation.Route
|
|||
import com.artemchep.keyguard.feature.navigation.state.TranslatorScope
|
||||
import com.artemchep.keyguard.res.Res
|
||||
import com.artemchep.keyguard.ui.FlatItemAction
|
||||
import com.artemchep.keyguard.ui.icons.ChevronIcon
|
||||
import com.artemchep.keyguard.ui.icons.iconSmall
|
||||
|
||||
object JustDeleteMeServiceListRoute : Route {
|
||||
|
@ -26,6 +27,9 @@ object JustDeleteMeServiceListRoute : Route {
|
|||
) = FlatItemAction(
|
||||
leading = iconSmall(Icons.Outlined.AccountBox, Icons.Outlined.Delete),
|
||||
title = translator.translate(Res.strings.uri_action_how_to_delete_account_title),
|
||||
trailing = {
|
||||
ChevronIcon()
|
||||
},
|
||||
onClick = {
|
||||
val route = JustDeleteMeServiceListRoute
|
||||
val intent = NavigationIntent.NavigateToRoute(route)
|
||||
|
|
|
@ -9,6 +9,7 @@ import com.artemchep.keyguard.feature.navigation.Route
|
|||
import com.artemchep.keyguard.feature.navigation.state.TranslatorScope
|
||||
import com.artemchep.keyguard.res.Res
|
||||
import com.artemchep.keyguard.ui.FlatItemAction
|
||||
import com.artemchep.keyguard.ui.icons.ChevronIcon
|
||||
import com.artemchep.keyguard.ui.icons.iconSmall
|
||||
|
||||
object PasskeysServiceListRoute : Route {
|
||||
|
@ -27,6 +28,9 @@ object PasskeysServiceListRoute : Route {
|
|||
leading = iconSmall(Icons.Outlined.Folder, Icons.Outlined.Key),
|
||||
title = translator.translate(Res.strings.passkeys_directory_title),
|
||||
text = translator.translate(Res.strings.passkeys_directory_text),
|
||||
trailing = {
|
||||
ChevronIcon()
|
||||
},
|
||||
onClick = {
|
||||
val route = PasskeysServiceListRoute
|
||||
val intent = NavigationIntent.NavigateToRoute(route)
|
||||
|
|
|
@ -8,6 +8,7 @@ import com.artemchep.keyguard.feature.navigation.Route
|
|||
import com.artemchep.keyguard.feature.navigation.state.TranslatorScope
|
||||
import com.artemchep.keyguard.res.Res
|
||||
import com.artemchep.keyguard.ui.FlatItemAction
|
||||
import com.artemchep.keyguard.ui.icons.ChevronIcon
|
||||
import com.artemchep.keyguard.ui.icons.KeyguardTwoFa
|
||||
import com.artemchep.keyguard.ui.icons.iconSmall
|
||||
|
||||
|
@ -27,6 +28,9 @@ object TwoFaServiceListRoute : Route {
|
|||
leading = iconSmall(Icons.Outlined.Folder, Icons.Outlined.KeyguardTwoFa),
|
||||
title = translator.translate(Res.strings.tfa_directory_title),
|
||||
text = translator.translate(Res.strings.tfa_directory_text),
|
||||
trailing = {
|
||||
ChevronIcon()
|
||||
},
|
||||
onClick = {
|
||||
val route = TwoFaServiceListRoute
|
||||
val intent = NavigationIntent.NavigateToRoute(route)
|
||||
|
|
Loading…
Reference in New Issue