summaryrefslogtreecommitdiffstats
path: root/core/src/widget
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/widget')
-rw-r--r--core/src/widget/text.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/core/src/widget/text.rs b/core/src/widget/text.rs
index 990c5567..91c9893d 100644
--- a/core/src/widget/text.rs
+++ b/core/src/widget/text.rs
@@ -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.
pub fn primary(theme: &Theme) -> Style {
Style {