mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:27:35 +00:00
LibDraw: Add Selection and SelectionText system theme colors
This commit is contained in:
parent
033de7efe2
commit
b6eba388e3
16 changed files with 43 additions and 22 deletions
|
@ -35,6 +35,12 @@ Color::Color(SystemColor system_color)
|
|||
case SystemColor::HoverHighlight:
|
||||
m_value = theme.hover_highlight.value();
|
||||
break;
|
||||
case SystemColor::Selection:
|
||||
m_value = theme.selection.value();
|
||||
break;
|
||||
case SystemColor::SelectionText:
|
||||
m_value = theme.selection_text.value();
|
||||
break;
|
||||
case SystemColor::DesktopBackground:
|
||||
m_value = theme.desktop_background.value();
|
||||
break;
|
||||
|
|
|
@ -37,6 +37,8 @@ enum class SystemColor {
|
|||
ThreedShadow1,
|
||||
ThreedShadow2,
|
||||
HoverHighlight,
|
||||
Selection,
|
||||
SelectionText,
|
||||
|
||||
DisabledText = ThreedShadow1,
|
||||
};
|
||||
|
|
|
@ -46,6 +46,8 @@ RefPtr<SharedBuffer> load_system_theme(const String& path)
|
|||
data->threed_shadow1 = get("ThreedShadow1");
|
||||
data->threed_shadow2 = get("ThreedShadow2");
|
||||
data->hover_highlight = get("HoverHighlight");
|
||||
data->selection = get("Selection");
|
||||
data->selection_text = get("SelectionText");
|
||||
data->window = get("Window");
|
||||
data->window_text = get("WindowText");
|
||||
data->base = get("Base");
|
||||
|
|
|
@ -38,6 +38,9 @@ struct SystemTheme {
|
|||
Color threed_shadow2;
|
||||
|
||||
Color hover_highlight;
|
||||
|
||||
Color selection;
|
||||
Color selection_text;
|
||||
};
|
||||
|
||||
const SystemTheme& current_system_theme();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue