mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Groundwork for 'advanced' aura modes Add single zone + Doom light flash Fix mocking for ROGCC Better prepare & change to mapping of keyboard layouts to models and functions Refactor and begin using new key layout stuff Enable first arg to rogcc to set layout in mocking feature mode Complete refactor of key layouts, and to RON serde
65 lines
2.2 KiB
Rust
65 lines
2.2 KiB
Rust
use crate::{Page, RogApp};
|
|
|
|
impl RogApp {
|
|
pub fn side_panel(&mut self, ctx: &egui::Context) {
|
|
egui::SidePanel::left("side_panel")
|
|
.resizable(false)
|
|
.default_width(60.0) // TODO: set size to match icon buttons when done
|
|
.show(ctx, |ui| {
|
|
let Self { page, .. } = self;
|
|
|
|
ui.heading("Functions");
|
|
|
|
ui.separator();
|
|
if ui
|
|
.selectable_value(page, Page::System, "System Settings")
|
|
.clicked()
|
|
{
|
|
*page = Page::System;
|
|
}
|
|
|
|
if self.supported.platform_profile.fan_curves {
|
|
ui.separator();
|
|
if ui
|
|
.selectable_value(page, Page::FanCurves, "Fan Curves")
|
|
.clicked()
|
|
{
|
|
*page = Page::FanCurves;
|
|
}
|
|
}
|
|
|
|
if !self.supported.keyboard_led.basic_modes.is_empty() {
|
|
ui.separator();
|
|
if ui
|
|
.selectable_value(page, Page::AuraEffects, "Keyboard Aura")
|
|
.clicked()
|
|
{
|
|
*page = Page::AuraEffects;
|
|
}
|
|
}
|
|
|
|
// TODO: Anime page is not complete
|
|
// if self.supported.anime_ctrl.0 {
|
|
// ui.separator();
|
|
// if ui
|
|
// .selectable_value(page, Page::AnimeMatrix, "AniMe Matrix")
|
|
// .clicked()
|
|
// {
|
|
// *page = Page::AnimeMatrix;
|
|
// }
|
|
// }
|
|
|
|
ui.with_layout(egui::Layout::bottom_up(egui::Align::LEFT), |ui| {
|
|
ui.horizontal(|ui| {
|
|
ui.spacing_mut().item_spacing.x = 0.0;
|
|
ui.label("Source code ");
|
|
ui.hyperlink_to(
|
|
"rog-gui.",
|
|
"https://gitlab.com/asus-linux/asusctl/-/tree/main/rog-control-center",
|
|
);
|
|
});
|
|
});
|
|
});
|
|
}
|
|
}
|