Add double tap to maximize screen brightness
ClosedPublic

Authored by nicolasfella on Nov 20 2018, 1:14 AM.

Details

Summary

For barcode scanning it's best to maximize the screen brightness. It's more useful on Android than on the desktop, but this implementation is useful for Plasma Mobile. I plan to add
support for Android later.

Test Plan

Double click on barcode, see screen getting brighter.

Diff Detail

Repository
R1007 Itinerary - Travel Assistance Application
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
nicolasfella created this revision.Nov 20 2018, 1:14 AM
Restricted Application added a project: KDE PIM. · View Herald TranscriptNov 20 2018, 1:14 AM
Restricted Application added a subscriber: kde-pim. · View Herald Transcript
nicolasfella requested review of this revision.Nov 20 2018, 1:14 AM
vkrause accepted this revision.Nov 20 2018, 5:20 PM

Nice! Definitely needed/wanted (see T8822). Does this somehow reset the brightness back to where it was before too, I don't seem to see that in the code? Anyway, this is a good start for this entire topic.

This revision is now accepted and ready to land.Nov 20 2018, 5:20 PM

There's no way to reset the brighness, right.

This patch introduces a optional runtime dep on Solid (or rather it's DBus interface), Should this be indicated in the CMakeLists.txt somehow?

There's no way to reset the brighness, right.

This patch introduces a optional runtime dep on Solid (or rather it's DBus interface), Should this be indicated in the CMakeLists.txt somehow?

That would probably be cleaner, yes, set_package_properties(... TYPE RUNTIME) should do that.

  • Look for Solid dependency
  • Whitespace
  • Coding style
nicolasfella requested review of this revision.Nov 24 2018, 1:35 PM
vkrause accepted this revision.Nov 24 2018, 1:44 PM
This revision is now accepted and ready to land.Nov 24 2018, 1:44 PM
This revision was automatically updated to reflect the committed changes.