D17410: Add alternatives button to applet configuration in panel edit mode

2019-04-17 Thread Björn Feber
This revision was automatically updated to reflect the committed changes. Closed by commit R119:c308122688ee: Add alternatives button to applet configuration in panel edit mode (authored by GB_2). REPOSITORY R119 Plasma Desktop CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D17410?vs=

D17410: Add alternatives button to applet configuration in panel edit mode

2019-04-17 Thread Björn Feber
GB_2 updated this revision to Diff 56435. GB_2 added a comment. Move `currentApplet.applet.prepareContextualActions();` to `onVisualParentChanged` REPOSITORY R119 Plasma Desktop CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D17410?vs=55960&id=56435 BRANCH arcpatch-D17410 REVI

D17410: Add alternatives button to applet configuration in panel edit mode

2019-04-17 Thread Kai Uwe Broulik
broulik requested changes to this revision. broulik added inline comments. This revision now requires changes to proceed. INLINE COMMENTS > ConfigOverlay.qml:227 > > +currentApplet.applet.prepareContextualActions(); > handle.x = currentApplet.x; This is never triggered when yo

D17410: Add alternatives button to applet configuration in panel edit mode

2019-04-17 Thread Björn Feber
GB_2 added a comment. Ping REPOSITORY R119 Plasma Desktop REVISION DETAIL https://phabricator.kde.org/D17410 To: GB_2, #plasma, #vdg, davidedmundson Cc: Codezela, broulik, davidedmundson, ngraham, ndavis, #vdg, plasma-devel, #plasma, cblack, arvidhansson, ian, jguidon, hannahk, Pixel_Li

D17410: Add alternatives button to applet configuration in panel edit mode

2019-04-13 Thread Björn Feber
GB_2 added a comment. Or we could just leave it how it is now. REPOSITORY R119 Plasma Desktop REVISION DETAIL https://phabricator.kde.org/D17410 To: GB_2, #plasma, #vdg, davidedmundson Cc: Codezela, broulik, davidedmundson, ngraham, ndavis, #vdg, plasma-devel, #plasma, cblack, arvidhans

D17410: Add alternatives button to applet configuration in panel edit mode

2019-04-12 Thread Björn Feber
GB_2 added a comment. It seems like Elisa has a function to do this: https://lxr.kde.org/source/extragear/multimedia/elisa/src/elisaapplication.h#0083 Maybe something like this could be added to KDE/Plasma Franeworks? REPOSITORY R119 Plasma Desktop REVISION DETAIL https://phabricator.k

D17410: Add alternatives button to applet configuration in panel edit mode

2019-04-12 Thread Björn Feber
GB_2 added a comment. In D17410#448842 , @davidedmundson wrote: > Toolbutton should be able to take a qicon as a source Nope, when I use `iconSource: plasmoid.action("alternatives").icon` this happens: `ConfigOverlay.qml:392:21: Unable

D17410: Add alternatives button to applet configuration in panel edit mode

2019-04-12 Thread David Edmundson
davidedmundson added a comment. Toolbutton should be able to take a qicon as a source REPOSITORY R119 Plasma Desktop REVISION DETAIL https://phabricator.kde.org/D17410 To: GB_2, #plasma, #vdg, davidedmundson Cc: Codezela, broulik, davidedmundson, ngraham, ndavis, #vdg, plasma-devel, #pl

D17410: Add alternatives button to applet configuration in panel edit mode

2019-04-12 Thread Björn Feber
GB_2 added a comment. in the toolbutton icon source/name property. REPOSITORY R119 Plasma Desktop REVISION DETAIL https://phabricator.kde.org/D17410 To: GB_2, #plasma, #vdg, davidedmundson Cc: Codezela, broulik, davidedmundson, ngraham, ndavis, #vdg, plasma-devel, #plasma, cblack, arvid

D17410: Add alternatives button to applet configuration in panel edit mode

2019-04-12 Thread Björn Feber
GB_2 added a comment. In D17410#448756 , @davidedmundson wrote: > > It currently returns a QIcon, but I want the name/source of it from QML. > > What for? So I can use the same icon that is in the context menu REPOSITORY R119 Plasm

D17410: Add alternatives button to applet configuration in panel edit mode

2019-04-12 Thread David Edmundson
davidedmundson added a comment. > It currently returns a QIcon, but I want the name/source of it from QML. What for? REPOSITORY R119 Plasma Desktop REVISION DETAIL https://phabricator.kde.org/D17410 To: GB_2, #plasma, #vdg, davidedmundson Cc: Codezela, broulik, davidedmundson, ngrah

D17410: Add alternatives button to applet configuration in panel edit mode

2019-04-10 Thread Björn Feber
GB_2 updated this revision to Diff 55960. GB_2 added a comment. Try to fix diff REPOSITORY R119 Plasma Desktop CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D17410?vs=55959&id=55960 BRANCH master REVISION DETAIL https://phabricator.kde.org/D17410 AFFECTED FILES containmen

