feat: update defaults for PageContent and InfoRow (#854)

* upd style for the power limit widget

* re-ogranise content of gpu stats block

* rework InfoRow component to use dim labels

* update PageSection

* page_section: set the default padding

* migrate custom PageContent children to InfoRow

* add info_row_level component

* fix fmt

* page_section fmt

* use css consts from relm

* make info_row parent of info_row_level

* fix fmt

* set max_children_per_line to 2

* upd info page to fit 2 rows

* upd software page

* software_page: upd opencl and handle set_visible correctly

* migrate features and extensions to separate clickable rows instead of buttons

* fmt

* rework cache-row to fit current design

* move cache-info InfoRow into main FlowBox

* add frame with accent color for non-adw build

* remove offsets from the level_bar to

* "fix" warning

* remove recolor for the frame border

* thermals page: move InfoRows into flowBox

* add warning css on oc-warning

* add margin to pstates to follow the margins of other elements

* page_section: move styles to macro, remove container class from thermals_page widget

* fmt

* fix thermals Stack container

* remove unused import

* remove some checker exceptions from setters on InfoRowExt

* add spacing 5 between info row value and label

* fix warnings and use view macro on info_row_level

* set static width for the main container

* add hover effect clickable infoRows

* set set_max_children_per_line: 4

* use include_str! to load css

* set `set_max_children_per_line` to 4 consistently
This commit is contained in:
Roman Makarov
2026-01-17 17:14:31 +02:00
committed by GitHub
parent f3bff2cd09
commit b1ea5215a3
15 changed files with 588 additions and 292 deletions
+1 -1
View File
@@ -220,7 +220,7 @@ impl DeviceInfo {
stats
.vram
.total
.map(|size| format!("{} MiB", size / 1024 / 1024)),
.map(|size| format!("{:.2} GiB", size as f64 / 1024.0 / 1024.0 / 1024.0)),
));
}