Trace:
Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
flutterui:text_button [2023/02/28 23:23] admin |
flutterui:text_button [2026/08/19 08:14] (current) admin |
||
|---|---|---|---|
| Line 12: | Line 12: | ||
| Style.addStyleNames(button, "f_text"); | Style.addStyleNames(button, "f_text"); | ||
| </file> | </file> | ||
| + | |||
| + | If the text color should be the same as the color of a label, use: | ||
| + | |||
| + | <file java> | ||
| + | Style.addStyleNames(button, "f_text_label"); | ||
| + | </file> | ||
| + | |||
| + | and the text color of the button will be the same as a standard label/text and it will be changed in dark mode automatically. | ||
