- Increase the size of the mock titlebar to ease dropping
- Fix drag&drop behavior
- Fix reset to default
- Remove border of available buttons grid
- Move dragging hint to the top
Screenshots @ https://imgur.com/a/za7CO1I
BUG: 350122
BUG: 346222
BUG: 342816
| ngraham | |
| davidedmundson |
| VDG | |
| KWin |
Screenshots @ https://imgur.com/a/za7CO1I
BUG: 350122
BUG: 346222
BUG: 342816
| Lint OK |
| No Unit Test Coverage |
| Buildable 7161 | |
| Build 7179: arc lint + arc unit |
Thanks so much! Will check it out soon. To echo @abetts, before-and-after screenshots in the Summary section are always helpful for patches with UI changes. See https://community.kde.org/Infrastructure/Phabricator#Include_some_screenshots
I'm only not very happy with the dragging hint label. It's too dark in dark themes.
Suggestions for an alternative color from the QPalette::ColorRole enum that will work in all themes ? Its opacity is 50% normally and drops to 0% (invisible) during a drag from the titlebar.
Wow, this is amazingly better.
For extra bonus points: could we render an actual depiction of the current theme's titlebar appearance instead of synthesizing an artificial one? The other tab does this in QML, so maybe we can do the same here.
Also +1 on your idea to remove the background color under the unused icons.
What a ride. I was unable to do neither!
For some reason (different color profile? qml view rendering issue?) the color never matches *exactly* what I set . I don't know. Could you maybe add someone who knows more about colors and QML?
Also I tried making a real window to drag&drop buttons. I went as far as allowing dropping buttons to the fake window's titlebar to add them there, but I couldn't find how to get which button is being dragged from the titlebar. Bummer. It'd have been really nice.
| kcmkwin/kwindecoration/declarative-plugin/buttonsmodel.cpp | ||
|---|---|---|
| 169 | This still applies. You're not seeing it because you now add +1 in your QML side, but that makes the guard at the top wrong and the else statement here wrong. I would suggest adding https://doc.qt.io/qt-5.11/qabstractitemmodeltester.html whilst you're doing dev work and you'll see this crash. | |
Tested with QAbstractItemModelTester in fatal mode, no more issues found.
Hey all, sorry for not showing up earlier in this ticket. I wanted to offer visual direction for this change. Here is the mockup I conceptualized for this kcm.
https://phabricator.kde.org/M112/404/
You don't have to follow it strictly, but I think it helps cover the visual changes that we planned. If you could achieve something similar to that, it would be awesome. At a minimum, I agree with the patch that the thumbnails for the dragging items need to be bigger.
+1
@abetts Thank you, I will certainly take in the nice style of the redesign you guys made! It's going to be really easy to use (and cool looking!).
However, since I am currently busy rewriting the entire module with Kirigami, and I am using the current change as the basis for my redesign, it would be more messy for me to make further changes to it at this point. Would it be acceptable to keep it as it is for now?
A couple weeks should be enough for me to come up with the next iteration of this control module, meaning that users of released versions wouldn't see this diff's version (effectively now an 'intermediate' version) at all.
Another question: will all the current settings control modules be restyled like that redesign? Because currently not a single one of the modules look anything like that.
The mockup is a "low fidelity" mockup designed to show layout and structure, not final appearance. You can ignore the visual divergences of the individual controls.