[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #58144] "Cdata" icon for UIcontrol is incorrec
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #58144] "Cdata" icon for UIcontrol is incorrectly sized |
Date: |
Mon, 20 Apr 2020 13:07:17 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko |
Follow-up Comment #14, bug #58144 (project octave):
I don't know which way is better, but changing clipping to 24x24 from 32x32 is
technically quite easy. I've attached a patch which does that.
diff -r 49384057fb03 libgui/graphics/ToolBarButton.cc
--- a/libgui/graphics/ToolBarButton.cc Mon Apr 20 08:28:22 2020 -0700
+++ b/libgui/graphics/ToolBarButton.cc Mon Apr 20 10:03:28 2020 -0700
@@ -49,7 +49,7 @@ namespace QtHandles
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 @@ namespace QtHandles
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)
{
The visual difference is shown in the attached file
Octave_24x24_clipping.png.
(file #48886, file #48887)
_______________________________________________________
Additional Item Attachment:
File name: ToolBarButton.24x24.patch Size:0 KB
<https://savannah.gnu.org/file/ToolBarButton.24x24.patch?file_id=48886>
File name: Octave_24x24_clipping.png Size:16 KB
<https://savannah.gnu.org/file/Octave_24x24_clipping.png?file_id=48887>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?58144>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #58144] Cdata for UIcontrol is not properly implemented, Rik, 2020/04/09
- Message not available
- Message not available
- [Octave-bug-tracker] [bug #58144] Cdata for UIcontrol is not properly implemented, Rik, 2020/04/14
- [Octave-bug-tracker] [bug #58144] "Cdata" icon for UIcontrol is incorrectly sized, Rik, 2020/04/14
- [Octave-bug-tracker] [bug #58144] "Cdata" icon for UIcontrol is incorrectly sized, Rik, 2020/04/16
- [Octave-bug-tracker] [bug #58144] "Cdata" icon for UIcontrol is incorrectly sized, Rik, 2020/04/16
- [Octave-bug-tracker] [bug #58144] "Cdata" icon for UIcontrol is incorrectly sized, Guillaume, 2020/04/16
- [Octave-bug-tracker] [bug #58144] "Cdata" icon for UIcontrol is incorrectly sized, Rik, 2020/04/16
- [Octave-bug-tracker] [bug #58144] "Cdata" icon for UIcontrol is incorrectly sized, Rik, 2020/04/16
- Message not available
- [Octave-bug-tracker] [bug #58144] "Cdata" icon for UIcontrol is incorrectly sized, Rik, 2020/04/18
- Message not available
- [Octave-bug-tracker] [bug #58144] "Cdata" icon for UIcontrol is incorrectly sized, Rik, 2020/04/18
- Message not available
- [Octave-bug-tracker] [bug #58144] "Cdata" icon for UIcontrol is incorrectly sized,
Rik <=
- [Octave-bug-tracker] [bug #58144] "Cdata" icon for UIcontrol is incorrectly sized, Guillaume, 2020/04/21
- [Octave-bug-tracker] [bug #58144] "Cdata" icon for UIcontrol is incorrectly sized, Rik, 2020/04/21