From 8d8ec6365b37f3c3347874f887ce0ca8bc034ca8 Mon Sep 17 00:00:00 2001 From: Mustafa Quraish Date: Wed, 1 Sep 2021 23:57:30 -0400 Subject: PixelPaint: Allow changing colors temporarily without palette Previously, if you wanted to use a custom color, the only way to do so was to first Ctrl+click on one of the pallette colors, which would just change that palette item. Then, you would need to manually click on that color. Now, you can just click on the preview of the primary/secondary color to open up the picker and only temporarily use the new color without affecting the palette at all. --- Userland/Applications/PixelPaint/PaletteWidget.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Userland/Applications/PixelPaint/PaletteWidget.h') diff --git a/Userland/Applications/PixelPaint/PaletteWidget.h b/Userland/Applications/PixelPaint/PaletteWidget.h index b90e5d8b42..4e8a48a9b0 100644 --- a/Userland/Applications/PixelPaint/PaletteWidget.h +++ b/Userland/Applications/PixelPaint/PaletteWidget.h @@ -1,6 +1,7 @@ /* * Copyright (c) 2018-2020, Andreas Kling * Copyright (c) 2021, Felix Rauch + * Copyright (c) 2021, Mustafa Quraish * * SPDX-License-Identifier: BSD-2-Clause */ @@ -14,6 +15,7 @@ namespace PixelPaint { class ImageEditor; +class SelectedColorWidget; class PaletteWidget final : public GUI::Frame { C_OBJECT(PaletteWidget); @@ -41,8 +43,8 @@ private: explicit PaletteWidget(); ImageEditor* m_editor { nullptr }; - RefPtr m_primary_color_widget; - RefPtr m_secondary_color_widget; + RefPtr m_primary_color_widget; + RefPtr m_secondary_color_widget; RefPtr m_color_container; }; -- cgit v1.2.3