WindowServer: Add support for rounded corners and transparency

This commit is contained in:
2024-09-12 19:35:44 +03:00
parent 43e88c0ae0
commit 6cd246a38e
3 changed files with 169 additions and 24 deletions

View File

@@ -49,7 +49,7 @@ public:
ASSERT(title_bar_area().contains({ abs_x, abs_y }));
if (auto close_button = close_button_area(); close_button.contains({ abs_x, abs_y }))
return close_button.contains(cursor) ? 0xFF0000 : 0xD00000;
return close_button.contains(cursor) ? 0xFFFF0000 : 0xFFD00000;
int32_t rel_x = abs_x - title_bar_x();
int32_t rel_y = abs_y - title_bar_y();