-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bring back theme.HyperlinkColor #3867
Comments
This was deprecated back in 1.4.0 around 3 years ago. |
I don't really have anything against adding it back. The explanation above about text being smaller and needing different contrast makes sense to me. |
I am actually interested in why hyperlink color not being customizable but have to define a separate const. Did I miss anything? |
With the old theme API adding a new item was a breaking change and when we moved to the new API we removed some for consistency. Which means that now it is always primary and to add the customisation back in we need to introduce a new colour name that mirrors the old theme function. (Probably with the same helper at the package level but this time it won't be a breaking change to add it as v2 theme api is extensible). |
Fixed on develop for 2.4.0 |
Checklist
Is your feature request related to a problem?
Currently hyperlinks get their color from
theme.PrimaryColor
, but there used to be atheme.HyperlinkColor
. I propose bringing back HyperlinkColor, to allow more customization while keeping in line with Fyne's theme API design philosophy.In my app's case, since I have a lot of hyperlinks (most text in my app is links), I needed to darken the color of hyperlinks in the app's light theme to have appropriate text contrast. However, this makes the color of other PrimaryColor themed things, especially HighImportance buttons, a little jarringly dark.
Is it possible to construct a solution with the existing API?
No response
Describe the solution you'd like to see.
Bring back
theme.HyperlinkColor
as a standard color name in the theme APIThe text was updated successfully, but these errors were encountered: