mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:07:34 +00:00
WindowServer: Allow different shadows for active/inactive windows
Also allow specifying different shadows for the task and menu bar.
This commit is contained in:
parent
8c694ed6eb
commit
cf1c159ed5
10 changed files with 41 additions and 12 deletions
|
@ -140,8 +140,11 @@ public:
|
|||
int window_title_button_height() const { return metric(MetricRole::TitleButtonHeight); }
|
||||
|
||||
String title_button_icons_path() const { return path(PathRole::TitleButtonIcons); }
|
||||
String window_shadow_path() const { return path(PathRole::WindowShadow); }
|
||||
String active_window_shadow_path() const { return path(PathRole::ActiveWindowShadow); }
|
||||
String inactive_window_shadow_path() const { return path(PathRole::InactiveWindowShadow); }
|
||||
String menu_bar_shadow_path() const { return path(PathRole::MenuBarShadow); }
|
||||
String menu_shadow_path() const { return path(PathRole::MenuShadow); }
|
||||
String task_bar_shadow_path() const { return path(PathRole::TaskBarShadow); }
|
||||
String tooltip_shadow_path() const { return path(PathRole::TooltipShadow); }
|
||||
|
||||
Color color(ColorRole role) const { return m_impl->color(role); }
|
||||
|
|
|
@ -119,9 +119,12 @@ Core::AnonymousBuffer load_system_theme(const String& path)
|
|||
} while (0)
|
||||
|
||||
DO_PATH(TitleButtonIcons, false);
|
||||
DO_PATH(ActiveWindowShadow, true);
|
||||
DO_PATH(InactiveWindowShadow, true);
|
||||
DO_PATH(TaskBarShadow, true);
|
||||
DO_PATH(MenuBarShadow, true);
|
||||
DO_PATH(MenuShadow, true);
|
||||
DO_PATH(TooltipShadow, true);
|
||||
DO_PATH(WindowShadow, true);
|
||||
|
||||
return buffer;
|
||||
}
|
||||
|
|
|
@ -144,7 +144,10 @@ enum class MetricRole {
|
|||
enum class PathRole {
|
||||
NoRole,
|
||||
TitleButtonIcons,
|
||||
WindowShadow,
|
||||
InactiveWindowShadow,
|
||||
ActiveWindowShadow,
|
||||
TaskBarShadow,
|
||||
MenuBarShadow,
|
||||
MenuShadow,
|
||||
TooltipShadow,
|
||||
__Count,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue