Update copy to say library instead of feed

This commit is contained in:
Jackson Harper
2023-05-31 15:56:17 +08:00
parent 4e7bd97297
commit 3460150d5e
5 changed files with 27 additions and 1 deletions

View File

@ -15,6 +15,8 @@ import Views
@Binding var justifyText: Bool
@Binding var currentThemeName: String
@Environment(\.openURL) var openURL
public var fontSizeButtons: some View {
Group {
Button(
@ -133,6 +135,13 @@ import Views
}
public var body: some Commands {
CommandGroup(after: .appInfo) {
Button("Open Online", action: {
if let url = URL(string: "https://omnivore.app/") {
NSWorkspace.shared.open(url)
}
})
}
CommandMenu("Reader Display") {
spacingButtons

View File

@ -11,6 +11,7 @@ import Views
@EnvironmentObject var audioController: AudioController
@State private var itemToRemove: LinkedItem?
@State private var confirmationShown = false
@State private var presentProfileSheet = false
@ObservedObject var viewModel: HomeFeedViewModel
@ -144,6 +145,12 @@ import Views
.sheet(item: $viewModel.itemUnderTitleEdit) { item in
LinkedItemMetadataEditView(item: item)
}
.sheet(isPresented: $presentProfileSheet) {
ProfileView()
}
.onReceive(NSNotification.displayProfilePublisher) { _ in
presentProfileSheet = true
}
.task {
if viewModel.items.isEmpty {
loadItems(isRefresh: true)

View File

@ -82,6 +82,7 @@ struct ProfileView: View {
innerBody
}
.listStyle(InsetListStyle())
.frame(minWidth: 400, minHeight: 400)
#endif
}

View File

@ -9,6 +9,7 @@ public extension NSNotification {
static let OperationFailure = Notification.Name("OperationFailure")
static let ReaderSettingsChanged = Notification.Name("ReaderSettingsChanged")
static let SpeakingReaderItem = Notification.Name("SpeakingReaderItem")
static let DisplayProfile = Notification.Name("DisplayProfile")
static var pushFeedItemPublisher: NotificationCenter.Publisher {
NotificationCenter.default.publisher(for: PushJSONArticle)
@ -34,6 +35,10 @@ public extension NSNotification {
NotificationCenter.default.publisher(for: SpeakingReaderItem)
}
static var displayProfilePublisher: NotificationCenter.Publisher {
NotificationCenter.default.publisher(for: DisplayProfile)
}
internal var operationMessage: String? {
if let message = userInfo?["message"] as? String {
return message
@ -68,4 +73,8 @@ public extension NSNotification {
static func readerSettingsChanged() {
NotificationCenter.default.post(name: NSNotification.ReaderSettingsChanged, object: nil)
}
static func displayProfile() {
NotificationCenter.default.post(name: NSNotification.DisplayProfile, object: nil)
}
}

View File

@ -115,7 +115,7 @@
"menuDebugApiEnv" = "API Environment:";
// Navigation
"navigationSelectLink" = "Select a link from the feed";
"navigationSelectLink" = "Select a link from your library";
"navigationSelectSidebarToggle" = "Toggle sidebar";
// Welcome View