summaryrefslogtreecommitdiffstats
path: root/src/settings.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings.rs')
-rw-r--r--src/settings.rs14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/settings.rs b/src/settings.rs
index 62a1a614..b725ef9f 100644
--- a/src/settings.rs
+++ b/src/settings.rs
@@ -1,7 +1,7 @@
//! Configure your application.
/// The settings of an application.
-#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
+#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Settings {
/// The [`Window`] settings.
///
@@ -9,6 +9,18 @@ pub struct Settings {
///
/// [`Window`]: struct.Window.html
pub window: Window,
+
+ // TODO: Add `name` for web compatibility
+ pub default_font: Option<&'static [u8]>,
+}
+
+impl Default for Settings {
+ fn default() -> Settings {
+ Settings {
+ window: Window::default(),
+ default_font: None,
+ }
+ }
}
/// The window settings of an application.