ROGCC: splatter log messages everywhere. Rename state control

This commit is contained in:
Luke D. Jones
2022-11-16 20:32:00 +13:00
parent 73b1a7050a
commit ad79adcbfa
20 changed files with 250 additions and 89 deletions

View File

@@ -4,13 +4,13 @@ use egui::Color32;
use rog_aura::{AuraEffect, AuraModeNum};
use crate::{
page_states::PageDataStates,
system_state::SystemState,
widgets::{aura_modes_group, keyboard},
RogApp,
};
impl RogApp {
pub fn aura_page(&mut self, states: &mut PageDataStates, ctx: &egui::Context) {
pub fn aura_page(&mut self, states: &mut SystemState, ctx: &egui::Context) {
let Self {
supported,
oscillator1,

View File

@@ -1,5 +1,5 @@
use crate::{
page_states::{FanCurvesState, PageDataStates, ProfilesState},
system_state::{FanCurvesState, ProfilesState, SystemState},
widgets::fan_graphs,
RogApp, RogDbusClientBlocking,
};
@@ -8,7 +8,7 @@ use rog_platform::supported::SupportedFunctions;
use rog_profiles::Profile;
impl RogApp {
pub fn fan_curve_page(&mut self, states: &mut PageDataStates, ctx: &egui::Context) {
pub fn fan_curve_page(&mut self, states: &mut SystemState, ctx: &egui::Context) {
let Self { supported, .. } = self;
egui::CentralPanel::default().show(ctx, |ui| {

View File

@@ -1,5 +1,5 @@
use crate::{
page_states::PageDataStates,
system_state::SystemState,
widgets::{
anime_power_group, app_settings, aura_power_group, platform_profile, rog_bios_group,
},
@@ -7,7 +7,7 @@ use crate::{
};
impl RogApp {
pub fn system_page(&mut self, states: &mut PageDataStates, ctx: &egui::Context) {
pub fn system_page(&mut self, states: &mut SystemState, ctx: &egui::Context) {
let Self {
config, supported, ..
} = self;