summaryrefslogtreecommitdiffstats
path: root/style/src/container.rs
diff options
context:
space:
mode:
Diffstat (limited to 'style/src/container.rs')
-rw-r--r--style/src/container.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/style/src/container.rs b/style/src/container.rs
index 484fdfda..d2247342 100644
--- a/style/src/container.rs
+++ b/style/src/container.rs
@@ -11,6 +11,18 @@ pub struct Style {
pub border_color: Color,
}
+impl std::default::Default for Style {
+ fn default() -> Self {
+ Self {
+ text_color: None,
+ background: None,
+ border_radius: 0,
+ border_width: 0,
+ border_color: Color::TRANSPARENT,
+ }
+ }
+}
+
/// A set of rules that dictate the style of a container.
pub trait StyleSheet {
/// Produces the style of a container.