summaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
authorMaxVerevkin <maxxverrr@gmail.com>2022-08-08 23:12:23 +0300
committerMaxVerevkin <maxxverrr@gmail.com>2022-08-08 23:59:59 +0300
commit1851c56e407cac72ca104cc5e75692cd9c648986 (patch)
tree31473532e01ee6ee1571974a6abf59463e3265ed /src/config.rs
parent9ddde2d2ee9833412e39afbd1ed907cdea22f08f (diff)
downloadi3bar-mango-1851c56e407cac72ca104cc5e75692cd9c648986.tar.gz
rewrite using latest walayd libs & implement HiDPI
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/config.rs b/src/config.rs
index 66b8c8a..bd7b91c 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -7,8 +7,8 @@ use std::fmt;
use std::fs::read_to_string;
use std::ops::Deref;
-#[derive(Deserialize)]
-#[serde(default)]
+#[derive(Deserialize, Debug)]
+#[serde(deny_unknown_fields, default)]
pub struct Config {
// colors
pub background: Color,
@@ -79,6 +79,7 @@ impl Config {
}
}
+#[derive(Debug)]
pub struct Font(pub FontDescription);
impl Font {