We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e98769 commit e4e493dCopy full SHA for e4e493d
src/util.rs
@@ -56,12 +56,25 @@ pub fn load_config() -> (Config, PathBuf) {
56
57
#[derive(Serialize, Deserialize, Clone, Debug)]
58
pub struct WindowConfig {
59
+ #[serde(default)]
60
process_name: String,
61
62
window_class: String,
63
64
transparency: u8,
65
66
enabled: bool,
67
}
-
68
+impl Default for WindowConfig {
69
+ fn default() -> Self {
70
+ Self {
71
+ process_name: String::new(),
72
+ window_class: String::new(),
73
+ transparency: 255,
74
+ enabled: false,
75
+ }
76
77
+}
78
impl From<&WindowConfig> for TransparencyRule {
79
fn from(config: &WindowConfig) -> Self {
80
TransparencyRule {
0 commit comments