D17410: Add alternatives button to applet configuration in panel edit mode

2019-04-10 Thread Björn Feber
GB_2 updated this revision to Diff 55959. REPOSITORY R119 Plasma Desktop CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D17410?vs=55958&id=55959 REVISION DETAIL https://phabricator.kde.org/D17410 AFFECTED FILES containments/panel/contents/ui/ConfigOverlay.qml To: GB_2, #plasma,

D17410: Add alternatives button to applet configuration in panel edit mode

2019-04-10 Thread Björn Feber
GB_2 updated this revision to Diff 55958. GB_2 edited the summary of this revision. CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D17410?vs=55856&id=55958 REVISION DETAIL https://phabricator.kde.org/D17410 AFFECTED FILES containments/panel/contents/ui/ConfigOverlay.qml To: GB_2, #

D17410: Add alternatives button to applet configuration in panel edit mode

2019-04-10 Thread Björn Feber
GB_2 added a comment. BTW, @davidedmundson or someone else: How do I get the icon name/source here: `iconSource: plasmoid.action("alternatives").icon`? It currently returns a QIcon, but I want the name/source of it from QML. REPOSITORY R119 Plasma Desktop REVISION DETAIL https://phab

D17410: Add alternatives button to applet configuration in panel edit mode

2019-04-10 Thread Björn Feber
GB_2 commandeered this revision. GB_2 edited reviewers, added: davidedmundson; removed: GB_2. GB_2 added a comment. Sure! REPOSITORY R119 Plasma Desktop REVISION DETAIL https://phabricator.kde.org/D17410 To: GB_2, #plasma, #vdg, davidedmundson Cc: Codezela, broulik, davidedmundson, ngrah

D17410: Add alternatives button to applet configuration in panel edit mode

2019-04-10 Thread David Edmundson
davidedmundson added a comment. GB2 do you want to commandeer it back and make those changes? REPOSITORY R119 Plasma Desktop REVISION DETAIL https://phabricator.kde.org/D17410 To: davidedmundson, #plasma, #vdg, GB_2 Cc: Codezela, broulik, davidedmundson, ngraham, ndavis, #vdg, plasma-dev

D17410: Add alternatives button to applet configuration in panel edit mode

2019-04-10 Thread Nathaniel Graham
ngraham added a comment. And actually maybe we could programmatically get the name and icon from the action itself, like the Task Manager does: property QtObject alternativesAction: null enabled: alternativesAction && alternativesAction.enabled visible: alternativesAction &

D17410: Add alternatives button to applet configuration in panel edit mode

