mirror of
https://github.com/FyroxEngine/Fyrox.git
synced 2026-10-12 02:02:20 +00:00
added margin for pick button image
This commit is contained in:
@@ -53,7 +53,9 @@ pub fn make_pick_button(column: usize, ctx: &mut BuildContext) -> Handle<UiNode>
|
||||
)
|
||||
.with_content(
|
||||
ImageBuilder::new(
|
||||
WidgetBuilder::new().with_background(Brush::Solid(Color::opaque(0, 180, 0)).into()),
|
||||
WidgetBuilder::new()
|
||||
.with_margin(Thickness::uniform(1.0))
|
||||
.with_background(Brush::Solid(Color::opaque(0, 180, 0)).into()),
|
||||
)
|
||||
.with_opt_texture(load_image!("../../resources/pick.png"))
|
||||
.build(ctx),
|
||||
|
||||
Reference in New Issue
Block a user