mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-19 06:55:18 +00:00
There are two different things in ThemeEditor that want to know when a palette changes: 1. The PreviewWidget subclass, so it can update its preview. 2. The ThemeEditor itself, so we know that the palette is modified. Using a protected virtual function for 1 means that we can do 2 without them fighting over the same on_palette_change callback.
7.0 KiB
7.0 KiB