Adds a new class ProgressButton which is a ToolButton that displays the
screenshot delay. This is achieved by first painting the button, then
a smaller transparent button on top. The width of this overlay is proportional
to the elapsed time and the color is provided by KColorScheme::PositiveText.
Finally the icon and text are drawn on top.
Details
Details
Diff Detail
Diff Detail
- Repository
- R166 Spectacle
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
- remove autogenerated line in license and superfluous NoPen call
- Draw the button raised
Comment Actions
MS Windows style only draws the border if the state of the toolbutton is raised. This is different compared to the other tyles I checked which draw them exactly the same for None, Enabled and Raised.
Comment Actions
Looks great and works great. Nice clean code too. Given that we're branched for 19.08, let's land this on master so we'll have a ton of time to tweak it if necessary.