From 1aaa3a859027986aa4df720f9c74a69f040770c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Va=CC=81clav=20Slavi=CC=81k?= Date: Thu, 28 Sep 2023 13:39:31 +0200 Subject: [PATCH] Fix macOS appearance of project icons after 519bfc3d --- src/localazy_gui.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/localazy_gui.cpp b/src/localazy_gui.cpp index 0e87769e00..034e6691f1 100644 --- a/src/localazy_gui.cpp +++ b/src/localazy_gui.cpp @@ -275,7 +275,11 @@ void LocalazyLoginPanel::UpdateUserInfo() LocalazyClient::Get().GetUserProjects() .then_on_window(m_projects, [=](std::vector projects){ m_projects->DeleteAllItems(); + #ifdef __WXOSX__ + auto dummyIcon = wxArtProvider::GetIcon("AccountLocalazy"); + #else auto dummyIcon = wxArtProvider::GetIcon("AccountLocalazy", wxART_OTHER, wxSize(PX(16), PX(16))); + #endif unsigned idx = 0; for (auto p : projects)