Changeset View
Changeset View
Standalone View
Standalone View
startkde/startkde.cmake
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Line(s) | |||||
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 | 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 | 98 | #it will fall back to Desktop, while it will use our own org.kde.desktop | ||
99 | #for QtQuickControlsStyle and Kirigami | 99 | #for QtQuickControlsStyle and Kirigami | ||
100 | export QT_QUICK_CONTROLS_1_STYLE=Desktop | | |||
101 | export QT_QUICK_CONTROLS_STYLE=org.kde.desktop | 100 | export QT_QUICK_CONTROLS_STYLE=org.kde.desktop | ||
102 | 101 | | |||
102 | # For Qt Quick Controls 1, there is no style with that name, | ||||
103 | # so override that explicitly with the default style to avoid | ||||
104 | # a warning on startup. However, simply setting it to "Desktop" does | ||||
105 | # not work, as QQuickControlSettings1 somehow messes that up and uses | ||||
106 | # the parent directory as import path, resulting in the wrong style "Base" | ||||
107 | # being used instead of the right one. | ||||
108 | # 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... | ||||
110 | export QT_QUICK_CONTROLS_1_STYLE=non/existent/dir/Desktop | ||||
111 | | ||||
103 | # XCursor mouse theme needs to be applied here to work even for kded or ksmserver | 112 | # XCursor mouse theme needs to be applied here to work even for kded or ksmserver | ||
104 | if test -n "$kcminputrc_mouse_cursortheme" -o -n "$kcminputrc_mouse_cursorsize" ; then | 113 | if test -n "$kcminputrc_mouse_cursortheme" -o -n "$kcminputrc_mouse_cursorsize" ; then | ||
105 | @EXPORT_XCURSOR_PATH@ | 114 | @EXPORT_XCURSOR_PATH@ | ||
106 | 115 | | |||
107 | kapplymousetheme "$kcminputrc_mouse_cursortheme" "$kcminputrc_mouse_cursorsize" | 116 | kapplymousetheme "$kcminputrc_mouse_cursortheme" "$kcminputrc_mouse_cursorsize" | ||
108 | if test $? -eq 10; then | 117 | if test $? -eq 10; then | ||
109 | XCURSOR_THEME=breeze_cursors | 118 | XCURSOR_THEME=breeze_cursors | ||
110 | export XCURSOR_THEME | 119 | export XCURSOR_THEME | ||
▲ Show 20 Lines • Show All 249 Lines • Show Last 20 Lines |