refactor(settings): 改用常规关于选项卡并统一蓝色强调色
This commit is contained in:
@@ -143,7 +143,7 @@ struct MenuPanelView: View {
|
||||
Button { presentation.isPinned.toggle() } label: {
|
||||
Image(systemName: presentation.isPinned ? "pin.fill" : "pin")
|
||||
.frame(width: 20, height: 20)
|
||||
.foregroundStyle(presentation.isPinned ? preferences.tintColor : Color.primary)
|
||||
.foregroundStyle(presentation.isPinned ? Color.blue : Color.primary)
|
||||
}
|
||||
.help(Text(presentation.isPinned ? "panel.unpin" : "panel.pin"))
|
||||
.accessibilityLabel(Text(presentation.isPinned ? "panel.unpin" : "panel.pin"))
|
||||
@@ -151,7 +151,7 @@ struct MenuPanelView: View {
|
||||
Button { keepAwake.toggle() } label: {
|
||||
Image(systemName: keepAwake.isEnabled ? "cup.and.saucer.fill" : "cup.and.saucer")
|
||||
.frame(width: 20, height: 20)
|
||||
.foregroundStyle(keepAwake.isEnabled ? preferences.tintColor : Color.primary)
|
||||
.foregroundStyle(keepAwake.isEnabled ? Color.blue : Color.primary)
|
||||
}
|
||||
.help(keepAwake.didFail ? Text("awake.failed") : (keepAwake.isEnabled ? Text("awake.disable") : Text("awake.enable")))
|
||||
.accessibilityLabel(keepAwake.isEnabled ? Text("awake.disable") : Text("awake.enable"))
|
||||
|
||||
Reference in New Issue
Block a user