2019-04-09 Thread Björn Feber
GB_2 added a comment. Nice, thank you so much! INLINE COMMENTS > ConfigOverlay.qml:392 > +iconSource: "preferences-desktop-default-applications" > +text: i18n("Alternatives...") > +enabled: > currentApplet.applet.action("alternative

D17410: Add alternatives button to applet configuration in panel edit mode

2019-04-09 Thread Nathaniel Graham
ngraham added a comment. Nice, it works great! INLINE COMMENTS > ConfigOverlay.qml:391 > +Layout.fillWidth: true > +iconSource: "preferences-desktop-default-applications" > +text: i18n("Alternatives...") This should now be `widget-a

D17410: Add alternatives button to applet configuration in panel edit mode

2019-04-09 Thread David Edmundson
davidedmundson updated this revision to Diff 55856. davidedmundson added a comment. fix TODO REPOSITORY R119 Plasma Desktop CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D17410?vs=47054&id=55856 BRANCH master REVISION DETAIL https://phabricator.kde.org/D17410 AFFECTED FILES

D17410: Add alternatives button to applet configuration in panel edit mode

2019-04-09 Thread Björn Feber
GB_2 added a comment. In D17410#446874 , @Codezela wrote: > This icon have a lot of details for this small size we need more clear one I guess The icon was added here: D20367 I think it's still ok, b

D17410: Add alternatives button to applet configuration in panel edit mode

2019-04-09 Thread Hazem Salem
Codezela added a comment. This icon have all of details for this small size we need more clear one I guess REPOSITORY R119 Plasma Desktop REVISION DETAIL https://phabricator.kde.org/D17410 To: GB_2, #plasma, #vdg Cc: Codezela, broulik, davidedmundson, ngraham, ndavis, #vdg, plasma-devel

D17410: Add alternatives button to applet configuration in panel edit mode

2019-04-02 Thread Björn Feber
GB_2 added a comment. Ping REPOSITORY R119 Plasma Desktop REVISION DETAIL https://phabricator.kde.org/D17410 To: GB_2, #plasma, #vdg Cc: broulik, davidedmundson, ngraham, ndavis, #vdg, plasma-devel, #plasma, cblack, arvidhansson, ian, hannahk, Pixel_Lime, jraleigh, squeakypancakes, ale

D17410: Add alternatives button to applet configuration in panel edit mode

2019-02-28 Thread Björn Feber
GB_2 added a comment. Ping REPOSITORY R119 Plasma Desktop REVISION DETAIL https://phabricator.kde.org/D17410 To: GB_2, #plasma, #vdg Cc: broulik, davidedmundson, ngraham, ndavis, #vdg, plasma-devel, #plasma, Pixel_Lime, jraleigh, squeakypancakes, alexde, IohannesPetros, GB_2, rooty, tr

D17410: Add alternatives button to applet configuration in panel edit mode

2019-02-16 Thread Björn Feber
GB_2 added a subscriber: broulik. GB_2 added a comment. It seems like this is quite difficult, me and @broulik couldn't figure it out. If someone wants to take over this revision then please do it. REPOSITORY R119 Plasma Desktop REVISION DETAIL https://phabricator.kde.org/D17410 To: GB_

D17410: Add alternatives button to applet configuration in panel edit mode

2018-12-15 Thread David Edmundson
davidedmundson added a comment. > Cannot read property 'applet' of null Which means currentApplet is null. When is that set? Were you checking if it was visible afterwards? REPOSITORY R119 Plasma Desktop REVISION DETAIL https://phabricator.kde.org/D17410 To: GB_2, #plasma, #vdg

D17410: Add alternatives button to applet configuration in panel edit mode

2018-12-15 Thread Björn Feber
GB_2 added a comment. In D17410#374062 , @davidedmundson wrote: > > I'm trying to emit the signal contextualActionsAboutToShow in the (QML) onVisualParentChanged function, but it doesn't work... > > Use console.log to check your code is bein

D17410: Add alternatives button to applet configuration in panel edit mode

2018-12-09 Thread David Edmundson
davidedmundson added a comment. > I'm trying to emit the signal contextualActionsAboutToShow in the (QML) onVisualParentChanged function, but it doesn't work... Use console.log to check your code is being called at the right time. Also search for contextualActionsAboutToShow in other co

D17410: Add alternatives button to applet configuration in panel edit mode

2018-12-08 Thread Björn Feber
GB_2 added a comment. I'm trying to emit the signal contextualActionsAboutToShow in the (QML) onVisualParentChanged function, but it doesn't work... REPOSITORY R119 Plasma Desktop REVISION DETAIL https://phabricator.kde.org/D17410 To: GB_2, #plasma, #vdg Cc: davidedmundson, ngraham, nda

D17410: Add alternatives button to applet configuration in panel edit mode

2018-12-08 Thread David Edmundson
davidedmundson added a comment. In general +++ We need to fix that TODO. I added some rough notes, give that a go, it'll involve reading the C++ and seeing how that all ties together with the QML. If you get stuck, comment here. INLINE COMMENTS > ConfigOverlay.qml:396 > +

D17410: Add alternatives button to applet configuration in panel edit mode

2018-12-08 Thread Björn Feber
GB_2 added a comment. In D17410#373036 , @ngraham wrote: > Neat, it seems to generally work well. I notice that when I click the new menu item, it somewhat unexpectedly exits from panel edit mode. I wonder if we could make it not do that, so it

D17410: Add alternatives button to applet configuration in panel edit mode

2018-12-07 Thread Nathaniel Graham
ngraham added a comment. Neat, it seems to generally work well. I notice that when I click the new menu item, it somewhat unexpectedly exits from panel edit mode. I wonder if we could make it not do that, so it would stay in panel edit mode if invoked while in panel edit mode. REPOSITORY

D17410: Add alternatives button to applet configuration in panel edit mode

2018-12-07 Thread Nathaniel Graham
ngraham added a comment. In D17410#373011 , @ndavis wrote: > I think we should be using a monochrome icon here. I agree. In D17410#373011 , @ndavis wrote: > It might be outside the scope

D17410: Add alternatives button to applet configuration in panel edit mode

2018-12-07 Thread Noah Davis
ndavis added a comment. I think we should be using a monochrome icon here. An equivalent monochrome icon would be `favorite`, but I don't think "favorite" is a good symbol for "alternatives". Maybe `preferences-other`/`application-menu` (same icon) would be good? It might be outside the scop

D17410: Add alternatives button to applet configuration in panel edit mode

2018-12-07 Thread Björn Feber
GB_2 updated this revision to Diff 47054. GB_2 added a comment. Update TODO text. REPOSITORY R119 Plasma Desktop CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D17410?vs=47051&id=47054 REVISION DETAIL https://phabricator.kde.org/D17410 AFFECTED FILES containments/panel/conten

D17410: Add alternatives button to applet configuration in panel edit mode

2018-12-07 Thread Björn Feber
GB_2 created this revision. GB_2 added reviewers: Plasma, VDG. GB_2 added projects: Plasma, VDG. Herald added a subscriber: plasma-devel. GB_2 requested review of this revision. REVISION SUMMARY There is a configure button and an alternatives button in the context menu of an applet, but there i