Skip to content

Commit

Permalink
Custom drawing patterns consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
yveszoundi committed Jul 8, 2022
1 parent e524b72 commit 46996aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions entrusted_client/src/main_gui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -835,9 +835,11 @@ fn main() -> Result<(), Box<dyn Error>> {
let (w, h) = draw::measure("H", true);
let widx = wid.x() + wid.w() - WIDGET_GAP;
let widy = wid.y() + 2;
let old_color = draw::get_color();
draw::draw_rect_fill(widx, widy, WIDGET_GAP, WIDGET_GAP, enums::Color::Blue);
draw::set_draw_color(enums::Color::White);
draw::draw_text("H", (widx + WIDGET_GAP/2) - w/2, wid.y() + h);
draw::set_draw_color(old_color);
}
});

Expand Down

0 comments on commit 46996aa

Please sign in to comment.