Closed Ishy404 closed 4 months ago
same here using fedora and qt5-qtgraphicaleffects is installed on my system
I believe I'm having the same issue as the two above. The exact error reads:
The current theme cannot be loaded due to the errors below, please select another theme.
file:///usr/share/sddm/themes/simple-sddm/Main.qml:28:1:module "QtGraphicalEffects" is not installed
I'm on Fedora 40 and using Hyprland (specifically https://github.com/JaKooLit/Fedora-Hyprland )
Though perhaps to give a bit more information than "doesn't work, help" I ran cat /usr/share/sddm/themes/simple-sddm/metadata.desktop
which yielded:
[SddmGreeterTheme]
Name=Tokyo Night SDDM
Description=A Tokyo Night Theme for SDDM
Author=rototrash
License=GPL-3.0-or-later
Type=sddm-theme
Version=1.0
Website=https://github.com/tokyo-night-sddm/
Screenshot=preview.png
MainScript=Main.qml
ConfigFile=theme.conf
Theme-Id=tokyo-night-sddm
First thing noted was the Main.qml as the main script, and opening that up with nano /usr/share/sddm/themes/simple-sddm/Main.qml
the first thing I see isThis file is part of SDDM Sugar Candy.
I believe I'm having the same issue as the two above. The exact error reads:
The current theme cannot be loaded due to the errors below, please select another theme. file:///usr/share/sddm/themes/simple-sddm/Main.qml:28:1:module "QtGraphicalEffects" is not installed
I'm on Fedora 40 and using Hyprland (specifically https://github.com/JaKooLit/Fedora-Hyprland )
Though perhaps to give a bit more information than "doesn't work, help" I ran
cat /usr/share/sddm/themes/simple-sddm/metadata.desktop
which yielded:[SddmGreeterTheme] Name=Tokyo Night SDDM Description=A Tokyo Night Theme for SDDM Author=rototrash License=GPL-3.0-or-later Type=sddm-theme Version=1.0 Website=https://github.com/tokyo-night-sddm/ Screenshot=preview.png MainScript=Main.qml ConfigFile=theme.conf Theme-Id=tokyo-night-sddm
First thing noted was the Main.qml as the main script, and opening that up with
nano /usr/share/sddm/themes/simple-sddm/Main.qml
the first thing I see isThis file is part of SDDM Sugar Candy.
Same for me and qt5-qtgraphicaleffects is installed, who provide Qtgraphicaleffects component version 5.15.13 maybe I do mistake
Here is a fix
Replace QtGraphicalEffects with Qt5Compat.GraphicalEffects in all the qml files that ref it
You can run this
cd /usr/share/sddm/themes/sddm-sugar-candy
sudo find . -type f -name "*.qml" -exec sed -i 's/import QtGraphicalEffects 1.0/import Qt5Compat.GraphicalEffects/g' {} +
Then test with sddm-greeter --test-mode --theme /usr/share/sddm/themes/sddm-sugar-candy/
After fixing the issue, unfortunately, I get this strange emtpy profile picture ( I don't want any picture at all ), which breaks the aesthetic of the theme:
Any Ideas ?
I think that's an icon that's not resolving properly, but I don't know for sure. I tried changing the path to the .svgz file inside the .qml file, but it's not changing to the image that I'm setting. The file is at /usr/share/sddm/themes/sugar-candy/Components/UserList.qml
and the section of the code for that button is below--
indicator: Button {
id: usernameIcon
width: selectUser.height * 0.8
height: parent.height
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
anchors.leftMargin: selectUser.height * 0.125
icon.height: parent.height * 0.25
icon.width: parent.height * 0.25
enabled: false
icon.color: root.palette.text
icon.source: Qt.resolvedUrl("../Assets/User.svgz")
}
ListItem.qml has nothing to do with it. This button is described in Input.qml
indicator: Button {
id: usernameIcon
width: selectUser.height * 0.8
height: parent.height
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
anchors.leftMargin: selectUser.height * 0.125
icon.height: parent.height * 0.25
icon.width: parent.height * 0.25
enabled: false
icon.color: root.palette.text
icon.source: Qt.resolvedUrl("../Assets/User.svgz")
background: Rectangle {
color: "transparent"
}
}
I added a background area with the color transparent
I added a background area with the color transparent
It fixed it for me:
Do you know why there is a small "t" showing on the left ?
I don't know how to properly solve this problem. I walked around it this way. added font size to ComboBox area
ComboBox {
id: selectUser
width: parent.height
height: parent.height
anchors.left: parent.left
font.pointSize: 1 // <- this code
Thanks !
Only adding the rectangle with transparent background was enough. However, the icon is not centred on horizontal axis. I don't mind, but just letting people know.
Do you know why there is a small "t" showing on the left ?
That's the first letter of your username @Carlisle96. It shows the first letter of my username too (which is not 't').
This is not my code, I just uploaded it (unchanged) because I needed to add some tags for packaging.
That's the first letter of your username @Carlisle96. It shows the first letter of my username too (which is not 't').
I maintain a fork sddm-eucalyptus-drop which should fix at least this issue.
https://gitlab.com/Matt.Jolly/sddm-eucalyptus-drop/-/commit/c29d518ee5098cc05458b80ccf5a83c2a9822d57 includes the required fixes.
After fixing the issue, unfortunately, I get this strange emtpy profile picture ( I don't want any picture at all ), which breaks the aesthetic of the theme:
Any Ideas ?
You need to add the 'flat' property to each of the buttons, or just use the updated fork :)
Hi, When I boot my pc up the sddm theme switches to the default one and I get an error that says something along the lines of "qtgraphicaleffects is not installed" even tho i have qt5-qtgraphicaleffects installed