Move quicksearch bar in pattern monitor to not overlap close button
This commit is contained in:
parent
1ee071bfdb
commit
bafe74ea24
@ -54,12 +54,14 @@ class MatterPanelScreen(
|
||||
|
||||
val controls = DeviceControls(this, frame)
|
||||
|
||||
LargeBooleanRectangleButtonPanel(this, controls,
|
||||
prop = menu.isAscendingGS,
|
||||
skinElementActive = Widgets18.ARROW_UP,
|
||||
skinElementInactive = Widgets18.ARROW_DOWN,
|
||||
tooltipActive = TranslatableComponent("otm.gui.sorting.ascending"),
|
||||
tooltipInactive = TranslatableComponent("otm.gui.sorting.descending"),
|
||||
LargeBooleanRectangleButtonPanel(
|
||||
this,
|
||||
controls,
|
||||
prop = menu.isAscendingGS,
|
||||
skinElementActive = Widgets18.ARROW_UP,
|
||||
skinElementInactive = Widgets18.ARROW_DOWN,
|
||||
tooltipActive = TranslatableComponent("otm.gui.sorting.ascending"),
|
||||
tooltipInactive = TranslatableComponent("otm.gui.sorting.descending"),
|
||||
).also {
|
||||
controls.addButton(it)
|
||||
}
|
||||
@ -91,7 +93,7 @@ class MatterPanelScreen(
|
||||
object : TextInputPanel<MatterPanelScreen>(this@MatterPanelScreen, frame) {
|
||||
init {
|
||||
width = frame.width * 0.4f
|
||||
x = frame.width - width - FramePanel.PADDING
|
||||
x = frame.width - width - FramePanel.PADDING - 6f
|
||||
y = 4f
|
||||
placeholder = TranslatableComponent("otm.gui.quicksearch")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user