D28033: Create ExpandableListItem

2022-02-02 Thread ivan tkachenko
ratijas added inline comments.

INLINE COMMENTS

> ngraham wrote in ExpandableListItem.qml:269
> It was nothing more than a bad API design decision on my part.

Luckily, it is easily fixable, with an alias for backward compatibility. 
However, I don't know how to enforce deprecation warnings on aliases. It might 
be possible in Qt/QML 6 though.

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma, davidedmundson
Cc: ratijas, meven, dfaure, mart, davidedmundson, bruns, niccolove, cblack, 
davidre, kde-frameworks-devel, LeGast00n, michaelh, ahmadsamir, ngraham, vkrause


D28033: Create ExpandableListItem

2022-02-02 Thread Nathaniel Graham
ngraham added inline comments.

INLINE COMMENTS

> ratijas wrote in ExpandableListItem.qml:269
> Why simply Item::enabled wasn't enough? Is there a real use-case that 
> justifies an extra property with overlapping name? Should be documented if 
> there is one.

It was nothing more than a bad API design decision on my part.

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma, davidedmundson
Cc: ratijas, meven, dfaure, mart, davidedmundson, bruns, niccolove, cblack, 
davidre, kde-frameworks-devel, LeGast00n, michaelh, ahmadsamir, ngraham, vkrause


D28033: Create ExpandableListItem

2022-02-02 Thread ivan tkachenko
ratijas added inline comments.

INLINE COMMENTS

> ExpandableListItem.qml:269
> + */
> +property bool isEnabled: true
> +

Why simply Item::enabled wasn't enough? Is there a real use-case that justifies 
an extra property with overlapping name? Should be documented if there is one.

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma, davidedmundson
Cc: ratijas, meven, dfaure, mart, davidedmundson, bruns, niccolove, cblack, 
davidre, kde-frameworks-devel, LeGast00n, michaelh, ahmadsamir, ngraham, vkrause


D28033: Create ExpandableListItem

2020-05-10 Thread Méven Car
meven added a comment.


  Great consistency work !
  
  CC @niccolove

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma, davidedmundson
Cc: meven, dfaure, mart, davidedmundson, bruns, niccolove, cblack, davidre, 
kde-frameworks-devel, LeGast00n, michaelh, ngraham


D28033: Create ExpandableListItem

2020-04-05 Thread Nathaniel Graham
ngraham added a comment.


  Fixed in 96d203b4b86e829fa958a8aa2ac42c8f5e1a4d31 
.

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma, davidedmundson
Cc: dfaure, mart, davidedmundson, bruns, niccolove, cblack, davidre, 
kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-04-05 Thread Nathaniel Graham
ngraham added a comment.


  Oops, sorry. Will fix.

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma, davidedmundson
Cc: dfaure, mart, davidedmundson, bruns, niccolove, cblack, davidre, 
kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-04-05 Thread David Faure
dfaure added a comment.


  This commit broke the i18ndcheck unittest.
  
  
https://build.kde.org/job/Frameworks/view/Platform%20-%20SUSEQt5.14/job/plasma-framework/job/kf5-qt5%20SUSEQt5.14/9/testReport/junit/projectroot/autotests/i18ndcheck/
  
  Reproducible locally. Works before and breaks after this commit.

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma, davidedmundson
Cc: dfaure, mart, davidedmundson, bruns, niccolove, cblack, davidre, 
kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-04-04 Thread Nathaniel Graham
This revision was automatically updated to reflect the committed changes.
Closed by commit R242:3bd31386abbf: Create ExpandableListItem (authored by 
ngraham).

REPOSITORY
  R242 Plasma Framework (Library)

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D28033?vs=79366=79367

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

AFFECTED FILES
  src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml
  src/declarativeimports/plasmaextracomponents/qml/qmldir

To: ngraham, #vdg, #plasma, davidedmundson
Cc: mart, davidedmundson, bruns, niccolove, cblack, davidre, 
kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-04-04 Thread Nathaniel Graham
ngraham updated this revision to Diff 79366.
ngraham marked an inline comment as done.
ngraham added a comment.


  height -> contentHeight

REPOSITORY
  R242 Plasma Framework (Library)

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D28033?vs=78593=79366

BRANCH
  ExpandableListItem (branched from master)

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

AFFECTED FILES
  src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml
  src/declarativeimports/plasmaextracomponents/qml/qmldir

To: ngraham, #vdg, #plasma, davidedmundson
Cc: mart, davidedmundson, bruns, niccolove, cblack, davidre, 
kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-04-03 Thread David Edmundson
davidedmundson accepted this revision.
davidedmundson added a comment.
This revision is now accepted and ready to land.


  Tagging is tomorrow, don't merge before then.

