feat(settings): 重构液态玻璃设置并更新品牌图标
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user