Skip to content

Problem with 32px icons on Plasma widgets #3923

Description

@morganist

Background

With our effort to adapt Papirus to KDE Plasma 6 in #3663 we allowed all 16px panel icons to also be used in 32px size. This is needed for Plasma system tray, which uses status icons in a bigger size than their variant for panel:

Image

The problem

However, this lead to some icons showing up in undesirable places, replacing perfectly correct icons such as the case with hard drive icon in file managers and GNOME Disks:

Image

USB reader uses a correct device icon, hard disk icons are replaced by their symbolic variants as of Papirus version 20240501.
That happens because they have the same name: drive-harddisk.svg. This might seem as an oversight, but turns out this is completely fine within the spec: https://specifications.freedesktop.org/icon-theme-spec/latest/#context
Context is everything here. Here is our entry from index.theme for 32px devices folder:

[32x32/devices]
Context=Devices
Size=32
Type=Fixed

As you can see, the context is correct for this folder. It contains device icons, its context should be device icons.
Now let's see our index.theme entry for new symlinked 32px panel icons:

[32x32/panel]
Context=Status
Size=32
Type=Fixed

They have different context! So the question is, why does the software such as GNOME Disks uses incorrect icons? Does the GTK implementation ignore context? Or is this an issue within Papirus?
So, this issue was created in efforts to investigate the problem and, hopefully, find a solution.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions