ladybird/Base/home/anon
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
..
little little: Make this build by default, and add some curlies 2019-11-18 19:01:50 +01:00
www LibHTML: Support the :only-child pseudo class 2019-12-16 19:52:11 +01:00
FileManager.ini FileManager: Remember my last position and size. 2019-11-09 20:50:53 +01:00
IRCClient.ini IRC client setttings, Terminal settings, more WM settings 2019-05-27 21:40:53 +02:00
myfile.txt Base: Rename /users to /home. 2019-02-10 11:18:12 +01:00
Taskbar.ini Taskbar: Add a quick launch bar 2019-12-04 14:32:15 +01:00
Terminal.ini Terminal: Use the visual bell by default. 2019-06-07 08:45:39 +02:00
WindowManager.ini WindowServer+LibGUI: Implement basic color theming 2019-12-23 20:33:01 +01:00