1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:27:45 +00:00

ThemeEditor: Arrange the theme properties into groups

This makes it clearer which properties are related, instead of them all
being in one list per tab.
This commit is contained in:
Sam Atkins 2022-05-11 12:53:07 +01:00 committed by Andreas Kling
parent 423383e9aa
commit 4edc33b4a6
2 changed files with 198 additions and 164 deletions

View file

@ -66,11 +66,16 @@ struct Property {
Variant<Gfx::AlignmentRole, Gfx::ColorRole, Gfx::FlagRole, Gfx::MetricRole, Gfx::PathRole> role;
};
struct PropertyTab {
struct PropertyGroup {
String title;
Vector<Property> properties;
};
struct PropertyTab {
String title;
Vector<PropertyGroup> property_groups;
};
class MainWidget final : public GUI::Widget {
C_OBJECT(MainWidget);