mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-07 11:39:44 +03:00
LibGfxScaleDemo: Add Emoji to window title bar
I thought this wouldn't work yet, but it already does.
This commit is contained in:
parent
63ac9462ad
commit
adb9ade88d
Notes:
sideshowbarker
2024-07-18 23:48:08 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/adb9ade88db Pull-request: https://github.com/SerenityOS/serenity/pull/4962
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user