mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
WindowServer: Display menus with 95% opacity by default.
This commit is contained in:
parent
210646edd2
commit
4804609b7e
Notes:
sideshowbarker
2024-07-19 15:40:09 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/4804609b7e8
2 changed files with 1 additions and 7 deletions
|
@ -20,11 +20,6 @@ WSMenu::~WSMenu()
|
|||
{
|
||||
}
|
||||
|
||||
void WSMenu::set_menu_window(OwnPtr<WSWindow>&& menu_window)
|
||||
{
|
||||
m_menu_window = move(menu_window);
|
||||
}
|
||||
|
||||
const Font& WSMenu::font() const
|
||||
{
|
||||
return Font::default_font();
|
||||
|
@ -70,6 +65,7 @@ WSWindow& WSMenu::ensure_menu_window()
|
|||
}
|
||||
|
||||
auto window = make<WSWindow>(*this);
|
||||
window->set_opacity(0.95f);
|
||||
window->set_rect(0, 0, width(), height());
|
||||
m_menu_window = move(window);
|
||||
draw();
|
||||
|
|
|
@ -47,8 +47,6 @@ public:
|
|||
void set_rect_in_menubar(const Rect& rect) { m_rect_in_menubar = rect; }
|
||||
|
||||
WSWindow* menu_window() { return m_menu_window.ptr(); }
|
||||
void set_menu_window(OwnPtr<WSWindow>&&);
|
||||
|
||||
WSWindow& ensure_menu_window();
|
||||
|
||||
int width() const;
|
||||
|
|
Loading…
Reference in a new issue