mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:28:12 +00:00
AK: Improve smart pointer ergonomics a bit.
This commit is contained in:
parent
d5dec1922b
commit
3f6408919f
17 changed files with 49 additions and 31 deletions
|
@ -92,7 +92,7 @@ void WSMenu::draw()
|
|||
for (auto& item : m_items) {
|
||||
if (item->type() == WSMenuItem::Text) {
|
||||
Color text_color = Color::Black;
|
||||
if (item.ptr() == m_hovered_item) {
|
||||
if (item == m_hovered_item) {
|
||||
painter.fill_rect(item->rect(), WSWindowManager::the().menu_selection_color());
|
||||
text_color = Color::White;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue