Make sure ruler cannot be made completely transparent
ClosedPublic

Authored by gateau on Jul 12 2017, 4:53 PM.

Details

Summary

If one reduces the opacity of KRuler to 0, it becomes completely transparent, except for the black ticks, making it almost impossible to see on a dark background.

This patch sets the minimum opacity value to roughly 11% (30 / 255). It also make the slider taller by showing its ticks so that it is easier to manipulate.

Test Plan
  • Start KRuler
  • Right click on it, go to the Opacity menu
  • Change the opacity => ruler can no longer be completely transparent

Diff Detail

Repository
R375 KRuler
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
gateau created this revision.Jul 12 2017, 4:53 PM
This revision was automatically updated to reflect the committed changes.