Skip to content

Conversation

@kra-mo
Copy link
Member

@kra-mo kra-mo commented Sep 11, 2025

Follow-up to #8691

After some discussion, here are some tweaks to the status icons.

The emblems and the logo are now larger and the OK state is now neutral.

image

It would be nice if someone could test whether the conic gradient on the -sync variant actually works with whatever SVG renderer is used here as I know that support for it can be flaky.

(I needed to open a new pull request because the branch has been renamed.)

@mgallien
Copy link
Collaborator

I am doing builds to check how well the icons are converted and displayed

Copy link
Collaborator

@mgallien mgallien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems it does not work on Windows
image

same on linux
image

we should be using inkscape to do the rendering to png

@mgallien
Copy link
Collaborator

using inkscape 1.4.2
I get this
image

@Rello
Copy link
Collaborator

Rello commented Sep 11, 2025

Bildschirmfoto 2025-09-11 um 23 41 11 Bildschirmfoto 2025-09-11 um 23 38 52 image

@Rello
Copy link
Collaborator

Rello commented Sep 11, 2025

using inkscape 1.4.2 I get this image

isnt this the animated one?

@nilsding
Copy link
Member

@Rello the animations are done on the client side, not within the SVG

seems like both Inkscape and Qt SVG struggle with the fill pattern used for the conical gradient :/
from what I've read from the Qt docs at https://doc.qt.io/qt-6/svgextensions.html it doesn't appear like the SVG uses anything that's unsupported by the framework...

@kra-mo
Copy link
Member Author

kra-mo commented Sep 12, 2025

Welp, that's about what I expected. I'll try using Inkscape itself to edit the gradient, provided it doesn't crash. Which it does when editing mesh/conic gradients. A lot.

If that doesn't work out, I'll just revert to the old symbol for those.

@kra-mo
Copy link
Member Author

kra-mo commented Sep 12, 2025

Qt SVG

Oh wait, the SVG needs to support that too? So the app itself isn't using the pre-rendered raster images?

In that case, I'll just use the old design because Qt's SVG support is so extremely limited(/buggy), I'm sure it won't support even the one made in Inkscape :)

yearns for a vector image format that is rendered consistently

@nilsding
Copy link
Member

I'd still like to give the one made in Inkscape a try within Qt, perhaps its SVG output is good enough for Qt to deal with it

@kra-mo
Copy link
Member Author

kra-mo commented Sep 12, 2025

I'm not gonna spend too much time on it just to test it out (because the way this feature is implemented is stupid), does this render correctly?

state-sync

@nilsding
Copy link
Member

I'm not sure it does:

Qt SVG Inkscape
SVG rendered by Qt SVG rendered by Inkscape

Qt SVG also prints the following to the console:

qt.svg: <use> element a in wrong context!
IFFChunk::innerFromDevice: unkwnown chunk "\x89PNG"

tested with a very basic QML scene (via qmlscene6):

import QtQuick

Window {
    width: 640
    height: 480
    visible: true
    title: qsTr("Hello World")
    Rectangle {
        anchors.fill: parent
        color: "#efefef"

        Image {
            anchors.fill: parent
            anchors.margins: 32
            fillMode: Image.PreserveAspectFit
            sourceSize.width: width
            sourceSize.height: height
            source: "file:///home/jyrki/Downloads/488757954-1c27cd92-ba5a-4d4a-92e4-2ca75383a857.svg"
        }
    }
}

@kra-mo
Copy link
Member Author

kra-mo commented Sep 12, 2025

Are you sure this is the one attached in the comment? Because it seems to be broken the exact same way as the previous one. (I did not force push it for the record)

In any case, it's fine, I'll skip the gradient :)

@nilsding
Copy link
Member

nilsding commented Sep 12, 2025

Ah, apparently it makes a difference if I save the image from a new tab in Firefox or right-click->"Save image as..."

Qt still looks the same, Inkscape as intended. The warnings printed by Qt have changed to

qt.svg: <use> element a in wrong context!
IFFChunk::innerFromDevice: unkwnown chunk "\x89PNG"
qt.svg: /home/jyrki/Downloads/488757954-1c27cd92-ba5a-4d4a-92e4-2ca75383a857.svg:141:6: Could not resolve property: #meshgradient7

@kra-mo kra-mo force-pushed the bugfix/state-icons-followup branch from 853d8bb to 3188c46 Compare September 12, 2025 12:31
@kra-mo
Copy link
Member Author

kra-mo commented Sep 12, 2025

Alright, I updated the SVGs. Everything should be good now (hopefully).

Copy link
Collaborator

@mgallien mgallien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

super nice
thanks

@mgallien mgallien force-pushed the bugfix/state-icons-followup branch from 3188c46 to 1aee06d Compare September 12, 2025 14:48
@mgallien mgallien enabled auto-merge September 12, 2025 14:48
@sonarqubecloud
Copy link

After some discussion, here are some tweaks to the status icons.

The emblems and the logo are now larger and the OK state is now neutral.

Signed-off-by: kramo <[email protected]>
@nilsding nilsding force-pushed the bugfix/state-icons-followup branch from 1aee06d to 948b403 Compare September 14, 2025 11:11
@github-actions
Copy link

Artifact containing the AppImage: nextcloud-appimage-pr-8729.zip

Digest: sha256:b09151aac64daa472d156d6745a0467989050ad4b69680c4fd4a7c18725a7e1c

To test this change/fix you can download the above artifact file, unzip it, and run it.

Please make sure to quit your existing Nextcloud app and backup your data.

@mgallien mgallien merged commit 3422997 into master Sep 14, 2025
16 of 17 checks passed
@mgallien mgallien deleted the bugfix/state-icons-followup branch September 14, 2025 11:44
@Rello
Copy link
Collaborator

Rello commented Sep 15, 2025

fyi, just produced an "info"

Bildschirmfoto 2025-09-15 um 13 04 08

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants