Skip to content
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

Adapt Papirus to KDE Plasma 6 #3663

Open
5 of 6 tasks
lhy7889678 opened this issue Mar 7, 2024 · 293 comments
Open
5 of 6 tasks

Adapt Papirus to KDE Plasma 6 #3663

lhy7889678 opened this issue Mar 7, 2024 · 293 comments

Comments

@lhy7889678
Copy link

lhy7889678 commented Mar 7, 2024

A message from maintainers:

  • This issue collects all known issues and bugs regarding the transition from Plasma 5 to Plasma 6!

  • Before reporting a new problem or bug, please check if the problem is still present when using the latest Papirus git master (use install script in our root directory, see project README)

  • For useful background regarding new symbolic icons in plasma 6, see Plasma 6 applets use system icons so missing many icons for applet #3595

  • Please understand that Papirus icon theme had already included symbolic icons prior to the Plasma 6 release and those icons now show up in plasma as unthemeable (either dark grey or white, they don't follow the text colour of your colour scheme). You need to use Papirus-Dark for these icons to appear white.

  • Please report such icons, but acknowledge that this is something that can only be fixed with some restructuring within Papirus, possibly even splitting the theme in two (KDE and GTK editions).

FAQ

Q: I use Plasma and have Breeze-Dark theme applied. Symbolic Papirus icons are white, but sometimes an icon stands out because it is dark grey. How to make solve this issue?

A: Apply Papirus-Dark instead of just Papirus. While the majority of symbolic icons will adapt to your text colour, these GNOME symbolic icons will not, because they were not intended to do that by Advaita developers. Manually choosing the Papirus flavour will make them blend in with other icons.

Q: I applied the appropriate Papirus flavour but the problematic icons appear blurry when compared to others. How to solve this?

A: These icons have a fixed size of 16x16 pixels, because that's how the modern GTK apps use icons. Most of our icons have different sizes (16px, 22px, 24px, 32px, etc.) so that they render crisply in all situations. However, these GNOME symbolic icons only render correctly at the context of symbolic icons at 2x scale (16, 32, 64, 128, 256px). If they are on a panel where the icon size is 22px (Plasma panel by default), they will appear blurry. Adjust your icon size to be either 16px or 32px or use margin separator widgets on Plasma panels to separate different icon sizes.

Q: How to resolve this whole mess?

A: Advocate for a unified symbolic icon implementation between GNOME and KDE so that icon themes like Papirus are able to make one icon for every desktop environment and have it not look awful. If one spec-compliant icon theme is in practice incompatible with some desktop environment, what is the purpose of the specification?

Original message:

KDE Plasma 6 seems to have changed the names of some icons used in the system tray / system settings / etc. As a result, these icons will fall back to the default Breeze icon theme, even though Papirus has adequate icons (with different names) for them.

Here is a list of icons that I have noticed so far:

  • brightness-high-symbolic, redshift-status-off-symbolic, redshift-status-on-symbolic, redshift-status-day-symbolic: Used in the brightness controller
  • klipper-symbolic: Used in the clipboard manager
  • notifications-disabled-symbolic, notification-active-symbolic, notification-inactive-symbolic: Used in the notification manager
  • kdeconnect-tray-symbolic: Used by KDE Connect

(everything above could also have their counterparts without "-symbolic")

Note that this is not an exhaustive list. Maybe we can refer to the new Breeze icon theme repository to find what's not included in Papirus.

@Bingo90
Copy link

Bingo90 commented Mar 7, 2024

The removable devices tray icon also shows a colored version, not a monochrome version - not sure this is intended
grafik

@stengun
Copy link

stengun commented Mar 7, 2024

Relevant post from Nate:
https://pointieststick.com/2023/08/12/how-all-this-icon-stuff-is-going-to-work-in-plasma-6/

@d-avery
Copy link

d-avery commented Mar 7, 2024

I was about to make this same issue! Papirus is my favorite icon pack. Looking forward to using it with Plasma 6!

@monstorix
Copy link
Contributor

Panel related adaptions was once mentioned by #3595.

@archisman-panigrahi
Copy link

archisman-panigrahi commented Mar 8, 2024

Plasma 5
Screenshot_20240307_225216b
Plasma 6 (please ignore the annotation around the battery. Also the power icon changing to Plasma icon is a bug with that applet, it is not a Plasma issue.)
Screenshot_20240308_113036

@dmaliog
Copy link

dmaliog commented Mar 10, 2024

I support we are waiting for Plasma 6! Papirus is the best set!

@morganist
Copy link
Member

morganist commented Mar 15, 2024

do we make the symbolic klipper icon to be a generic metal clip icon ( clipboard ) used for clipman in xfce, for example? or perhaps a better solution would be to draw a new icon that would be more similar to the one breeze icon theme uses? ( klipper-symbolic )
also, we have a few klipper icons in various old plasma themes. those could be used too.

morganist added a commit that referenced this issue Mar 15, 2024
@morganist
Copy link
Member

Okay guys, I don't think it is possible to have a solution right now. KDE colour scheme icons currently only have sizes up to 24px in Papirus, but the ones that were previously used inside the Plasma themes need to have 32px and 22px sizes. There's no place for symbolic 32px icons at the moment. And even after figuring out where to put them, the necessary scripts for preparing and converting the icons need to be modified. I managed to assemble a quick-and-dirty solution, but I think it is better not to merge it. We need restructuring. I guess I can finally understand what @SmartFinn meant by his harsh reaction to this change in Plasma 6.

@morganist
Copy link
Member

I could even start adding some necessary 32px symbolic icons myself, perhaps in the apps folder or in a new folder somewhere, but I'm not experienced in the project structure and script writing, so I'll be waiting for Serhii to say his word.

@monstorix
Copy link
Contributor

I could even start adding some necessary 32px symbolic icons myself, perhaps in the apps folder or in a new folder somewhere

It looks like KDE has done something similar to Breeze Icons 6. In one of Nate Graham's blog posts he said that Plasma 6 will adapt to the way GNOME uses the -symbolic suffix, which may mean that icon makers can put the symbolic icons in all sizes, alongside the coloured ones.

@morganist
Copy link
Member

morganist commented Mar 15, 2024

which may mean that icon makers can put the symbolic icons in all sizes, alongside the coloured ones.

@monstorix we could, but as I've said we need some non-trivial restructuring. The situation is dire because symbolic icons which are used in GNOME don't adapt their colour, but the icons with the KDE colourscheme support do. And now they are mixed up. I haven't given it much thought, but it seems like another challenge.

@SmartFinn
Copy link
Member

SmartFinn commented Mar 15, 2024

Sorry, I don't have enough time to install KDE on my laptop to see the changes. I suppose that @monstorix @morganist is right, this is required some major changes to Papirus icon theme. KDE may need 22px, and 24px symbolic icons, that we don't support now.

I wrote a script that converts 16px icons into 22px, and 24px, sometime ago. So it shouldn't be a problem. However, we should find the right icon theme structure at first. Another way is creating a fork for Plasma 6.

@monstorix
Copy link
Contributor

Another thing that may affect the works:
KDE VDG team is currently in the process of fully migrating (redrawing) the 22px Breeze icons to 24px, for better cross-compatibility with GTK size. Which may imply that Plasma will finally settle with 24px for standard monochrome/symbolic icons instead of 22px in current 6.0 version.

@SmartFinn
Copy link
Member

Honestly, I can't remember any place in GTK where 24px icons are used. GNOME uses 16px in menus, buttons, panel, sidebars, and toolbars. 22px is using for appindicators and tray.

@monstorix
Copy link
Contributor

Well, the GTK compatibility saying is also from Nate. It might not pointed to any specific DEs.

@Bingo90
Copy link

Bingo90 commented Mar 18, 2024

Couldn't we just use the icons from the Materia theme? They seem to fit quite well!

@morganist
Copy link
Member

morganist commented Mar 19, 2024 via email

@Bingo90
Copy link

Bingo90 commented Mar 19, 2024

Couldn't we just use the icons from the Materia theme? They seem to fit quite well!
The problem is, every icon in materia plasma 5 theme (in all of them, really) has both 32px and 22px shapes inside the file: small icons are used for the panel and the bigger ones appear when you open the systray widget. Papirus has no place for these 32px symbolic icons yet, that's why it's not so simple.

We'd have to do a lot of it manually, I guess, but for icons that we don't have in Papirus, we could just extract the 22px versions and put them in a separate SVG

@morganist
Copy link
Member

morganist commented Mar 19, 2024 via email

@morganist
Copy link
Member

morganist commented Mar 19, 2024 via email

@SmartFinn
Copy link
Member

@morganist

As for the 24px icons, I actually wasn't able to find if they are used in any of my installed applications, but they are still in the specification and they are used if the app developer chooses to use them, right?

The 24px actions icons are often using in GTK-based DE, such as Xfce, in toolbars. However, we're talking about symbolic icons that are mostly 16px. 24px symbolic icons are using in elementaryOS, and in Xfce 4 in few places.

@SmartFinn
Copy link
Member

@morganist

Papirus has no place for these 32px symbolic icons yet, that's why it's not so simple.

16px symbolic icons are perfectly scaled to 32px. Rules in index.theme file allow it.

@morganist
Copy link
Member

morganist commented Mar 19, 2024 via email

@SmartFinn
Copy link
Member

@morganist could you try to add these icons without -symbolic suffix. Maybe it's the right way to add Plasma 6 support to Papirus. Like @hexchain did it in #3606 (comment)

@varlesh
Copy link
Contributor

varlesh commented Mar 15, 2025

@Erwin-Iosef category icons small, because used 22px icons, but not blurred...
help and wine categories. Try found icon names here /usr/share/desktop-directories/

@Erwin-Iosef
Copy link

Try found icon names here /usr/share/desktop-directories/

Image

@Erwin-Iosef
Copy link

Erwin-Iosef commented Mar 15, 2025

category icons small, because used 22px icons, but not blurred...

@varlesh Doesn't look well what about 24px you can use those right?

@varlesh
Copy link
Contributor

varlesh commented Mar 15, 2025

no, used 22px on source code

@varlesh
Copy link
Contributor

varlesh commented Mar 15, 2025

you can disable -symbolic icons

mkdir -p ~/.local/share/desktop-directories/
cp -r /usr/share/desktop-directories/* ~/.local/share/desktop-directories/
sed -i 's/-symbolic//g' ~/.local/share/desktop-directories/*

also maybe need clear cache and restart plasmashell

Image

@varlesh
Copy link
Contributor

varlesh commented Mar 15, 2025

Now master branch have new structure folder, big thx @SmartFinn for you hard work!

@Erwin-Iosef
Copy link

Erwin-Iosef commented Mar 16, 2025

Thanks @SmartFinn and great job!

@Erwin-Iosef
Copy link

Erwin-Iosef commented Mar 16, 2025

Just tried it looks great! Great job guys! The Power Management button is still colored though as shown here any plans to do anything about it @varlesh ?

Image

Apart from the stuff I already mentioned, everything looks great! Lemme know if there are any plans forward.

@varlesh
Copy link
Contributor

varlesh commented Mar 16, 2025

temporary solution on hide tray menu:

mkdir -p ~/.local/share/plasma/plasmoids/
cp -r /usr/share/plasma/plasmoids/org.kde.plasma.private.systemtray ~/.local/share/plasma/plasmoids/
sed -i 's/iconSizes.medium/iconSizes.smallMedium/g' ~/.local/share/plasma/plasmoids/org.kde.plasma.private.systemtray/contents/ui/items/AbstractItem.qml

restart plasmashell

Image

@varlesh
Copy link
Contributor

varlesh commented Mar 16, 2025

Image

@Erwin-Iosef What OS you use? Or maybe you know when wine category location on Kickoff?

@Erwin-Iosef
Copy link

Erwin-Iosef commented Mar 16, 2025

This is not much of a problem but if you're interested:
I looked for any improper or broken symlinks using the symlinks program.
It reported a lot of symlinks in Papirus as messy with those having the target path as ./ symlink-target-icon.
Running symlinks -crv on all the icon folders solved them.

$ symlinks -r ../
messy:    /home/admin2/.local/share/icons/ePapirus/16x16/actions/draw-arrow-back.svg -> ./go-previous.svg
messy:    /home/admin2/.local/share/icons/ePapirus/16x16/actions/bookmarks-organize.svg -> ./bookmark-new.svg
messy:    /home/admin2/.local/share/icons/ePapirus/16x16/actions/bqm-commit.svg -> ./go-up.svg
messy:    /home/admin2/.local/share/icons/ePapirus/16x16/actions/bqm-update.svg -> ./go-down.svg
messy:    /home/admin2/.local/share/icons/ePapirus/16x16/actions/draw-arrow-forward.svg -> ./go-next.svg
messy:    /home/admin2/.local/share/icons/ePapirus/16x16/actions/bookmark-edit.svg -> ./bookmark-new.svg
messy:    /home/admin2/.local/share/icons/ePapirus/16x16/actions/draw-arrow-up.svg -> ./go-up.svg
messy:    /home/admin2/.local/share/icons/ePapirus/16x16/actions/draw-arrow-down.svg -> ./go-down.svg
messy:    /home/admin2/.local/share/icons/ePapirus/16x16/actions/bookmark-toolbar.svg -> ./bookmark-new.svg
messy:    /home/admin2/.local/share/icons/ePapirus/16x16/actions/bookmark-add-folder.svg -> ./bookmark-new.svg
messy:    /home/admin2/.local/share/icons/ePapirus/24x24/actions/draw-arrow-back.svg -> ./go-previous.svg
messy:    /home/admin2/.local/share/icons/ePapirus/24x24/actions/bookmarks-organize.svg -> ./bookmark-new.svg
messy:    /home/admin2/.local/share/icons/ePapirus/24x24/actions/bqm-commit.svg -> ./go-up.svg
messy:    /home/admin2/.local/share/icons/ePapirus/24x24/actions/bqm-update.svg -> ./go-down.svg
messy:    /home/admin2/.local/share/icons/ePapirus/24x24/actions/draw-arrow-forward.svg -> ./go-next.svg
messy:    /home/admin2/.local/share/icons/ePapirus/24x24/actions/bookmark-edit.svg -> ./bookmark-new.svg
messy:    /home/admin2/.local/share/icons/ePapirus/24x24/actions/draw-arrow-up.svg -> ./go-up.svg
messy:    /home/admin2/.local/share/icons/ePapirus/24x24/actions/draw-arrow-down.svg -> ./go-down.svg
....

It removes the "messy" ./ characters from the target paths of the symlinks since they're all on the same folder.

@varlesh
Copy link
Contributor

varlesh commented Mar 16, 2025

ePapirus will be removed

@Erwin-Iosef
Copy link

Erwin-Iosef commented Mar 16, 2025

@varlesh I use Arch Linux, I think wine category came up when I installed windows programs in wine. Not much of a problem really unless if you want to create a new symbolic wine icon.

@Erwin-Iosef
Copy link

ePapirus will be removed

The messy links are present in other Papirus folders too:

messy:    /home/admin2/.local/share/icons/ePapirus-Dark/22x22/actions/bookmark-toolbar.svg -> ./bookmark-new.svg
messy:    /home/admin2/.local/share/icons/ePapirus-Dark/22x22/actions/bookmark-add-folder.svg -> ./bookmark-new.svg
messy:    /home/admin2/.local/share/icons/Papirus-Dark/16x16/actions/draw-arrow-back.svg -> ./go-previous.svg
messy:    /home/admin2/.local/share/icons/Papirus-Dark/16x16/actions/bookmarks-organize.svg -> ./bookmark-new.svg
messy:    /home/admin2/.local/share/icons/Papirus-Dark/16x16/actions/bqm-commit.svg -> ./go-up.svg
messy:    /home/admin2/.local/share/icons/Papirus-Dark/16x16/actions/bqm-update.svg -> ./go-down.svg
messy:    /home/admin2/.local/share/icons/Papirus-Dark/16x16/actions/draw-arrow-forward.svg -> ./go-next.svg
messy:    /home/admin2/.local/share/icons/Papirus-Dark/16x16/actions/bookmark-edit.svg -> ./bookmark-new.svg
messy:    /home/admin2/.local/share/icons/Papirus-Dark/16x16/actions/draw-arrow-up.svg -> ./go-up.svg
messy:    /home/admin2/.local/share/icons/Papirus-Dark/16x16/actions/draw-arrow-down.svg -> ./go-down.svg
messy:    /home/admin2/.local/share/icons/Papirus-Dark/16x16/actions/bookmark-toolbar.svg -> ./bookmark-new.svg
messy:    /home/admin2/.local/share/icons/Papirus-Dark/16x16/actions/bookmark-add-folder.svg -> ./bookmark-new.svg
messy:    /home/admin2/.local/share/icons/Papirus-Dark/24x24/actions/draw-arrow-back.svg -> ./go-previous.svg
messy:    /home/admin2/.local/share/icons/Papirus-Dark/24x24/actions/bookmarks-organize.svg -> ./bookmark-new.svg
messy:    /home/admin2/.local/share/icons/Papirus-Dark/24x24/actions/bqm-commit.svg -> ./go-up.svg
messy:    /home/admin2/.local/share/icons/Papirus-Dark/24x24/actions/bqm-update.svg -> ./go-down.svg
messy:    /home/admin2/.local/share/icons/Papirus-Dark/24x24/actions/draw-arrow-forward.svg -> ./go-next.svg
messy:    /home/admin2/.local/share/icons/Papirus-Dark/24x24/actions/bookmark-edit.svg -> ./bookmark-new.svg
messy:    /home/admin2/.local/share/icons/Papirus-Dark/24x24/actions/draw-arrow-up.svg -> ./go-up.svg
messy:    /home/admin2/.local/share/icons/Papirus-Dark/24x24/actions/draw-arrow-down.svg -> ./go-down.svg
messy:    /home/admin2/.local/share/icons/Papirus-Dark/24x24/actions/bookmark-toolbar.svg -> ./bookmark-new.svg
messy:    /home/admin2/.local/share/icons/Papirus-Dark/24x24/actions/bookmark-add-folder.svg -> ./bookmark-new.svg

I didn't post the full output since it's extensive.

@varlesh
Copy link
Contributor

varlesh commented Mar 16, 2025

@Erwin-Iosef Yes, i want create wine sybolic icon, because on kickoff used symbolic icons as default now. i'm use arch too, but not have this category

@Erwin-Iosef
Copy link

You got to install a software that will install the app shortcuts to "Start Menu" which wine will designate to local/share/applications I bet and thus get translated onto kickoff.

@Erwin-Iosef
Copy link

Image

@varlesh
Copy link
Contributor

varlesh commented Mar 16, 2025

@SmartFinn
Image

@varlesh
Copy link
Contributor

varlesh commented Mar 16, 2025

@Erwin-Iosef thx for report

varlesh added a commit that referenced this issue Mar 16, 2025
@SmartFinn
Copy link
Member

SmartFinn commented Mar 16, 2025

@Erwin-Iosef @varlesh there are no broken symlinks in this repo. Stop fighting for nothing.

@Erwin-Iosef
Copy link

We're not fighting, I just reported a nice maintenance fix that's all.

@SmartFinn
Copy link
Member

@Erwin-Iosef I wrote a test that check all symlinks in this repo for every commit, so I'm sure there is nothing to fix. Changing valid symlinks because a utility called them messy, well, it doesn't improve anything. Unless, someone uses this command in CI/CD. In this case, we'll save a lot of space, reducing the complaint in their logs.

@varlesh
Copy link
Contributor

varlesh commented Mar 16, 2025

Wine create new category on ~/.local/share/desktop-directories/wine-wine.directory

[Desktop Entry]
Type=Directory
Name=Wine
Icon=wine

i'm added wine-symbolic icon, but KF5 not present this category, it's can be fixed manually, if need use symbolic icon

varlesh added a commit that referenced this issue Mar 16, 2025
@Erwin-Iosef
Copy link

@SmartFinn @varlesh Now with the major changes done to Papirus, do you have plans for a release?

@varlesh
Copy link
Contributor

varlesh commented Mar 18, 2025

@Erwin-Iosef not now, we have this issue #3923

@Covkie
Copy link
Contributor

Covkie commented Apr 12, 2025

Dolphin's small icon is weirdly wrong despite it being correct in Icon Explorer

Image

Image

Edit: dolphin is requesting system-file-manager as its icon

https://invent.kde.org/system/dolphin/-/merge_requests/945

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

No branches or pull requests