Skip to content

Fix settings action button contrast - #1

Merged
jianxing-chen merged 1 commit into
mainfrom
jianxing-chen/fix-settings-button-contrast
Jun 10, 2026
Merged

Fix settings action button contrast#1
jianxing-chen merged 1 commit into
mainfrom
jianxing-chen/fix-settings-button-contrast

Conversation

@jianxing-chen

Copy link
Copy Markdown
Owner

This fixes the settings window actions rendering with poor contrast, which made buttons like Save and Done hard to read in the current appearance. The change makes those primary actions explicitly readable instead of relying on the default prominent button styling.

What changed

  • add a dedicated SettingsProminentButtonStyle that uses the system accent fill with a high-contrast foreground color
  • apply the shared style to the Save, Add, and Done actions in the settings window
  • keep pressed and disabled states visually consistent with the rest of the settings palette

Use an explicit prominent button style for settings actions so Save, Add, and Done always render with high-contrast text on a visible accent background across appearances.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 10, 2026 04:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves readability of primary action buttons in the Settings window by introducing a dedicated SwiftUI ButtonStyle that uses the system accent color fill paired with a high-contrast foreground, rather than relying on the default prominent button styling.

Changes:

  • Introduces SettingsProminentButtonStyle, parameterized by ControlSize, to enforce consistent padding, corner radius, and pressed/disabled appearance.
  • Applies the shared style to the Settings primary actions (Save, Add, Done).
  • Extends SettingsPalette with accent fill and text colors used by the new button style.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jianxing-chen
jianxing-chen merged commit a5f6032 into main Jun 10, 2026
1 check passed
@jianxing-chen
jianxing-chen deleted the jianxing-chen/fix-settings-button-contrast branch June 10, 2026 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants