Skip to content

Commit

Permalink
scaling icon along with text. fix #14882
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed May 17, 2024
1 parent cd7d358 commit bc174c3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/utils/gui/images/GUIIconSubSys.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1055,6 +1055,11 @@ GUIIconSubSys::GUIIconSubSys(FXApp* a) {

// ... and create them
for (const auto& icon : myIcons) {
if (GUIDesignHeight != 23) {
int w = (int)(icon.second->getWidth() * GUIDesignHeight / 23.0);
int h = (int)(icon.second->getHeight() * GUIDesignHeight / 23.0);
icon.second->scale(w, h);
}
icon.second->create();
}
}
Expand Down

0 comments on commit bc174c3

Please sign in to comment.