1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:18:11 +00:00
serenity/Libraries/LibDraw
Andreas Kling a79bac428b LibGUI+LibDraw: Add "Palette" concept for scoped color theming
GApplication now has a palette. This palette contains all the system
theme colors by default, and is inherited by a new top-level GWidget.
New child widgets inherit their parents palette.

It is possible to override the GApplication palette, and the palette
of any GWidget.

The Palette object contains a bunch of colors, each corresponding to
a ColorRole. Each role has a convenience getter as well.

Each GWidget now has a background_role() and foreground_role(), which
are then looked up in their current palette when painting. This means
that you no longer alter the background color of a widget by setting
it directly, rather you alter either its background role, or the
widget's palette.
2019-12-24 21:27:16 +01:00
..
CharacterBitmap.cpp LibDraw: Introduce (formerly known as SharedGraphics.) 2019-07-18 10:18:16 +02:00
CharacterBitmap.h LibDraw: Introduce (formerly known as SharedGraphics.) 2019-07-18 10:18:16 +02:00
Color.cpp LibGUI+LibDraw: Add "Palette" concept for scoped color theming 2019-12-24 21:27:16 +01:00
Color.h LibGUI+LibDraw: Add "Palette" concept for scoped color theming 2019-12-24 21:27:16 +01:00
DisjointRectSet.cpp LibDraw: Introduce (formerly known as SharedGraphics.) 2019-07-18 10:18:16 +02:00
DisjointRectSet.h LibDraw: Introduce (formerly known as SharedGraphics.) 2019-07-18 10:18:16 +02:00
Emoji.cpp LibDraw: Store emojis in a HashMap<u32, RefPtr<GraphicsBitmap>> 2019-10-19 18:36:45 +02:00
Emoji.h LibDraw: Store emojis in a HashMap<u32, RefPtr<GraphicsBitmap>> 2019-10-19 18:36:45 +02:00
FloatPoint.h LibDraw: Add FloatPoint, FloatSize and FloatRect 2019-10-20 12:55:55 +02:00
FloatRect.h LibDraw: Add FloatPoint, FloatSize and FloatRect 2019-10-20 12:55:55 +02:00
FloatSize.h LibDraw: Add FloatPoint, FloatSize and FloatRect 2019-10-20 12:55:55 +02:00
Font.cpp AK: Use size_t for the length of strings 2019-12-09 17:51:21 +01:00
Font.h AK: Rename <AK/AKString.h> to <AK/String.h> 2019-09-06 15:36:54 +02:00
GIFLoader.cpp LibDraw: Start work on a GIF decoder (not yet functional!) 2019-11-23 16:50:21 +01:00
GIFLoader.h LibDraw: Start work on a GIF decoder (not yet functional!) 2019-11-23 16:50:21 +01:00
GraphicsBitmap.cpp LibDraw: Add GraphicsBitmap::create_purgeable() 2019-12-18 20:50:05 +01:00
GraphicsBitmap.h LibDraw: Add GraphicsBitmap::create_purgeable() 2019-12-18 20:50:05 +01:00
ImageDecoder.cpp LibDraw: Rename ImageLoader => ImageDecoder 2019-10-19 20:54:47 +02:00
ImageDecoder.h LibDraw: Create purgeable GraphicsBitmap in the PNG decoder 2019-12-18 20:50:58 +01:00
Makefile LibGUI+LibDraw: Add "Palette" concept for scoped color theming 2019-12-24 21:27:16 +01:00
Orientation.h LibDraw: Move the Orientation enum to its own LibDraw header file. 2019-07-20 19:32:12 +02:00
Painter.cpp LibDraw: Painter::draw_pixel() with thickness>1 was doubly translating 2019-11-29 22:31:45 +01:00
Painter.h LibDraw: Support dotted lines in Painter::draw_line() 2019-11-27 20:52:11 +01:00
Palette.cpp LibGUI+LibDraw: Add "Palette" concept for scoped color theming 2019-12-24 21:27:16 +01:00
Palette.h LibGUI+LibDraw: Add "Palette" concept for scoped color theming 2019-12-24 21:27:16 +01:00
PNGLoader.cpp LibDraw: Create purgeable GraphicsBitmap in the PNG decoder 2019-12-18 20:50:58 +01:00
PNGLoader.h LibDraw: Create purgeable GraphicsBitmap in the PNG decoder 2019-12-18 20:50:58 +01:00
Point.h LibDraw: Remove convenience functions for the old WindowServer IPC 2019-12-02 11:11:05 +01:00
Rect.cpp LibDraw: Add TextAlignment::TopRight 2019-09-06 19:23:54 +02:00
Rect.h LibDraw: Add a way to check for horizontal/vertical Rect intersections 2019-12-13 23:36:17 +01:00
Size.h LibDraw: Remove convenience functions for the old WindowServer IPC 2019-12-02 11:11:05 +01:00
StylePainter.cpp LibGUI+LibDraw: Add "Palette" concept for scoped color theming 2019-12-24 21:27:16 +01:00
StylePainter.h LibGUI+LibDraw: Add "Palette" concept for scoped color theming 2019-12-24 21:27:16 +01:00
SystemTheme.cpp LibGUI+LibDraw: Add "Palette" concept for scoped color theming 2019-12-24 21:27:16 +01:00
SystemTheme.h LibGUI+LibDraw: Add "Palette" concept for scoped color theming 2019-12-24 21:27:16 +01:00
TextAlignment.h LibDraw: Add TextAlignment::TopRight 2019-09-06 19:23:54 +02:00
TextElision.h LibDraw: Introduce (formerly known as SharedGraphics.) 2019-07-18 10:18:16 +02:00