mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 02:04:07 +00:00
Listing styles
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import Defaults
|
||||
import SwiftUI
|
||||
|
||||
struct AccountsMenuView: View {
|
||||
struct AccountViewButton: View {
|
||||
@ObservedObject private var model = AccountsModel.shared
|
||||
private var navigation = NavigationModel.shared
|
||||
|
||||
@@ -17,7 +17,13 @@ struct AccountsMenuView: View {
|
||||
} label: {
|
||||
HStack {
|
||||
if !accountPickerDisplaysUsername || !(model.current?.isPublic ?? true) {
|
||||
Image(systemName: "globe")
|
||||
if let name = model.current?.app?.rawValue.capitalized {
|
||||
Image(name)
|
||||
.resizable()
|
||||
.frame(width: 30, height: 30)
|
||||
} else {
|
||||
Image(systemName: "globe")
|
||||
}
|
||||
}
|
||||
|
||||
if accountPickerDisplaysUsername {
|
@@ -76,7 +76,7 @@ struct AppSidebarNavigation: View {
|
||||
}
|
||||
|
||||
ToolbarItemGroup(placement: accountsMenuToolbarItemPlacement) {
|
||||
AccountsMenuView()
|
||||
AccountViewButton()
|
||||
}
|
||||
|
||||
#if os(macOS)
|
||||
|
@@ -159,7 +159,7 @@ struct AppTabNavigation: View {
|
||||
Label("Open Videos", systemImage: "play.circle.fill")
|
||||
}
|
||||
}
|
||||
AccountsMenuView()
|
||||
AccountViewButton()
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user