mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:07:44 +00:00
WindowServer+LibGUI: Yank out window-global opacity
From what I can tell, this facility was added to WSWindow/GWindow in
2019 in 9b71307
. I only found a single place in the codebase still using
this facility: `WindowServer::Menu::start_activation_animation()`. A
subtle fade-out animation that happens when a menu item is selected, and
the menu disappears.
I think our compositing facilities have improved enough to make this
facility redundant. The remaining use mentioned above was ported to just
directly blit the fade-out animation instead of requesting it from
WindowServer.
This commit is contained in:
parent
4fd71e3c3a
commit
6931a5a0a8
9 changed files with 18 additions and 70 deletions
|
@ -153,9 +153,6 @@ public:
|
|||
|
||||
DeprecatedString computed_title() const;
|
||||
|
||||
float opacity() const { return m_opacity; }
|
||||
void set_opacity(float);
|
||||
|
||||
void set_hit_testing_enabled(bool value)
|
||||
{
|
||||
m_hit_testing_enabled = value;
|
||||
|
@ -327,11 +324,7 @@ public:
|
|||
|
||||
bool is_opaque() const
|
||||
{
|
||||
if (opacity() < 1.0f)
|
||||
return false;
|
||||
if (has_alpha_channel())
|
||||
return false;
|
||||
return true;
|
||||
return !has_alpha_channel();
|
||||
}
|
||||
|
||||
Gfx::DisjointIntRectSet& opaque_rects() { return m_opaque_rects; }
|
||||
|
@ -444,7 +437,6 @@ private:
|
|||
i32 m_last_backing_store_serial { -1 };
|
||||
int m_window_id { -1 };
|
||||
i32 m_client_id { -1 };
|
||||
float m_opacity { 1 };
|
||||
float m_alpha_hit_threshold { 0.0f };
|
||||
Gfx::IntSize m_size_increment;
|
||||
Gfx::IntSize m_base_size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue