Skip to content

Commit

Permalink
Fix macOS appearance of project icons after 519bfc3
Browse files Browse the repository at this point in the history
  • Loading branch information
vslavik committed Sep 28, 2023
1 parent 1e5b46b commit 1aaa3a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/localazy_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,11 @@ void LocalazyLoginPanel::UpdateUserInfo()
LocalazyClient::Get().GetUserProjects()
.then_on_window(m_projects, [=](std::vector<LocalazyClient::ProjectInfo> 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)
Expand Down

0 comments on commit 1aaa3a8

Please sign in to comment.