mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-25 03:36:36 +00:00
ThemeEditor: Actually save alignment roles
This commit is contained in:
parent
8915b3227c
commit
0ef3c15822
Notes:
sideshowbarker
2024-07-17 10:44:07 +09:00
Author: https://github.com/AtkinsSJ
Commit: 0ef3c15822
Pull-request: https://github.com/SerenityOS/serenity/pull/13937
Reviewed-by: https://github.com/krkk
1 changed files with 5 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue