fcc527d96f39
polish: move new-note button to top bar next to search (v2.14.3)
- time
- 2026-08-05 05:35 UTC · 2 months ago
- machine
- koh2
- parent
- b47816e5c29e
↓ peach-android-fcc527d9.tar.gzatlas at this save
files changed2 files
VERSION+1 −1app/src/main/java/com/peachpasswords/ui/vault/NotesModeScreen.kt+14 −14app/src/main/java/com/peachpasswords/ui/vault/NotesModeScreen.kt+14 −14
@@ -360,6 +360,20 @@360360 .clickable { searchVisible = true }361361 .padding(5.dp),362362 )363+ // New note lives in the top bar next to Search so it is364+ // reachable without scrolling through a long notes list.365+ // Hidden in multi-select so the bulk-delete toolbar owns366+ // the action slot.367+ if (!isMultiSelect) {368+ Icon(369+ Icons.Outlined.Add,370+ contentDescription = "new note",371+ tint = peachColors.T0,372+ modifier = Modifier.size(28.dp).clip(CircleShape)373+ .clickable(onClick = onNewNote)374+ .padding(5.dp),375+ )376+ }363377 },364378 )365379 }@@ -397,20 +411,6 @@397411 }398412 }399413 400- if (!isMultiSelect) {401- Row(402- Modifier.fillMaxWidth().padding(vertical = PeachSpacing.md)403- .clip(RoundedCornerShape(8.dp))404- .background(peachColors.S2)405- .clickable(onClick = onNewNote)406- .padding(horizontal = 14.dp, vertical = 12.dp),407- verticalAlignment = Alignment.CenterVertically,408- horizontalArrangement = Arrangement.spacedBy(10.dp),409- ) {410- Icon(Icons.Outlined.Add, contentDescription = null, tint = accent, modifier = Modifier.size(18.dp))411- Text("+ new note", color = peachColors.T0, style = PeachType.bodyMono)412- }413- }414414 }415415 }416416 }