D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-10-31 Thread Björn Feber
This revision was automatically updated to reflect the committed changes.
Closed by commit R119:da268696a6af: [Task Manager] Toggle mute when the audio 
indicator is clicked (authored by GB_2).

REPOSITORY
  R119 Plasma Desktop

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D19822?vs=69128=69145

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

AFFECTED FILES
  applets/taskmanager/package/contents/ui/AudioStream.qml

To: GB_2, #plasma, #vdg, ngraham, hein, faridb
Cc: GB_2, mart, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, 
LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, ragreen, ZrenBot, 
alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, 
apol, ahiemstra


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-10-31 Thread Björn Feber
GB_2 updated this revision to Diff 69128.
GB_2 added a comment.


  Remove unneeded properties

REPOSITORY
  R119 Plasma Desktop

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D19822?vs=69127=69128

BRANCH
  arcpatch-D19822

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

AFFECTED FILES
  applets/taskmanager/package/contents/ui/AudioStream.qml

To: GB_2, #plasma, #vdg, ngraham, hein, faridb
Cc: GB_2, mart, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, 
LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, ragreen, ZrenBot, 
alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, 
apol, ahiemstra


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-10-31 Thread Björn Feber
GB_2 updated this revision to Diff 69127.
GB_2 added a comment.


  Move into AudioStream

REPOSITORY
  R119 Plasma Desktop

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D19822?vs=65691=69127

BRANCH
  arcpatch-D19822

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

AFFECTED FILES
  applets/taskmanager/package/contents/ui/AudioStream.qml

To: GB_2, #plasma, #vdg, ngraham, hein, faridb
Cc: GB_2, mart, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, 
LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, ragreen, ZrenBot, 
alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, 
apol, ahiemstra


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-10-30 Thread Eike Hein
hein requested changes to this revision.
hein added a comment.
This revision now requires changes to proceed.


  Approach is fine, but please move the MouseArea into the 
audioStreamIconLoader's source component so it's not always instantiated even 
when it's not needed. :)

REPOSITORY
  R119 Plasma Desktop

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

To: faridb, #plasma, #vdg, ngraham, hein, GB_2
Cc: GB_2, mart, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, 
LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, ragreen, ZrenBot, 
alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, 
apol, ahiemstra


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-10-30 Thread Björn Feber
GB_2 added a comment.


  Ping.

REPOSITORY
  R119 Plasma Desktop

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

To: faridb, #plasma, #vdg, ngraham, hein, GB_2
Cc: GB_2, mart, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, 
LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, ragreen, ZrenBot, 
alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, 
apol, ahiemstra


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-09-09 Thread Nathaniel Graham
ngraham accepted this revision.
ngraham added a comment.


  Works and looks great to me. @hein, are you okay with this now?

REPOSITORY
  R119 Plasma Desktop

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

To: faridb, #plasma, #vdg, ngraham, hein, GB_2
Cc: GB_2, mart, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, 
LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, ragreen, Pitel, ZrenBot, 
himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-09-09 Thread Björn Feber
GB_2 updated this revision to Diff 65691.
GB_2 added a comment.


  Fix diff

REPOSITORY
  R119 Plasma Desktop

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D19822?vs=65509=65691

BRANCH
  master

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

AFFECTED FILES
  applets/taskmanager/package/contents/ui/Task.qml

To: faridb, #plasma, #vdg, ngraham, hein, GB_2
Cc: GB_2, mart, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, 
LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, ragreen, Pitel, ZrenBot, 
himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-09-09 Thread Nathaniel Graham
ngraham added a comment.


  This patch doesn't apply anymore. I think something went wrong with adding 
that last change.

REPOSITORY
  R119 Plasma Desktop

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

To: faridb, #plasma, #vdg, ngraham, hein, GB_2
Cc: GB_2, mart, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, 
LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, ragreen, Pitel, ZrenBot, 
himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-09-06 Thread Björn Feber
GB_2 updated this revision to Diff 65509.
GB_2 added a comment.


  Use Plasma highlight effect

REPOSITORY
  R119 Plasma Desktop

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D19822?vs=55003=65509

BRANCH
  arcpatch-D19822

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

AFFECTED FILES
  applets/taskmanager/package/contents/ui/Task.qml

To: faridb, #plasma, #vdg, ngraham, hein
Cc: GB_2, mart, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, 
LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, ragreen, Pitel, ZrenBot, 
himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-08-13 Thread Björn Feber
GB_2 added a comment.


  In D19822#442630 , @filipf wrote:
  
  > Just throwing out another possible solution: the PlasmaComponents Highlight 
thingy:
  >
  > F6747233: Screenshot_20190403_005556.png 

  >
  > F6747232: Screenshot_20190403_005453.png 

  >
  > Might be considered too obtrusive though.
  >
  > EDIT: not a good idea "2.0 to be used only as the "highlight" property of 
the ListView and GridView primitive QML components (or their derivates)"
  
  
  Then just use the `FrameSvgItem` directly:
  
PlasmaCore.FrameSvgItem {
imagePath: "widgets/viewitem"
prefix: "hover"
}

REPOSITORY
  R119 Plasma Desktop

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

To: faridb, #plasma, #vdg, ngraham, hein
Cc: GB_2, mart, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, 
LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, ragreen, Pitel, ZrenBot, 
himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-06-13 Thread Nathaniel Graham
ngraham added a comment.


  So um, any chance we can move forward with this in some capacity?

REPOSITORY
  R119 Plasma Desktop

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

To: faridb, #plasma, #vdg, ngraham, hein
Cc: mart, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, LeGast00n, 
ericadams, jraleigh, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, 
ali-mohamed, jensreuterberg, abetts, sebas, apol


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-04-02 Thread Filip Fila
filipf added a comment.


  Just throwing out another possible solution: the PlasmaComponents Highlight 
thingy:
  
  F6747233: Screenshot_20190403_005556.png 

  
  F6747232: Screenshot_20190403_005453.png 

  
  Might be considered too obtrusive though.

REPOSITORY
  R119 Plasma Desktop

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

To: faridb, #plasma, #vdg, ngraham, hein
Cc: mart, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, 
GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-04-02 Thread Filip Fila
filipf added a comment.


  In D19822#442584 , @ngraham wrote:
  
  > Hmm, while the red highlight effect is pretty and distinctive, typically we 
don't telegraph what will happen when clicked using an item's hover effect. 
Though it's more boring and conventional, I would recommend using the typical 
effect. :)
  
  
  There was something bothering me about the effect, and now that you mention 
it this is actually it - it's unconventional, feels a bit out of place.
  
  In D19822#442548 , @faridb wrote:
  
  > I also tried reducing the opacity of the icon, which results in the 
following effect:
  >  F6746972: Mute3.gif 
  
  
  The built-in highlight effect looks really good with dark and colorful icons. 
What happens when you combine it with this opacity approach, how does the 
opacity shift look like when the icon is dark?

REPOSITORY
  R119 Plasma Desktop

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

To: faridb, #plasma, #vdg, ngraham, hein
Cc: mart, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, 
GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-04-02 Thread Nathaniel Graham
ngraham added a comment.


  Hmm, while the red highlight effect is pretty and distinctive, typically we 
don't telegraph what will happen when clicked using an item's hover effect. 
Though it's more boring and conventional, I would recommend using the typical 
effect. :)

REPOSITORY
  R119 Plasma Desktop

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

To: faridb, #plasma, #vdg, ngraham, hein
Cc: mart, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, 
GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-04-02 Thread Eike Hein
hein added a comment.


  About the icon issue, IconItem by default uses the icon theme overlay from 
the Plasma theme, Kirigami.Icon will use the regular Plasma icons. That's kind 
of tricky - with Breeze we could totally make them match, but other Plasma 
themes would have issues.
  
  A long time ago I suggested that the overlay shouldn't be put into IconItem 
in this way, and instead it should be something like IconItem { source: 
OverlayIcon {} } to factor out the overlay stuff and keep IconItem generic. I 
wish we had that now, then it'd just work with Kirigami.Icon.

REPOSITORY
  R119 Plasma Desktop

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

To: faridb, #plasma, #vdg, ngraham, hein
Cc: mart, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, 
GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-04-02 Thread Farid Boudedja
faridb added a comment.


  The highlight effect provided by `PlasmaCore.IconItem` is only visible when 
used with dark or colourful icons:
  F6746966: Mute5.gif 
  
  F6746965: Mute4.gif 
  
  I also tried reducing the opacity of the icon, which results in the following 
effect:
  F6746972: Mute3.gif 

REPOSITORY
  R119 Plasma Desktop

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

To: faridb, #plasma, #vdg, ngraham, hein
Cc: mart, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, 
GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-04-02 Thread Filip Fila
filipf resigned from this revision.
filipf added a comment.


  Highlight color is nice, but in my tests I really like having red for the 
muting because it gets the point across that a disabling action will be 
triggered. Therefore the code I have now is:
  
  `color: mouseArea.containsMouse? (task.muted? theme.highlightColor : 
theme.negativeTextColor) : theme.textColor`
  
  Which then ends up looking like:
  
  F6745684: AudioHover 
  
  However there is an inconsistency issue the Kirigami icon brings about (@mart 
perhaps you might know why?). It picks up a different muted icon (code points 
it to the same icon) than IconItem which results in an inconsistency with the 
media applet muted icon:
  
  F6745676: Screenshot_20190402_151328.png 

  
  BTW I'm getting no interference of the color property with Oxygen icons, 
there is no coloring applied to them.

REPOSITORY
  R119 Plasma Desktop

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

To: faridb, #plasma, #vdg, ngraham, hein
Cc: mart, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, 
GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-04-02 Thread Marco Martin
mart added a comment.


  In D19822#442125 , @hein wrote:
  
  > I'd say let's go with Kirigami.Icon for now then, and recolor the icon to 
the highlight color on hover. @faridb could you take a stab at that? :)
  
  
  one important thing, it should be an icon ending with -symbolic, as otherwise 
coloring would destroy badly e.g. an oxygen icon.
  (i'm not sure breeze has symbolic icons for the speakers?)
  
  it should be Kirigami.Icon {
  
isMark: true
icon.name: ...
icon.color: hover condition ? theme.highlightColor : theme.textColor
  
  }

REPOSITORY
  R119 Plasma Desktop

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

To: faridb, #plasma, #vdg, ngraham, filipf, hein
Cc: mart, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, 
GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-04-02 Thread Eike Hein
hein added a comment.


  I'd say let's go with Kirigami.Icon for now then, and recolor the icon to the 
highlight color on hover. @faridb could you take a stab at that? :)

REPOSITORY
  R119 Plasma Desktop

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

To: faridb, #plasma, #vdg, ngraham, filipf, hein
Cc: mart, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, 
GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-04-02 Thread Marco Martin
mart added a comment.


  In D19822#439167 , @hein wrote:
  
  > I'm not a fan of the checkbox, I think it's a little gratuitous. If you add 
a small feature and need to immediately add a checkbox to disable it, it's 
rather a red flag to me. It means either the feature or the checkbox should 
probably go. Firefox gets away without the option BTW.
  
  
  i quite like it in firefox, i do see other people mistakenly clicking on the 
speaker icon instead of the tab and getting confused tough

REPOSITORY
  R119 Plasma Desktop

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

To: faridb, #plasma, #vdg, ngraham, filipf, hein
Cc: mart, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, 
GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-04-02 Thread Marco Martin
mart added a comment.


  In D19822#437687 , @filipf wrote:
  
  > I still think we should make it configurable. We'd want to be able to avoid 
situations with parents or a newbies going something like: "I was 
watching/listening to X and your darn Linux stopped playing sound!".
  
  
  bad idea. If it is indeed confusing, the feature shouldn't be there 
altogether.

REPOSITORY
  R119 Plasma Desktop

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

To: faridb, #plasma, #vdg, ngraham, filipf, hein
Cc: mart, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, 
GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-04-02 Thread Marco Martin
mart added a comment.


  In D19822#437684 , @faridb wrote:
  
  > In D19822#437680 , @ngraham 
wrote:
  >
  > > Also, it would be nice if you also work on making the volume indicators 
smaller and always in the corner.
  >
  >
  > This is what it looks like with a small icon in the corner:
  >  F6718166: Screenshot_20190324_213236.png 

  >
  > F6718165: Screenshot_20190324_212843.png 

  
  
  for the icon only taskmanager this way is way better

REPOSITORY
  R119 Plasma Desktop

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

To: faridb, #plasma, #vdg, ngraham, filipf, hein
Cc: mart, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, 
GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-04-02 Thread Marco Martin
mart added a comment.


  In D19822#439297 , @hein wrote:
  
  > A possible improvement to make here is to make the indicator visually react 
to hover by recoloring the icon, to teach that it's seperately interactive and 
will do something different than clicking elsewhere on the task button, so 
users get habituated not to click it accidentally. This should probably be done 
anyway (we're usally pretty triggerhappy on the hover feedback).
  
  
  If you want to recolor it dramatically indeed you would have to use 
kirigami.Icon (or add the same feature to iconitem, which is also fine)
  you would need to recolor both states, normal and hover, otherwise the normal 
state may be recolored the wrong color (in cases when the plasma theme doesn't 
follow system palette)
  
  alternatively to use the standard mouseover effect, it can use the builtin 
highlight effect in iconitem made with kiconeffect (maybe if is too light, the 
default highlight effect in kiconeffects has to be reconsidered?)
  
  weight-wise, kirigami.icon should be slightly ligher (eh, not too much :p) 
than iconitem and would like in the future (kf6?) to just have that one instead 
of the duplication plasmacore.iconitem and kirigami.icon

REPOSITORY
  R119 Plasma Desktop

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

To: faridb, #plasma, #vdg, ngraham, filipf, hein
Cc: mart, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, 
GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-03-28 Thread Farid Boudedja
faridb updated this revision to Diff 55003.
faridb added a comment.


  - Revert "[Task Manager] Make mute/unmute behaviour configurable"
  
  In D19822#439724 , @hein wrote:
  
  > Back to work: For this patch to proceed further, please remove the setting.
  
  
  I removed the configuration option.

REPOSITORY
  R119 Plasma Desktop

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D19822?vs=54823=55003

BRANCH
  taskmanager-mute (branched from master)

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

AFFECTED FILES
  applets/taskmanager/package/contents/ui/Task.qml

To: faridb, #plasma, #vdg, ngraham, filipf, hein
Cc: mart, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, 
GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-03-28 Thread Eike Hein
hein added a subscriber: mart.
hein added a comment.


  rooty, your behavior in this thread has been extremely aggressive, 
disrespectful and uncollaborative. I'd like to ask you to stop at this point 
and not participate futher, as well as in any future threads related to the 
Task Manager applets.
  
  Back to work: For this patch to proceed further, please remove the setting.
  
  For the hover feedback, I'd like to get @mart's opinion on Kirigami.Icon vs. 
whether we should look into making PlasmaComponents fitter in this regard.

REPOSITORY
  R119 Plasma Desktop

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

To: faridb, #plasma, #vdg, ngraham, filipf, hein
Cc: mart, rooty, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, 
jraleigh, GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, 
jensreuterberg, abetts, sebas, apol


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-03-28 Thread Nathaniel Graham
ngraham added a comment.


  Hey guys,
  I propose that we shelve the discussion about making this optional since it 
seems like we all agree that it should be on by default. In my experience, 
focusing on the points of //dis//agreement makes it likely that nothing gets 
landed, and relationships get damaged in the process. Once we've got the 
feature polished up, endowed with a solid user interface, and in production, 
maybe at that point we can evaluate from a position of having more information 
whether we really need an option for it.
  
  Thanks!

REPOSITORY
  R119 Plasma Desktop

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

To: faridb, #plasma, #vdg, ngraham, filipf, hein
Cc: rooty, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, 
GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol, mart


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-03-28 Thread Krešimir Čohar
rooty added a comment.


  > In projects where maintenance is lacking you will notice a trend towards 
options sprawl for that reason.
  
  That doesn't make sense. It might mean there's a lack of direction but not 
necessarily a lack of maintenance. Whether expansion leads to "option sprawl" 
really is a matter of opinion.
  
  > The suggestion wrt/ hover feedback that you all seem to like comes from 
asking "what's the actual problem, and is an option the best way to address 
it?". See why the mental habit is useful?
  
  That is a leading question (and a strawman fallacy) based on the supposition 
that there is a problem. It may be and most often is a matter of preference.
  
  > "Plasma does the right thing without needing to be tweaked in the first 
place" is a more lofty and mature aspiration than "Plasma is infinitely 
tweakable".
  
  Plasma being infinitely tweakable doesn't entail its not doing "the right 
thing" in the first place. Versatility doesn't mean indecisiveness.
  
  > "We had so many options we went from one page to two pages, so now we can 
add more options!" :-)
  
  Just use the one page then and claim there's no more room for more features 
:-)

REPOSITORY
  R119 Plasma Desktop

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

To: faridb, #plasma, #vdg, ngraham, filipf, hein
Cc: rooty, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, 
GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol, mart


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-03-28 Thread Filip Fila
filipf added a comment.


  > In D19822#439336 , @filipf wrote:
  > 
  >> As for options overload, based on the reasoning above and the fact that 
we've recently split up the options and that we have space, I don't agree that 
this should be approached through the prism of UI clutter.
  > 
  > 
  > "We had so many options we went from one page to two pages, so now we can 
add more options!" :-)
  
  Yeah but they're good options, great options, the best of options!
  
  Just kidding, let's find work on making this feature a bit more dummy-proof 
then.
  
  Here's the code I have for color:
  
  - I removed edits in Task.qml
  - and in AudioStream.qml I did:
  
  `
  
Kirigami.Icon { // replaces IconItem at line 106; need to import Kirigami 
as well
id: audioStreamIcon
anchors.fill: parent
color: mouseArea.containsMouse? theme.negativeTextColor : 
theme.textColor
}

MouseArea {
id: mouseArea
anchors.fill: parent
hoverEnabled: true
enabled: parent.shown
onClicked: toggleMuted()
}
  
  `

REPOSITORY
  R119 Plasma Desktop

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

To: faridb, #plasma, #vdg, ngraham, filipf, hein
Cc: rooty, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, 
GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol, mart


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-03-28 Thread Eike Hein
hein added a comment.


  In D19822#439336 , @filipf wrote:
  
  > As for options overload, based on the reasoning above and the fact that 
we've recently split up the options and that we have space, I don't agree that 
this should be approached through the prism of UI clutter.
  
  
  "We had so many options we went from one page to two pages, so now we can add 
more options!" :-)

REPOSITORY
  R119 Plasma Desktop

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

To: faridb, #plasma, #vdg, ngraham, filipf, hein
Cc: rooty, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, 
GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol, mart


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-03-27 Thread Filip Fila
filipf added a comment.


  Would something like this work?
  
  F6725968: AudioHover 
  
  We would need to port the PlasmaCore.IconItem to Kirigami.Icon to support the 
color property.

REPOSITORY
  R119 Plasma Desktop

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

To: faridb, #plasma, #vdg, ngraham, filipf, hein
Cc: rooty, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, 
GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol, mart


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-03-27 Thread Filip Fila
filipf added a comment.


  In D19822#439568 , @ngraham wrote:
  
  > In D19822#439567 , @faridb wrote:
  >
  > > In D19822#439396 , @ngraham 
wrote:
  > >
  > > > it would be nice if the "playing audio" icon itself changed to reflect 
the current status.
  > >
  > >
  > > The icon already shows the current status:
  > >  F6725945: Mute.gif 
  >
  >
  > Well... sort of. :) What I meant (and should have clearly stated the first 
time) was that it should use the `audio-volume-muted` icon when muted, rather 
than just becoming semi-transparent.
  
  
  Test plan looks like some other icon theme, this is what I get with Breeze:
  
  F6725957: image.png 

REPOSITORY
  R119 Plasma Desktop

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

To: faridb, #plasma, #vdg, ngraham, filipf, hein
Cc: rooty, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, 
GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol, mart


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-03-27 Thread Nathaniel Graham
ngraham added a comment.


  In D19822#439567 , @faridb wrote:
  
  > In D19822#439396 , @ngraham 
wrote:
  >
  > > it would be nice if the "playing audio" icon itself changed to reflect 
the current status.
  >
  >
  > The icon already shows the current status:
  >  F6725945: Mute.gif 
  
  
  Well... sort of. :) What I meant (and should have clearly stated the first 
time) was that it should use the `audio-volume-muted` icon when muted, rather 
than just becoming semi-transparent.

REPOSITORY
  R119 Plasma Desktop

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

To: faridb, #plasma, #vdg, ngraham, filipf, hein
Cc: rooty, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, 
GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol, mart


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-03-27 Thread Farid Boudedja
faridb added a comment.


  In D19822#439195 , @rooty wrote:
  
  > I like this change I'd just prefer it if you could post screenshots in the 
