From 0ef3c15822aaf0e8319100860ad5ea4b52ae0122 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Thu, 5 May 2022 17:48:24 +0100 Subject: ThemeEditor: Actually save alignment roles --- Userland/Applications/ThemeEditor/MainWidget.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Userland/Applications/ThemeEditor/MainWidget.cpp b/Userland/Applications/ThemeEditor/MainWidget.cpp index 4e613e13f2..f4966662cc 100644 --- a/Userland/Applications/ThemeEditor/MainWidget.cpp +++ b/Userland/Applications/ThemeEditor/MainWidget.cpp @@ -392,6 +392,11 @@ void MainWidget::set_path(String path) void MainWidget::save_to_file(Core::File& file) { auto theme = Core::ConfigFile::open(file.filename(), file.leak_fd()).release_value_but_fixme_should_propagate_errors(); + + for (auto role : m_alignment_roles) { + theme->write_entry("Alignments", to_string(role), to_string(m_preview_widget->preview_palette().alignment(role))); + } + for (auto role : m_color_roles) { theme->write_entry("Colors", to_string(role), m_preview_widget->preview_palette().color(role).to_string()); } -- cgit v1.2.3