aerothemeplasma/plasma/shells/io.gitgud.wackyideas.desktop/contents/views/PreviewBanner.qml
wackyideas 6f831d540f Move to new shell plugin & panel, add SDDM sessions
This is a big update which requires existing users to migrate their
desktop setup (Plasmoids, their configurations, layout changes, etc.) to
a new desktop session.

This commit replaces the modified desktop shell (org.kde.plasma.desktop)
with ATP's shell (io.gitgud.wackyideas.desktop) which requires new
session options. This is similar to how plasma-bigscreen and
plasma-mobile are used - logging into a separate session via the login
manager (SDDM). ATP will provide sessions for both X11 and Wayland.

This, along with now providing a forked panel as well, is a step forward
regarding separating ATP's codebase and KDE's upstream code. Further
goals are to be able to further isolate the ATP session from the regular
KDE session in terms of shared configurations, etc.

For existing users - Rerun install_plasmoids.sh and
install_plasma_components.sh, you can delete the old shell
(shells/org.kde.plasma.desktop) and panel plasmoid
(plasmoids/org.kde.panel). As mentioned previously, panel and desktop
layouts, plasmoids and their configurations will not be migrated to the
newly available sessions, so they need to be set up manually.
2025-10-21 13:23:06 +02:00

47 lines
1.1 KiB
QML

/*
SPDX-FileCopyrightText: 2023 Fushan Wen <qydwhotmail@gmail.com>
SPDX-License-Identifier: GPL-2.0-or-later
*/
import QtQuick
import org.kde.plasma.extras as PlasmaExtras
import org.kde.kirigami 2.20 as Kirigami
Item {
// Using childrenRect.width causes a binding loop since we can only get the
// actual width, not the implicitWidth--which is what we would want
width: Math.max(title.implicitWidth, subtitle.implicitWidth)
height: childrenRect.height
HoverHandler {
cursorShape: Qt.PointingHandCursor
}
TapHandler {
onTapped: Qt.openUrlExternally("https://bugs.kde.org/")
}
PlasmaExtras.ShadowedLabel {
id: title
anchors {
top: parent.top
right: parent.right
}
z: 2
text: desktop.previewBannerTitle
// Emulate the size of a level 1 heading
font.pointSize: Math.round(Kirigami.Theme.defaultFont.pointSize * 1.35)
}
PlasmaExtras.ShadowedLabel {
id: subtitle
anchors {
top: title.bottom
right: parent.right
}
z: 2
text: desktop.previewBannerText
}
}