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.
Details
Details
- Reviewers
vkrause - Commits
- R1007:442db7fa87c3: Add double tap to maximize screen brightness
Double click on barcode, see screen getting brighter.
Diff Detail
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.
Comment Actions
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.
Comment Actions
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?
Comment Actions
That would probably be cleaner, yes, set_package_properties(... TYPE RUNTIME) should do that.