feat: remove some redundant category titles (#980)

* remove some titles, move how-historical-charts to header

* align cards with gpu picker

* remvoe unused imports

* chore: update graphs button text

---------

Co-authored-by: Ilya Zlobintsev <ilya.zl@protonmail.com>
This commit is contained in:
Roman Makarov
2026-04-23 21:21:24 +03:00
committed by GitHub
co-authored by Ilya Zlobintsev
parent 56e4d9d3bd
commit 618072afd1
7 changed files with 14 additions and 23 deletions
+1 -1
View File
@@ -193,7 +193,7 @@ vram-pstates = VRAM Power States
pstates-manual-needed = Performance level must be set to 'manual' to toggle power states
enable-pstate-config = Enable power state configuration
show-historical-charts = Show Historical Charts
show-historical-charts = Show Graphs
show-process-monitor = Show Process Monitor
generate-debug-snapshot = Generate Debug Snapshot
dump-vbios = Dump VBIOS
+1 -1
View File
@@ -8,5 +8,5 @@
}
.main-sidebar-container separator {
margin: 0 2px;
margin: 0 10px;
}
+6 -7
View File
@@ -257,12 +257,6 @@ impl AsyncComponent for AppModel {
set_orientation: gtk::Orientation::Vertical,
add_css_class: "header-settings-popover-container",
gtk::Button {
set_label: &fl!(I18N, "show-historical-charts"),
connect_clicked => move |_| APP_BROKER.send(AppMsg::ShowGraphsWindow),
add_css_class: "flat",
},
gtk::Button {
set_label: &fl!(I18N, "show-process-monitor"),
connect_clicked => move |_| APP_BROKER.send(AppMsg::ShowProcessMonitor),
@@ -387,7 +381,12 @@ impl AsyncComponent for AppModel {
},
}
},
}
},
pack_end = &gtk::Button {
set_label: &fl!(I18N, "show-historical-charts"),
connect_clicked => move |_| APP_BROKER.send(AppMsg::ShowGraphsWindow),
},
},
add_top_bar = &adw::Banner {
+1
View File
@@ -32,6 +32,7 @@ impl relm4::SimpleComponent for InformationPage {
set_orientation: gtk::Orientation::Vertical,
set_spacing: 15,
set_margin_all: 15,
set_margin_top: 20, // align with gpu picker
PageSection::new("") {
append_child = &model.values_list.widget().clone() -> gtk::FlowBox {
+1
View File
@@ -66,6 +66,7 @@ impl relm4::Component for OcPage {
set_orientation: gtk::Orientation::Vertical,
set_spacing: 10,
set_margin_all: 15,
set_margin_top: 20, // align with gpu picker
model.stats_section.widget(),
model.power_cap_section.widget(),
@@ -1,6 +1,4 @@
use crate::I18N;
use crate::app::APP_BROKER;
use crate::app::msg::AppMsg;
use crate::app::{
ext::FlowBoxExt,
formatting::{self, Mono},
@@ -9,9 +7,7 @@ use crate::app::{
page_section::PageSection,
};
use gtk::pango::AttrList;
use gtk::prelude::{
BoxExt, ButtonExt, Cast, FlowBoxChildExt, OrientableExt, PopoverExt as _, WidgetExt,
};
use gtk::prelude::{BoxExt, Cast, FlowBoxChildExt, OrientableExt, PopoverExt as _, WidgetExt};
use i18n_embed_fl::fl;
use lact_schema::{DeviceInfo, DeviceStats, PowerStates, PowerStats};
use relm4::{ComponentParts, ComponentSender, RelmWidgetExt as _};
@@ -48,14 +44,7 @@ impl relm4::SimpleComponent for GpuStatsSection {
set_orientation: gtk::Orientation::Vertical,
set_spacing: 10,
PageSection::new(&fl!(I18N, "stats-section")) {
append_header = &gtk::Button {
set_label: &fl!(I18N, "show-historical-charts"),
connect_clicked => move |_| APP_BROKER.send(AppMsg::ShowGraphsWindow),
set_halign: gtk::Align::End,
set_hexpand: true,
},
PageSection::new("") {
append_child = &gtk::FlowBox {
set_orientation: gtk::Orientation::Horizontal,
set_column_spacing: 10,
+2 -1
View File
@@ -100,8 +100,9 @@ impl relm4::Component for ThermalsPage {
set_orientation: gtk::Orientation::Vertical,
set_spacing: 15,
set_margin_all: 15,
set_margin_top: 20, // align with gpu picker
PageSection::new(&fl!(I18N, "monitoring-section")) {
PageSection::new("") {
append_child = &gtk::FlowBox {
set_orientation: gtk::Orientation::Horizontal,
set_column_spacing: 10,