258.11. plasma-integration-6.8.2
Qt platform theme that gives every Qt 6 and KF6 application the KDE palette, fonts, icons and file dialogs
6.8.2-1 · (LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL) AND LGPL-2.0-only AND (LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KFQF-Accepted-GPL OR LicenseRef-Qt-Commercial) AND LGPL-2.0-or-later AND (LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only) · 5.2 SBU · 745.2 KiB, 12 files · 43_toolkits, 182 of 344 · ports/core/kde/plasma-integration
Homepage: https://invent.kde.org/plasma/plasma-integration
Why it is in KDOS. The comment above it in script/phases/43_toolkits/packages.d/kde.txt:
The platform theme that, with the breeze style, makes a Qt application read kdeglobals.
Plasma Integration is the Qt platform theme kde, the plugin Qt loads when QT_QPA_PLATFORMTHEME=kde. Through it every Qt 6 program, KDE’s or not, takes the colours, fonts, icon theme, widget style and dialogs from kdeglobals: KDE’s file dialog in place of Qt’s own (or the portal’s, with PLASMA_INTEGRATION_USE_PORTAL=1), KDE’s colour and message dialogs, the notification-area icon, the global menu and the Qt Quick Controls style. Over Wayland it tells KWin which colour scheme a window’s title bar is to be drawn in.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, qt6-qtwayland, wayland, plasma-wayland-protocols, libxcb, libX11, libXcursor, kcolorscheme, kconfig, kguiaddons, ki18n, kiconthemes, kio, knotifications, kstatusnotifieritem, kwidgetsaddons, kwindowsystem, breeze, breeze-icons, qqc2-desktop-style, qqc2-breeze-style, noto-fonts, noto-emoji.
Required by (1): plasma-workspace.
Sources: plasma-integration-6.8.2.tar.xz (92.9 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/43_toolkits/phase.env && kpkg install plasma-integration'
build.sh:
cmake -S . -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D KDE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D BUILD_TESTING=OFF \
-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
-D KF_SKIP_PO_PROCESSING=ON \
-D BUILD_QT5=OFF \
-D BUILD_QT6=ON \
-D WITH_X11=ON \
-D CMAKE_DISABLE_FIND_PACKAGE_FontHack=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
-D KF_SKIP_PO_PROCESSING=ON— Skips building the translations of the dialogs, which the package-wide English-only rule would remove anyway (see Size and language policy).-D BUILD_QT5=OFF— No Qt 5 platform theme. Upstream builds one by default, and the Qt 5 build needs KDE Frameworks 5, which are not ports; Qt 5 programs are themed through qt5ct.-D BUILD_QT6=ON— The Qt 6 platform theme, upstream’s default.-D WITH_X11=ON— Build the X11 side of the platform theme, so a Qt program running on the xcb platform under Xwayland gets its style properties and the cursor theme too. With it the configure requires libxcb, libX11 and libXcursor. It is upstream’s default, named so those requirements stay independs.-D CMAKE_DISABLE_FIND_PACKAGE_FontHack=ON— Skip the configure’s check for Hack, the monospace face the theme falls back to at run time whenkdeglobalsnames none. Hack is not a port: KDOS sets its monospace face, JetBrains Mono, as thefixedfont in itskdeglobalsdefaults, so the fallback is never reached.
Directories: /usr/share/licenses/plasma-integration.
The theme picks the Qt Quick Controls style for a program at start-up: org.kde.union when the widget style is Union and union is installed, org.kde.desktop from qqc2-desktop-style for a program with widgets, and org.kde.breeze from qqc2-breeze-style for a Qt Quick program with no widgets. Both styles are in depends; without the second, such a program is left on Qt’s own default style and does not look like the rest of the desktop. The emoji font is also what country-flag icons are drawn with.
The configure looks for three things the theme needs only at run time and reports them in its summary, without changing what is built: Noto Sans, Noto Color Emoji and the KDE desktop portal. The two font checks look for a file at another distribution’s path (share/fonts/google-noto/NotoSans-Regular.ttf and share/fonts/google-noto-color-emoji-fonts/Noto-COLRv1.ttf), so they report both fonts missing; the fonts themselves come from noto-fonts and noto-emoji, both in depends. The portal is xdg-desktop-portal-kde, a session port in 50_desktop that this 43_toolkits port cannot name in depends; the kde-plasma meta port installs it. The theme’s “Open With” dialog is drawn by that portal’s backend, org.freedesktop.impl.portal.desktop.kde, so without it a program that asks which application to open a file with gets no dialog.