ui: Give NumericStepper
s an ID (#15344)
This PR gives the `NumericStepper` component an ID. This prevents the UI and buffer font size settings controls from having their increment/decrement buttons visually change when the other one is pressed. Release Notes: - N/A
This commit is contained in:
parent
c7a78fafac
commit
f1d777434b
4 changed files with 8 additions and 0 deletions
|
@ -26,6 +26,7 @@ impl RenderOnce for ApplicationMenu {
|
|||
.child(Label::new("Buffer Font Size"))
|
||||
.child(
|
||||
NumericStepper::new(
|
||||
"buffer-font-size",
|
||||
theme::get_buffer_font_size(cx).to_string(),
|
||||
|_, cx| {
|
||||
cx.dispatch_action(Box::new(
|
||||
|
@ -61,6 +62,7 @@ impl RenderOnce for ApplicationMenu {
|
|||
.child(Label::new("UI Font Size"))
|
||||
.child(
|
||||
NumericStepper::new(
|
||||
"ui-font-size",
|
||||
theme::get_ui_font_size(cx).to_string(),
|
||||
|_, cx| {
|
||||
cx.dispatch_action(Box::new(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue