X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=src%2Fsettings.rs;h=511cb8cf0c45be548e22b0c144185232c53b8835;hb=HEAD;hp=993917855d42237c2b90f17488c4c2ef7d416bb1;hpb=cbe5e6d643cafbb36dc0e2019651900a0623938a;p=temp2RGB.git diff --git a/src/settings.rs b/src/settings.rs index 9939178..511cb8c 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -17,8 +17,10 @@ pub enum MachineName { #[derive(Debug, Deserialize, Serialize)] pub struct Settings { pub machine_name: MachineName, - pub cold_color: RGB, - pub hot_color: RGB, + pub cold_color_1: RGB, + pub hot_color_1: RGB, + pub cold_color_2: Option, + pub hot_color_2: Option, // Average temperature between CPU and GPU. pub cold_temperature: f32, pub hot_temperature: f32, @@ -30,16 +32,18 @@ impl Settings { fn default() -> Self { Settings { machine_name: MachineName::Jiji, - cold_color: RGB { + cold_color_1: RGB { red: 0, green: 255, blue: 40, }, - hot_color: RGB { + hot_color_1: RGB { red: 255, green: 0, blue: 0, }, + cold_color_2: None, + hot_color_2: None, cold_temperature: 55., hot_temperature: 75., }