mirror of
https://github.com/ilya-zlobintsev/LACT.git
synced 2026-08-17 16:34:54 -05:00
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:
co-authored by
Ilya Zlobintsev
parent
56e4d9d3bd
commit
618072afd1
@@ -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
|
||||
|
||||
@@ -8,5 +8,5 @@
|
||||
}
|
||||
|
||||
.main-sidebar-container separator {
|
||||
margin: 0 2px;
|
||||
margin: 0 10px;
|
||||
}
|
||||
+6
-7
@@ -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 = >k::Button {
|
||||
set_label: &fl!(I18N, "show-historical-charts"),
|
||||
connect_clicked => move |_| APP_BROKER.send(AppMsg::ShowGraphsWindow),
|
||||
},
|
||||
},
|
||||
|
||||
add_top_bar = &adw::Banner {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 = >k::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 = >k::FlowBox {
|
||||
set_orientation: gtk::Orientation::Horizontal,
|
||||
set_column_spacing: 10,
|
||||
|
||||
@@ -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 = >k::FlowBox {
|
||||
set_orientation: gtk::Orientation::Horizontal,
|
||||
set_column_spacing: 10,
|
||||
|
||||
Reference in New Issue
Block a user