-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removed the redundant class IconEngine
#1013
Conversation
I found no reason for using `IconEngine`. Moreover, its removal closes #788
@palinek EDIT: Previously, I only checked the correctness of the
Also, in practice, everything seems fine without |
If I see it right, the main purpose is to not loose the underlying |
Yes, My point is that So far, I haven't found a difference in practice (except for #788, which is a side effect of the above-mentioned duplication). The GUI also feels faster — although that may be an effect of expectation on observation, because I know that extra computations are removed ;) I asked you because I thought I might not see the wood for the trees (dealing with various codes). Do you know of a use case which would make a real difference? |
It has. It is the pointer back to static const char* fallbackIconNames[] = {
"unknown",
"application-octet-stream",
"application-x-generic",
"text-x-generic",
nullptr
}; Let's say for particular need there is no icon and a fallback is used. In current icon theme A the "application-x-generic" is present and as so used and showed in GUI. When the icon theme is changed on the fly (w/o restarting lbfm-qt based app) to icon theme B, where there is also the "application-octet-stream" icon present, the "application-octet-stream" will be shown in the GUI. As the GUI On the other side the "plain" |
Example:
vokoscreenNG-2024-10-14_15-04-56.mp4
vokoscreenNG-2024-10-14_15-05-38.mp4 |
Yes! This was what I overlooked: an on-the-fly change or update of the icon theme. Thanks! Before seeing your last comment, I did exactly the same test with a desktop entry file containing If this was only about fallback icons, the removal of |
Also without a theme change, Anyway, it seems that even with a folder containing many icons, the extra CPU usage is very small. |
I found no reason for using
IconEngine
. Moreover, its removal closes #788