Make media controls configurable
AbandonedPublic

Authored by broulik on Jan 2 2018, 10:11 AM.

Details

Reviewers
graesslin
davidedmundson
Group Reviewers
Plasma
VDG
Summary

We originally wanted to wait for feedback whether this needs to be configurable and also with KDE's privacy vision statement, there's clearly demand for such a setting.

BUG: 384264
FIXED-IN: 5.12.0

Test Plan

Enabled and disabled media controls.

Diff Detail

Repository
R133 KScreenLocker
Lint
Lint Skipped
Unit
Unit Tests Skipped
broulik created this revision.Jan 2 2018, 10:11 AM
Restricted Application added a project: Plasma. · View Herald TranscriptJan 2 2018, 10:11 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
davidedmundson requested changes to this revision.Jan 4 2018, 7:05 PM
davidedmundson added a subscriber: davidedmundson.

I think the change is needed and makes sense.

There's a logic bug though.

kcm/kcm.cpp
136 ↗(On Diff #24567)

This won't work.

Kpacakges don't inherit metadata, so I think if you changed to breeze-dark you'd get the controls but lose the ability to turn them off.
You can't assume that authors should copy metadata, as we existing packages out there.

But also you can't just iterate through parent packages metadata either, what if someone inherited Breeze but then *did* replace the lockscreen.

I can't think of anything that'll work, other than just adding "if available" to the config label and skipping this.

This revision now requires changes to proceed.Jan 4 2018, 7:05 PM
graesslin added inline comments.Jan 4 2018, 7:42 PM
kcm/kcm.cpp
136 ↗(On Diff #24567)

maybe we need a lnf specific config module? It's not the first feature where I would say that this actually doesn't belong into kscreenlocker kcm as it's specific to the theme.

broulik added inline comments.Jan 5 2018, 8:46 AM
kcm/kcm.cpp
136 ↗(On Diff #24567)

I can't think of anything that'll work, other than just adding "if available" to the config label and skipping this.

Okay… that was the main reason I didn't add this months ago

broulik updated this revision to Diff 24754.Jan 5 2018, 8:55 AM
  • Always show media controls config
broulik edited the test plan for this revision. (Show Details)Jan 5 2018, 8:55 AM

maybe we need a lnf specific config module? It's not the first feature where I would say that this actually doesn't belong into kscreenlocker kcm as it's specific to the theme.

I like half of that.

I think configuring the look and feel package somewhere separate would be a very weird user experience.
You'd want to configure things for the lockscreen in the lockscreen.

But, having the lnf provide the config makes sense.

If we added a screenlocker config to the lnf and then loaded that in this UI in the same way that we do wallpapers that would be perfect.

maybe we need a lnf specific config module? It's not the first feature where I would say that this actually doesn't belong into kscreenlocker kcm as it's specific to the theme.

I like half of that.

I think configuring the look and feel package somewhere separate would be a very weird user experience.
You'd want to configure things for the lockscreen in the lockscreen.

But, having the lnf provide the config makes sense.

If we added a screenlocker config to the lnf and then loaded that in this UI in the same way that we do wallpapers that would be perfect.

That's how I meant it

broulik abandoned this revision.Jan 10 2018, 5:09 PM

Superseded by D9684