summaryrefslogtreecommitdiffstats
path: root/src/settings.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-01-01 17:49:48 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-01-01 17:49:48 +0100
commitd96ced8e2da703117a43399110ef2b8fa21a7546 (patch)
tree2398eab8edb23b6cfa8145d84ab788cb44cddeb4 /src/settings.rs
parente1062a02d17f5748e4809b76ddcc132f1c912886 (diff)
downloadiced-d96ced8e2da703117a43399110ef2b8fa21a7546.tar.gz
iced-d96ced8e2da703117a43399110ef2b8fa21a7546.tar.bz2
iced-d96ced8e2da703117a43399110ef2b8fa21a7546.zip
Allow configuration of default font
Diffstat (limited to 'src/settings.rs')
-rw-r--r--src/settings.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/settings.rs b/src/settings.rs
index 4ae18a14..b01e6fc8 100644
--- a/src/settings.rs
+++ b/src/settings.rs
@@ -15,6 +15,9 @@ pub struct Settings {
///
/// [`Color`]: ../struct.Color.html
pub background: Color,
+
+ // TODO: Add `name` for web compatibility
+ pub default_font: Option<&'static [u8]>,
}
impl Default for Settings {
@@ -22,6 +25,7 @@ impl Default for Settings {
Settings {
window: Window::default(),
background: Color::WHITE,
+ default_font: None,
}
}
}