Skip to content

Add some built-in text styles for each Palette color#2500

Merged
hecrj merged 1 commit into
masterfrom
builtin-text-styles
Jul 11, 2024
Merged

Add some built-in text styles for each Palette color#2500
hecrj merged 1 commit into
masterfrom
builtin-text-styles

Conversation

@hecrj

@hecrj hecrj commented Jul 11, 2024

Copy link
Copy Markdown
Member

Leverage the theme palette more conveniently:

use iced::widget::text;

text("Some error!").style(text::danger)

@hecrj hecrj added feature New feature or request text widget addition labels Jul 11, 2024
@hecrj hecrj added this to the 0.13 milestone Jul 11, 2024
@hecrj hecrj enabled auto-merge July 11, 2024 02:59
@hecrj hecrj merged commit 3c55e07 into master Jul 11, 2024
@hecrj hecrj deleted the builtin-text-styles branch July 11, 2024 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant