-
-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(aurora): Add Kde branding via a theme #1140
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<background> | ||
<starttime> | ||
<year>2024</year> | ||
<month>04</month> | ||
<day>23</day> | ||
<hour>8</hour> | ||
<minute>00</minute> | ||
<second>00</second> | ||
</starttime> | ||
<!-- This animation will start at 8 AM. --> | ||
|
||
<!-- We start with day at 8 AM. It will remain up for 10 hours. --> | ||
<static> | ||
<duration>36000.0</duration> | ||
<file>/usr/share/backgrounds/default.png</file> | ||
</static> | ||
|
||
<!-- Day ended and starts to transition to night at 6 PM. The transition lasts for 2 hours, ending at 8 PM. --> | ||
<transition type="overlay"> | ||
<duration>7200.0</duration> | ||
<from>/usr/share/backgrounds/default.png</from> | ||
<to>/usr/share/backgrounds/default-dark.png</to> | ||
</transition> | ||
|
||
<!-- It's 8 PM, we're showing the night till 6 AM. --> | ||
<static> | ||
<duration>36000.0</duration> | ||
<file>/usr/share/backgrounds/default-dark.png</file> | ||
</static> | ||
|
||
<!-- It's 6 AM, and we're starting to transition to day. Transition completes at 8 AM. --> | ||
<transition type="overlay"> | ||
<duration>7200.0</duration> | ||
<from>/usr/share/backgrounds/default-dark.png</from> | ||
<to>/usr/share/backgrounds/default.png</to> | ||
</transition> | ||
|
||
</background> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/usr/share/pixmaps/fedora-logo-sprite.png |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,4 @@ | ||||||
applet.wallpaperPlugin = 'org.kde.image' | ||||||
Check failure on line 1 in system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/contents/plasmoidsetupscripts/org.kde.plasma.folder.js
|
||||||
applet.currentConfigGroup = ["Wallpaper", "org.kde.image", "General"] | ||||||
Check failure on line 2 in system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/contents/plasmoidsetupscripts/org.kde.plasma.folder.js
|
||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ❌ Codacy found a critical Error Prone issue: 'applet' is not defined. The issue indicated by ESLint is that the variable In a browser environment, using an undefined variable will result in a If
Suggested change
If This comment was generated by an experimental AI tool. |
||||||
applet.writeConfig("Image", "/usr/share/wallpapers/jonatan-pie-aurora.jpg") | ||||||
Check failure on line 3 in system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/contents/plasmoidsetupscripts/org.kde.plasma.folder.js
|
||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ❌ Codacy found a critical Error Prone issue: 'applet' is not defined. The issue that ESLint is reporting indicates that the variable Since I don't have the full context of where and how Here's the code suggestion to define
Suggested change
You would place this line before the first use of This comment was generated by an experimental AI tool. |
||||||
applet.reloadConfig() | ||||||
Check failure on line 4 in system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/contents/plasmoidsetupscripts/org.kde.plasma.folder.js
|
||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ❌ Codacy found a critical Error Prone issue: 'applet' is not defined. The issue here is that the variable Since I don't have the full context of where Assuming
Suggested change
However, if This comment was generated by an experimental AI tool. |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,3 @@ | ||||||
applet.currentConfigGroup = ["General"] | ||||||
Check failure on line 1 in system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/contents/plasmoidsetupscripts/org.kde.plasma.kickoff.js
|
||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ❌ Codacy found a critical Error Prone issue: 'applet' is not defined. The issue here is that the variable To fix this issue, you need to ensure that If Here's the code suggestion to define
Suggested change
Please note that you may need to adjust this suggestion based on the actual context in which This comment was generated by an experimental AI tool. |
||||||
applet.writeConfig("icon", "distributor-logo") | ||||||
Check failure on line 2 in system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/contents/plasmoidsetupscripts/org.kde.plasma.kickoff.js
|
||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ❌ Codacy found a critical Error Prone issue: 'applet' is not defined. The issue here is that the variable To fix the issue, you would need to ensure that Assuming If
Suggested change
This comment tells ESLint that This comment was generated by an experimental AI tool. |
||||||
applet.reloadConfig() | ||||||
Check failure on line 3 in system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/contents/plasmoidsetupscripts/org.kde.plasma.kickoff.js
|
||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ❌ Codacy found a critical Error Prone issue: 'applet' is not defined. The issue here is that the variable To fix the issue, you would need to ensure that
Without additional context, I can provide a generic suggestion to define
Suggested change
This line checks if This comment was generated by an experimental AI tool. |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,6 @@ | ||||||
systemtrayId = applet.readConfig("SystrayContainmentId"); | ||||||
Check failure on line 1 in system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/contents/plasmoidsetupscripts/org.kde.plasma.systemtray.js
|
||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ❌ Codacy found a critical Error Prone issue: 'systemtrayId' is not defined. The issue here is that the variable Here's the single line code suggestion to fix the issue:
Suggested change
By adding This comment was generated by an experimental AI tool. |
||||||
if (systemtrayId) { | ||||||
Check failure on line 2 in system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/contents/plasmoidsetupscripts/org.kde.plasma.systemtray.js
|
||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ❌ Codacy found a critical Error Prone issue: 'systemtrayId' is not defined. The issue identified by ESLint is that the variable To fix this issue, you should ensure that
Suggested change
This comment was generated by an experimental AI tool. |
||||||
const systrayContainer = desktopById(systemtrayId); | ||||||
Check failure on line 3 in system_files/kinoite/usr/share/plasma/look-and-feel/dev.getaurora.aurora.desktop/contents/plasmoidsetupscripts/org.kde.plasma.systemtray.js
|
||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ❌ Codacy found a critical Error Prone issue: 'desktopById' is not defined. The issue here is that the function To fix this issue, you need to ensure that Assuming that
Suggested change
This comment was generated by an experimental AI tool. |
||||||
systrayContainer.currentConfigGroup = ["General"]; | ||||||
systrayContainer.writeConfig("scaleIconsToFit", true); | ||||||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
/* | ||
SPDX-FileCopyrightText: 2014 Marco Martin <mart@kde.org> | ||
|
||
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 | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/usr/share/plasma/look-and-feel/org.fedoraproject.fedora.desktop/contents/splash/images/busywidget.svgz |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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+ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ Codacy found a critical Error Prone issue: 'applet' is not defined.
The issue here is that the variable
applet
is being used without being defined, which means that the script is trying to assign a property to an identifier that has not been declared. This can lead to a runtime error ifapplet
does not exist in the scope in which this code is running.In a browser environment, this would typically mean that
applet
needs to be defined globally or within the scope of where this code is running. However, since the naming and structure suggest that this code is related to a KDE Plasma desktop widget,applet
is likely meant to be a predefined object provided by the Plasma framework.If
applet
is supposed to be a global object provided by the environment (like KDE Plasma), ensure that the script is running in the correct context whereapplet
is already defined.If
applet
is actually meant to be a local variable that you need to define, you would need to declare it before using it. Assuming thatapplet
should be an object that you'll be setting properties on, here's how you could define it:This line should be placed before the first use of
applet
. However, ifapplet
is indeed supposed to be a global object provided by the Plasma environment, then you should check the environment setup to ensure that the script is being executed in a context whereapplet
is already defined. If it's part of a module or a larger script, you might need to passapplet
as a parameter to the function or ensure it's imported or included correctly.This comment was generated by an experimental AI tool.