2019-12-23 20:24:26 +01:00
|
|
|
#pragma once
|
|
|
|
|
2020-01-01 18:53:34 +01:00
|
|
|
#include <AK/SharedBuffer.h>
|
2019-12-23 20:24:26 +01:00
|
|
|
#include <AK/Types.h>
|
|
|
|
#include <LibDraw/Color.h>
|
|
|
|
|
2019-12-24 20:57:54 +01:00
|
|
|
enum class ColorRole {
|
|
|
|
NoRole,
|
|
|
|
DesktopBackground,
|
|
|
|
ActiveWindowBorder1,
|
|
|
|
ActiveWindowBorder2,
|
|
|
|
ActiveWindowTitle,
|
|
|
|
InactiveWindowBorder1,
|
|
|
|
InactiveWindowBorder2,
|
|
|
|
InactiveWindowTitle,
|
|
|
|
MovingWindowBorder1,
|
|
|
|
MovingWindowBorder2,
|
|
|
|
MovingWindowTitle,
|
|
|
|
HighlightWindowBorder1,
|
|
|
|
HighlightWindowBorder2,
|
|
|
|
HighlightWindowTitle,
|
|
|
|
MenuStripe,
|
|
|
|
MenuBase,
|
2019-12-26 00:58:46 +01:00
|
|
|
MenuBaseText,
|
2019-12-24 20:57:54 +01:00
|
|
|
MenuSelection,
|
2019-12-26 00:58:46 +01:00
|
|
|
MenuSelectionText,
|
2019-12-24 20:57:54 +01:00
|
|
|
Window,
|
|
|
|
WindowText,
|
|
|
|
Button,
|
|
|
|
ButtonText,
|
|
|
|
Base,
|
2019-12-24 22:01:32 +01:00
|
|
|
BaseText,
|
2019-12-24 20:57:54 +01:00
|
|
|
ThreedHighlight,
|
|
|
|
ThreedShadow1,
|
|
|
|
ThreedShadow2,
|
|
|
|
HoverHighlight,
|
|
|
|
Selection,
|
|
|
|
SelectionText,
|
2020-01-06 01:47:55 +02:00
|
|
|
RubberBandFill,
|
|
|
|
RubberBandBorder,
|
2020-01-13 20:33:15 +01:00
|
|
|
Link,
|
|
|
|
ActiveLink,
|
|
|
|
VisitedLink,
|
2019-12-24 20:57:54 +01:00
|
|
|
|
|
|
|
__Count,
|
|
|
|
|
2019-12-29 00:47:49 +01:00
|
|
|
Background = Window,
|
2019-12-24 20:57:54 +01:00
|
|
|
DisabledText = ThreedShadow1,
|
|
|
|
};
|
2019-12-24 12:13:10 +01:00
|
|
|
|
2019-12-24 20:57:54 +01:00
|
|
|
struct SystemTheme {
|
|
|
|
Color color[(int)ColorRole::__Count];
|
2019-12-23 20:24:26 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
const SystemTheme& current_system_theme();
|
|
|
|
int current_system_theme_buffer_id();
|
|
|
|
void set_system_theme(SharedBuffer&);
|
|
|
|
RefPtr<SharedBuffer> load_system_theme(const String& path);
|