Changeset View
Changeset View
Standalone View
Standalone View
startkde/startkde.cmake
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Line(s) | |||||
89 | 89 | | |||
90 | if [ "$kdeglobals_kscreen_screenscalefactors" ]; then | 90 | if [ "$kdeglobals_kscreen_screenscalefactors" ]; then | ||
91 | export QT_SCREEN_SCALE_FACTORS="$kdeglobals_kscreen_screenscalefactors" | 91 | export QT_SCREEN_SCALE_FACTORS="$kdeglobals_kscreen_screenscalefactors" | ||
92 | fi | 92 | fi | ||
93 | #Manually disable auto scaling because we are scaling above | 93 | #Manually disable auto scaling because we are scaling above | ||
94 | #otherwise apps that manually opt in for high DPI get auto scaled by the developer AND manually scaled by us | 94 | #otherwise apps that manually opt in for high DPI get auto scaled by the developer AND manually scaled by us | ||
95 | export QT_AUTO_SCREEN_SCALE_FACTOR=0 | 95 | export QT_AUTO_SCREEN_SCALE_FACTOR=0 | ||
96 | 96 | | |||
97 | #Set the QtQuickControls style to our own: for QtQuickControls1 | | |||
98 | #it will fall back to Desktop, while it will use our own org.kde.desktop | | |||
99 | #for QtQuickControlsStyle and Kirigami | | |||
100 | export QT_QUICK_CONTROLS_STYLE=org.kde.desktop | | |||
101 | | ||||
102 | # For Qt Quick Controls 1, there is no style with that name, | 97 | # For Qt Quick Controls 1, there is no style with that name, | ||
103 | # so override that explicitly with the default style to avoid | 98 | # so override that explicitly with the default style to avoid | ||
104 | # a warning on startup. However, simply setting it to "Desktop" does | 99 | # a warning on startup. However, simply setting it to "Desktop" does | ||
105 | # not work, as QQuickControlSettings1 somehow messes that up and uses | 100 | # not work, as QQuickControlSettings1 somehow messes that up and uses | ||
106 | # the parent directory as import path, resulting in the wrong style "Base" | 101 | # the parent directory as import path, resulting in the wrong style "Base" | ||
107 | # being used instead of the right one. | 102 | # being used instead of the right one. | ||
108 | # We can work around that by supplying a relative path to a nonexistent | 103 | # We can work around that by supplying a relative path to a nonexistent | ||
109 | # directory, as it only looks at the file name in the end anyway... | 104 | # directory, as it only looks at the file name in the end anyway... | ||
▲ Show 20 Lines • Show All 259 Lines • Show Last 20 Lines |