WindowServer: Display menus with 95% opacity by default.

This commit is contained in:
Andreas Kling 2019-02-19 16:41:13 +01:00
parent 210646edd2
commit 4804609b7e
Notes: sideshowbarker 2024-07-19 15:40:09 +09:00
2 changed files with 1 additions and 7 deletions

View file

@ -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();

View file

@ -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;