D19890: Reduce the indicator arrow size for press-and-hold menus in QToolButtons

Noah Davis noreply at phabricator.kde.org
Fri Dec 13 21:22:51 GMT 2019


ndavis added a comment.


  In D19890#577135 <https://phabricator.kde.org/D19890#577135>, @ngraham wrote:
  
  > I'm not sure how to do that in the Breeze style here; can you show me?
  
  
  Ehh, I'm already working on it and figuring it out as I go. I have to move points in a vector around, which is annoying since I can't see the dimentions of the area I'm drawing in. I'm not even sure where the origin is. I would assume the top left of the area I have, but I'm not certain since -4 is apparently a valid X and Y position.

INLINE COMMENTS

> breezehelper.cpp:1308
>              case ArrowRight: arrow = QVector<QPointF>{QPointF( -2, -4 ), QPointF( 2, 0 ), QPointF( -2, 4 )}; break;
> +            case ArrowDown_Small: arrow = QVector<QPointF>{QPointF( 2, 4 ), QPointF( 4, 6 ), QPointF( 6, 4 )}; break;
>              default: break;

The vector I'm talking about

REPOSITORY
  R31 Breeze

BRANCH
  draw_small_arrow (branched from master)

REVISION DETAIL
  https://phabricator.kde.org/D19890

To: hallas, #vdg, #breeze, ngraham, abetts
Cc: ndavis, abetts, hpereiradacosta, plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, sebas, apol, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20191213/eb60293f/attachment.html>


More information about the Plasma-devel mailing list