Kangie / sddm-sugar-candy

Sugar Candy is the sweetest login theme available for the SDDM display manager. It's so sweet it may cause you diabetes. Sugar Candy offers a straight forward user experience focusing on functionality while still offering vast customization.
GNU General Public License v3.0
75 stars 27 forks source link

qtgraphicaleffects is not installed #8

Closed Ishy404 closed 4 months ago

Ishy404 commented 6 months ago

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

AXWTV commented 6 months ago

same here using fedora and qt5-qtgraphicaleffects is installed on my system

nevermore23274 commented 6 months ago

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.

Nasdrovia69 commented 6 months ago

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

nickholden-ui commented 6 months ago

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/

Carlisle96 commented 5 months ago

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: image

Any Ideas ?

tukykarmakar commented 4 months ago

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")
        }
Durlyn commented 4 months ago

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

Carlisle96 commented 4 months ago

I added a background area with the color transparent

It fixed it for me: image

Do you know why there is a small "t" showing on the left ?

Durlyn commented 4 months ago

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
Carlisle96 commented 4 months ago

Thanks !

tukykarmakar commented 4 months ago

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. image

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').

Kangie commented 4 months ago

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.

Kangie commented 4 months ago

https://gitlab.com/Matt.Jolly/sddm-eucalyptus-drop/-/commit/c29d518ee5098cc05458b80ccf5a83c2a9822d57 includes the required fixes.

Kangie commented 4 months ago

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: image

Any Ideas ?

You need to add the 'flat' property to each of the buttons, or just use the updated fork :)