mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:57:44 +00:00
WindowServer: Allow specifying different shadows for menus and tooltips
Also update the Redmond 2000 theme to drop shadows more Redmond-like.
This commit is contained in:
parent
c9aa7539a6
commit
964894dee6
9 changed files with 49 additions and 17 deletions
|
@ -141,6 +141,8 @@ public:
|
|||
|
||||
String title_button_icons_path() const { return path(PathRole::TitleButtonIcons); }
|
||||
String window_shadow_path() const { return path(PathRole::WindowShadow); }
|
||||
String menu_shadow_path() const { return path(PathRole::MenuShadow); }
|
||||
String tooltip_shadow_path() const { return path(PathRole::TooltipShadow); }
|
||||
|
||||
Color color(ColorRole role) const { return m_impl->color(role); }
|
||||
int metric(MetricRole role) const { return m_impl->metric(role); }
|
||||
|
|
|
@ -119,6 +119,8 @@ Core::AnonymousBuffer load_system_theme(const String& path)
|
|||
} while (0)
|
||||
|
||||
DO_PATH(TitleButtonIcons);
|
||||
DO_PATH(MenuShadow);
|
||||
DO_PATH(TooltipShadow);
|
||||
DO_PATH(WindowShadow);
|
||||
|
||||
return buffer;
|
||||
|
|
|
@ -145,6 +145,8 @@ enum class PathRole {
|
|||
NoRole,
|
||||
TitleButtonIcons,
|
||||
WindowShadow,
|
||||
MenuShadow,
|
||||
TooltipShadow,
|
||||
__Count,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue