1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 04:07:46 +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:
Sam Atkins 2021-10-27 17:32:09 +01:00 committed by Andreas Kling
parent e58db5592e
commit dbeff9ad84
2 changed files with 89 additions and 5 deletions

View file

@ -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..."
}
}
}