feat(keyboard): add Notes skill and system-style typing
Add save-to-Notes export and direct map handoff while aligning multi-touch typing, period shortcuts, return actions, and navigation visuals with system behavior.
This commit is contained in:
@@ -28,13 +28,14 @@ enum MacSection: String, CaseIterable, Identifiable {
|
||||
}
|
||||
}
|
||||
|
||||
var systemImage: String {
|
||||
/// Outline when idle, fill when selected — except Home, which stays `house`.
|
||||
func systemImage(selected: Bool) -> String {
|
||||
switch self {
|
||||
case .dashboard: return "house"
|
||||
case .history: return "clock.arrow.circlepath"
|
||||
case .dictionary: return "character.book.closed"
|
||||
case .styles: return "text.badge.star"
|
||||
case .settings: return "gearshape"
|
||||
case .styles: return selected ? "dial.high.fill" : "dial.high"
|
||||
case .settings: return selected ? "gearshape.fill" : "gearshape"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -123,7 +123,7 @@ private struct MacSidebarRow: View {
|
||||
|
||||
var body: some View {
|
||||
Button(action: action) {
|
||||
Label(section.title(language: language), systemImage: section.systemImage)
|
||||
Label(section.title(language: language), systemImage: section.systemImage(selected: isSelected))
|
||||
.font(.system(size: 13, weight: isSelected ? .semibold : .regular))
|
||||
.foregroundStyle(isSelected ? palette.accent : palette.textPrimary)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
|
||||
Reference in New Issue
Block a user