Move quicksearch bar in pattern monitor to not overlap close button

This commit is contained in:
DBotThePony 2023-07-18 13:37:16 +07:00
parent 1ee071bfdb
commit bafe74ea24
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -54,12 +54,14 @@ class MatterPanelScreen(
val controls = DeviceControls(this, frame) val controls = DeviceControls(this, frame)
LargeBooleanRectangleButtonPanel(this, controls, LargeBooleanRectangleButtonPanel(
prop = menu.isAscendingGS, this,
skinElementActive = Widgets18.ARROW_UP, controls,
skinElementInactive = Widgets18.ARROW_DOWN, prop = menu.isAscendingGS,
tooltipActive = TranslatableComponent("otm.gui.sorting.ascending"), skinElementActive = Widgets18.ARROW_UP,
tooltipInactive = TranslatableComponent("otm.gui.sorting.descending"), skinElementInactive = Widgets18.ARROW_DOWN,
tooltipActive = TranslatableComponent("otm.gui.sorting.ascending"),
tooltipInactive = TranslatableComponent("otm.gui.sorting.descending"),
).also { ).also {
controls.addButton(it) controls.addButton(it)
} }
@ -91,7 +93,7 @@ class MatterPanelScreen(
object : TextInputPanel<MatterPanelScreen>(this@MatterPanelScreen, frame) { object : TextInputPanel<MatterPanelScreen>(this@MatterPanelScreen, frame) {
init { init {
width = frame.width * 0.4f width = frame.width * 0.4f
x = frame.width - width - FramePanel.PADDING x = frame.width - width - FramePanel.PADDING - 6f
y = 4f y = 4f
placeholder = TranslatableComponent("otm.gui.quicksearch") placeholder = TranslatableComponent("otm.gui.quicksearch")
} }