this makes the toolbutton icons follow a standard size.
Maybe one could make it follow the icon group size props? like icon.width and icon.height if those props are set.
Before patch:
After patch:
this makes the toolbutton icons follow a standard size.
Maybe one could make it follow the icon group size props? like icon.width and icon.height if those props are set.
Before patch:
After patch:
No Linters Available |
No Unit Test Coverage |
Buildable 15545 | |
Build 15563: arc lint + arc unit |
src/declarativeimports/plasmacomponents3/ToolButton.qml | ||
---|---|---|
56 ↗ | (On Diff #64368) | That's always the case, isn't it? if a parent isn't visible, an item will never be visible. |
src/declarativeimports/plasmacomponents3/ToolButton.qml | ||
---|---|---|
56 ↗ | (On Diff #64368) | yes. you're right. |
Not that it's an inappropriate fix, but are you sure you want to be using PlasmaComponents ToolButtons in Index? Why not use regular old QQC2 ToolButtons?
My intention with these patches is to "fix" visual issues affecting apps on PlaMo platform, issues that come from the Plasma style.
Apps using regular QQC2 components are no as nicely styled with the Plasma style as they are with others styles intended for standalone applications. some of the issues are affecting QCC2.ToolButton, QCC2.Button, QCC2.ToolBar... etc.
Index is using regular old QQC2 ToolButtons.
From the screenshots, the current style, makes QCC2 ToolButton be huge, taking the size from the layout. The idea is to make the ToolButton size standard
src/declarativeimports/plasmacomponents3/ToolButton.qml | ||
---|---|---|
56 ↗ | (On Diff #64368) | This fixes the icons to a single size no matter what, and wether it fits or not, and is going to break badly any time a bigger or smaller buttons is needed, as shown by breaking media controller. I have to revert this now, the icon should scale only to "standard" sizes, but still scale with the button size. |
src/declarativeimports/plasmacomponents3/ToolButton.qml | ||
---|---|---|
49 ↗ | (On Diff #64368) | this further item enclosing is not necessary, is an object instantation more for no functional gain |
55 ↗ | (On Diff #64368) | This was ok as it was, including fillwidth/fillheight (perhaps) |
make the icon fill height and width if the icon group height or width props are not set or are 0