Skip to content
  • Mathias Wein's avatar
    Make color selector aware of UI scaling · 6cb9e0bb
    Mathias Wein authored
    Qt virtualizes the coordinate system and keeps it independent
    of (Hi-DPI) UI scaling, that helps to not break applications
    not aware of this feature, but automatically upscaled images
    of course are not very nice especially with fractional factors.
    
    This commit tries to properly determine the true device pixel amounts
    and renders the selector at this resolution.
    
    Note: fractional scaling needs thorough testing with Qt 5.14,
    earlier versions are know to still have many rendering glitches.
    Only tested with Qt 5.12 and QT_SCALE_FACTOR environment variable so far.
    6cb9e0bb