feat(settings): 重构液态玻璃设置并更新品牌图标

This commit is contained in:
2026-10-30 16:35:50 +08:00
parent 5c8b6ed136
commit c2f0549568
27 changed files with 449 additions and 43 deletions
+5 -1
View File
@@ -10,7 +10,11 @@ struct MenuBarLabel: View {
Text(verbatim: title)
.monospacedDigit()
} icon: {
Image(systemName: "gauge")
Image("BrandMark")
.renderingMode(.template)
.resizable()
.scaledToFit()
.frame(width: 18, height: 18)
}
.labelStyle(.titleAndIcon)
}
+6 -1
View File
@@ -5,6 +5,7 @@ struct MenuPanelView: View {
let metrics: MetricsStore
let preferences: AppearancePreferences
let keepAwake: KeepAwakeService
let settingsPresentation: SettingsPresentation
@Environment(\.openSettings) private var openSettings
var body: some View {
@@ -210,7 +211,11 @@ struct MenuPanelView: View {
}
.help(metrics.isPaused ? Text("action.resume") : Text("action.pause"))
.accessibilityLabel(metrics.isPaused ? Text("action.resume") : Text("action.pause"))
Button { NSApp.activate(); openSettings() } label: {
Button {
NSApp.setActivationPolicy(.regular)
settingsPresentation.request()
openSettings()
} label: {
Image(systemName: "gearshape").frame(width: 20, height: 20)
}
.help(Text("action.settings")).accessibilityLabel(Text("action.settings"))