Recent

Author Topic: The App Icon is Wrongly Shown As Grey Gear in Ubuntu Dash  (Read 1165 times)

FCK

  • Newbie
  • Posts: 1
The App Icon is Wrongly Shown As Grey Gear in Ubuntu Dash
« on: June 10, 2025, 11:42:33 am »
In Lazarus 3.6 x86-64 run on Ubuntu 22.04LTS (debian), the application icon as defined in project options, is displayed correctly in the Ubuntu Dash bar. In Lazarus 4.0 Ubuntu 24.04LTS, (basically same code and hardware), it is always displayed as a grey gear. My feeling it is a is likely a Lazarus bug. All other application's icons are displayed correctly. Is there a workaround to correct this behaviour?

CM630

  • Hero Member
  • *****
  • Posts: 1447
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: The App Icon is Wrongly Shown As Grey Gear in Ubuntu Dash
« Reply #1 on: June 10, 2025, 01:21:34 pm »
I have the same issue - in Linux Mint Mate the icon, which is mostly blue, is open in Project — Options — Application — Icon as grayscale.
Respectively, the icon of the built executable in the taskbar is also grayscale.
Лазар 4,0 32 bit (sometimes 64 bit); FPC3,2,2

Fred vS

  • Hero Member
  • *****
  • Posts: 3629
    • StrumPract is the musicians best friend
Re: The App Icon is Wrongly Shown As Grey Gear in Ubuntu Dash
« Reply #2 on: June 10, 2025, 02:44:15 pm »
Hello.

If you're using Mint-Cinnamon, which uses its own window manager (WM), derived from Muffin WM, you may encounter problems.
The Cinnamon developers decided, "by design", not to follow the rules of a default WM.
« Last Edit: June 10, 2025, 02:47:24 pm by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

Ally

  • Jr. Member
  • **
  • Posts: 70
Re: The App Icon is Wrongly Shown As Grey Gear in Ubuntu Dash
« Reply #3 on: June 10, 2025, 03:50:17 pm »
A Windows icon consists of several individual images in different sizes, which can also be compressed.
Depending on the intended use, Windows extracts the appropriate size and displays it.
The order of the individual images within the .ico file is irrelevant for Windows.

Linux only displays the first uncompressed image.
The order of the individual images within an icon that is also to be used under Linux must therefore be sorted in descending order (the largest icon first).

Icons with the following resolutions have proven themselves: 256x256 - 64x64 - 48x48 - 40x40 - 32x32 - 24x24 - 20x20 - 16x16

For the 256x256 size, the “Compressed (PNG)” option should be activated in order to optimize the file size.

CM630

  • Hero Member
  • *****
  • Posts: 1447
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: The App Icon is Wrongly Shown As Grey Gear in Ubuntu Dash
« Reply #4 on: June 11, 2025, 02:54:14 pm »
In my case it is Mint Mate (GTK), not Cinnamon.
The Icon is 256x256, it has no other layers (Gimp shows only one layer, so does https://redketchup.io/icon-editor)
When I try to open the icon with XViewer it says "Compressed icons are not supported"
When I try to open it with Pix (no idea what it is, it is in the popup menu of the file manager)... the screen turns black, no idea if the VM restarts or something happens with the window manager.
Лазар 4,0 32 bit (sometimes 64 bit); FPC3,2,2

Fred vS

  • Hero Member
  • *****
  • Posts: 3629
    • StrumPract is the musicians best friend
Re: The App Icon is Wrongly Shown As Grey Gear in Ubuntu Dash
« Reply #5 on: June 11, 2025, 03:28:02 pm »
I have the same issue - in Linux Mint Mate the icon, which is mostly blue, is open in Project — Options — Application — Icon as grayscale.
Respectively, the icon of the built executable in the taskbar is also grayscale.

Hum, there is something that I dont catch.
In Linux you cannot assign a icon for the executable like Windows does via included res.
You may assign a icon for each form but not for the executable.

I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

Fred vS

  • Hero Member
  • *****
  • Posts: 3629
    • StrumPract is the musicians best friend
Re: The App Icon is Wrongly Shown As Grey Gear in Ubuntu Dash
« Reply #6 on: June 11, 2025, 04:17:32 pm »
Re-hello.

Indeed, with Lazarus 4.0, there's a problem loading your icon.ico file (see image laz4_ico2.png).

So I opened your icon.ico with Gimp and exported it to icon.png.
And with that, the icon is correct. (see image laz4_png2.png).

But I'm still puzzled as to what happens to this icon under Linux… :-\
« Last Edit: June 11, 2025, 04:26:45 pm by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

Guva

  • Full Member
  • ***
  • Posts: 180
  • 🌈 ZX-Spectrum !!!
Re: The App Icon is Wrongly Shown As Grey Gear in Ubuntu Dash
« Reply #7 on: June 11, 2025, 06:25:38 pm »
It's an old problem. Just open it in gimp and export it as .ico in the export settings window uncheck the compression option


 

TinyPortal © 2005-2018