Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 29 additions & 24 deletions boringNotch/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -2449,16 +2449,6 @@
}
}
},
"Changing the app language requires restarting Boring Notch." : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Changing the app language requires restarting Boring Notch."
}
}
}
},
"Change media with horizontal gestures" : {
"localizations" : {
"de" : {
Expand Down Expand Up @@ -2505,6 +2495,16 @@
}
}
},
"Changing the app language requires restarting Boring Notch." : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Changing the app language requires restarting Boring Notch."
}
}
}
},
"Charging" : {
"localizations" : {
"cs" : {
Expand Down Expand Up @@ -6867,6 +6867,10 @@
"comment" : "A title for a view that allows users to configure Boring Notch's update preferences.",
"isCommentAutoGenerated" : true
},
"Keep newer shelf items in front" : {
"comment" : "A toggle that allows users to reverse the order of shelf items.",
"isCommentAutoGenerated" : true
},
"Keyboard Source" : {
"localizations" : {
"fr" : {
Expand All @@ -6893,6 +6897,16 @@
}
}
},
"Later" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Later"
}
}
}
},
"Launch at login" : {
"localizations" : {
"fr" : {
Expand All @@ -6915,16 +6929,6 @@
}
}
},
"Later" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Later"
}
}
}
},
"Layout Preview" : {
"localizations" : {
"de" : {
Expand Down Expand Up @@ -9559,6 +9563,7 @@
}
},
"OSD" : {
"extractionState" : "stale",
"localizations" : {
"fr" : {
"stringUnit" : {
Expand Down Expand Up @@ -10055,9 +10060,6 @@
},
"Real-time audio waveform" : {

},
"Requires macOS 14.2 or later. Update macOS to enable real-time audio waveform." : {

},
"Release name" : {
"localizations" : {
Expand Down Expand Up @@ -10441,6 +10443,9 @@
}
}
}
},
"Requires macOS 14.2 or later. Update macOS to enable real-time audio waveform." : {

},
"Reset to Defaults" : {
"localizations" : {
Expand Down Expand Up @@ -14153,4 +14158,4 @@
}
},
"version" : "1.1"
}
}
3 changes: 3 additions & 0 deletions boringNotch/components/Settings/Views/ShelfSettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ struct Shelf: View {
Defaults.Toggle(key: .autoRemoveShelfItems) {
Text("Remove from shelf after dragging")
}
Defaults.Toggle(key: .reverseShelfOrdering) {
Text("Keep newer shelf items in front")
}

} header: {
HStack {
Expand Down
3 changes: 2 additions & 1 deletion boringNotch/components/Shelf/Views/ShelfView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import SwiftUI
import AppKit
import Defaults

struct ShelfView: View {
@EnvironmentObject var vm: BoringViewModel
Expand Down Expand Up @@ -95,7 +96,7 @@ struct ShelfView: View {
} else {
ScrollView(.horizontal) {
LazyHStack(spacing: spacing) {
ForEach(tvm.items) { item in
ForEach(Defaults[.reverseShelfOrdering] ? tvm.items.reversed() : tvm.items) { item in
ShelfItemView(item: item)
.environmentObject(quickLookService)
}
Expand Down
1 change: 1 addition & 0 deletions boringNotch/models/Constants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ extension Defaults.Keys {
static let copyOnDrag = Key<Bool>("copyOnDrag", default: false)
static let autoRemoveShelfItems = Key<Bool>("autoRemoveShelfItems", default: false)
static let expandedDragDetection = Key<Bool>("expandedDragDetection", default: true)
static let reverseShelfOrdering = Key<Bool>("reverseShelfOrdering", default: false)

// MARK: Calendar
static let calendarSelectionState = Key<CalendarSelectionState>("calendarSelectionState", default: .all)
Expand Down
Loading