mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-25 15:18:23 +00:00
Minor layout changes in SelectAccelerator window
This commit is contained in:
parent
d39397f4d1
commit
d69a418017
@ -3,7 +3,7 @@
|
|||||||
<gui>
|
<gui>
|
||||||
<window id="select_accelerator" text="Keyboard Shortcut">
|
<window id="select_accelerator" text="Keyboard Shortcut">
|
||||||
<vbox expansive="true">
|
<vbox expansive="true">
|
||||||
<grid columns="3">
|
<grid columns="3" expansive="true">
|
||||||
<label text="Key:" />
|
<label text="Key:" />
|
||||||
<hbox id="key_placeholder" expansive="true" />
|
<hbox id="key_placeholder" expansive="true" />
|
||||||
<button text="Clear" id="clear_button" width="60" />
|
<button text="Clear" id="clear_button" width="60" />
|
||||||
@ -17,7 +17,8 @@
|
|||||||
<check text="Space" id="space" />
|
<check text="Space" id="space" />
|
||||||
</hbox>
|
</hbox>
|
||||||
|
|
||||||
<label text="" id="assigned_to" cell_hspan="3" />
|
<label text="Assigned to:" />
|
||||||
|
<label text="" id="assigned_to" cell_hspan="2" />
|
||||||
</grid>
|
</grid>
|
||||||
|
|
||||||
<separator horizontal="true" />
|
<separator horizontal="true" />
|
||||||
|
@ -35,6 +35,7 @@ using namespace ui;
|
|||||||
class SelectAccelerator::KeyField : public ui::Entry {
|
class SelectAccelerator::KeyField : public ui::Entry {
|
||||||
public:
|
public:
|
||||||
KeyField(const Accelerator& accel) : ui::Entry(256, "") {
|
KeyField(const Accelerator& accel) : ui::Entry(256, "") {
|
||||||
|
setExpansive(true);
|
||||||
setFocusMagnet(true);
|
setFocusMagnet(true);
|
||||||
setAccel(accel);
|
setAccel(accel);
|
||||||
}
|
}
|
||||||
@ -175,7 +176,7 @@ void SelectAccelerator::updateAssignedTo()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
assignedTo()->setText("Assigned to: " + res);
|
assignedTo()->setText(res);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace app
|
} // namespace app
|
||||||
|
Loading…
Reference in New Issue
Block a user