mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
rog-aura: stand-off the rog row
This commit is contained in:
@@ -25,11 +25,18 @@ impl<'a> RogApp<'a> {
|
||||
|
||||
ui.spacing_mut().item_spacing = egui::vec2(0.0, 0.0);
|
||||
let mut arrows_done = false;
|
||||
let mut rog_done = false;
|
||||
for row in states.keyboard_layout.rows() {
|
||||
let height = row.height();
|
||||
ui.horizontal_top(|ui| {
|
||||
for key in row.row() {
|
||||
// your boat
|
||||
let height = if rog_done {
|
||||
row.height()
|
||||
} else {
|
||||
// Use the first item (always a blank) to stand off the row
|
||||
rog_done = true;
|
||||
1.2
|
||||
};
|
||||
let shape = KeyShape::from(key);
|
||||
|
||||
let label = <&str>::from(key);
|
||||
|
||||
Reference in New Issue
Block a user