summaryrefslogtreecommitdiff
path: root/Userland/Applications/ThemeEditor/MainWidget.cpp
diff options
context:
space:
mode:
authorimplicitfield <114500360+implicitfield@users.noreply.github.com>2022-12-02 20:11:39 +0200
committerAndrew Kaster <andrewdkaster@gmail.com>2022-12-31 04:20:59 -0700
commitd49fccf0d5d66d4e7e5caf9669b57404268b24d7 (patch)
tree0411100659f10e35b6561f02959ca65bf155f276 /Userland/Applications/ThemeEditor/MainWidget.cpp
parent1a68977457d9c05450797a32d1cf5bae527ddcc8 (diff)
downloadserenity-d49fccf0d5d66d4e7e5caf9669b57404268b24d7.zip
ThemeEditor: Support editing color schemes
Diffstat (limited to 'Userland/Applications/ThemeEditor/MainWidget.cpp')
-rw-r--r--Userland/Applications/ThemeEditor/MainWidget.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/Userland/Applications/ThemeEditor/MainWidget.cpp b/Userland/Applications/ThemeEditor/MainWidget.cpp
index e8b57ba897..0349710209 100644
--- a/Userland/Applications/ThemeEditor/MainWidget.cpp
+++ b/Userland/Applications/ThemeEditor/MainWidget.cpp
@@ -183,6 +183,29 @@ static const PropertyTab syntax_highlighting_tab {
}
};
+static const PropertyTab color_scheme_tab {
+ "Color Scheme",
+ {
+ { "General",
+ { { Gfx::ColorRole::Black },
+ { Gfx::ColorRole::Red },
+ { Gfx::ColorRole::Green },
+ { Gfx::ColorRole::Yellow },
+ { Gfx::ColorRole::Blue },
+ { Gfx::ColorRole::Magenta },
+ { Gfx::ColorRole::Cyan },
+ { Gfx::ColorRole::White },
+ { Gfx::ColorRole::BrightBlack },
+ { Gfx::ColorRole::BrightRed },
+ { Gfx::ColorRole::BrightGreen },
+ { Gfx::ColorRole::BrightYellow },
+ { Gfx::ColorRole::BrightBlue },
+ { Gfx::ColorRole::BrightMagenta },
+ { Gfx::ColorRole::BrightCyan },
+ { Gfx::ColorRole::BrightWhite } } },
+ }
+};
+
MainWidget::MainWidget()
: m_current_palette(GUI::Application::the()->palette())
{
@@ -195,6 +218,7 @@ MainWidget::MainWidget()
add_property_tab(window_tab);
add_property_tab(widgets_tab);
add_property_tab(syntax_highlighting_tab);
+ add_property_tab(color_scheme_tab);
build_override_controls();
}