Minor adjust to rgb bright slider

This commit is contained in:
Luke D. Jones
2024-03-03 13:30:46 +13:00
parent 3da848d131
commit b798cf6a4e
4 changed files with 6 additions and 8 deletions

View File

@@ -431,8 +431,7 @@ fn rgb_hi(colour: Color) -> (f32, f32) {
}
};
let h2 = ((h * 60.0) + 360.0) % 360.0;
let i = 0.299 * c1.red + 0.587 * c1.green + 0.114 * c1.blue;
let i = (c1.red + c1.green + c1.blue) / 3.0;
(h2, i)
}
@@ -458,7 +457,6 @@ fn setup_aura_page(ui: &MainWindow, _states: Arc<Mutex<Config>>) {
green: c1.green * f,
blue: c1.blue * f,
};
// dbg!(rgb_hi(c.into()));
c.into()
});