diff options
author | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2018-09-25 14:56:50 +0300 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2018-09-25 12:22:27 +0000 |
commit | bc944ad74073362672dba0335785b4557ce65626 (patch) | |
tree | 6aec16cebd60a4daa83397cc52810972238669d6 /src/Authoring/Studio/style.qss | |
parent | 0e7e7996a422b47bd371115e6aa4e2998bbda6fb (diff) |
Fix welcome screen glitches
The dummy label is needed to fix background quadrupling issue when
dragging the welcome screen to another screen with different
device pixel ratio. It is unclear why exactly it fixes it,
and why it needs to be a label with some visible text to do so,
instead of some other widget. It is somehow related to the layout
handling on the dialog.
Task-number: QT3DS-2392
Change-Id: I945d29e6d735d400c80668cab458bf46e9b57f0c
Reviewed-by: Kimmo Leppälä <kimmo.leppala@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/Authoring/Studio/style.qss')
-rw-r--r-- | src/Authoring/Studio/style.qss | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Authoring/Studio/style.qss b/src/Authoring/Studio/style.qss index 37458cd2..cfdb4cf8 100644 --- a/src/Authoring/Studio/style.qss +++ b/src/Authoring/Studio/style.qss @@ -271,6 +271,12 @@ QDialog#StudioTutorialWidget QWidget { border: 0px; } +/* This dummy label is a hack to fix the background quadrupling issue */ +QLabel#dummyLabel { + font-size: 1px; + color: "#273049"; /* color to match background in case text size already doesn't hide it */ +} + QLabel#studioTutorialName { font-size: 42px; font-family: "Titillium Web"; |