mirror of
https://github.com/ilya-zlobintsev/LACT.git
synced 2025-02-25 18:55:26 -06:00
Put the OC page warning label outside of grid to avoid messing up column sizes
This commit is contained in:
@@ -23,22 +23,21 @@ impl ClocksFrame {
|
|||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
let container = section_box("Maximum Clocks");
|
let container = section_box("Maximum Clocks");
|
||||||
|
|
||||||
let tweaking_grid = Grid::builder().row_spacing(5).build();
|
|
||||||
|
|
||||||
let warning_label = Label::builder()
|
let warning_label = Label::builder()
|
||||||
.label(WARNING_TEXT)
|
.label(WARNING_TEXT)
|
||||||
.wrap_mode(pango::WrapMode::Word)
|
.wrap_mode(pango::WrapMode::Word)
|
||||||
.halign(Align::Start)
|
.halign(Align::Start)
|
||||||
.hexpand(true)
|
|
||||||
.margin_top(5)
|
.margin_top(5)
|
||||||
.margin_bottom(5)
|
.margin_bottom(5)
|
||||||
.build();
|
.build();
|
||||||
tweaking_grid.attach(&warning_label, 0, 0, 7, 1);
|
container.append(&warning_label);
|
||||||
|
|
||||||
let max_sclk_adjustment = oc_adjustment("GPU Clock (MHz)", &tweaking_grid, 1);
|
let tweaking_grid = Grid::builder().row_spacing(5).build();
|
||||||
let max_voltage_adjustment = oc_adjustment("GPU voltage (mV)", &tweaking_grid, 2);
|
|
||||||
let max_mclk_adjustment = oc_adjustment("VRAM Clock (MHz)", &tweaking_grid, 3);
|
let max_sclk_adjustment = oc_adjustment("GPU Clock (MHz)", &tweaking_grid, 0);
|
||||||
let voltage_offset_adjustment = oc_adjustment("GPU voltage offset (mV)", &tweaking_grid, 4);
|
let max_voltage_adjustment = oc_adjustment("GPU voltage (mV)", &tweaking_grid, 1);
|
||||||
|
let max_mclk_adjustment = oc_adjustment("VRAM Clock (MHz)", &tweaking_grid, 2);
|
||||||
|
let voltage_offset_adjustment = oc_adjustment("GPU voltage offset (mV)", &tweaking_grid, 3);
|
||||||
|
|
||||||
let reset_button = Button::builder()
|
let reset_button = Button::builder()
|
||||||
.label("Reset")
|
.label("Reset")
|
||||||
@@ -48,7 +47,7 @@ impl ClocksFrame {
|
|||||||
.tooltip_text("Warning: this resets all clock settings to defaults!")
|
.tooltip_text("Warning: this resets all clock settings to defaults!")
|
||||||
.css_classes(["destructive-action"])
|
.css_classes(["destructive-action"])
|
||||||
.build();
|
.build();
|
||||||
tweaking_grid.attach(&reset_button, 6, 5, 1, 1);
|
tweaking_grid.attach(&reset_button, 6, 4, 1, 1);
|
||||||
|
|
||||||
let clocks_data_unavailable_label = Label::new(Some("No clocks data available"));
|
let clocks_data_unavailable_label = Label::new(Some("No clocks data available"));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user