Skip to content

Substrate icon instead of application icon #1309

@LeonisX

Description

@LeonisX

I have my own icon, in the project:

\src\windows\assets\icon.ico

According to the logs, I see that it is successfully copied and compiled into a resource object and then used when compiling the executable file. However, if you look at the application in Windows Explorer in different modes, then in some modes, where the icon size is 16 by 16 pixels, it changes to someone else's.

I have a crude solution to this problem.

  1. Find substrate jar dependency (for example C:\Users\user.m2\repository\com\gluonhq\substrate\0.0.65\substrate-0.0.65.jar).
  2. Replace native/windows/assets/icon.ico with application icon. Jar == ZIP archive, I used Far Manager, but any archiver will do.

However, I want an out-of-the-box solution. I noticed that the icon in the Substrate archive appeared not so long ago. For example, in 0.0.46 it is not there yet, but in 0.0.63 it is already there.

Expected Behavior

The application icon should be displayed at any size.

Current Behavior

In Windows Explorer in the Small Icons, List, Details modes, the icon changes to a blue Substrate icon. Size 16x16. If the icon size is larger, then my application icon is used. I tried to draw a separate 16x16 icon, both in 8 and 32 bits - it doesn't help.

Steps to Reproduce

The main condition is Windows, display scale 100%. If you set the scale to 125%, all icons are displayed correctly.

Your Environment

GraalVM CE 23-dev+25.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions