We use Icon Overlays to show a state to the users. All but one of our icons are shown sharp.
This unsharpness only happens when we set the explorer to the large icon view.
We can't figure out why this happens.
We tried different tools to create th icon file.
This is the result :
And we started from this image:
You can find the source files (png's) and the ico file here
Does anyone knows how to fix this or what is causing this?
It looks like a specific of Windows resize engine.
In large icons mode shell uses 48x48x32 icon. I created icon with grid:
And shell draws this icon without any interpolation:
And it looks like there is no solution of your problem.
Related
I would like my JavaFX application to use different icons in Windows for the taskbar and the title bar of the window. The first one should be 32x32, while the other one 16x16.
I tried to set multiple icons to the Stage like this:
stage.getIcons().addAll(logo32, logo16);
...but it uses the image logo32 both in the taskbar and the title bar.
This seems something that should be very simple and very common also, so I am wondering if I am doing something wrong. I am using JavaFX 13.
The icon pointed at in this screenshot should not be the same as the one in the taskbar:
I have a problem where the icons used on QToolButtons on the QMenu attached to the QToolButton appear blurry. I have tried different sizes 24x24, 32x32, 64x64, different formats like png and svg but it always looks strange.
On the image you can see the selected action and the top action on the menu have the same icon but the one in the menu is blurry. Even the one selected is not really sharp.
Is there some specific guideline for those icons or what am I doing wrong? The second and third icon is a build in icon which is I believe 24x24 svg but I was not able to reproduce.
Yes, you need to set different sizes of icons if you want them to look good under the QToolButon and in the QMenu, QT will pick up the size that fits best. One possible solution if you are using resource files could be like this:
QIcon *myQIcon = new QIcon;
myQIcon->addFile(":icon24.svg", QSize(24,24));
myQIcon->addFile(":icon16.svg", QSize(16,16));
mMyQAction->setIcon( *myQIcon );
Detailed explanation can be found here: http://mithatkonar.com/wiki/doku.php/qt/icons
I have a ribbon-base app and on it's toggle buttons I'm placing PNG icons - 32x32, 32 bits. But when I'm launching the app the image on the ribbon button looks corrupted. Just to checkk I've create a simple button control with the same image on it - and it looks ok. see the screenshot here - http://i.imgur.com/0zct9cf.jpg
I've tried to add RenderOptions.BitmapScalingMode="HighQuality" and RenderOptions.EdgeMode="Aliased" to my app window tag - no luck.
Can someone explain whyRibbonToggleButton corrupts the images on it?
Thank you!
Try saving the image with a program that supports setting the DPI in the metadata, for example IrfanView. I had a similar problem and changing the images DPI to match the screen fixed it for me.
Open the image in IrfanVIew and press shift+i to open the image information dialog
Change the DPI to match your screen
Save the image
I have not tested this on a screen that is set to a different DPI, so I have no idea if this will look even more horribly wrong then.
I am working on a custom control box (that min,max/restore/close button in the top right of your Windows titlebar) for my new application. I use closeIcon = style.standardIcon(QStyle.SP_TitleBarCloseButton) to get the correct icon for them. See the full code here in my other SO question. What I got is a black icon. In which I need the white version when it's in hover state.
Can we .. I don't know, inverse it? Or should I get another icon from QStyle?
This question (and several others) are from the intention of creating a chrome like tab in PyQt application, by hiding the titlebar and reimplementing control box. But it didn't gives the best result. Right now this is my solution to create a chrome like tab in PyQt application. Therefore, I close this question.
I am having a situation using QSystemTrayIcon to set an icon into it. I have a 16x16 icon in png format. With the following code:
m_pTray->setIcon(QIcon (":/res/systemtray.png"));
The icon still not showing up. May I know is it something to do with the path? I have set the full path but still not working.
I am doing it in VS2005. May I know is there a workaround for this?
THanks!