Disable color picker when using system color

This commit is contained in:
1024jp 2024-06-14 12:57:43 +09:00
parent 6ce97be7f6
commit ea119a72e8
2 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,7 @@
### Implements
- Update the Markdown syntax to fix highlighting strikethrough.
- Disable color wells in the theme editor when they use the system color.
- Improve the User Guide contents.
- [non-AppStore ver.] Update Sparkle from 2.6.2 to 2.6.3.

View File

@ -169,6 +169,7 @@ private struct SystemColorPicker: View {
Text(self.label)
.accessibilityLabeledPair(role: .label, id: "color", in: self.accessibility)
}
.disabled(self.selection.usesSystemSetting)
Toggle(String(localized: "Use system color", table: "ThemeEditor", comment: "toggle button label"), isOn: $selection.usesSystemSetting)
.controlSize(.small)
.accessibilityLabeledPair(role: .content, id: "color", in: self.accessibility)