mirror of
https://github.com/hannobraun/Fornjot
synced 2025-09-14 13:18:02 +00:00
Highlight selected operation
This commit is contained in:
parent
4fcc3fc5f4
commit
ae0d46c702
@ -76,8 +76,12 @@ impl TextRenderer {
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
for op in operations.operations.iter() {
|
for (i, op) in operations.operations.iter().enumerate() {
|
||||||
let attrs = glyphon::Attrs::new();
|
let mut attrs = glyphon::Attrs::new();
|
||||||
|
|
||||||
|
if i == operations.selected {
|
||||||
|
attrs = attrs.color(glyphon::Color::rgb(0, 127, 0));
|
||||||
|
}
|
||||||
|
|
||||||
buffer.lines.push(glyphon::BufferLine::new(
|
buffer.lines.push(glyphon::BufferLine::new(
|
||||||
format!("{op}"),
|
format!("{op}"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user