diff --git a/build_files/base/aurora-changes.sh b/build_files/base/aurora-changes.sh index 833654cf576..e2b29b6a956 100644 --- a/build_files/base/aurora-changes.sh +++ b/build_files/base/aurora-changes.sh @@ -4,8 +4,9 @@ set -oue pipefail if [[ "${BASE_IMAGE_NAME}" = "kinoite" ]]; then ln -sf ../places/distributor-logo.svg /usr/share/icons/hicolor/scalable/apps/start-here.svg - sed -i 's@ColorScheme=BreezeLight@ColorScheme=BreezeDark@' /usr/share/plasma/look-and-feel/org.fedoraproject.fedora.desktop/contents/defaults - sed -i 's@Image=Fedora@Image=/usr/share/wallpapers/jonaton-pie-aurora.jpg@' /usr/share/plasma/look-and-feel/org.fedoraproject.fedora.desktop/contents/defaults + ln -sf jonatan-pie-aurora.png /usr/share/backgrounds/default.png + ln -sf greg-rakozy-aurora.png /usr/share/backgrounds/default-dark.png + ln -sf aurora.xml /usr/share/backgrounds/default.xml sed -i '//,/<\/entry>/ s/[^<]*<\/default>/preferred:\/\/browser,applications:org.gnome.Ptyxis.desktop,applications:org.kde.discover.desktop,preferred:\/\/filemanager<\/default>/' /usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/config/main.xml sed -i '//,/<\/entry>/ s/[^<]*<\/default>/preferred:\/\/browser,systemsettings.desktop,org.kde.dolphin.desktop,org.kde.kate.desktop,org.gnome.Ptyxis.desktop,org.kde.discover.desktop<\/default>/' /usr/share/plasma/plasmoids/org.kde.plasma.kickoff/contents/config/main.xml sed -i 's@Exec=ptyxis@Exec=kde-ptyxis@g' /usr/share/applications/org.gnome.Ptyxis.desktop diff --git a/packages.json b/packages.json index 94103e4d39e..c04791a88da 100644 --- a/packages.json +++ b/packages.json @@ -58,6 +58,7 @@ "kinoite": [ "libadwaita-qt5", "libadwaita-qt6", + "kde-runtime-docs", "kdeplasma-addons", "plasma-wallpapers-dynamic" ], diff --git a/system_files/kinoite/usr/etc/xdg/kdeglobals b/system_files/kinoite/usr/etc/xdg/kdeglobals index dec0f8bacd1..f9aeabaadc6 100644 --- a/system_files/kinoite/usr/etc/xdg/kdeglobals +++ b/system_files/kinoite/usr/etc/xdg/kdeglobals @@ -1,3 +1,9 @@ +[KDE] +LookAndFeelPackage=dev.getaurora.aurora.desktop + +[KDE Control Module Restrictions][$i] +kcm_plymouth.desktop=false + [General] TerminalApplication=kde-ptyxis TerminalService=org.gnome.Ptyxis.desktop diff --git a/system_files/kinoite/usr/share/backgrounds/aurora.xml b/system_files/kinoite/usr/share/backgrounds/aurora.xml new file mode 100644 index 00000000000..1915e68905e --- /dev/null +++ b/system_files/kinoite/usr/share/backgrounds/aurora.xml @@ -0,0 +1,38 @@ + + + 2024 + 04 + 23 + 8 + 00 + 00 + + + + + +36000.0 +/usr/share/backgrounds/default.png + + + + +7200.0 +/usr/share/backgrounds/default.png +/usr/share/backgrounds/default-dark.png + + + + +36000.0 +/usr/share/backgrounds/default-dark.png + + + + +7200.0 +/usr/share/backgrounds/default-dark.png +/usr/share/backgrounds/default.png + + + diff --git a/system_files/kinoite/usr/share/backgrounds/greg-rakozy-aurora.png b/system_files/kinoite/usr/share/backgrounds/greg-rakozy-aurora.png new file mode 100644 index 00000000000..3f99f846e4d Binary files /dev/null and b/system_files/kinoite/usr/share/backgrounds/greg-rakozy-aurora.png differ diff --git a/system_files/kinoite/usr/share/backgrounds/jonatan-pie-aurora.png b/system_files/kinoite/usr/share/backgrounds/jonatan-pie-aurora.png new file mode 100644 index 00000000000..ed632bb9dfd Binary files /dev/null and b/system_files/kinoite/usr/share/backgrounds/jonatan-pie-aurora.png differ diff --git a/system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/contents/defaults b/system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/contents/defaults new file mode 100644 index 00000000000..3c81362cd78 --- /dev/null +++ b/system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/contents/defaults @@ -0,0 +1,26 @@ +[kdeglobals][KDE] +widgetStyle=Breeze + +[kdeglobals][General] +ColorScheme=BreezeDark + +[kdeglobals][Icons] +Theme=breeze-dark + +[plasmarc][Theme] +name=default + +[kcminputrc][Mouse] +cursorTheme=breeze_cursors + +[kwinrc][WindowSwitcher] +LayoutName=org.kde.breeze.desktop + +[kwinrc][DesktopSwitcher] +LayoutName=org.kde.breeze.desktop + +[kwinrc][org.kde.kdecoration2] +library=org.kde.breeze + +[KSplash] +Theme=dev.getauorora.aurora diff --git a/system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/contents/icons/aurora_icon.png b/system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/contents/icons/aurora_icon.png new file mode 120000 index 00000000000..0ff2f4077fc --- /dev/null +++ b/system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/contents/icons/aurora_icon.png @@ -0,0 +1 @@ +/usr/share/pixmaps/fedora-logo-sprite.png \ No newline at end of file diff --git a/system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/contents/plasmoidsetupscripts/org.kde.plasma.folder.js b/system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/contents/plasmoidsetupscripts/org.kde.plasma.folder.js new file mode 100644 index 00000000000..0db03b0b149 --- /dev/null +++ b/system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/contents/plasmoidsetupscripts/org.kde.plasma.folder.js @@ -0,0 +1,4 @@ +applet.wallpaperPlugin = 'org.kde.image' +applet.currentConfigGroup = ["Wallpaper", "org.kde.image", "General"] +applet.writeConfig("Image", "/usr/share/wallpapers/jonatan-pie-aurora.jpg") +applet.reloadConfig() \ No newline at end of file diff --git a/system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/contents/plasmoidsetupscripts/org.kde.plasma.kickoff.js b/system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/contents/plasmoidsetupscripts/org.kde.plasma.kickoff.js new file mode 100644 index 00000000000..046a999f11e --- /dev/null +++ b/system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/contents/plasmoidsetupscripts/org.kde.plasma.kickoff.js @@ -0,0 +1,3 @@ +applet.currentConfigGroup = ["General"] +applet.writeConfig("icon", "distributor-logo") +applet.reloadConfig() diff --git a/system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/contents/plasmoidsetupscripts/org.kde.plasma.systemtray.js b/system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/contents/plasmoidsetupscripts/org.kde.plasma.systemtray.js new file mode 100644 index 00000000000..8c669d9de5b --- /dev/null +++ b/system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/contents/plasmoidsetupscripts/org.kde.plasma.systemtray.js @@ -0,0 +1,6 @@ +systemtrayId = applet.readConfig("SystrayContainmentId"); +if (systemtrayId) { + const systrayContainer = desktopById(systemtrayId); + systrayContainer.currentConfigGroup = ["General"]; + systrayContainer.writeConfig("scaleIconsToFit", true); +} \ No newline at end of file diff --git a/system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/contents/previews/preview.png b/system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/contents/previews/preview.png new file mode 100644 index 00000000000..b163d1553c2 Binary files /dev/null and b/system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/contents/previews/preview.png differ diff --git a/system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/contents/splash/Splash.qml b/system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/contents/splash/Splash.qml new file mode 100644 index 00000000000..6617b083aa6 --- /dev/null +++ b/system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/contents/splash/Splash.qml @@ -0,0 +1,84 @@ +/* + SPDX-FileCopyrightText: 2014 Marco Martin + + SPDX-License-Identifier: GPL-2.0-or-later +*/ + +import QtQuick 2.5 +import QtQuick.Window 2.2 +import org.kde.plasma.core 2.0 as PlasmaCore + +Rectangle { + id: root + color: "black" + + property int stage + + onStageChanged: { + if (stage == 2) { + introAnimation.running = true; + } else if (stage == 5) { + introAnimation.target = busyIndicator; + introAnimation.from = 1; + introAnimation.to = 0; + introAnimation.running = true; + } + } + + width: 1280 + height: 800 + + Component.onCompleted: stage = 2 + + Item { + id: content + anchors.fill: parent + opacity: 0 + + Image { + id: logo + //match SDDM/lockscreen avatar positioning + property real size: PlasmaCore.Units.gridUnit * 24 + + anchors.centerIn: parent + + source: "images/aurora_logo.svgz" + + sourceSize.width: 128 + sourceSize.height: 128 + } + + // TODO: port to PlasmaComponents3.BusyIndicator + Image { + id: busyIndicator + //in the middle of the remaining space + y: parent.height - (parent.height - logo.y) / 3 - height/2 + anchors.horizontalCenter: parent.horizontalCenter + source: "images/busywidget.svgz" + sourceSize.height: PlasmaCore.Units.gridUnit * 2 + sourceSize.width: PlasmaCore.Units.gridUnit * 2 + RotationAnimator on rotation { + id: rotationAnimator + from: 0 + to: 360 + // Not using a standard duration value because we don't want the + // animation to spin faster or slower based on the user's animation + // scaling preferences; it doesn't make sense in this context + duration: 2000 + loops: Animation.Infinite + // Don't want it to animate at all if the user has disabled animations + running: PlasmaCore.Units.longDuration > 1 + } + } + } + + OpacityAnimator { + id: introAnimation + running: false + target: content + from: 0 + to: 1 + duration: PlasmaCore.Units.veryLongDuration * 2 + easing.type: Easing.InOutQuad + } +} \ No newline at end of file diff --git a/system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/contents/splash/images/aurora_logo.svgz b/system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/contents/splash/images/aurora_logo.svgz new file mode 100644 index 00000000000..919b752de21 Binary files /dev/null and b/system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/contents/splash/images/aurora_logo.svgz differ diff --git a/system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/contents/splash/images/busywidget.svgz b/system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/contents/splash/images/busywidget.svgz new file mode 120000 index 00000000000..d38e7d33f9b --- /dev/null +++ b/system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/contents/splash/images/busywidget.svgz @@ -0,0 +1 @@ +/usr/share/plasma/look-and-feel/org.fedoraproject.fedora.desktop/contents/splash/images/busywidget.svgz \ No newline at end of file diff --git a/system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/metadata.desktop b/system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/metadata.desktop new file mode 100644 index 00000000000..0af6ede3304 --- /dev/null +++ b/system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/metadata.desktop @@ -0,0 +1,16 @@ +[Desktop Entry] +Comment=Aurora - Theme based on KDE BreezeDark +Name=Aurora +Type=Service + +X-KDE-ServiceTypes=Plasma/LookAndFeel +X-KDE-ParentApp= +X-KDE-PluginInfo-Author=Universal-Blue +X-KDE-PluginInfo-Category= +X-KDE-PluginInfo-Email= +X-KDE-PluginInfo-License=GPL-2.0+ +X-KDE-PluginInfo-Name=dev.getaurora.aurora.desktop +X-KDE-PluginInfo-Version=0.01 +X-KDE-PluginInfo-Website= +X-Plasma-MainScript=defaults +X-KDE-PluginInfo-License=GPLv2+ \ No newline at end of file diff --git a/system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/metadata.json b/system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/metadata.json new file mode 100644 index 00000000000..b018facd972 --- /dev/null +++ b/system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/metadata.json @@ -0,0 +1,22 @@ +{ + "KPlugin": { + "Authors": [ + { + "Email": "", + "Name": "Universal Blue" + } + ], + "Category": "", + "Description": "Aurora - Theme variant of KDE BreezeDark", + "Id": "dev.getaurora.aurora.desktop", + "License": "GPLv2+", + "Name": "Aurora", + "ServiceTypes": [ + "Plasma/LookAndFeel" + ], + "Version": "0.01", + "Website": "" + }, + "X-KDE-ParentApp": "", + "X-Plasma-MainScript": "defaults" +}