summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2021-01-15 16:07:18 -0500
committerAndreas Kling <kling@serenityos.org>2021-01-15 22:11:51 +0100
commitadb9ade88db937c917716db541264f38b04d35d2 (patch)
tree8d0f34639c850472f59053566631ab6ba9447426 /Userland
parent63ac9462adbf91ec905d5e9b9f3a7b8185bdf513 (diff)
downloadserenity-adb9ade88db937c917716db541264f38b04d35d2.zip
LibGfxScaleDemo: Add Emoji to window title bar
I thought this wouldn't work yet, but it already does.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Demos/LibGfxScaleDemo/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Demos/LibGfxScaleDemo/main.cpp b/Userland/Demos/LibGfxScaleDemo/main.cpp
index 9a8bb034a9..264929009b 100644
--- a/Userland/Demos/LibGfxScaleDemo/main.cpp
+++ b/Userland/Demos/LibGfxScaleDemo/main.cpp
@@ -86,7 +86,7 @@ void Canvas::paint_event(GUI::PaintEvent& event)
void Canvas::draw(Gfx::Painter& painter)
{
auto active_window_icon = Gfx::Bitmap::load_from_file("/res/icons/16x16/window.png");
- Gfx::WindowTheme::current().paint_normal_frame(painter, Gfx::WindowTheme::WindowState::Active, { 4, 18, WIDTH - 8, HEIGHT - 29 }, "Well hello friends", *active_window_icon, palette(), { WIDTH - 20, 6, 16, 16 });
+ Gfx::WindowTheme::current().paint_normal_frame(painter, Gfx::WindowTheme::WindowState::Active, { 4, 18, WIDTH - 8, HEIGHT - 29 }, "Well hello friends 🐞", *active_window_icon, palette(), { WIDTH - 20, 6, 16, 16 });
painter.draw_rect({ 20, 34, WIDTH - 40, HEIGHT - 45 }, palette().color(Gfx::ColorRole::Selection), true);
painter.draw_rect({ 24, 38, WIDTH - 48, HEIGHT - 53 }, palette().color(Gfx::ColorRole::Selection));