Skip to content

Commit

Permalink
Adjust element options
Browse files Browse the repository at this point in the history
  • Loading branch information
Zerthox committed Jun 11, 2024
1 parent 238f790 commit cfa3156
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/elements/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ impl RenderOptions for Common {
{
self.opacity = opacity / 100.0;
}

ui.spacing();
}
}

Expand Down
7 changes: 3 additions & 4 deletions src/elements/pack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,9 @@ impl Pack {
{
// TODO: layer input
let _style = style_disabled(ui);
let mut layer = self.layer;
ui.input_int("Layer", &mut layer)
.step(0)
.step_fast(0)
ui.input_int("Layer", &mut self.layer)
.step(1)
.step_fast(10)
.read_only(true)
.build();
}
Expand Down
1 change: 0 additions & 1 deletion src/elements/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ impl RenderOptions for Text {
fn render_options(&mut self, ui: &Ui) {
// TODO: we rely on buffs interval refreshing the text memo

ui.spacing();
self.buff.render_options(ui);

ui.spacing();
Expand Down

0 comments on commit cfa3156

Please sign in to comment.