Mercurial > octave
changeset 28233:9a40d2b40db8
Scale ToolBarButton icons to 24x24 for better appearance (bug #58144).
* ToolBarButton.cc (ToolBarButton, update): Call Utils::makeImageFromCData with
width and height of 24, rather than 32.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 21 Apr 2020 17:06:35 -0700 |
parents | 49384057fb03 |
children | 2757f267a198 |
files | libgui/graphics/ToolBarButton.cc |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/graphics/ToolBarButton.cc Mon Apr 20 08:28:22 2020 -0700 +++ b/libgui/graphics/ToolBarButton.cc Tue Apr 21 17:06:35 2020 -0700 @@ -49,7 +49,7 @@ action->setVisible (tp.is_visible ()); // Get the icon data from cdata or as a named icon - QImage img = Utils::makeImageFromCData (tp.get_cdata (), 32, 32); + QImage img = Utils::makeImageFromCData (tp.get_cdata (), 24, 24); if (img.width () == 0) { @@ -104,7 +104,7 @@ case T::properties::ID_CDATA: { // Get the icon data from cdata or as a named icon - QImage img = Utils::makeImageFromCData (tp.get_cdata (), 32, 32); + QImage img = Utils::makeImageFromCData (tp.get_cdata (), 24, 24); if (img.width () == 0) {