Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Make 16x16 .ico files possible for toolbar#366

Merged
chcg merged 4 commits into
bruderstein:masterbruderstein/PythonScript:masterfrom
Ekopalypse:issue_195Ekopalypse/PythonScript:issue_195Copy head branch name to clipboard
Dec 30, 2024
Merged

Make 16x16 .ico files possible for toolbar#366
chcg merged 4 commits into
bruderstein:masterbruderstein/PythonScript:masterfrom
Ekopalypse:issue_195Ekopalypse/PythonScript:issue_195Copy head branch name to clipboard

Conversation

@Ekopalypse

@Ekopalypse Ekopalypse commented Dec 28, 2024

Copy link
Copy Markdown
Contributor

@chcg
this most likely breaks the CI as there a two new files but I don't know what needs to be done
to add them to CI and also to PythonScriptTest project.

Ready for review

fixes #195


HBITMAP ConvertIconToBitmap(LPCWSTR file_path) {
HBITMAP hBitmap = nullptr;
HICON hIcon = (HICON)LoadImage(nullptr, file_path, IMAGE_ICON, 16, 16, LR_COLOR | LR_LOADFROMFILE);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe DPIManagerV2::loadIcon() could be used here for High DPI support.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The size is currently set to 16x16. To support really high dpi, further changes are probably needed, e.g. how to handle multiple bmp sizes.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add some .ico or .bmp files in the installation package.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.