I made 24 x 24 px png , and put the path as following:
runCode_cmd.small_icon = “C:\Users\user1\RubymineProjects\2016test\testproject\images\Run_plugin_24.png”
but still not appear .
shall the images be in specific folder
I made 24 x 24 px png , and put the path as following:
runCode_cmd.small_icon = “C:\Users\user1\RubymineProjects\2016test\testproject\images\Run_plugin_24.png”
but still not appear .
shall the images be in specific folder
Hi,
No it hasn’t to be in a specific folder.
yes I have default image loaded into my toolbar
Replace the '' characters by ‘/’ ones in your path, SU is sensible to that
or let ruby create the path
image_path = File.join(__dir__, "images", "Run_plugin_24.png")
runCode_cmd.small_icon = image_path
john
thanks .it worked fine . problem in the slash direction
Ah yes! In a string in Ruby, a single backslash is the escape character. To get a literal backslash you have to double it. In the end it’s easier to use forward slashes (and its more portable, as only Windows uses backslash for paths!).