-
Theme Extension question
I'm working on a theme. When adding sidebar icons, I see the images used in other themes are approx 100px x 100px. So, I made my icons 100x100... and they turn out TINY. I'm supposing that DPI has something to do with it, so I inspect my image - 1100dpi. A button from FGPro is 72DPI. Hmm, I says... so I change the DPI of my 100x100 image to 72dpi and try again... nope, still tiny.
Anyone have an idea of what I am missing here?
Thanks!
G
-
You might have to share an image an the xml code...
-
Check your setting in your image editor also.
DPI is only used for printing. Paper has inches.
Screens have pixels.
-
I suspect the images are being sized based upon the windowclass you are placing them in. As damned said, you'll need to share your code.
-
Yeah DPI doesn't effect screen viewing size it is the Pixels you have set. If you can share the code around one of your buttons we can probably "fix" it for you.
-
2 Attachment(s)
Code:
<root>
<!-- Logo - referenced by name "diehard" -->
<icon name="nsg" file="graphics/icons/nsg.png" />
<!-- Sidebar -->
<icon name="button_characters" file="graphics/sidebar/workman.png" />
<icon name="button_characters_down" file="graphics/sidebar/workman.png" />
</root>
(edited for brevity)
Attachment 24669
Attachment 24670
Note that all of the other sidebar icons *were* normal size until I added the included workman.png, now they have all resized.
Thank You to all who are helping! THIS is why our community is the best!
(And yes, I am hacking the Strahd theme :) )
-
Please attach the actual icon file that you have in the extension.
graphics/sidebar/workman.png
-
1 Attachment(s)
@damned - I did, it's in the post above.
Edit: I see why there might be confusion. In the screenshot, the icon has a wooden shield behind the "workman". The version in the screenshot is an earlier iteration when I was trying to sort this out; I pasted the workman on top of another sidebar icon (the wood shield) to see if I liked the effect. In both cases, including with the workman.png I included above, I'm seeing the resized behavior.
Here is a new screenshot with the *exact* workman.png linked above:
Attachment 24671
-
workman.png should be a round circle with a man inside... i need that file...
-
I think damned was saying to attach the actual png file, not a screen shot of it.