summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dedietrich@qt.io>2017-01-05 16:42:10 -0800
committerGabriel de Dietrich <gabriel.dedietrich@qt.io>2017-01-17 20:12:37 +0000
commit04a74c362f786e6300deb912c0ad40996f8b3bc3 (patch)
tree9c4fcd03962d7b71178796f7987a81e83f192962 /src/plugins
parent80fd1f81882024d13b6ce9688797239892092dfa (diff)
QMacStyle: fix focus ring thickness on retina displays
NSSetFocusRingStyle() doesn't take the device pixel ratio into account for offscreen graphics contexts. As a result, the focus ring would appear too thin on retina displays. Therefore, we need to render the focus ring in a more manual way. The only added dependency is the focus ring's opacity value and thickness. This patch fixes CE_FocusFrame and the focus ring around regular QPushButtons. More work needs to be done for other widgets that currently rely on HITheme or NSControl–NSCell to draw their focus ring. Task-number: QTBUG-57843 Change-Id: I2c6f273698fdfd5ad7344a9688e96aef6da906f0 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/plugins')
0 files changed, 0 insertions, 0 deletions