mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 12:07:45 +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
|
@ -75,8 +75,6 @@ public:
|
|||
void set_double_buffering_enabled(bool);
|
||||
void set_has_alpha_channel(bool);
|
||||
bool has_alpha_channel() const { return m_has_alpha_channel; }
|
||||
void set_opacity(float);
|
||||
float opacity() const { return m_opacity_when_windowless; }
|
||||
|
||||
void set_alpha_hit_threshold(float);
|
||||
float alpha_hit_threshold() const { return m_alpha_hit_threshold; }
|
||||
|
@ -291,7 +289,6 @@ private:
|
|||
|
||||
RefPtr<Gfx::Bitmap const> m_icon;
|
||||
int m_window_id { 0 };
|
||||
float m_opacity_when_windowless { 1.0f };
|
||||
float m_alpha_hit_threshold { 0.0f };
|
||||
RefPtr<Widget> m_main_widget;
|
||||
WeakPtr<Widget> m_default_return_key_widget;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue