Details
- Reviewers
broulik - Group Reviewers
Plasma VDG - Commits
- R120:fae4515f23fc: Show if KRunner is still searching for more things
Searched things, eventually it disappears, I sometimes don't really know what's still doing, maybe we could add some more information at some point.
Diff Detail
- Repository
- R120 Plasma Workspace
- Branch
- arcpatch-D22514
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 15650 Build 15668: arc lint + arc unit
This overlaps the clear button:
You might want to set some additional padding on the TextField and use acutal icon size:
var actionIconSize = Math.max(control.height * 0.8, units.iconSizes.small);
Can you delay showing the busy indicator a bit? e.g. only show if there haven't been any new results for 500ms or so, to avoid that thing constantly flashing up. Perhaps easiest would be something like
Timer { id: delayBusyIndicatorTimer interval: 500 } BusyIndicator { visible: !delayBusyIndicatorTimer.running && results.queryActive } onQueryStringChanged: delayBusyIndicatorTimer.start()
Also, it would be lovely to animate its appearance/disappearance instead of just using visible
You already fixed all of those, right?
IMHO the busy indicator should appear next to the results list, for example right on top of it, because the busy indicator is related to the results, not to the input text. A busy indicator in TextField might be understood as if something is going to happen inside that text field.
I would tend to agree.
Also now it's driving me slightly crazy that the Plasma busy indicator has a different look from the QQC2-desktop-style one! :)
Seems to work. There's some comments from Kai above.
lookandfeel/contents/runcommand/RunCommand.qml | ||
---|---|---|
86 | Does using Kirigami.ActionTextField help with positioning? |
lookandfeel/contents/runcommand/RunCommand.qml | ||
---|---|---|
86 | Since it's using QQC2.TextField, won't it be using a completely different colour scheme? |
lookandfeel/contents/runcommand/RunCommand.qml | ||
---|---|---|
86 | There was some code to make that magically work. (maybe it was that URLInterceptor we removed?) If it doesn't work, then just ignore me. |
lookandfeel/contents/runcommand/RunCommand.qml | ||
---|---|---|
86 | We need more magic. |
lookandfeel/contents/runcommand/RunCommand.qml | ||
---|---|---|
86 |
yep :) (there may be things in the systemmotitor applets that *may* break if the urlinterceptor stuff is reintroduced tough (would need to be tested) |
Testing this out, the spinner never seems to go away, even after the results list has stopped changing.
Never mind, I didn't have the whole stack built. This works well.
I feel like I might prefer to have the spinner overlaid on top of the results view like @aspotashev suggested, inside a dark transparent rounded rectangle, maybe. That would visually connect the spinner to the results, rather than implying that the text field itself is still processing things.
Not a huge deal though, and I can see how that might be kind of annoying if it's obscuring the results that you want to look at.
Then again, now that I'm trying that out, it might be kind of annoying, and it wouldn't show up well when using a dark theme.
All right, let's go with this.
Can you please add the delay for when the spinner shows up. (And the opacity animation perhaps)
lookandfeel/contents/runcommand/RunCommand.qml | ||
---|---|---|
105 | Easier would be !queryTimer.running && results.querying, then you don't need any of the custom state tracking And then just onQueryStringChanged: queryTimer.restart() Also, maybe longer than 200ms? |
I still think it should be more than 200ms, more like 500ms.
lookandfeel/contents/runcommand/RunCommand.qml | ||
---|---|---|
103 | The BusyIndicator is always visible |