ladybird/Applications/IRCClient
Andreas Kling 411058b2a3 WindowServer+LibGUI: Implement basic color theming
Color themes are loaded from .ini files in /res/themes/
The theme can be switched from the "Themes" section in the system menu.

The basic mechanism is that WindowServer broadcasts a SharedBuffer with
all of the color values of the current theme. Clients receive this with
the response to their initial WindowServer::Greet handshake.

When the theme is changed, WindowServer tells everyone by sending out
an UpdateSystemTheme message with a new SharedBuffer to use.

This does feel somewhat bloated somehow, but I'm sure we can iterate on
it over time and improve things.

To get one of the theme colors, use the Color(SystemColor) constructor:

    painter.fill_rect(rect, SystemColor::HoverHighlight);

Some things don't work 100% right without a reboot. Specifically, when
constructing a GWidget, it will set its own background and foreground
colors based on the current SystemColor::Window and SystemColor::Text.
The widget is then stuck with these values, and they don't update on
system theme change, only on app restart.

All in all though, this is pretty cool. Merry Christmas! :^)
2019-12-23 20:33:01 +01:00
..
IRCAppWindow.cpp WindowServer+LibGUI: Implement basic color theming 2019-12-23 20:33:01 +01:00
IRCAppWindow.h IRCClient: Switch to using an HtmlView for the IRC window contents :^) 2019-10-28 20:53:19 +01:00
IRCChannel.cpp IRCClient: Implement the "part from channel" action. 2019-07-07 21:58:57 +02:00
IRCChannel.h AK: Rename <AK/AKString.h> to <AK/String.h> 2019-09-06 15:36:54 +02:00
IRCChannelMemberListModel.cpp Applications: Run clang-format on everything. 2019-06-07 11:48:03 +02:00
IRCChannelMemberListModel.h AK: Rename RetainPtr => RefPtr and Retained => NonnullRefPtr. 2019-06-21 18:37:47 +02:00
IRCClient.cpp IRCClient: Sort the member list ignoring the character cases. 2019-12-03 12:50:06 +01:00
IRCClient.h LibCore: Remove ObjectPtr in favor of RefPtr 2019-09-22 00:31:54 +02:00
IRCLogBuffer.cpp IRCClient: Escape HTML entities in nicknames, too, just in case 2019-11-07 18:09:52 +01:00
IRCLogBuffer.h IRCClient: Switch to using an HtmlView for the IRC window contents :^) 2019-10-28 20:53:19 +01:00
IRCQuery.cpp AK: Rename RetainPtr => RefPtr and Retained => NonnullRefPtr. 2019-06-21 18:37:47 +02:00
IRCQuery.h AK: Rename <AK/AKString.h> to <AK/String.h> 2019-09-06 15:36:54 +02:00
IRCWindow.cpp IRCClient: Switch to using an HtmlView for the IRC window contents :^) 2019-10-28 20:53:19 +01:00
IRCWindow.h IRCClient: Switch to using an HtmlView for the IRC window contents :^) 2019-10-28 20:53:19 +01:00
IRCWindowListModel.cpp GUI: Use Win2K-like "warm gray" color instead of the older colder gray. 2019-06-30 09:23:16 +02:00
IRCWindowListModel.h IRCClient: Open query window immediately when created by the user. 2019-07-13 11:54:01 +02:00
main.cpp LibGUI: Get rid of GWindow::should_exit_event_loop_on_close(). 2019-07-23 18:20:00 +02:00
Makefile Build: clean up build system, use one shared Makefile 2019-12-20 20:20:54 +01:00