Skip to content

[BUG?] Incorrect icons in custom menu. #2303

Description

@Allonny

Rofi version (rofi -v or git commit in case of build issue)

2.0.0

Configuration

https://gist.github.com/Allonny/e9d366c2c88520e230d54853821bd0a5

Theme

https://gist.github.com/Allonny/9265bcbb7a0fc772728d259e9bef3e7a

Timing report

No response

Launch command

https://gist.github.com/Allonny/56e5f884395a2de14fdf1cf1137784d7

Step to reproduce

  1. Install papirus-icon-theme from repo
  2. Place the theme files powermenu.rasi, colors.rasi, and font.rasi (the contents are in the Gist after the output of rasi -dump-theme) in ~/.config/rofi/
  3. Run the script provided in the Gist, which is attached in the Launch command field.

Expected behavior

I selected the icons in the Papirus theme folder, and inserted their names into the corresponding menu item lines in the script. The thumbnails show that all the icons are solid-color and light, as they should be.

Image

Script fragment with icon names:

lock_icon="\0icon\x1fsystem-lock-screen"
hibernate_icon="\0icon\x1fsystem-hibernate"
logout_icon="\0icon\x1fsystem-log-out"
reboot_icon="\0icon\x1fsystem-reboot"
shutdown_icon="\0icon\x1fsystem-shutdown"
update_icon="\0icon\x1fsystem-upgrade"
cancel_icon="\0icon\x1fundo"

Actual behavior

Icons displayed in the Rofi menu.

Image

Additional information

Hello!
This has probably already been resolved somewhere, but I ran into the following problem and couldn't find a solution myself.
The gist is this: I wrote a small script for the power menu, and I want icons from the Papirus-Dark theme to display next to the menu items. I explicitly specified this theme in the .rasi configuration file, set the icon size to 24x24, and am specifying my favorite icons in the menu bars, but the icons displayed are completely different.
This problem arose, I think, over a year ago. The icons were fine before, but after another update—I'm not sure if it was Papirus, Rofi, or something else—it broke. I just ignored it back then and didn't pay attention, but now I've gotten around to figuring it out. Initially, I was using symbolic icons, and before the crash, they displayed normally (meaning they were light). But after the crash, some of them seemed to have been taken from the light theme variation (meaning they were dark). However, now I've looked directly at the theme files, and the Papirus developers actually inserted symbolic links from the light version even for the dark theme. But then I looked at the regular versions, and they're fine and suitable for me. I selected them, but instead, some colored icons are displayed that I couldn't even find. I understand that these are my skill issues, but I don't even understand how to address them.

PS: While writing this text and filling out the required fields for the application, I realized that I'm apparently using the Rofi theme tools incorrectly...

I've checked if the issue exists in the latest stable release

  • Yes, I have checked the problem exists in the latest stable version

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions