mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 23:28:12 +00:00
WindowServer: Display menus with 95% opacity by default.
This commit is contained in:
parent
210646edd2
commit
4804609b7e
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
|
const Font& WSMenu::font() const
|
||||||
{
|
{
|
||||||
return Font::default_font();
|
return Font::default_font();
|
||||||
|
@ -70,6 +65,7 @@ WSWindow& WSMenu::ensure_menu_window()
|
||||||
}
|
}
|
||||||
|
|
||||||
auto window = make<WSWindow>(*this);
|
auto window = make<WSWindow>(*this);
|
||||||
|
window->set_opacity(0.95f);
|
||||||
window->set_rect(0, 0, width(), height());
|
window->set_rect(0, 0, width(), height());
|
||||||
m_menu_window = move(window);
|
m_menu_window = move(window);
|
||||||
draw();
|
draw();
|
||||||
|
|
|
@ -47,8 +47,6 @@ public:
|
||||||
void set_rect_in_menubar(const Rect& rect) { m_rect_in_menubar = rect; }
|
void set_rect_in_menubar(const Rect& rect) { m_rect_in_menubar = rect; }
|
||||||
|
|
||||||
WSWindow* menu_window() { return m_menu_window.ptr(); }
|
WSWindow* menu_window() { return m_menu_window.ptr(); }
|
||||||
void set_menu_window(OwnPtr<WSWindow>&&);
|
|
||||||
|
|
||||||
WSWindow& ensure_menu_window();
|
WSWindow& ensure_menu_window();
|
||||||
|
|
||||||
int width() const;
|
int width() const;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue