working with icons - img fix
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 520 B After Width: | Height: | Size: 520 B |
Before Width: | Height: | Size: 1011 B After Width: | Height: | Size: 1011 B |
Before Width: | Height: | Size: 1009 B After Width: | Height: | Size: 1009 B |
Before Width: | Height: | Size: 506 B After Width: | Height: | Size: 506 B |
@ -12,7 +12,7 @@ This page describes how to organize your work with icons and images under Intell
|
||||
|
||||
The best way to deal with icons and other image resources is to put them to a dedicated source root, say *"icons"* or *"resources"*.
|
||||
|
||||

|
||||

|
||||
|
||||
Then you should use ```getIcon()``` method of ```com.intellij.openapi.util.IconLoader``` class in your code to get access icons.
|
||||
You can define a class or an interface with icon constants:
|
||||
@ -65,10 +65,10 @@ So, always use ```IconLoader.getIcon("/iconName.png")```.
|
||||
Here are examples of *toolWindowStructure.png* icon representations:
|
||||
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
All icon variants should be in the same directory.
|
||||
In some cases you can skip dark variants if the original icon looks good under Darcula.
|
||||
|