Add default and base stylings to text widget
This commit is contained in:
parent
a3d9cf2a64
commit
5e6d994199
1 changed files with 12 additions and 0 deletions
|
|
@ -373,6 +373,18 @@ impl Catalog for Theme {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// The default text styling; color is inherited.
|
||||||
|
pub fn default(_theme: &Theme) -> Style {
|
||||||
|
Style { color: None }
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Text with the default base color.
|
||||||
|
pub fn base(theme: &Theme) -> Style {
|
||||||
|
Style {
|
||||||
|
color: Some(theme.palette().text),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// Text conveying some important information, like an action.
|
/// Text conveying some important information, like an action.
|
||||||
pub fn primary(theme: &Theme) -> Style {
|
pub fn primary(theme: &Theme) -> Style {
|
||||||
Style {
|
Style {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue