258.20. union-6.8.2
Union — KDE's CSS-driven style engine for Qt Widgets, Qt Quick and Kirigami
6.8.2-1 · (LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL) AND (LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only) AND BSD-2-Clause AND LGPL-2.0-or-later AND MIT · 6.4 SBU · 7.5 MiB, 173 files · 43_toolkits, 193 of 344 · ports/core/kde/union
Homepage: https://invent.kde.org/plasma/union
Union is the style engine KDE is moving Plasma and its applications to: one description of how controls look, written as CSS, drawn by three outputs, a Qt Widgets style (Union), a Qt Quick Controls style (org.kde.union) and a Kirigami platform plugin. The CSS is read by a plugin that parses it with cxx-rust-cssparser, a C++ wrapper around the Rust cssparser crate, and the colours and icons come from the Plasma colour scheme and icon theme through KDE Frameworks. Its styles are installed under /usr/share/union; the one shipped, breeze, reproduces Breeze, with mobile and right-to-left variants.
plasma-workspace requires it at configure time. KDOS builds it for that, and leaves the widget style on Breeze: Union is marked “In Development”, its theme entry is hidden from the Application Style page, and its style format changes between Plasma releases, so no KDOS style is written for it yet (see There is no KDOS widget style).
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, qt6-qtshadertools, kcoreaddons, kguiaddons, kconfig, kiconthemes, kcolorscheme, kirigami, cxx-rust-cssparser.
Required by (1): plasma-workspace.
Sources: union-6.8.2.tar.xz (284.3 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 union'
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_TOOLS=OFF \
-D BUILD_EXAMPLES=OFF \
-D BUILD_WITH_KDEFRAMEWORKS=ON \
-D BUILD_PLATFORM_PLASMA=ON \
-D BUILD_INPUT_CSS=ON \
-D BUILD_INPUT_PLASMASVG=OFF \
-D BUILD_OUTPUT_QTQUICK=ON \
-D BUILD_OUTPUT_KIRIGAMI=ON \
-D BUILD_OUTPUT_QTWIDGETS=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
-D KF_SKIP_PO_PROCESSING=ON— Passed as by every KDE port, so a later release that adds translations stays English-only with no change to the recipe (see Size and language policy). This release carries none, and CMake reports the variable as unused.-D BUILD_TOOLS=OFF— Noruleinspectorandstyletool, two programs for people writing Union styles, which upstream builds by default.-D BUILD_EXAMPLES=OFF— No gallery example; upstream’s default.-D BUILD_WITH_KDEFRAMEWORKS=ON— With-D BUILD_PLATFORM_PLASMA=ON: read the colour scheme, icon theme and Plasma settings through KDE Frameworks, and build the Plasma platform plugin. Without them Union draws with fixed colours and ignores the desktop’s settings.-D BUILD_INPUT_CSS=ON— The CSS input plugin, which is how every shipped style is written.-D BUILD_INPUT_PLASMASVG=OFF— No input that reads a Plasma SVG theme. It needs rapidyaml, which is not a port, and no shipped style uses it; it is upstream’s default.-D BUILD_OUTPUT_QTQUICK=ON— With-D BUILD_OUTPUT_KIRIGAMI=ONand-D BUILD_OUTPUT_QTWIDGETS=ON: all three outputs, upstream’s defaults, named so that each dependency they bring stays independs. The Qt Quick output compiles its shaders with qt6-qtshadertools.
Libraries: libUnion.so, libUnionQuickImpl.so, libUnionQuickStyle.so.
Directories: /usr/include/union, /usr/lib/cmake/Union, /usr/lib/qt6/plugins/union, /usr/lib/qt6/qml/org/kde/kirigami/styles/org.kde.union, /usr/lib/qt6/qml/org/kde/union, /usr/share/licenses/union, /usr/share/union.
plasma-integration’s platform theme switches Qt Quick programs to the org.kde.union style only when the widget style in kdeglobals is union; with KDOS’s Breeze default, nothing on the desktop draws with Union until somebody selects it.