test plan section?
  
  
  I added a screen recording to the test plan.
  
  In D19822#439396 , @ngraham wrote:
  
  > it would be nice if the "playing audio" icon itself changed to reflect the 
current status.
  
  
  The icon already shows the current status:
  F6725945: Mute.gif 

REPOSITORY
  R119 Plasma Desktop

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

To: faridb, #plasma, #vdg, ngraham, filipf, hein
Cc: rooty, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, 
GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol, mart


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-03-27 Thread Nathaniel Graham
ngraham added a comment.


  +1 for refining the visuals to make it clear when a click will activate the 
Task vs mute/unmute its audio streams. Also now that I think of it, it would be 
nice if the "playing audio" icon itself changed to reflect the current status.
  
  I'll stay out of the to-option-or-not-to-option debate for now. I just want 
this on by default, regardless of whether or not it has an option attached to 
it. :)

REPOSITORY
  R119 Plasma Desktop

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

To: faridb, #plasma, #vdg, ngraham, filipf, hein
Cc: rooty, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, 
GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol, mart


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-03-27 Thread Krešimir Čohar
rooty added a comment.


  > The suggestion about the hover effect though is a nice one +1
  
  I wonder if we should make it turn gray when hovering over the option and 
stay gray while muted, or just turn gray and then once you move your cursor 
away it gets its color back regardless of whether muted or not.

REPOSITORY
  R119 Plasma Desktop

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

To: faridb, #plasma, #vdg, ngraham, filipf, hein
Cc: rooty, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, 
GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol, mart


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-03-27 Thread Filip Fila
filipf added a comment.


  I made the suggestion to have an option not because there might be something 
wrong with the feature, but because there is a subset of users who have a 
harder time finding their way around the UI - the non-tech say people and/or 
(now that I think of it) perhaps those with impaired vision who might not 
register the changed icon.
  
  We could work around not having an option by spawning a notification "Audio 
in %application has been muted. Click on the audio icon again to re-enable it". 
But then you'd probably want to have an option to remove the notification...
  
  As for options overload, based on the reasoning above and the fact that we've 
recently split up the options and that we have space, I don't agree that this 
should be approached through the prism of UI clutter.
  
  The Chrome example was more to show that users want this sort of a feature. 
Which is why I don't think:
  
  > No, if that bug report comes and comes repeatedly, we know it's a bad 
feature and drop it again.
  
  would be the right approach. Also, generalizing this position and applying it 
to some existing cases would probably be troublesome.
  
  The suggestion about the hover effect though is a nice one +1

REPOSITORY
  R119 Plasma Desktop

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

To: faridb, #plasma, #vdg, ngraham, filipf, hein
Cc: rooty, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, 
GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol, mart


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-03-27 Thread Krešimir Čohar
rooty added a comment.


  > No, it's not.
  
  Yeah it is :D
  
  > Trivial options have a lot of cost attached to them: They make a UI noisier 