INLINE COMMENTS

> ExpandableListItem.qml:491
> +Item {
> +height: actionsList.height
> +width: mainRowLayout.width

not contentHeight?

REPOSITORY
  R242 Plasma Framework (Library)

BRANCH
  ExpandableListItem (branched from master)

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

To: ngraham, #vdg, #plasma, davidedmundson
Cc: mart, davidedmundson, bruns, niccolove, cblack, davidre, 
kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-26 Thread Nathaniel Graham
ngraham added a dependent revision: D28321: [WIP] [applets/devicenotifier] Port 
to ExpandableListItem.

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma, davidedmundson
Cc: mart, davidedmundson, bruns, niccolove, cblack, davidre, 
kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-26 Thread Nathaniel Graham
ngraham added a comment.


  Ready for re-review.
  
  @davidedmundson

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma, davidedmundson
Cc: mart, davidedmundson, bruns, niccolove, cblack, davidre, 
kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-26 Thread Nathaniel Graham
ngraham updated this revision to Diff 78593.
ngraham added a comment.


  Add new properties `defaultActionButtonVisible` and `subtitleColor`, used in 
the device notifier

REPOSITORY
  R242 Plasma Framework (Library)

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D28033?vs=78324=78593

BRANCH
  ExpandableListItem (branched from master)

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

AFFECTED FILES
  src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml
  src/declarativeimports/plasmaextracomponents/qml/qmldir

To: ngraham, #vdg, #plasma, davidedmundson
Cc: mart, davidedmundson, bruns, niccolove, cblack, davidre, 
kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-23 Thread Nathaniel Graham
ngraham updated this revision to Diff 78324.
ngraham added a comment.


  Rebase better (one of these days I'll remember to do it right the first time 
around...)

REPOSITORY
  R242 Plasma Framework (Library)

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D28033?vs=78323=78324

BRANCH
  ExpandableListItem (branched from master)

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

AFFECTED FILES
  src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml
  src/declarativeimports/plasmaextracomponents/qml/qmldir

To: ngraham, #vdg, #plasma, davidedmundson
Cc: mart, davidedmundson, bruns, niccolove, cblack, davidre, 
kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-23 Thread Nathaniel Graham
ngraham updated this revision to Diff 78323.
ngraham added a comment.


  Rebase

REPOSITORY
  R242 Plasma Framework (Library)

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D28033?vs=78177=78323

BRANCH
  ExpandableListItem (branched from master)

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

AFFECTED FILES
  src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml
  src/declarativeimports/plasmaextracomponents/qml/qmldir
  src/desktoptheme/breeze/icons/window.svg

To: ngraham, #vdg, #plasma, davidedmundson
Cc: mart, davidedmundson, bruns, niccolove, cblack, davidre, 
kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-21 Thread Nathaniel Graham
ngraham added a comment.


  Idea: instead of allowing a context menu to be defined, we require that the 
contextual actions always be defined as actions and appear in the expanded 
view. Then, we make the expanded view contain a tab view and put the contextual 
actions into one tab, hiding the tab bar when there's only one tab, and 
allowing additional tabs to be defined. With this, you wouldn't define a whole 
separate custom expanded view; you would define additional tabs to put in the 
tabbed view. This would allow us to remove the context menu to make the 
contextual actions discoverable and touch-friendly even in more complex 
delegates where you want contextual actions as well as some kind of custom view.
  
  Thoughts?

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma, davidedmundson
Cc: mart, davidedmundson, bruns, niccolove, cblack, davidre, 
kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-21 Thread Nathaniel Graham
ngraham updated this revision to Diff 78177.
ngraham added a comment.


  Fix documentation formatting

REPOSITORY
  R242 Plasma Framework (Library)

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D28033?vs=78104=78177

BRANCH
  ExpandableListItem (branched from master)

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

AFFECTED FILES
  src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml
  src/declarativeimports/plasmaextracomponents/qml/qmldir

To: ngraham, #vdg, #plasma, davidedmundson
Cc: mart, davidedmundson, bruns, niccolove, cblack, davidre, 
kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-20 Thread Nathaniel Graham
ngraham marked 4 inline comments as done.

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma, davidedmundson
Cc: mart, davidedmundson, bruns, niccolove, cblack, davidre, 
kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-20 Thread Nathaniel Graham
ngraham updated this revision to Diff 78104.
ngraham added a comment.


  Use the new `veryLongDuration` duration instead a multiple of `longDuration`

REPOSITORY
  R242 Plasma Framework (Library)

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D28033?vs=78103=78104

BRANCH
  ExpandableListItem (branched from master)

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

AFFECTED FILES
  src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml
  src/declarativeimports/plasmaextracomponents/qml/qmldir

To: ngraham, #vdg, #plasma, davidedmundson
Cc: mart, davidedmundson, bruns, niccolove, cblack, davidre, 
kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-20 Thread Nathaniel Graham
ngraham updated this revision to Diff 78103.
ngraham added a comment.


  Rebase

REPOSITORY
  R242 Plasma Framework (Library)

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D28033?vs=77947=78103

BRANCH
  ExpandableListItem (branched from master)

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

AFFECTED FILES
  src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml
  src/declarativeimports/plasmaextracomponents/qml/qmldir

To: ngraham, #vdg, #plasma, davidedmundson
Cc: mart, davidedmundson, bruns, niccolove, cblack, davidre, 
kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-20 Thread Nathaniel Graham
ngraham edited the summary of this revision.
ngraham added a dependency: D28144: Make animation durations consistent with 
Kirigami values.

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma, davidedmundson
Cc: mart, davidedmundson, bruns, niccolove, cblack, davidre, 
kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-19 Thread Nathaniel Graham
ngraham added a comment.


  D28143: Add "veryLongDuration" animation duration 

  
  D28144: Make animation durations consistent with Kirigami values 


REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma, davidedmundson
Cc: mart, davidedmundson, bruns, niccolove, cblack, davidre, 
kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-19 Thread Nathaniel Graham
ngraham added a comment.


  In fact it looks like Kirigami already uses 150 for short and 250 for long, 
so there's an argument for making Plasma consistent with that. Will submit 
patches.

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma, davidedmundson
Cc: mart, davidedmundson, bruns, niccolove, cblack, davidre, 
kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-19 Thread Marco Martin
mart added a comment.


  In D28033#630450 , @ngraham wrote:
  
  >
  
  
  
  
  > shortDuration: 150ms
  >  longDuration: 250ms
  >  veryLongDuration: 500ms
  
  veryLongDuration doesn't sound too good, but if longduration goes 500ms 
probably a lot of existing things are going to look way too slow so +1 for 
compatibility

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma, davidedmundson
Cc: mart, davidedmundson, bruns, niccolove, cblack, davidre, 
kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-19 Thread Nathaniel Graham
ngraham edited the summary of this revision.

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma, davidedmundson
Cc: mart, davidedmundson, bruns, niccolove, cblack, davidre, 
kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-19 Thread Nathaniel Graham
ngraham added a comment.


  I agree 150ms for shortDuration is much more sensible; the current speed it 
too short to even notice that something is animating. I think we need more 
durations though. My proposal would be something like this:
  
  shortDuration: 150ms
  mediumDuration: 250ms
  longDuration: 500ms
  
  Or, for compatibility with existing types:
  
  shortDuration: 150ms
  longDuration: 250ms
  veryLongDuration: 500ms

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma, davidedmundson
Cc: mart, davidedmundson, bruns, niccolove, cblack, davidre, 
kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-19 Thread Marco Martin
mart added inline comments.

INLINE COMMENTS

> davidedmundson wrote in ExpandableListItem.qml:230
> If it's multiplied by a factor it's not a "standard duration" anymore.

to me this tells more that

- default durations right now are waaay too short
- we don't take into account that for movements and resizes, the actual 
duration should be a function of the travel distance, rather than a fixed 
duration

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma, davidedmundson
Cc: mart, davidedmundson, bruns, niccolove, cblack, davidre, 
kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-19 Thread Marco Martin
mart added a comment.


  In D28033#630073 , @ngraham wrote:
  
  > (WRT duration) What should I do then? Hardcode something? Add a new 
duration in a separate patch? The only standard durations we have are all quite 
short; neither one feels suitable for the animation I'm using here.
  
  
  to me the real problem is really the default settings for durations 
longDuration became 150ms or so, (shortduration is something so short that 
usually the animation frames just gets dropped altogether so it's pointless to 
even use it ever)
  I know this was done in the attempt of improving animations, but the end 
effect is ridiculous and makes animations actually looking worse, either 
comically fast (super fast fades are ok, item movements or resizes shouldn't 
actually be too fast, or be perceived as threatening) or no frames rendered at 
all even if there is code for it
  the original default values of 150 and 250 msecs for short and long were 
quite fine actually
  
  also, we should probably start into looking using SmoothedAnimation speed 
more rather than durations (to not fix travel time, but travel speed) (as 
animators don't support it and we would need something that reacts to global 
animations settings probably we would need our implementation of the speed 
concept)
  
  https://valhead.com/2016/05/05/how-fast-should-your-ui-animations-be/
  https://www.nngroup.com/articles/too-fast-ux/
  
https://uxdesign.cc/the-ultimate-guide-to-proper-use-of-animation-in-ux-10bd98614fa9

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma, davidedmundson
Cc: mart, davidedmundson, bruns, niccolove, cblack, davidre, 
kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-18 Thread Nathaniel Graham
ngraham edited the test plan for this revision.

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma, davidedmundson
Cc: mart, davidedmundson, bruns, niccolove, cblack, davidre, 
kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-18 Thread Nathaniel Graham
ngraham updated this revision to Diff 77947.
ngraham added a comment.


  Fix a whitespace thingy

REPOSITORY
  R242 Plasma Framework (Library)

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D28033?vs=77946=77947

BRANCH
  ExpandableListItem (branched from master)

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

AFFECTED FILES
  src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml
  src/declarativeimports/plasmaextracomponents/qml/qmldir

To: ngraham, #vdg, #plasma, davidedmundson
Cc: mart, davidedmundson, bruns, niccolove, cblack, davidre, 
kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-18 Thread Nathaniel Graham
ngraham updated this revision to Diff 77946.
ngraham added a comment.


  Add API docs

REPOSITORY
  R242 Plasma Framework (Library)

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D28033?vs=77935=77946

BRANCH
  ExpandableListItem (branched from master)

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

AFFECTED FILES
  src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml
  src/declarativeimports/plasmaextracomponents/qml/qmldir

To: ngraham, #vdg, #plasma, davidedmundson
Cc: mart, davidedmundson, bruns, niccolove, cblack, davidre, 
kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-18 Thread Nathaniel Graham
ngraham added a comment.


  (WRT duration) What should I do then? Hardcode something? Add a new duration 
in a separate patch? The only standard durations we have are all quite short; 
neither one feels suitable for the animation I'm using here.
  
  Also we multiply distance units by factors all the time so I don't understand 
why it's not acceptable to do so for a duration.

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma, davidedmundson
Cc: mart, davidedmundson, bruns, niccolove, cblack, davidre, 
kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-18 Thread David Edmundson
davidedmundson added inline comments.

INLINE COMMENTS

> ngraham wrote in ExpandableListItem.qml:230
> Not sure what you mean by "random." It's a multiple of a standard duration 
> that I chose to look good (IMO).

If it's multiplied by a factor it's not a "standard duration" anymore.

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma, davidedmundson
Cc: mart, davidedmundson, bruns, niccolove, cblack, davidre, 
kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-18 Thread Nathaniel Graham
ngraham added a comment.


  Will beef up the docs next

INLINE COMMENTS

> davidedmundson wrote in ExpandableListItem.qml:230
> I meant the duration

Not sure what you mean by "random." It's a multiple of a standard duration that 
I chose to look good (IMO).

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma, davidedmundson
Cc: mart, davidedmundson, bruns, niccolove, cblack, davidre, 
kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-18 Thread Nathaniel Graham
ngraham updated this revision to Diff 77935.
ngraham marked 4 inline comments as done.
ngraham added a comment.


  Move to PlasmaExtraComponents

REPOSITORY
  R242 Plasma Framework (Library)

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D28033?vs=77702=77935

BRANCH
  ExpandableListItem (branched from master)

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

AFFECTED FILES
  src/declarativeimports/plasmaextracomponents/qml/ExpandableListItem.qml
  src/declarativeimports/plasmaextracomponents/qml/qmldir

To: ngraham, #vdg, #plasma, davidedmundson
Cc: mart, davidedmundson, bruns, niccolove, cblack, davidre, 
kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-18 Thread Marco Martin
mart added a comment.


  to me it should be in plasma extracomponents
  
  (and with a warning in the docs that such an item should be used only in 
lists that are known to have always very few items)

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma, davidedmundson
Cc: mart, davidedmundson, bruns, niccolove, cblack, davidre, 
kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-18 Thread David Edmundson
davidedmundson added inline comments.

INLINE COMMENTS

> ngraham wrote in ExpandableListItem.qml:2
> Where should it live? PC2? Kirigami?

Definitely can't be in PC2.

Kirigami is doable, but it'd require some code changes to not use any Plasma.* 
imports and go through relevant abstractions

Failing that plasmaextracomponents

> ngraham wrote in ExpandableListItem.qml:23
> Not unused, it's needed for `Highlight`, which has no PC3 version.

I meant this one

import org.kde.plasma.plasmoid 2.0

having that in library code is surprising.

> ngraham wrote in ExpandableListItem.qml:230
> Not random; this is the easing curve we agreed to and is now in the HIG: 
> https://hig.kde.org/style/animations.html#guidelines

I meant the duration

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma, davidedmundson
Cc: davidedmundson, bruns, niccolove, cblack, davidre, kde-frameworks-devel, 
LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-15 Thread Nathaniel Graham
ngraham updated this revision to Diff 77702.
ngraham added a comment.


  Don't auto-collapse when the default action button is clicked; this can 
interfere with actions where you want the button to show a custom expanded 
view, as in the Networks widget

REPOSITORY
  R242 Plasma Framework (Library)

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D28033?vs=77701=77702

BRANCH
  ExpandableListItem (branched from master)

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

AFFECTED FILES
  src/declarativeimports/plasmacomponents3/ExpandableListItem.qml
  src/declarativeimports/plasmacomponents3/qmldir

To: ngraham, #vdg, #plasma, davidedmundson
Cc: davidedmundson, bruns, niccolove, cblack, davidre, kde-frameworks-devel, 
LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-15 Thread Nathaniel Graham
ngraham updated this revision to Diff 77701.
ngraham added a comment.


  - Create a re-usable public `toggleExpanded()` function and use it internally
  - Make the busy indicator a bit smaller so it doesn't make the list item 
taller when it appears

REPOSITORY
  R242 Plasma Framework (Library)

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D28033?vs=77695=77701

BRANCH
  ExpandableListItem (branched from master)

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

AFFECTED FILES
  src/declarativeimports/plasmacomponents3/ExpandableListItem.qml
  src/declarativeimports/plasmacomponents3/qmldir

To: ngraham, #vdg, #plasma, davidedmundson
Cc: davidedmundson, bruns, niccolove, cblack, davidre, kde-frameworks-devel, 
LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-15 Thread Nathaniel Graham
ngraham updated this revision to Diff 77695.
ngraham added a comment.


  Use `StyledText` instead of `RichText` because `RichText` doesn't support 
eliding (see https://bugreports.qt.io/browse/QTBUG-16567)

REPOSITORY
  R242 Plasma Framework (Library)

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D28033?vs=77691=77695

BRANCH
  ExpandableListItem (branched from master)

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

AFFECTED FILES
  src/declarativeimports/plasmacomponents3/ExpandableListItem.qml
  src/declarativeimports/plasmacomponents3/qmldir

To: ngraham, #vdg, #plasma, davidedmundson
Cc: davidedmundson, bruns, niccolove, cblack, davidre, kde-frameworks-devel, 
LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-15 Thread Nathaniel Graham
ngraham updated this revision to Diff 77691.
ngraham added a comment.


  Add TODOs

REPOSITORY
  R242 Plasma Framework (Library)

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D28033?vs=77688=77691

BRANCH
  ExpandableListItem (branched from master)

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

AFFECTED FILES
  src/declarativeimports/plasmacomponents3/ExpandableListItem.qml
  src/declarativeimports/plasmacomponents3/qmldir

To: ngraham, #vdg, #plasma, davidedmundson
Cc: davidedmundson, bruns, niccolove, cblack, davidre, kde-frameworks-devel, 
LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-15 Thread Nathaniel Graham
ngraham updated this revision to Diff 77687.
ngraham added a comment.


  Rebase

REPOSITORY
  R242 Plasma Framework (Library)

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D28033?vs=77686=77687

BRANCH
  ExpandableListItem (branched from master)

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

AFFECTED FILES
  src/declarativeimports/plasmacomponents3/ExpandableListItem.qml
  src/declarativeimports/plasmacomponents3/qmldir

To: ngraham, #vdg, #plasma, davidedmundson
Cc: davidedmundson, bruns, niccolove, cblack, davidre, kde-frameworks-devel, 
LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-15 Thread Nathaniel Graham
ngraham updated this revision to Diff 77688.
ngraham added a comment.


  Fix one thing

REPOSITORY
  R242 Plasma Framework (Library)

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D28033?vs=77687=77688

BRANCH
  ExpandableListItem (branched from master)

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

AFFECTED FILES
  src/declarativeimports/plasmacomponents3/ExpandableListItem.qml
  src/declarativeimports/plasmacomponents3/qmldir

To: ngraham, #vdg, #plasma, davidedmundson
Cc: davidedmundson, bruns, niccolove, cblack, davidre, kde-frameworks-devel, 
LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-15 Thread Nathaniel Graham
ngraham marked 5 inline comments as done.
ngraham added a comment.


  By switching to the PC3 `BusyIndicator`, I'm now seeing a binding loop that 
doesn't make sense to me:
  

file:///home/nate/kde/usr/lib64/qml/org/kde/plasma/components.3/ExpandableListItem.qml:191:13:
 QML BusyIndicator: Binding loop detected for property "implicitHeight"
  
  I'm not touching the `implicitWidth` of the item here, so it seems like it 
could be inherent to the control itself.

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma, davidedmundson
Cc: davidedmundson, bruns, niccolove, cblack, davidre, kde-frameworks-devel, 
LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-15 Thread Nathaniel Graham
ngraham added inline comments.

INLINE COMMENTS

> davidedmundson wrote in ExpandableListItem.qml:2
> It shouldn't be in PC3. It's new API from qqc2.A

Where should it live? PC2? Kirigami?

> davidedmundson wrote in ExpandableListItem.qml:23
> Unused?

Not unused, it's needed for `Highlight`, which has no PC3 version.

> davidedmundson wrote in ExpandableListItem.qml:179
> Shouldn't it run the default action?

It already does by virtue of having `defaultActionButtonAction` being an alias 
to `defaultActionButton.action`; this just adds an additional behavior on top 
of that. I'll add a comment to make this clearer

> davidedmundson wrote in ExpandableListItem.qml:230
> Seems random

Not random; this is the easing curve we agreed to and is now in the HIG: 
https://hig.kde.org/style/animations.html#guidelines

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma, davidedmundson
Cc: davidedmundson, bruns, niccolove, cblack, davidre, kde-frameworks-devel, 
LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-15 Thread Nathaniel Graham
ngraham updated this revision to Diff 77686.
ngraham marked 4 inline comments as done.
ngraham added a comment.


  - Address review comments
  - Improve inline comments for clarify
  - Use a pointing hand cursor when hovering over the item to indicate that 
it's clickable
  - Make subtitle wrapping optional
  - Substantially simplify the expanded view handling

REPOSITORY
  R242 Plasma Framework (Library)

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D28033?vs=77636=77686

BRANCH
  ExpandableListItem (branched from master)

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

AFFECTED FILES
  src/declarativeimports/plasmacomponents3/ExpandableListItem.qml
  src/declarativeimports/plasmacomponents3/qmldir
  src/declarativeimports/plasmaextracomponents/qml/PlasmoidHeading.qml
  src/declarativeimports/plasmaextracomponents/qml/qmldir
  src/desktoptheme/breeze/widgets/plasmoidheading.svg

To: ngraham, #vdg, #plasma, davidedmundson
Cc: davidedmundson, bruns, niccolove, cblack, davidre, kde-frameworks-devel, 
LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-15 Thread David Edmundson
davidedmundson requested changes to this revision.
This revision now requires changes to proceed.

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma, davidedmundson
Cc: davidedmundson, bruns, niccolove, cblack, davidre, kde-frameworks-devel, 
LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-15 Thread Niccolò Venerandi
niccolove added a comment.


  AFAIK, there should be a easy way to add animations to the highlight effect. 
An example is the print one, where clicking on it will animate the highlight. 
It should also be possible to make the highlight effect fly over elements 
instead of always being on the hovered element. Not a must for this patch, but 
it could be nice to have.

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma
Cc: davidedmundson, bruns, niccolove, cblack, davidre, kde-frameworks-devel, 
LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-14 Thread Nathaniel Graham
ngraham updated this revision to Diff 77636.
ngraham added a comment.


  Rebase better

REPOSITORY
  R242 Plasma Framework (Library)

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D28033?vs=77635=77636

BRANCH
  ExpandableListItem (branched from master)

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

AFFECTED FILES
  src/declarativeimports/plasmacomponents3/ExpandableListItem.qml
  src/declarativeimports/plasmacomponents3/qmldir

To: ngraham, #vdg, #plasma
Cc: davidedmundson, bruns, niccolove, cblack, davidre, kde-frameworks-devel, 
LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-14 Thread Nathaniel Graham
ngraham updated this revision to Diff 77635.
ngraham added a comment.


  Rebase

REPOSITORY
  R242 Plasma Framework (Library)

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D28033?vs=77603=77635

BRANCH
  ExpandableListItem (branched from master)

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

AFFECTED FILES
  src/declarativeimports/plasmacomponents3/ExpandableListItem.qml
  src/declarativeimports/plasmacomponents3/qmldir
  src/declarativeimports/plasmaextracomponents/qml/PlasmoidHeading.qml
  src/declarativeimports/plasmaextracomponents/qml/qmldir
  src/desktoptheme/breeze/widgets/plasmoidheading.svg

To: ngraham, #vdg, #plasma
Cc: davidedmundson, bruns, niccolove, cblack, davidre, kde-frameworks-devel, 
LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-13 Thread David Edmundson
davidedmundson added inline comments.

INLINE COMMENTS

> ExpandableListItem.qml:2
> +/*
> + *   Copyright 2020 Nate Graham 
> + *

It shouldn't be in PC3. It's new API from qqc2.A

> ExpandableListItem.qml:23
> +import org.kde.plasma.core 2.0 as PlasmaCore
> +import org.kde.plasma.plasmoid 2.0
> +import org.kde.plasma.components 2.0 as PlasmaComponents

Unused?

> ExpandableListItem.qml:153
> +PlasmaComponents.Label {
> +id: listItemSubtitle
> +

Why pc2?

> ExpandableListItem.qml:179
> +
> +onClicked: collapse()
> +}

Shouldn't it run the default action?

> ExpandableListItem.qml:190
> +// TODO: or should it just be right-aligned?
> +implicitWidth: defaultActionButton.width
> +implicitHeight: defaultActionButton.height

Neve rdefine an implicit size from an actual size.

> ExpandableListItem.qml:230
> +NumberAnimation {
> +duration: units.longDuration * 3
> +easing.type: Easing.InOutCubic

Seems random

> ExpandableListItem.qml:235
> +
> +// Custom view; when defined, the actions list doesn't appear
> +Loader {

Sounds like you want 2 classes. One a subclass with the list as the custom view.

Then you don't need the container, or this switching.

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma
Cc: davidedmundson, bruns, niccolove, cblack, davidre, kde-frameworks-devel, 
LeGast00n, GB_2, michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-13 Thread Nathaniel Graham
ngraham updated this revision to Diff 77603.
ngraham added a comment.


  - Add an opacity animation when expanded view is shown
  - Add a button on the right to expand and collapse the expanded view
  - Clean and simplify expand()/collapse() code a bit

REPOSITORY
  R242 Plasma Framework (Library)

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D28033?vs=77582=77603

BRANCH
  ExpandableListItem (branched from master)

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

AFFECTED FILES
  src/declarativeimports/plasmacomponents3/ExpandableListItem.qml
  src/declarativeimports/plasmacomponents3/qmldir

To: ngraham, #vdg, #plasma
Cc: bruns, niccolove, cblack, davidre, kde-frameworks-devel, LeGast00n, GB_2, 
michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-13 Thread Nathaniel Graham
ngraham added a comment.


  If it were a flat button, I'd want to make the default action button flat 
too, or else they wouldn't match. Here's how that would look: F8174983: 
Toolbuttons.png 
  
  And here's how it would look with both of them as non-flat PushButtons: 
F8174985: Screenshot_20200313_163524.png 
  
  For some strange reason, the ToolButton version seems to suffer from 
keming... :(

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma
Cc: bruns, niccolove, cblack, davidre, kde-frameworks-devel, LeGast00n, GB_2, 
michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-13 Thread Nathaniel Graham
ngraham edited the test plan for this revision.

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma
Cc: bruns, niccolove, cblack, davidre, kde-frameworks-devel, LeGast00n, GB_2, 
michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-13 Thread David Redondo
davidre added a comment.


  In D28033#627192 , @ngraham wrote:
  
  > In D28033#627184 , @cblack wrote:
  >
  > > In D28033#627180 , @davidre 
wrote:
  > >
  > > > I would love if we could find a way to show that the item is expandable
  > >
  > >
  > > I would probably use a pointing down arrow without a stem when collapsed, 
and pointing up when open.
  >
  >
  > Makes sense to me. Where would the arrow go though?
  >
  > In D28033#627186 , @niccolove 
wrote:
  >
  > > Strongly agree on having a single component. By the way, all these lists 
have the issue that the button only appearing on hover is very 
touch-unfriendly. This does not have to be addressed in this patch, but it 
having it implemented in only one place makes it much easier to fix.
  >
  >
  > Yeah, I could have the highlight remain in place if Qt detects that the 
click was actually a touch, and then the button would appear when the list item 
it touched.
  >
  > However the expanded view itself is not very touch-friendly since the 
individual list items are really too short to be easily touchable.
  
  
  I would put it in a flat button on the right

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma
Cc: bruns, niccolove, cblack, davidre, kde-frameworks-devel, LeGast00n, GB_2, 
michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-13 Thread Nathaniel Graham
ngraham added a comment.


  In D28033#627184 , @cblack wrote:
  
  > In D28033#627180 , @davidre 
wrote:
  >
  > > I would love if we could find a way to show that the item is expandable
  >
  >
  > I would probably use a pointing down arrow without a stem when collapsed, 
and pointing up when open.
  
  
  Makes sense to me. Where would the arrow go though?
  
  In D28033#627186 , @niccolove 
wrote:
  
  > Strongly agree on having a single component. By the way, all these lists 
have the issue that the button only appearing on hover is very 
touch-unfriendly. This does not have to be addressed in this patch, but it 
having it implemented in only one place makes it much easier to fix.
  
  
  Yeah, I could have the highlight remain in place if Qt detects that the click 
was actually a touch, and then the button would appear when the list item it 
touched.
  
  However the expanded view itself is not very touch-friendly since the 
individual list items are really too short to be easily touchable.

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma
Cc: bruns, niccolove, cblack, davidre, kde-frameworks-devel, LeGast00n, GB_2, 
michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-13 Thread Nathaniel Graham
ngraham added a subscriber: bruns.
ngraham added a comment.


  Discussion points:
  
  - Is this even the right paradigm to use for extra actions? Or should we 
instead use a SwipeListItem and put the extra actions in an overflow menu, and 
use the expanded view only for custom content?
  - Should this be in Kirigami instead? Discover also uses this paradigm, and I 
see that @bruns has just adopted it in D28025 
 too. Currently it is in PlasmaComponents 
because it needs to be able to switch to Plasma SVGs when the applet needs it 
(e.g. for Networks).
  - I need help porting Device Notifier to use this. I started and got a bit 
overwhelmed as it is quite a bit more complicated than any of the other applets.

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma
Cc: bruns, niccolove, cblack, davidre, kde-frameworks-devel, LeGast00n, GB_2, 
michaelh, ngraham


D28033: Create ExpandableListItem

2020-03-13 Thread Niccolò Venerandi
niccolove added a comment.


  Strongly agree on having a single component. By the way, all these lists have 
the issue that the button only appearing on hover is very touch-unfriendly. 
This does not have to be addressed in this patch, but it having it implemented 
in only one place makes it much easier to fix.

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma
Cc: niccolove, cblack, davidre, kde-frameworks-devel, LeGast00n, GB_2, 
michaelh, ngraham, bruns


D28033: Create ExpandableListItem

2020-03-13 Thread Carson Black
cblack added a comment.


  In D28033#627180 , @davidre wrote:
  
  > I would love if we could find a way to show that the item is expandable
  
  
  I would probably use a pointing down arrow without a stem when collapsed, and 
pointing up when open.

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma
Cc: cblack, davidre, kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, 
bruns


D28033: Create ExpandableListItem

2020-03-13 Thread David Redondo
davidre added a comment.


  I would love if we could find a way to show that the item is expandable

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma
Cc: davidre, kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, ngraham, 
bruns


D28033: Create ExpandableListItem

2020-03-13 Thread Nathaniel Graham
ngraham added a dependent revision: D28037: [Applet] Port to ExpandableListItem.

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma
Cc: kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, ngraham, bruns


D28033: Create ExpandableListItem

2020-03-13 Thread Nathaniel Graham
ngraham added a dependent revision: D28035: [Applet] Port to ExpandableListItem.

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma
Cc: kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, ngraham, bruns


D28033: Create ExpandableListItem

2020-03-13 Thread Nathaniel Graham
ngraham added a dependent revision: D28034: [WIP] [Applet] Port to 
ExpandableListItem.

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma
Cc: kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, ngraham, bruns


D28033: Create ExpandableListItem

2020-03-13 Thread Nathaniel Graham
ngraham added a dependent revision: D28036: [Applet] Port to ExpandableListItem.

REPOSITORY
  R242 Plasma Framework (Library)

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

To: ngraham, #vdg, #plasma
Cc: kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, ngraham, bruns


D28033: Create ExpandableListItem

2020-03-13 Thread Nathaniel Graham
ngraham created this revision.
ngraham added reviewers: VDG, Plasma.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
ngraham requested review of this revision.

REVISION SUMMARY
  This patch creates the `ExpandableListItem`, a re-usable PlasmaComponents3 
item that can
  be used for the views in various Plasma applet pop-ups, such as Vaults, 
Printers,
  Bluetooth, Networks, and Device Notifier. This way those applets can share 
more code and
  not have to implement this paradigm themselves in five different ways, as 
they currently
  do.
  
  All of these applets currently use slightly different visual styles. For 
example the
  network applet uses a pushbutton with no icon as its "default action" button, 
while
  other applets use icons-only toolbuttons. I tried my best to create a 
component that's
  flexible but also consistent, so various applets that adopt it will see minor 
visual
  changes as a result. Hopefully this is acceptable.
  
  Closes T12812 

TEST PLAN
  F8174587: vokoscreenNG-2020-03-13_10-44-43.webm 


REPOSITORY
  R242 Plasma Framework (Library)

BRANCH
  ExpandableListItem (branched from master)

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

AFFECTED FILES
  src/declarativeimports/plasmacomponents3/ExpandableListItem.qml
  src/declarativeimports/plasmacomponents3/qmldir

To: ngraham, #vdg, #plasma
Cc: kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, ngraham, bruns