Add selection size information
Review Request #129109 - Created Oct. 5, 2016 and submitted
KSnapshot has this very nice feature where the selection size is
visible. This made it possible to use it as a measurement tool or create
screenshots with precise dimensions so restore this feature.
The 100x100 boundary was taken from KSnapshot while the positioning
policy, colors and boundaries were chosen by me.
Tested with light and dark background preference.
- Close to top of the window, small height. Infobox positioned below selection with some margin in between.
- Similar as before, but with more space on top of the selection and the infobox positioned on top.
- Larger height, infobox inside. Centered position looks approximately correct.
- Tested the light background preference, a border is drawn around the infobox for better visibility.
Tested with my brother Rob who complained about this missing feature, he seems to be happy with it.
Addded BUG to the commit message. For your convenience, I have also pushed the patches at https://github.com/Lekensteyn/spectacle/tree/dev