250.1. breeze-6.8.2
Breeze widget style, window decoration, colour schemes, cursors and the Next wallpaper
| Version | 6.8.2, release 2 |
| Shelf | themes — Icon, cursor, sound and widget themes, and theme-configuration tools |
| Phase | 43_toolkits (Toolkits), 179 of 344 in build order |
| Licence | GPL-2.0-or-later AND MIT AND (GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL) AND LGPL-2.0-or-later AND LGPL-3.0-or-later AND CC-BY-SA-4.0 |
| Homepage | https://invent.kde.org/plasma/breeze |
| Build time | 0.5 SBU |
| Installed size | 68.3 MiB in 676 files |
| Recipe | ports/core/themes/breeze/kpkgbuild |
About
Breeze is the default look of KDE software, and the base of KDOS’s own. The port installs the Breeze widget style for Qt 6 applications and its settings page, the Breeze window decoration KWin draws title bars with, the Breeze Classic, Breeze Light and Breeze Dark colour schemes, the two cursor themes, breeze_cursors and Breeze_Light, with kcursorgen, and the Next wallpaper. KDOS’s window decoration is this one, squared and outlined in the accent through two options its patch adds and KDOS’s configuration turns on, rather than replaced; its cursor is breeze_cursors for every accent.
Why it is in KDOS
The comment above it in script/phases/43_toolkits/packages.d/themes.txt:
The style that, with plasma-integration's platform theme, makes a Qt application read kdeglobals.
Sources
breeze-6.8.2.tar.xz(39.5 MiB)
sha256d6493c5abbcb27b6b1bc42e2e561d64218133ecd2ed56bfc42b1e25d97e216bc
upstream: https://download.kde.org/stable/plasma/6.8.2/breeze-6.8.2.tar.xz
archive copy: sources-4/themes--breeze-6.8.2.tar.xz
Dependencies
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtsvg, qt6-qtdeclarative, kcolorscheme, kconfig, kconfigwidgets, kcoreaddons, kguiaddons, ki18n, kiconthemes, kwindowsystem, kcmutils, frameworkintegration, kdecoration.
Required by (6): breeze-gtk, haruna, kdos-plasma-look, kwin, plasma-integration, plasma-workspace.
Patches
build.sh applies these; kpkg applies nothing by itself.
sandbox-badge.patch draws a small box before the caption of a window whose client is sandboxed, in the caption’s own colour, with its width taken out of the caption’s so the two never overlap whatever the title alignment. The engine’s state picks the drawing: a solid box for a confined KDOS box (+private) or any other sandbox, a dashed one for a box that could reach past its tag (+tagged), and a warning triangle for an engine that reports none of its boundary held (+unconfined). It reads isSandboxed() and sandboxEngine() from the kdecoration patch of the same name, without which it does not compile, and is proposed upstream with it.
square-corners.patch adds two [Common] keys to breezerc, both off unless set, so Breeze without them draws as upstream does.
The first, SquareCorners=true, sets the decoration’s corner radius to zero, which squares the title bar, the frame, the outline and the shadow together. Upstream’s RoundedCorners only rounds or squares the bottom corners of a borderless window; the title bar’s top corners keep their radius whatever it says.
The second, OutlineHighlight=true, draws the active window’s one-pixel outline in the link colour of the window’s palette, which is the accent of every KDOS scheme and of a box’s forced scheme. It is not the selection colour: a dark accent’s selection is the accent darkened until text reads on it, and QPalette carries no focus colour, so the link is the one palette role a scheme holds at its accent. Upstream’s outline is a mix of the frame and text colours, which no colour-scheme key can make the accent; an inactive window keeps that mix.
KDOS’s /usr/share/kdos/xdg/breezerc turns both on. The patch is applied after sandbox-badge.patch, whose hunks it is cut against, and is to be offered upstream to Breeze as two options of the decoration.
button-focus-outline.patch outlines a push button, tool button or combo box that has keyboard focus in the colour scheme’s DecorationFocus, the colour the style already gives the focus frame of a line edit, check box or slider. Upstream outlines a focused button in Highlight, the selection background, as it does a hovered or pressed one. A dark KDOS accent’s selection is the accent darkened until text reads on it, so that ring sits at about 1.6:1 against the resting frame, where DecorationFocus is the accent itself. Hover and press keep Highlight. The outline fades on the hover animation, which runs for hover, focus and press alike and cannot say which of them is ending, so the patch also has push and tool buttons drive the style’s pressed animation from keyboard focus alone: while that one fades out, the ring fades from DecorationFocus to the resting frame, where it would otherwise drop to Highlight on the first frame. It is to be offered upstream to Breeze.
button-focus-outline.patch— Draw a focused button's outline in the focus colourrenderButtonFrame outlines a hovered, pressed or keyboard-focused button in the palette's Highlight, the selection background. A colour scheme whose selection is darkened for text to read on it, as a dark accent's is, leaves the focus ring close to the resting frame: 1.57:1 on KDOS Bone. A button with visual focus is now outlined in the scheme's DecorationFocus, which the style already uses for the focus frame of line edits, check boxes and sliders; hover and press keep Highlight.
The outline's fade runs on the hover animation, whose state covers hover, focus and press, so on its own it cannot tell a focus ring from a hover ring once both have ended. Push and tool buttons now register the widget state engine's pressed animation and drive it from visual focus alone, and the frame is told when that one is fading out: the ring then fades from DecorationFocus to the resting frame instead of dropping to Highlight on the first frame of the fade.
sandbox-badge.patch— Lead a sandboxed window's caption with a box glyphA window whose client is sandboxed (KDecoration3's isSandboxed(), the sandbox engine of its security context) has a small box drawn before its caption, in the caption's own colour, so a confined window is told from a host one at a glance. An engine whose state says only part of the boundary held (`+tagged`) is drawn dashed, one that says none did (`+unconfined`) as a warning triangle. The glyph's width comes out of the caption's, so the two never overlap, whatever the title alignment.
square-corners.patch— Add SquareCorners and OutlineHighlight to the decorationTwo [Common] keys of breezerc, both off by default, so a stock Breeze is drawn as before. SquareCorners sets the corner radius to zero, which squares the title bar, the window frame, the outline and the shadow together; RoundedCorners alone only ever rounds or squares the bottom of a borderless window. OutlineHighlight draws the active window's outline in the window palette's link colour, so a colour scheme's accent marks the focused window; an inactive window keeps the frame and text mix. The link colour is the one QPalette role a scheme can hold at its accent while the selection is darkened for text drawn over it.
Installation
From the repository root, inside the build container, this is the line kdosbuild runs for the port:
script/chroot/exec.sh bash -c 'source script/phases/43_toolkits/phase.env && kpkg install breeze'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/themes/breeze.
1. Verify every declared source. Each file a sha256 = line names, found in the port directory or in /var/cache/kpkg/sources, must hash to its line; a mismatch stops the build before anything is unpacked.
cd /ports/core/themes/breeze
echo 'd6493c5abbcb27b6b1bc42e2e561d64218133ecd2ed56bfc42b1e25d97e216bc breeze-6.8.2.tar.xz' | sha256sum -c -
2. Unpack. The work directory is emptied and the first source is unpacked into $SRC with its top directory stripped; any later tarball lands unstripped beside it in $SRC_ROOT, and a file that is not a tarball is copied into $SRC.
SRC_ROOT=/var/cache/kpkg/work/breeze
SRC=$SRC_ROOT/breeze-6.8.2
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf breeze-6.8.2.tar.xz -C "$SRC" --strip-components=1
Every config.guess and config.sub older than automake’s is then replaced with automake’s, so a configure script recognises the musl target.
3. Build. build.sh is sourced in a subshell under set -e, from $SRC, with name, version, release and the recipe’s helpers group and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:
patch -p1 -i "$PORT_SRC/sandbox-badge.patch"
patch -p1 -i "$PORT_SRC/square-corners.patch"
patch -p1 -i "$PORT_SRC/button-focus-outline.patch"
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 BUILD_WITH_QTQUICK=ON \
-D BUILD_CURSOR=ON \
-D WITH_DECORATIONS=ON \
-D WITH_WALLPAPERS=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6FrameworkIntegration=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
The switches, and why each is set:
-D KF_SKIP_PO_PROCESSING=ON— Skips building the translations of the style’s and the decoration’s settings, which the package-wide English-only rule would remove anyway (see Size and language policy).-D BUILD_QT5=OFF— No Qt 5 widget style. Upstream builds one by default, and the Qt 5 build needs KDE Frameworks 5, which are not ports; Qt 5 applications are themed through qt5ct instead.-D BUILD_QT6=ON— The Qt 6 style, the decoration and the wallpaper, upstream’s default.-D BUILD_WITH_QTQUICK=ON— Lets the style’s window manager start a window move from an empty area of a Qt Quick window, as it does for widgets; it needs qt6-qtdeclarative.-D BUILD_CURSOR=ON— Install the two cursor themes and buildkcursorgen. The Breeze global theme namesbreeze_cursorsas its cursor, and kde-gtk-config hands the same name to GTK programs, so without it both fall back to whatever cursor theme the image has.-D WITH_DECORATIONS=ON— Build the Breeze window decoration plugin and its settings page, against kdecoration. KWin uses Breeze when no decoration is configured.-D WITH_WALLPAPERS=ON— Install theNextwallpaper. It is the last fallback of Plasma’s default-wallpaper lookup, so a wallpaper setting that names a package which is not installed showsNextrather than a blank desktop.-D CMAKE_REQUIRE_FIND_PACKAGE_KF6FrameworkIntegration=ON— Make frameworkintegration a requirement. Upstream looks for it quietly, and without it the style derives fromQCommonStyleinstead of KStyle and loses the KDE style extensions, such as the capacity bar Dolphin draws for free disk space.
The common switches of each build system are explained in the Flag glossary.
4. Package. kpkg removes libtool archives, the info directory index, mimeinfo.cache and every fonts.dir from $PKG, copies the source’s licence files into /usr/share/licenses/breeze, prunes what the image does not ship, lints the tree and rolls it reproducibly:
tar --sort=name --format=gnu --numeric-owner --owner=0 --group=0 \
--mtime=@$SOURCE_DATE_EPOCH \
--use-compress-program='xz -9 -T0 --block-size=32MiB --no-adjust' \
-cf breeze-6.8.2-2.tar.xz -C "$PKG" .
5. Adopt. kpkgadd installs the package’s files over the root, refusing a path another package owns, records the file list in /var/lib/kpkg/db/breeze, and runs the triggers its paths call for.
Contents
Installed programs: breeze-settings6, kcursorgen.
Installed directories: /usr/lib/cmake/Breeze, /usr/share/QtCurve, /usr/share/icons/Breeze_Light, /usr/share/icons/breeze_cursors, /usr/share/licenses/breeze, /usr/share/wallpapers/Next.
Notes
The cursors ship in the source as finished XCursor files, with the SVGs they were drawn from in cursors_scalable, and the install copies both; nothing renders a cursor at build time, so the cursor themes need no tool beyond the build. kcursorgen is installed beside them: it turns an SVG cursor theme into XCursor files at the sizes and scales it is given, for programs that read only XCursor.
The decoration plugin and the style both link libbreezecommon6, and the decoration is a KDecoration3 plugin, so it is rebuilt with every Plasma release together with kdecoration and kwin.
The QtCurve preset Breeze.qtcurve is installed under /usr/share/QtCurve, where only the QtCurve style reads it; QtCurve is not a port.