summaryrefslogtreecommitdiffstats
path: root/src/sql/doc/snippets/code
diff options
context:
space:
mode:
authorAxel Spoerl <axel.spoerl@qt.io>2022-07-29 20:40:01 +0200
committerAxel Spoerl <axel.spoerl@qt.io>2022-08-01 12:07:08 +0200
commitebf733c6fb5503a48a0723d7c6b86a8e1bc60363 (patch)
tree0f30a78ea6c4ca829058c0b0120b3e669958c80e /src/sql/doc/snippets/code
parent4fdadd2348eb2c952650fbd8b9e5d18ed41405dc (diff)
Derive PlaceholderText color from Text color in QPalette
Until Qt 5.15, PlaceholderText color was automatically derived from the Text color, dimmed by 50% (set alpha to 128, assuming the text color is fully opaque). This method has been adapted in the static qt_fusionPalette() method. No other static method to populate palettes defines a PlaceholderText color. As a consequence, the Text color is used to render placeholder text characters. This patch adds a static method, that sets missing PlaceholderText colors by deriving them from the corresponding Text color. It takes a dim factor by which the opacity is reduced versus the corresponding Text color. Fixes: QTBUG-105049 Pick-to: 6.4 6.3 6.2 Change-Id: Iebb9d15d56f5d72d7ec68b7a0babdf5825b92665 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/sql/doc/snippets/code')
0 files changed, 0 insertions, 0 deletions