aboutsummaryrefslogtreecommitdiffstats
path: root/ui/compose/src
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-03 14:18:42 +0100
committerDanilo M. <danix@danix.xyz>2026-11-03 14:18:42 +0100
commit2911783653f699e41a07bb9536460d9d0a1c3b70 (patch)
treeb68692cc80bc0b463f671779ac3642c2ad8976cc /ui/compose/src
parentb4e1002735486bf56b67b8233c2c2abfa875eed4 (diff)
downloadHardenedPass-2911783653f699e41a07bb9536460d9d0a1c3b70.tar.gz
HardenedPass-2911783653f699e41a07bb9536460d9d0a1c3b70.zip
refactor(app): remove the legacy setup screens
The Compose welcome, git server, SSH key, key generation and PGP keys screens replace OnboardingActivity with its fragments, GitServerConfigActivity with BasicBottomSheet, SshKeyImportActivity, SshKeyGenActivity, ShowSshKeyFragment, PGPKeyImportActivity and PGPKeyListActivity with KeyList and PGPKeyListViewModel, their layouts and manifest entries, and ui:compose's APSAppBar. Resources only they used are removed too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'ui/compose/src')
-rw-r--r--ui/compose/src/main/kotlin/app/passwordstore/ui/APSAppBar.kt76
1 files changed, 0 insertions, 76 deletions
diff --git a/ui/compose/src/main/kotlin/app/passwordstore/ui/APSAppBar.kt b/ui/compose/src/main/kotlin/app/passwordstore/ui/APSAppBar.kt
deleted file mode 100644
index 7ac99023..00000000
--- a/ui/compose/src/main/kotlin/app/passwordstore/ui/APSAppBar.kt
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
- * Copyright © 2014-2024 The Android Password Store Authors. All Rights Reserved.
- * SPDX-License-Identifier: GPL-3.0-only
- */
-
-package app.passwordstore.ui
-
-import android.annotation.SuppressLint
-import androidx.compose.foundation.layout.RowScope
-import androidx.compose.material.icons.Icons
-import androidx.compose.material.icons.automirrored.filled.ArrowBack
-import androidx.compose.material.icons.filled.Search
-import androidx.compose.material3.ExperimentalMaterial3Api
-import androidx.compose.material3.Icon
-import androidx.compose.material3.IconButton
-import androidx.compose.material3.MaterialTheme
-import androidx.compose.material3.Text
-import androidx.compose.material3.TopAppBar
-import androidx.compose.material3.TopAppBarDefaults
-import androidx.compose.runtime.Composable
-import androidx.compose.ui.Modifier
-import androidx.compose.ui.draw.shadow
-import androidx.compose.ui.graphics.Color
-import androidx.compose.ui.graphics.painter.Painter
-import androidx.compose.ui.graphics.vector.rememberVectorPainter
-import app.passwordstore.ui.compose.preview.DevicePreviews
-import app.passwordstore.ui.compose.preview.ThemePreviews
-import app.passwordstore.ui.compose.theme.APSTheme
-import app.passwordstore.ui.compose.theme.SpacingMedium
-
-@SuppressLint("ComposableLambdaParameterNaming") // The lint doesn't really apply to `actions`
-@Composable
-@OptIn(ExperimentalMaterial3Api::class)
-public fun APSAppBar(
- title: String,
- backgroundColor: Color,
- navigationIcon: Painter?,
- modifier: Modifier = Modifier,
- onNavigationIconClick: (() -> Unit) = {},
- actions: @Composable RowScope.() -> Unit = {},
-) {
- TopAppBar(
- title = { Text(text = title) },
- navigationIcon = {
- if (navigationIcon != null) {
- IconButton(onClick = onNavigationIconClick) {
- Icon(painter = navigationIcon, contentDescription = "Back navigation button")
- }
- }
- },
- actions = actions,
- colors = TopAppBarDefaults.topAppBarColors(containerColor = backgroundColor),
- modifier = modifier.shadow(SpacingMedium),
- )
-}
-
-@ThemePreviews
-@DevicePreviews
-@Composable
-private fun APSAppBarPreview() {
- APSTheme {
- APSAppBar(
- title = "Preview",
- backgroundColor = MaterialTheme.colorScheme.surface,
- navigationIcon = rememberVectorPainter(Icons.AutoMirrored.Filled.ArrowBack),
- actions = {
- IconButton(onClick = {}) {
- Icon(
- painter = rememberVectorPainter(Icons.Filled.Search),
- contentDescription = "Search items",
- )
- }
- },
- )
- }
-}