question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Give developers more (full) control over control colors

See original GitHub issue

Description

When creating a new MAUI Project there is a Styles.xaml file with styles and colors of controls. However even when all colors in there have been changed, a lot of MAUI controls still have its own (hardcoded?) colors. Just to name a few:

Entry - Cannot change color of caret and underline Popup - Cannot change the cancel button foreground Searchbar - Cannot change the searchbar icon foreground Flyouts - I can change the background color via property but the title foreground I cannot change unless I add my own item template.

I don’t know if the styles in Styles.xaml are just incomplete and these things can easily be changed by overriding a property in those styles or if they are really hardcoded. But in both cases this needs to get addressed. There are so many public properties about colors on all controls but it feels extremely incomplete just like the Flyout example.

Public API Changes

Like I said above if there is a property for background, make sure there is a property for foreground as well. If there is no property at all, make it style-able in Styles.xaml showing how to. And remove all hardcoded colors instead bind them to the colors specified in Styles.xaml

Intended Use-Case

Quite obvious, if I define my own background color for pages most controls don’t fit. Or when I define my own accent color to yellow and some of the controls have their accent to default MAUI purple (like Entry), it don’t fit again.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:12
  • Comments:5

github_iconTop GitHub Comments

6reactions
msftbot[bot]commented, Aug 24, 2022

We’ve moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

0reactions
Compycommented, Aug 1, 2023

Any updates?

Read more comments on GitHub >

github_iconTop Results From Across the Web

More control over colors in mix-blend mode
I've been trying all day to find a solution to colorize text when a slanted element is over it. I have partially solved...
Read more >
'Repainter' will give you full control over Android 12's colors ...
Unfortunately, though, the method this app uses to adjust Android 12's colors without root has been broken with the January 2022 security patch....
Read more >
'Repainter' gives you control over Android 12 colors
Android 12's wallpaper-inspired colors are awesome, but "Repainter" makes them even better by giving users full control over the colors.
Read more >
Enhance graphics with wide color content
To enable the wide color gamut in your activity, set the colorMode attribute to wideColorGamut in your AndroidManifest.xml file. You need to do ......
Read more >
Color | Apple Developer Documentation
The system defines colors that look good on various backgrounds and appearance modes, and can automatically adapt to vibrancy and accessibility settings.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found