Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
e84ac99
rog-platform: Add battery health, cycles, and power consumption helpers
scardracs Jun 29, 2026
ad982c5
gui: Add Battery Information card to System page
scardracs Jun 29, 2026
c54571e
ui: Spawn background loop to poll and update battery stats
scardracs Jun 29, 2026
f30c710
style: Apply cargo fmt
scardracs Jun 29, 2026
8f122fa
fix: Resolve clippy warning in get_battery_health
scardracs Jun 29, 2026
7a4a8f3
rog-platform: Add battery Wh capacity and time estimate calculations
scardracs Jun 29, 2026
a4b72eb
gui: Render battery time estimate in System page
scardracs Jun 29, 2026
44ea4da
ui: Update system page setup to poll and format battery time estimate
scardracs Jun 29, 2026
a99e19c
Expose hardware monitoring properties in system.slint
scardracs Jun 29, 2026
520d016
Implement live hardware monitoring backend in setup_system.rs
scardracs Jun 29, 2026
aa7988e
Redesign system page layout with modern cards and icons
scardracs Jun 29, 2026
bd81926
Add serde_json to rog-control-center dependencies
scardracs Jun 29, 2026
8e27336
Update Cargo.lock for serde_json
scardracs Jun 29, 2026
01f027f
Add auto_refresh_rate configuration to Config
scardracs Jun 29, 2026
f12f970
Add Auto-switch refresh rate toggle to App Settings UI
scardracs Jun 29, 2026
519b572
Bind auto_refresh_rate toggle in App Settings controller
scardracs Jun 29, 2026
fd07820
Add Display Settings card to System UI
scardracs Jun 29, 2026
6e3e87a
Implement refresh rate auto-switching logic on power state change
scardracs Jun 29, 2026
c8443b7
Refactor display settings backend to be DE and compositor agnostic
scardracs Jun 29, 2026
07e5405
Move battery info and charge limit to dedicated page
scardracs Jun 29, 2026
22b211a
ui: remove battery cycle count display from control center
scardracs Jul 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions rog-control-center/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ notify-rust.workspace = true
concat-idents.workspace = true
futures-util.workspace = true
thiserror.workspace = true
serde_json = "1.0"

[dependencies.slint]
git = "https://github.com/slint-ui/slint.git"
Expand Down
4 changes: 4 additions & 0 deletions rog-control-center/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ pub struct Config {
pub run_in_background: bool,
pub startup_in_background: bool,
pub enable_tray_icon: bool,
#[serde(default)]
pub auto_refresh_rate: bool,
pub ac_command: String,
pub bat_command: String,
pub dark_mode: bool,
Expand All @@ -30,6 +32,7 @@ impl Default for Config {
run_in_background: true,
startup_in_background: false,
enable_tray_icon: true,
auto_refresh_rate: false,
dark_mode: true,
start_fullscreen: false,
fullscreen_width: 1920,
Expand Down Expand Up @@ -86,6 +89,7 @@ impl From<Config461> for Config {
run_in_background: c.run_in_background,
startup_in_background: c.startup_in_background,
enable_tray_icon: true,
auto_refresh_rate: false,
ac_command: c.ac_command,
bat_command: c.bat_command,
dark_mode: true,
Expand Down
15 changes: 12 additions & 3 deletions rog-control-center/src/ui/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,10 @@ pub fn setup_window(
available.contains(&"xyz.ljones.Anime".to_string()),
available.contains(&"xyz.ljones.Slash".to_string()),
available.contains(&"xyz.ljones.FanCurves".to_string()),
true, // GPU Configuration
true, // App Settings
true, // About
true, // GPU Configuration
available.contains(&"xyz.ljones.Platform".to_string()), // Battery Info
true, // App Settings
true, // About
]
.into(),
);
Expand Down Expand Up @@ -211,11 +212,19 @@ pub fn setup_app_settings_page(ui: &MainWindow, config: Arc<Mutex<Config>>) {
lock.write();
}
});
let config_copy = config.clone();
global.on_set_auto_refresh_rate(move |enable| {
if let Ok(mut lock) = config_copy.try_lock() {
lock.auto_refresh_rate = enable;
lock.write();
}
});

if let Ok(lock) = config.try_lock() {
global.set_run_in_background(lock.run_in_background);
global.set_startup_in_background(lock.startup_in_background);
global.set_enable_tray_icon(lock.enable_tray_icon);
global.set_enable_dgpu_notifications(lock.notifications.enabled);
global.set_auto_refresh_rate(lock.auto_refresh_rate);
}
}
Loading