If you'd like to upload plug-ins, please create an account below. Otherwise (e.g. for download or commenting) you do not need one! Enjoy :-)
This is an adaption of a script that I found (not sure where now but possible to re-find by searching on google). The name under the registration was Lucas Pettett so I guess it was his.
Originally it took some colours and text and produced a vista style button with a gradient dark part and light part horizontally divided. The corners were rounded and it had a border.
I have added the following things (so I can quickly create buttons for some of the applications I am working on):
I'm not a script-fu programmer so most of this is trial and error and would probably benefit from some expert scrutiny.
The GIMP I'm using is 2.6 on windows so I don't know if it works elsewhere.
(examples attached below)
| Attachment | Size |
|---|---|
| v_but_0.png | 4.84 KB |
| v_but_1.png | 4.01 KB |
| v_but_3.png | 5.43 KB |
| vista_button.scm | 5.28 KB |
Comments
You script file does not
You script file does not mention that it is in the Public Domain, please add this.
Love it but...
This is a nice plugin, there's just one thing I wish...
Can you make it so that you can disable the rounded corners? I need a square cornered button.
Thanx
-Brandon
Brandon Should work OK now
Brandon
Should work OK now with:
- corner radius set to 0 (no error trapping so negative values crash it)
- zero length text string doesn't produce text layer
- toggle 2nd and 3rd style buttons on and off
Good luck with it
Patrick
Please, make it internationalized
It works fine in Gimp pt-br (Brazilian Portuguese) after I changed "FG to Transparent" to "Frente para transparente". I do not know if Script-Fu is able to make i18n-compatible strings. If not, it should be a feature request to the developers.
good point
Thanks for the comment. I don't really know much about these scripts but when I looked at the line you mentioned it seemed redundant as the following one:
(gimp-edit-blend layerhighlight FG-TRANSPARENT-MODE ...seems to specify the job required, and when I comment out the line you had to translate, the script seems to work just as well!