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
Large Icons when using fill colours in model tree and editor palette #396
Comments
Assume you mean Archi 4.3? Are you on Retina graphics? If so, right-click on Archi app and "Get Info" should show "Open in Low Resolution" as either checked not checked. Try changing this. I don't know how you are getting a large icon and different color fill in the icon. Can you try with a clean installation of Archi (no plugins) |
I understand why the icons in the palette and the tree are displaying like this in hi-res. The code to do this replaces any non-black pixel in the icon with the new pixel color as set in preferences. This makes the assumption that all lines in the icons are black (red: 0, green: 0, blue: 0) However, in hi-res mode, the 2x version of the icon is used and these contain rasterised lines, which are shades of grey, and these pixels are also being coloured. Clearly this method does not work with icons like this. |
Looking at the palette/tree icon problem further. This cannot be fixed. The 2x icons are not clear enough to do a simple color pixel replacement and will look messy. I'll have to disable this option. As for the larger icons appearing in the diagram, I don't know what is causing this. Note - I don't have access to a Retina Mac, so I can't test this. |
* This does not work at higher screen resolutions * See #396 * Not possible to do this with icons
As for the large icons on the figures themselves I suspect this is caused by Herve's Specialisation plugin. That plugin will display the 2x PNG icon on the figure even if you don't set your own icon. This over-rides Archi's drawing code that draws using Vector graphics. To be sure, test with a clean install of Archi. |
It is effectively possible. Please let me know ... |
When you over-ride drawIcon() in your figures:
This calls SpecializationPlugin.drawIcon() which then gets the image icon with:
So a 2x size icon will be drawn in the figure. These icon images are really only meant to be drawn in the app (tree, palette) not on the diagram. |
I see ... I'll arrange to call super.drawIcon(graphics) if there is no need to replace the icon ... Thanks for the information ... |
Yes, sorry, 4.3.0. |
@rich-biker OK, there are two issues here.
Suggest you uncheck the "Use Fill Colours in model tree and editor palette" preference, |
No need to give up on this, it is enought to recreate 2x icons using a basic pixel doubling algorithm instead of other (usually better or nicer) algorithm. |
Thanks for all the feedback. Note that for the screen shots I provided, I had already deinstalled the Specialisation plug-in, so I do not think that Herve's plugin was affecting this. I have now unticked the fill dialog, and have gone back to standard resolution on my retina MacBook. I've also added specialisation back in. |
The only way that those icons can appear double sized and filled is with the Specialisation plugin installed. Archi itself uses a vector drawing method to draw the icons in code. |
I confirm. I already faced such rendering issue and this is clearly related to the specialization plugin which doesn't call the icon drawing code but instead uses the bitmap generated for the palette.
The plugin is not really uninstall, I bet you can see its name listed in Installation Details (menu Help > About Archi > Installation Details) |
Version of Archi, Operating System
Archi 4.0.3
Mac OS 10.13.6 (High Sierra)
I have removed the specialisation plug in, in case it was this. The behaviour is the same.
Expected Behaviour
Icons should remain the standard size, even if I change the default colours or choose to apply the fill colours to the model tree and editor palette.
Actual Behaviour
The icons on some of the shapes are the colours I set, but are way too large. The corresponding icons in the palette also do the same.
Changing the viewpoint seems to reset the icon size in the palette, but this came back later.
Steps to Reproduce the Behaviour
Import the Mastering ArchiMate colour prefs (or just set your own, I guess?)
(This made the palette icons go large. Changing the viewpoint helped, for a while)
Set the 'Use Fill Colours in model tree and editor palette' setting in General
(This made the icons on some of the same in a view go LARGE, and with the colour I set).
Untick the same pref
(This makes the icons go the correct size and default colour).
Dialog:
Ticked:
UnTicked:
Default Shapes
Palatte:
Log File
archi_log.txt
The text was updated successfully, but these errors were encountered: