Skip to content

Add UI-based color and font customization#11

Merged
ALArvi019 merged 6 commits intomainfrom
copilot/update-text-color-contrast
Jan 31, 2026
Merged

Add UI-based color and font customization#11
ALArvi019 merged 6 commits intomainfrom
copilot/update-text-color-contrast

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 12, 2025

Summary

This PR adds the ability to customize colors and font sizes directly from the Home Assistant UI, addressing the request for better contrast and larger fonts.

Features

  • Color customization via UI: Users can now customize colors for both light and dark modes through Settings → Devices & Services → Configure
  • Font size sliders: Adjustable font sizes for title (10-32px), labels (8-24px), and axis (6-18px)
  • Improved defaults: Higher contrast colors for light mode (darker red/blue for tide markers)

Changes

  • config_flow.py: Added new options flow step with RGB color pickers and font size sliders
  • __init__.py: Pass custom colors and font sizes to TidePlotManager
  • const.py: Added configuration constants and improved default color schemes
  • strings.json: Added UI translations for customization options
  • manifest.json: Version bump to 1.1.6
  • Documentation updated with customization instructions and screenshot

Screenshot

Color Customization

Fixes #10

Copilot AI and others added 4 commits December 12, 2025 21:26
- Add default color constants in const.py for light and dark modes
- Update TidePlotManager to accept custom_colors and font parameters
- Use higher contrast defaults (darker red/blue) for light mode
- Create new example (10-custom-colors) with documentation
- Update README.md with new customization options

Co-authored-by: ALArvi019 <5780489+ALArvi019@users.noreply.github.com>
Co-authored-by: ALArvi019 <5780489+ALArvi019@users.noreply.github.com>
…r text

Co-authored-by: ALArvi019 <5780489+ALArvi019@users.noreply.github.com>
Co-authored-by: ALArvi019 <5780489+ALArvi019@users.noreply.github.com>
Copilot AI changed the title [WIP] Improve text color contrast in light theme Add customizable text colors and fonts for tide plots Dec 12, 2025
Copilot AI requested a review from ALArvi019 December 12, 2025 21:34
- Add color picker for light/dark mode colors (high tide, low tide, tide line, text)
- Add font size sliders for title, labels, and axis
- Settings accessible via Configure in Devices & Services
- Update documentation with customization instructions and screenshot

Fixes #10
@ALArvi019 ALArvi019 changed the title Add customizable text colors and fonts for tide plots Add UI-based color and font customization Jan 31, 2026
@ALArvi019 ALArvi019 marked this pull request as ready for review January 31, 2026 19:49
@ALArvi019 ALArvi019 merged commit a8b8e3b into main Jan 31, 2026
4 checks passed
@ALArvi019 ALArvi019 deleted the copilot/update-text-color-contrast branch January 31, 2026 19:50
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.

Use more contrast for text colors

2 participants