mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
ROGCC: use the correct colourspace for colour picker
This commit is contained in:
@@ -61,8 +61,8 @@ pub fn aura_modes_group(
|
||||
ui.selectable_value(&mut effect.direction, a, format!("{:?}", a));
|
||||
};
|
||||
|
||||
let mut c1: [f32; 3] = effect.colour1.into();
|
||||
let mut c2: [f32; 3] = effect.colour2.into();
|
||||
let mut c1: [u8; 3] = effect.colour1.into();
|
||||
let mut c2: [u8; 3] = effect.colour2.into();
|
||||
|
||||
ui.separator();
|
||||
ui.horizontal_wrapped(|ui| {
|
||||
@@ -118,9 +118,9 @@ pub fn aura_modes_group(
|
||||
}
|
||||
|
||||
ui.set_enabled(allowed.colour1);
|
||||
egui::color_picker::color_edit_button_rgb(ui, &mut c1);
|
||||
egui::color_picker::color_edit_button_srgb(ui, &mut c1);
|
||||
ui.set_enabled(allowed.colour2);
|
||||
egui::color_picker::color_edit_button_rgb(ui, &mut c2);
|
||||
egui::color_picker::color_edit_button_srgb(ui, &mut c2);
|
||||
|
||||
ui.set_enabled(allowed.speed);
|
||||
ui.horizontal_wrapped(|ui| {
|
||||
|
||||
@@ -2,16 +2,16 @@ mod anime_power;
|
||||
mod aura_modes;
|
||||
mod aura_power;
|
||||
mod fan_graph;
|
||||
mod keyboard_layout;
|
||||
mod rog_bios;
|
||||
mod side_panel;
|
||||
mod top_bar;
|
||||
mod keyboard_layout;
|
||||
|
||||
pub use anime_power::*;
|
||||
pub use aura_modes::*;
|
||||
pub use aura_power::*;
|
||||
pub use fan_graph::*;
|
||||
pub use keyboard_layout::*;
|
||||
pub use rog_bios::*;
|
||||
pub use side_panel::*;
|
||||
pub use top_bar::*;
|
||||
pub use keyboard_layout::*;
|
||||
Reference in New Issue
Block a user