c42b81210f0f
feat: Toggle between Entry and Notes from bottom bar (v2.14.29)
- time
- 2026-08-14 18:27 UTC · 2 months ago
- machine
- koh2
- agent
- gpt-5.6-sol
- session
- entry notes mode toggle
- parent
- 41dfc4dbb1e1
↓ peach-android-c42b8121.tar.gzatlas at this save
files changed3 files
VERSION+1 −1app/src/main/java/com/peachpasswords/ui/vault/EntryDeckChrome.kt+7 −1app/src/main/java/com/peachpasswords/ui/vault/NotesModeScreen.kt+2 −2app/src/main/java/com/peachpasswords/ui/vault/EntryDeckChrome.kt+7 −1
@@ -17,6 +17,7 @@1717 import androidx.compose.foundation.shape.RoundedCornerShape1818 import androidx.compose.material.icons.Icons1919 import androidx.compose.material.icons.outlined.Description20+import androidx.compose.material.icons.outlined.Key2021 import androidx.compose.material.icons.outlined.Lock2122 import androidx.compose.material.icons.outlined.Settings2223 import androidx.compose.material.icons.rounded.Add@@ -91,7 +92,12 @@9192 // outlined glyphs beside it, so it needs a larger box to read as the9293 // same optical size.9394 DeckAction(Icons.Rounded.Add, "new", peachColors.T0, onAdd, iconSize = 28.dp)94- DeckAction(Icons.Outlined.Description, "Notes", if (notesSelected) accent else peachColors.T0, onNotes)95+ DeckAction(96+ if (notesSelected) Icons.Outlined.Key else Icons.Outlined.Description,97+ if (notesSelected) "Back to entry" else "Notes",98+ if (notesSelected) accent else peachColors.T0,99+ onNotes,100+ )95101 DeckAction(Icons.Outlined.Settings, "settings", peachColors.T0, onSettings)96102 DeckAction(Icons.Outlined.Lock, "Lock vault", accent, onLock)97103 }app/src/main/java/com/peachpasswords/ui/vault/NotesModeScreen.kt+2 −2
@@ -251,7 +251,7 @@251251 PeachDeckBottomBar(252252 onSearch = { finishNote(vm::showToc) },253253 onAdd = { finishNote(vm::createNote) },254- onNotes = { finishNote(vm::showToc) },254+ onNotes = { finishNote(onBack) },255255 onSettings = { finishNote { onNavigate(PeachNav.Settings) } },256256 onLock = { finishNote(vm::lock) },257257 onSwipeUp = { finishNote { onNavigate(PeachNav.VaultList) } },@@ -386,7 +386,7 @@386386 PeachDeckBottomBar(387387 onSearch = { searchVisible = true },388388 onAdd = onNewNote,389- onNotes = {},389+ onNotes = onBack,390390 onSettings = { onNavigate(PeachNav.Settings) },391391 onLock = onLock,392392 onSwipeUp = onBack,