summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/GlyphMapWidget.h
diff options
context:
space:
mode:
authorthankyouverycool <66646555+thankyouverycool@users.noreply.github.com>2022-08-14 16:00:26 -0400
committerAndreas Kling <kling@serenityos.org>2022-11-19 15:41:09 +0100
commitd9fb838cf696a5293b494f162c779578c479673c (patch)
treed960787795957081520389d8e3297fee53a760d1 /Userland/Libraries/LibGUI/GlyphMapWidget.h
parentc974e644ec42121326e600775a3f1a277e58e5fd (diff)
downloadserenity-d9fb838cf696a5293b494f162c779578c479673c.zip
LibGUI+FontEditor: Allow system emoji to be toggled in GlyphMapWidget
And remove their red backgrounds when visible to not be confused with deletion highlights.
Diffstat (limited to 'Userland/Libraries/LibGUI/GlyphMapWidget.h')
-rw-r--r--Userland/Libraries/LibGUI/GlyphMapWidget.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/GlyphMapWidget.h b/Userland/Libraries/LibGUI/GlyphMapWidget.h
index 82634f5733..b751e3a61f 100644
--- a/Userland/Libraries/LibGUI/GlyphMapWidget.h
+++ b/Userland/Libraries/LibGUI/GlyphMapWidget.h
@@ -63,6 +63,8 @@ public:
void update_glyph(int);
void set_highlight_modifications(bool);
+ void set_show_system_emoji(bool);
+
void set_glyph_modified(u32 glyph, bool modified);
bool glyph_is_modified(u32 glyph);
@@ -105,6 +107,7 @@ private:
int m_visible_glyphs { 0 };
bool m_in_drag_select { false };
bool m_highlight_modifications { false };
+ bool m_show_system_emoji { false };
HashTable<u32> m_modified_glyphs;
Unicode::CodePointRange m_active_range { 0x0000, 0x10FFFF };
RefPtr<Core::Timer> m_automatic_selection_scroll_timer;