mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 08:37:35 +00:00
ThemeEditor: Add PathRole editing
This allows both typing the path, and selecting it with a file-open dialog.
This commit is contained in:
parent
e58db5592e
commit
dbeff9ad84
2 changed files with 89 additions and 5 deletions
|
@ -17,6 +17,7 @@
|
|||
@GUI::ComboBox {
|
||||
name: "color_combo_box"
|
||||
model_only: true
|
||||
fixed_width: 230
|
||||
}
|
||||
|
||||
@GUI::ColorInput {
|
||||
|
@ -34,10 +35,37 @@
|
|||
@GUI::ComboBox {
|
||||
name: "metric_combo_box"
|
||||
model_only: true
|
||||
fixed_width: 230
|
||||
}
|
||||
|
||||
@GUI::SpinBox {
|
||||
name: "metric_input"
|
||||
}
|
||||
}
|
||||
|
||||
@GUI::GroupBox {
|
||||
layout: @GUI::HorizontalBoxLayout {
|
||||
margins: [16, 8, 8, 8]
|
||||
}
|
||||
shrink_to_fit: true
|
||||
title: "Paths"
|
||||
|
||||
@GUI::ComboBox {
|
||||
name: "path_combo_box"
|
||||
model_only: true
|
||||
fixed_width: 230
|
||||
}
|
||||
|
||||
@GUI::TextBox {
|
||||
name: "path_input"
|
||||
mode: "Editable"
|
||||
}
|
||||
|
||||
@GUI::Button {
|
||||
name: "path_picker_button"
|
||||
fixed_width: 20
|
||||
text: "..."
|
||||
tooltip: "Choose..."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue