aboutsummaryrefslogtreecommitdiff
path: root/Hotline/macOS/ServerView.swift
diff options
context:
space:
mode:
authorDustin Mierau <dustin@mierau.me>2025-10-21 10:17:23 -0700
committerDustin Mierau <dustin@mierau.me>2025-10-21 10:17:23 -0700
commit926c92be7a32e374c8855b2eb8b5a49485dec072 (patch)
tree546d09d4b8c0e29a296fca93c8393cf9b2e18832 /Hotline/macOS/ServerView.swift
parentede41868962ffed386b0da694d14cdfe6cfdb34f (diff)
Add bookmark editing to TrackerView (you can add login/pass to bookmarks now). Fix macOS 26 border around images in toolbar.
Diffstat (limited to 'Hotline/macOS/ServerView.swift')
-rw-r--r--Hotline/macOS/ServerView.swift26
1 files changed, 18 insertions, 8 deletions
diff --git a/Hotline/macOS/ServerView.swift b/Hotline/macOS/ServerView.swift
index e9f4a96..154bd7c 100644
--- a/Hotline/macOS/ServerView.swift
+++ b/Hotline/macOS/ServerView.swift
@@ -212,14 +212,24 @@ struct ServerView: View {
.onChange(of: Prefs.shared.enableAutomaticMessage) { sendPreferences() }
.onChange(of: Prefs.shared.automaticMessage) { sendPreferences() }
.toolbar {
- ToolbarItem(placement: .navigation) {
- Image("Server Large")
-// .renderingMode(.template)
-
- .resizable()
- .scaledToFit()
- .frame(width: 28)
- .opacity(controlActiveState == .inactive ? 0.4 : 1.0)
+ if #available(macOS 26.0, *) {
+ ToolbarItem(placement: .navigation) {
+ Image("Server Large")
+ .resizable()
+ .scaledToFit()
+ .frame(width: 28)
+ .opacity(controlActiveState == .inactive ? 0.4 : 1.0)
+ }
+ .sharedBackgroundVisibility(.hidden)
+ }
+ else {
+ ToolbarItem(placement: .navigation) {
+ Image("Server Large")
+ .resizable()
+ .scaledToFit()
+ .frame(width: 28)
+ .opacity(controlActiveState == .inactive ? 0.4 : 1.0)
+ }
}
}
}