aboutsummaryrefslogtreecommitdiff
path: root/Hotline/macOS/TrackerView.swift
diff options
context:
space:
mode:
authorDustin Mierau <dustin@mierau.me>2024-01-03 15:49:25 -0800
committerDustin Mierau <dustin@mierau.me>2024-01-03 15:49:25 -0800
commit69ddf90fda6d88fe440d6f6597db8c08962cd24e (patch)
tree498a91a294e96a79674adbb1cae77f06e1621e36 /Hotline/macOS/TrackerView.swift
parent17290707648f0624e148d752338fe7d1610e455a (diff)
Dim Hotline logo in Servers window title bar when window is inactive.
Diffstat (limited to 'Hotline/macOS/TrackerView.swift')
-rw-r--r--Hotline/macOS/TrackerView.swift10
1 files changed, 10 insertions, 0 deletions
diff --git a/Hotline/macOS/TrackerView.swift b/Hotline/macOS/TrackerView.swift
index 0278904..3aed49f 100644
--- a/Hotline/macOS/TrackerView.swift
+++ b/Hotline/macOS/TrackerView.swift
@@ -210,6 +210,7 @@ struct TrackerItemView: View {
struct TrackerView: View {
@Environment(\.colorScheme) private var colorScheme
@Environment(\.openWindow) private var openWindow
+ @Environment(\.controlActiveState) private var controlActiveState
var bookmarks: [TrackerBookmark] = [
TrackerBookmark(type: .server, name: "RetroMac", address: "82.32.130.173"),
@@ -333,6 +334,15 @@ struct TrackerView: View {
}
.navigationTitle("Servers")
.toolbar {
+ ToolbarItem(placement: .navigation) {
+ Image("Hotline")
+ .resizable()
+ .renderingMode(.template)
+ .scaledToFit()
+ .foregroundColor(Color(hex: 0xE10000))
+ .frame(width: 9)
+ .opacity(controlActiveState == .inactive ? 0.5 : 1.0)
+ }
ToolbarItem(placement: .primaryAction) {
Button {
Task {