summaryrefslogtreecommitdiff
path: root/Userland/Applications/ThemeEditor/main.cpp
diff options
context:
space:
mode:
authorKarol Kosek <krkk@krkk.ct8.pl>2021-09-11 20:57:25 +0200
committerAndreas Kling <kling@serenityos.org>2021-09-12 11:49:52 +0200
commitbe7ae768292f401e675cb1dd2c266f7f70c1c2af (patch)
tree6441cca96618b55ad2b45b66d1f66fb19b87489b /Userland/Applications/ThemeEditor/main.cpp
parent483db9334e47d140333eef48e3b957e45456e2b1 (diff)
downloadserenity-be7ae768292f401e675cb1dd2c266f7f70c1c2af.zip
ThemeEditor: Rename main()'s preview_palette to startup_preview_palette
This is to avoid ambiguity from the preview_widget.preview_palette().
Diffstat (limited to 'Userland/Applications/ThemeEditor/main.cpp')
-rw-r--r--Userland/Applications/ThemeEditor/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Applications/ThemeEditor/main.cpp b/Userland/Applications/ThemeEditor/main.cpp
index d285787d78..b2270fcca1 100644
--- a/Userland/Applications/ThemeEditor/main.cpp
+++ b/Userland/Applications/ThemeEditor/main.cpp
@@ -88,7 +88,7 @@ int main(int argc, char** argv)
auto app_icon = GUI::Icon::default_icon("app-theme-editor");
- Gfx::Palette preview_palette = file_to_edit ? Gfx::Palette(Gfx::PaletteImpl::create_with_anonymous_buffer(Gfx::load_system_theme(*path))) : app->palette();
+ Gfx::Palette startup_preview_palette = file_to_edit ? Gfx::Palette(Gfx::PaletteImpl::create_with_anonymous_buffer(Gfx::load_system_theme(*path))) : app->palette();
auto window = GUI::Window::construct();
@@ -101,7 +101,7 @@ int main(int argc, char** argv)
main_widget.set_fill_with_background_color(true);
main_widget.set_layout<GUI::VerticalBoxLayout>();
- auto& preview_widget = main_widget.add<ThemeEditor::PreviewWidget>(preview_palette);
+ auto& preview_widget = main_widget.add<ThemeEditor::PreviewWidget>(startup_preview_palette);
preview_widget.set_fixed_size(480, 360);
auto& horizontal_container = main_widget.add<GUI::Widget>();
@@ -126,7 +126,7 @@ int main(int argc, char** argv)
preview_palette.set_color(role, color_input.color());
preview_widget.set_preview_palette(preview_palette);
};
- color_input.set_color(preview_palette.color(Gfx::ColorRole::Window));
+ color_input.set_color(startup_preview_palette.color(Gfx::ColorRole::Window));
auto& file_menu = window->add_menu("&File");