and more intimidating, and therefore less appealing. They also make it less 
effective by making it harder to find what you're looking for, as you have to 
scan through more options. They also introduce additional codepath and states, 
increasing the maintenance burden and complicating user support ("is your 
configuration X or Y?").
  
  And that's why :D Your argument hinges on the idea that something trivial 
makes the UI cluttered (and also imposes a maintenance burden). I think that's 
too broad/dogmatic and can be true but it really doesn't have to be the case. 
The task manager settings aren't really laden with settings so this would 
hardly be an imposition.
  
  Plasma's incredibly tweakable. I like to think that's one of the reasons 
people like it so much.
  But if you're gonna force the issue, I'd much rather keep the feature and 
remove the option to disable it.
  
  > Moreoever, adding options like this is almost always lazy and unloading a 
burden on the user instead of designing a UI that does the right thing and 
doesn't need the option.
  >  Options have to be earned.
  
  Lazy? No.
  A UI that wouldn't require you to pick an option might be a better choice.
  A UI that wouldn't require you to pick an option but would still allow you to 
do so might be the best choice.
  
  > My take is this:
  > 
  > - If the danger of users clicking the indicator accidentally and getting 
upset by it is high, this is a bad feature and shouldn't go in.
  
  Agreed.
  
  > - If the danger isn't actually that high, there's no need for an option.
  
  Agree to disagree.
  
  > A possible improvement to make here is to make the indicator visually react 
to hover by recoloring the icon, to teach that it's seperately interactive and 
will do something different than clicking elsewhere on the task button, so 
users get habituated not to click it accidentally. This should probably be done 
anyway (we're usally pretty triggerhappy on the hover feedback).
  
  This would be nice to have, I agree. This might also be a good thing to 
implement in Latte, @mvourlakos thoughts?
  
  > No, if that bug report comes and comes repeatedly, we know it's a bad 
feature and drop it again.
  
  While a potential consideration, it's not certain that the feature should be 
removed in case this happens. It would be silly for us to, say, stop shipping 
the notification widget just because there we get bug reports about glitchy 
placement, for example.
  
  > According to the linked discussion, Chrome is nuking the entire feature - 
it's not about the indicator being clickable. And they're doing it for 
unrelated reasons that are mostly strategic to the web platform and don't 
concern us here.
  
  They GNOME'd it. :D

REPOSITORY
  R119 Plasma Desktop

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

To: faridb, #plasma, #vdg, ngraham, filipf, hein
Cc: rooty, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, 
GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol, mart


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-03-27 Thread Eike Hein
hein requested changes to this revision.
hein added a comment.
This revision now requires changes to proceed.


  > This is a specious argument.
  
  No, it's not. Trivial options have a lot of cost attached to them: They make 
a UI noisier and more intimidating, and therefore less appealing. They also 
make it less effective by making it harder to find what you're looking for, as 
you have to scan through more options. They also introduce additional codepath 
and states, increasing the maintenance burden and complicating user support 
("is your configuration X or Y?").
  
  Moreoever, adding options like this is almost always lazy and unloading a 
burden on the user instead of designing a UI that does the right thing and 
doesn't need the option.
  
  Options have to be earned.
  
  My take is this:
  
  - If the danger of users clicking the indicator accidentally and getting 
upset by it is high, this is a bad feature and shouldn't go in.
  - If the danger isn't actually that high, there's no need for an option.
  
  A possible improvement to make here is to make the indicator visually react 
to hover by recoloring the icon, to teach that it's seperately interactive and 
will do something different than clicking elsewhere on the task button, so 
users get habituated not to click it accidentally. This should probably be done 
anyway (we're usally pretty triggerhappy on the hover feedback).
  
  > As for the checkbox, I think it's only a matter of are we going to add it 
now or after someone opens up a bug report.
  
  No, if that bug report comes and comes repeatedly, we know it's a bad feature 
and drop it again.
  
  > Chrome BTW even totally nuked the flag: 
https://www.reddit.com/r/chrome/comments/9hi48g/the_ability_to_mute_a_tab_that_is_currently/e6clssr/
  
  According to the linked discussion, Chrome is nuking the entire feature - 
it's not about the indicator being clickable. And they're doing it for 
unrelated reasons that are mostly strategic to the web platform and don't 
concern us here.

REPOSITORY
  R119 Plasma Desktop

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

To: faridb, #plasma, #vdg, ngraham, filipf, hein
Cc: rooty, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, 
GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol, mart


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-03-27 Thread Filip Fila
filipf added a comment.


  In D19822#439167 , @hein wrote:
  
  > I'm not a fan of the checkbox, I think it's a little gratuitous. If you add 
a small feature and need to immediately add a checkbox to disable it, it's 
rather a red flag to me. It means either the feature or the checkbox should 
probably go. Firefox gets away without the option BTW.
  
  
  I don't see a correlation between the quality of a feature and having a 
checkbox in this case. The feature is useful. As for the checkbox, I think it's 
only a matter of are we going to add it now or after someone opens up a bug 
report.
  
  Chrome BTW even totally nuked the flag: 
https://www.reddit.com/r/chrome/comments/9hi48g/the_ability_to_mute_a_tab_that_is_currently/e6clssr/
  
  But we can do better than Firefox and Chrome.

REPOSITORY
  R119 Plasma Desktop

BRANCH
  taskmanager-mute (branched from master)

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

To: faridb, #plasma, #vdg, ngraham, filipf
Cc: rooty, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, 
GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol, mart


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-03-27 Thread Krešimir Čohar
rooty added a comment.


  In D19822#439167 , @hein wrote:
  
  > I'm not a fan of the checkbox, I think it's a little gratuitous. If you add 
a small feature and need to immediately add a checkbox to disable it, it's 
rather a red flag to me. It means either the feature or the checkbox should 
probably go.
  
  
  This is a specious argument. It's like the single click vs double click 
debate. Either the single clicking goes or the option to disable it does - 
neither a particularly delightful option. Keep both and you get to avoid this 
pitfall.
  
  In essence, I believe that whether or not you can disable this feature should 
have no bearing on whether it should be included. And as far as dropping the 
option to disable it goes, why? It just detracts from more versatility.
  
  I like this change I'd just prefer it if you could post screenshots in the 
test plan section?

REPOSITORY
  R119 Plasma Desktop

BRANCH
  taskmanager-mute (branched from master)

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

To: faridb, #plasma, #vdg, ngraham, filipf
Cc: rooty, hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, 
GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol, mart


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-03-26 Thread Eike Hein
hein added a comment.


  I'm not a fan of the checkbox, I think it's a little gratuitous. If you add a 
small feature and need to immediately add a checkbox to disable it, it's rather 
a red flag to me. It means either the feature or the checkbox should probably 
go. Firefox gets away without the option BTW.

REPOSITORY
  R119 Plasma Desktop

BRANCH
  taskmanager-mute (branched from master)

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

To: faridb, #plasma, #vdg, ngraham, filipf
Cc: hein, filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, GB_2, 
ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol, mart


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-03-25 Thread Farid Boudedja
faridb updated this revision to Diff 54823.
faridb marked 4 inline comments as done.
faridb added a comment.


  - [Task Manager] Enable ability to mute tasks by default
  - [Task Manager] Change wording in config ui

REPOSITORY
  R119 Plasma Desktop

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D19822?vs=54735=54823

BRANCH
  taskmanager-mute (branched from master)

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

AFFECTED FILES
  applets/taskmanager/package/contents/config/main.xml
  applets/taskmanager/package/contents/ui/ConfigAppearance.qml
  applets/taskmanager/package/contents/ui/Task.qml

To: faridb, #plasma, #vdg, ngraham
Cc: filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, GB_2, 
ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol, mart


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-03-25 Thread Filip Fila
filipf added inline comments.

INLINE COMMENTS

> ngraham wrote in main.xml:99
> I'd have this on by default.

+1 for having it on by default

> ConfigAppearance.qml:72
>  
> +RowLayout {
> +// Indent the option as it depends on the previous one

Putting the option in the Appearance category is okay because it's a sub-option 
of an already existing option.

REPOSITORY
  R119 Plasma Desktop

BRANCH
  taskmanager-mute (branched from master)

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

To: faridb, #plasma, #vdg, ngraham
Cc: filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, GB_2, 
ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol, mart


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-03-24 Thread Nathaniel Graham
ngraham added inline comments.

INLINE COMMENTS

> main.xml:99
> +  Whether to mute/unmute applications when the audio streams 
> indicator is clicked.
> +  false
> +

I'd have this on by default.

> ConfigAppearance.qml:80
> +id: audioStreamsMute
> +text: i18n("Mute/unmute applications by clicking on the 
> audio streams indicator")
> +checked: cfg_audioStreamsMute && plasmaPaAvailable

"Allow Tasks to be muted by clicking on their volume indicators" ?

REPOSITORY
  R119 Plasma Desktop

BRANCH
  taskmanager-mute (branched from master)

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

To: faridb, #plasma, #vdg, ngraham
Cc: filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, GB_2, 
ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol, mart


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-03-24 Thread Farid Boudedja
faridb updated this revision to Diff 54735.
faridb added a comment.


  - [Task Manager] Make mute/unmute behaviour configurable
  
  I added the possibility to enable/disable this behaviour in the 
  plasmoid configuration. I added it to the 'Appearance' section even 
  though it's a behaviour. Could you suggest a better wording for the 
  text and for variables names?

REPOSITORY
  R119 Plasma Desktop

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D19822?vs=54731=54735

BRANCH
  taskmanager-mute (branched from master)

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

AFFECTED FILES
  applets/taskmanager/package/contents/config/main.xml
  applets/taskmanager/package/contents/ui/ConfigAppearance.qml
  applets/taskmanager/package/contents/ui/Task.qml

To: faridb, #plasma, #vdg, ngraham
Cc: filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, GB_2, 
ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol, mart


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-03-24 Thread Nathaniel Graham
ngraham added a comment.


  Cool! I think the top-right corner would be more appropriate though, as long 
as there's no other badge there. Also, the volume indicator badge shouldn't 
expand the geometry of the item.
  
  In D19822#437687 , @filipf wrote:
  
  > I still think we should make it configurable. We'd want to be able to avoid 
situations with parents or a newbies going something like: "I was 
watching/listening to X and your darn Linux stopped playing sound!".
  
  
  Since we're KDE, then sure, why not. :)

REPOSITORY
  R119 Plasma Desktop

BRANCH
  taskmanager-mute (branched from master)

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

To: faridb, #plasma, #vdg, ngraham
Cc: filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, GB_2, 
ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol, mart


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-03-24 Thread Filip Fila
filipf added a comment.


  I still think we should make it configurable. We'd want to be able to avoid 
situations with parents or a newbies going something like: "I was 
watching/listening to X and your darn Linux stopped playing sound!".

REPOSITORY
  R119 Plasma Desktop

BRANCH
  taskmanager-mute (branched from master)

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

To: faridb, #plasma, #vdg, ngraham
Cc: filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, GB_2, 
ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol, mart


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-03-24 Thread Farid Boudedja
faridb added a comment.


  In D19822#437680 , @ngraham wrote:
  
  > Also, it would be nice if you also work on making the volume indicators 
smaller and always in the corner.
  
  
  This is what it looks like with a small icon in the corner:
  F6718166: Screenshot_20190324_213236.png 

  
  F6718165: Screenshot_20190324_212843.png 


REPOSITORY
  R119 Plasma Desktop

BRANCH
  taskmanager-mute (branched from master)

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

To: faridb, #plasma, #vdg, ngraham
Cc: filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, GB_2, 
ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol, mart


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-03-24 Thread Nathaniel Graham
ngraham accepted this revision.
ngraham added a comment.


  LGTM. @broulik?
  
  Also, it would be nice if you also work on making the volume indicators 
smaller and always in the corner.

REPOSITORY
  R119 Plasma Desktop

BRANCH
  taskmanager-mute (branched from master)

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

To: faridb, #plasma, #vdg, ngraham
Cc: filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, GB_2, 
ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol, mart


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-03-24 Thread Farid Boudedja
faridb updated this revision to Diff 54731.
faridb added a comment.


  - [Task Manager] Remove unnecessary braces

REPOSITORY
  R119 Plasma Desktop

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D19822?vs=54077=54731

BRANCH
  taskmanager-mute (branched from master)

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

AFFECTED FILES
  applets/taskmanager/package/contents/ui/Task.qml

To: faridb, #plasma, #vdg, ngraham
Cc: filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, GB_2, 
ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol, mart


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-03-24 Thread Nathaniel Graham
ngraham accepted this revision.
ngraham added a comment.
This revision is now accepted and ready to land.


  I think this makes sense.

INLINE COMMENTS

> Task.qml:505
> +enabled: parent.shown
> +onClicked: { toggleMuted() }
> +}

Don't need braces here

REPOSITORY
  R119 Plasma Desktop

BRANCH
  taskmanager-mute (branched from master)

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

To: faridb, #plasma, #vdg, ngraham
Cc: filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, GB_2, 
ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol, mart


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-03-21 Thread Michail Vourlakos
mvourlakos added a comment.


  In D19822#435735 , @filipf wrote:
  
  > This is a good feature. I'd definitely add an option so it can be turned 
on/off regardless of how well we fix up the icon. Sometimes you need to 
dummy-proof installs so all that matters is that it can be configured; by 
default it could be turned on IMO.
  
  
  This is exactly how Latte git version handles the situation. Enabled by 
default  but it can be turned off from settings window

REPOSITORY
  R119 Plasma Desktop

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

To: faridb, #plasma, #vdg
Cc: filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, GB_2, 
ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol, mart


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-03-21 Thread Filip Fila
filipf added a comment.


  This is a good feature. I'd definitely add an option so it can be turned 
on/off regardless of how well we fix up the icon. Sometimes you need to 
dummy-proof installs so all that matters is that it can be configured; by 
default it could be turned on IMO.

REPOSITORY
  R119 Plasma Desktop

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

To: faridb, #plasma, #vdg
Cc: filipf, mvourlakos, ngraham, broulik, plasma-devel, jraleigh, GB_2, 
ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol, mart


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-03-17 Thread Michail Vourlakos
mvourlakos added a comment.


  I don't know if this can be of any help but this is supported by Latte dock, 
including scroll wheel to increase/decrease the specific audio stream volume

REPOSITORY
  R119 Plasma Desktop

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

To: faridb, #plasma, #vdg
Cc: mvourlakos, ngraham, broulik, plasma-devel, jraleigh, GB_2, ragreen, Pitel, 
ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-03-17 Thread Nathaniel Graham
ngraham added a comment.


  In D19822#433103 , @faridb wrote:
  
  > - Use a smaller icon for the audio indicator and place it in one of the 
corners of the task button and not in the centre
  
  
  I would like this, especially if we put it inside an attractive circular 
background or something, like the notification badges. Feels like we could use 
another emblem icon for this, maybe?
  
  +1 for the concept too since this is now something that web browser tabs 
have, so "click on the audio playing icon to mute it" is a pretty common 
interaction metaphor nowadays.

REPOSITORY
  R119 Plasma Desktop

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

To: faridb, #plasma, #vdg
Cc: ngraham, broulik, plasma-devel, jraleigh, GB_2, ragreen, Pitel, ZrenBot, 
lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-03-17 Thread Farid Boudedja
faridb added a comment.


  Yes, you could accidentally mute an application when using Icons-Only Task 
Manager.
  As you can see below, the audio indicator is pretty close to the centre of 
the task button, which is where you would usually click to activate that task:
  F6698588: Screenshot_20190317_175907.png 

  
  That could be circumvented by doing one of the following:
  
  - Enable this behaviour only when the task label is shown
  - Add the ability to enable this feature through the Task Manager settings, 
disable it by default and assume that users will not accidentally click on the 
audio icon
  - Use a smaller icon for the audio indicator and place it in one of the 
corners of the task button and not in the centre
  
  Any suggestions?

REPOSITORY
  R119 Plasma Desktop

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

To: faridb
Cc: ngraham, broulik, plasma-devel, jraleigh, GB_2, ragreen, Pitel, ZrenBot, 
lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-03-17 Thread Nathaniel Graham
ngraham added a comment.


  On the other hand, the radio is infinite when the indicator isn't visible on 
an IOTM due to https://bugs.kde.org/show_bug.cgi?id=381656
  
  :)

REPOSITORY
  R119 Plasma Desktop

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

To: faridb
Cc: ngraham, broulik, plasma-devel, jraleigh, GB_2, ragreen, Pitel, ZrenBot, 
lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-03-17 Thread Kai Uwe Broulik
broulik added a comment.


  Not sure, it might be accidentally triggered which is why I didn't implement 
this. Especially in icon tasks where the audio icon to task item ratio is quite 
large.

REPOSITORY
  R119 Plasma Desktop

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

To: faridb
Cc: broulik, plasma-devel, jraleigh, GB_2, ragreen, Pitel, ZrenBot, lesliezhai, 
ali-mohamed, jensreuterberg, abetts, sebas, apol, mart


D19822: [Task Manager] Toggle mute when the audio indicator is clicked

2019-03-17 Thread Farid Boudedja
faridb created this revision.
Herald added a project: Plasma.
Herald added a subscriber: plasma-devel.
faridb requested review of this revision.

REVISION SUMMARY
  The task manager shows an indicator on tasks playing audio (when 
  enabled in the settings). This patch adds the ability to mute/unmute 
  an application playing audio by clicking on the audio indicator in 
  the task manager.

TEST PLAN
  - Check "Mark applications that play audio" in the Task Manager
  
  Settings
  
  - Open an application that plays audio
  - Click on the audio indicator and it should toggle the mute state

REPOSITORY
  R119 Plasma Desktop

BRANCH
  taskmanager-mute (branched from master)

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

AFFECTED FILES
  applets/taskmanager/package/contents/ui/Task.qml

To: faridb
Cc: plasma-devel, jraleigh, GB_2, ragreen, Pitel, ZrenBot, lesliezhai, 
ali-mohamed, jensreuterberg, abetts, sebas, apol, mart