Skip to content
Commit 076e17c6 authored by David Hurka's avatar David Hurka 🐬
Browse files

Create GuiUtils functions createColorIcon() and createOpacityIcon()

* createColorIcon creates a QIcon which visualizes the given colors
  using rectangles. A background icon can be provided, in that case
  only the lowest 25% of the icon will be filled by the rectangles.
* createOpacityIcon creates a QIcon that visualizes a given opacity
  using the current foreground color and a checkerboard background.

These functions are now used in place of colorIcon, colorPicerIcon,
opacityIcon in AnnotationActionHandler. The new functions have some
advantages: support most common icon sizes, and dark color schemes.
parent 3cc016b6
Pipeline #32809 passed with stage
in 9 minutes and 25 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment