#GUI tips about icons
1 messages · Page 1 of 1 (latest)
<@&987246487241105418> please have a look, thanks.
Here is an AI assisted attempt to answer your question 🤖. Maybe it helps! In any case, a human is on the way 👍. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.
To ensure that your icons maintain their quality when compressed for use in software, here are some tips:
-
Start with high-resolution icons: Begin with high-quality, vector-based icons that can be easily scaled without losing detail. This will provide a solid foundation for the icon design.
-
Keep it simple: Icons should be visually clear and easily recognizable at smaller sizes. Avoid intricate details or excessive complexity that may get lost when compressed.
-
Use appropriate sizes: Create icons in various sizes to accommodate different display resolutions and device types. Design separate versions for small, medium, and large sizes to ensure optimal clarity.
-
Optimize file formats: Choose appropriate file formats like SVG (Scalable Vector Graphics) or PNG (Portable Network Graphics) for your icons. SVG files are resolution-independent and can scale without losing quality, while PNG files offer transparency support.
-
Pay attention to contrast: Ensure that the icon's colors have sufficient contrast against the background they will be displayed on. This will help maintain visibility and legibility even after compression.
-
Test across devices: Preview your icons on different devices and operating systems to ensure they appear as intended across various platforms. This will help identify any potential issues caused by compression or scaling.
-
Minimize compression artifacts: When compressing icons, use appropriate settings to minimize compression artifacts such as blurring or pixelation. Experiment with different compression algorithms or tools to find the best balance between file size and visual quality.
-
Seek professional help if needed: If you lack design skills or require highly polished icons, consider hiring a professional graphic designer who specializes in iconography to create custom icons tailored specifically for your software.
Remember, maintaining visual quality after compression is a challenge due to limited file size constraints in software applications. However, following these tips should help you achieve better-looking icons even after compression.
noticed that on this picture is not perceived how bad the quality was
I see Its bad
Might be aliasing or dithering
Change that setting
you mean to implement such thing to increase quality?
where ? sorry
never made such change
What code define the icon
-fx-background-image: url("file:///C:/Users/HP/eclipse-workspace/HelloJavaFX/src/application/icons/playakaloadhq.png")
and
<Button id="btn_refresh" layoutX="515.0" layoutY="39.0" mnemonicParsing="false" onAction="#refreshPage" prefHeight="25.0" prefWidth="33.0" styleClass="btn_re_at" stylesheets="@styleb.css" textAlignment="RIGHT" AnchorPane.rightAnchor="209.0" />
So i think you can add a setting in the button to tweak this
Either that or there is an imagebutton option
not on scene builder, i will check about settings, would it be anti-aliasing?
=[
what if theres no dithering option in my code? (to remove)
heard about some packs can be installed with maven ( since fontawesome couldnt be installed by gyphs browser here) but the best thing would be understanding how to customize and apply my own icons
=[
anyone else with tips? 😦
how big is the original image? looks like it's being scaled down a lot
which file format are you using?
rasterized images dont scale very well. i'd recommend converting to a vectorized image, scaling that down, then coverting it back to a rasterized image
id recommend using vectorized image files, but javafx doesnt have good support for loading vectors from files
why not use SVGs if you're not using them? (seems to be the case)
PNG, well i tried once i think since i used CSS to make the background of the button and didnt run .svg format, you know how to implement?
tried with a 45x45 px both bigger and smaller shows messy
yes
tell 
what Dioxin and I said
any idea of how many pixels x pixel is a button like that approximately. I will try to do so with svg and adobe ilustrator
i could manage a svg path that changes the button background actually but i faced other problem, the only working path changes the color of my button to light grey instead of the original black. Whats the reason for such? also could fix such through css stylization but no sucess on resizing to smaller than the following picture
as you can see into this picture the icons got better as i customized but i have the error of this refresh button pic stated into the picture, anyone help me?
solved this git app merges the pathways : https://yqnn.github.io/svg-path-editor/ for those who need help i can teach how i fixed all issues
Online editor to create and manipulate SVG paths
found other problem related to all this, my svg file makes the icon/button small, is it possible to set around the button with a colored space that makes the button bigger?
Goodness
Colored padding?