-
Greetings, I've built some custom controls, and want to see if there are colors provided by current theme I can use as defaults for my components. I assume there is a text style I can get from current theme that will automatically make text rendered, update when color scheme changes? Also things like borders vs typical control backgrounds etc. If I can get some pointers, I can create a pr to document these in colors section of the demo app or something. Appreciate input, and loving working with fluent_ui |
Beta Was this translation helpful? Give feedback.
Answered by
bdlukaa
Mar 2, 2024
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You may want to play with color resources:
FluentTheme.of(context).resources...
....resources.controlStrokeColorDefault
, for example, is the default color for controls borders, but there are several options. These colors are used on the built-in widgets, but anyone can make use of them.