Skip to content

Commit 98518c5

Browse files
committed
fixed buttons height + margins
1 parent 96bd562 commit 98518c5

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

editor/src/interaction/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,9 @@ pub fn make_interaction_mode_button(
239239
ImageBuilder::new(
240240
WidgetBuilder::new()
241241
.with_background(ctx.style.property(Style::BRUSH_TEXT))
242-
.with_margin(Thickness::uniform(2.0))
243-
.with_width(23.0)
244-
.with_height(23.0),
242+
.with_margin(Thickness::uniform(4.0))
243+
.with_width(19.0)
244+
.with_height(19.0),
245245
)
246246
.with_opt_texture(load_image_internal(image))
247247
.build(ctx),

editor/src/plugins/inspector/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ impl InspectorPlugin {
262262
docs_button
263263
}),
264264
)
265-
.add_row(Row::strict(22.0))
265+
.add_row(Row::auto())
266266
.add_column(Column::stretch())
267267
.add_column(Column::auto())
268268
.build(ctx),

editor/src/world/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,16 +246,16 @@ impl WorldViewer {
246246
.with_tab_index(Some(3))
247247
.with_vertical_alignment(VerticalAlignment::Center)
248248
.with_margin(Thickness::uniform(1.0))
249-
.with_width(22.0)
250-
.with_height(22.0)
249+
.with_width(26.0)
250+
.with_height(26.0)
251251
.with_tooltip(track_selection_tooltip),
252252
)
253253
.with_content(
254254
ImageBuilder::new(
255255
WidgetBuilder::new()
256256
.with_margin(Thickness::uniform(1.0))
257-
.with_width(10.0)
258-
.with_height(14.0)
257+
.with_width(13.0)
258+
.with_height(17.0)
259259
.with_horizontal_alignment(HorizontalAlignment::Center)
260260
.with_vertical_alignment(VerticalAlignment::Center),
261261
)

0 commit comments

Comments
 (0)