linuxdeepin / qt5integration

Qt platform theme integration plugins for DDE.
Other
36 stars 47 forks source link

fix: Modify size style for toolbar #124

Closed 18202781743 closed 1 year ago

18202781743 commented 1 year ago

Adjust toolbar sizeHint to 36 in NormalMode. Adjust toolbar sizeHint to 24 in CompactMode.

Issue: https://github.com/linuxdeepin/dtk/issues/36

18202781743 commented 1 year ago

toolbutton,设计给的尺寸纯icon是36,36,以前的实现也不符合设计, 将icon,radius,frame等拼接起来形成sizeHint,但按照这种计算方法,需要添加固定值才能满足设计, 设计只关心最终大小,并没有给frame这些,我们能否直接返回一个设计给定的sizehint, @zccrs

zccrs commented 1 year ago

/+1

18202781743 commented 1 year ago

/+1

这个被requested了,只能approve才能合