It is currently Thu Jun 04, 2026 3:47 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 64 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject: Re: GIMP Themes - Getting Started
PostPosted: Fri Aug 01, 2014 7:47 am  (#41) 
Offline
GimpChat Member

Joined: Jul 29, 2014
Posts: 6
Here is a pretty small one, but fun anyways to be able to control more of the look:

GimpRuler::font-scale = 0.75
#Sets the scale of the ruler. 1 is default, 2 is twice as large.

You can also style it in the colors and fonts that you want.

style "style-gimpruler"
{
     bg[NORMAL] = @bg_color
     font_name = "Segoe UI, semibold 10"
}

and so on...

class "GimpRuler"    style "style-gimpruler"


Top
 Post subject: Re: GIMP Themes - Getting Started
PostPosted: Fri Aug 01, 2014 9:29 am  (#42) 
Offline
GimpChat Member

Joined: Jul 29, 2014
Posts: 6
Question.

Look at this image from one of the users who installed the photoshop-like theme. His forground/backround color button is SQUARE! How is this possible?

Damn, it seems I'm too new a user here to add links...
Search google for gimp photoshop theme, go into the one from the ubuntu forums, and check out the last post.


Top
 Post subject: Re: GIMP Themes - Getting Started
PostPosted: Mon Aug 04, 2014 1:58 pm  (#43) 
Offline
GimpChat Member

Joined: Jul 29, 2014
Posts: 6
I've gotten a bit further. The hardest part is finding the GTK/GIMP code name for each component.

Can anyone help me find out the name(s) of the red-circled ones here. I'm trying to change their inner shadow.

And if it is possible to remove the border around the layers box etc, that would be awesome too.


Attachments:
gimplicity.jpg
gimplicity.jpg [ 252.89 KiB | Viewed 13620 times ]


Last edited by rheus on Mon Aug 04, 2014 3:11 pm, edited 1 time in total.
Top
 Post subject: Re: GIMP Themes - Getting Started
PostPosted: Mon Aug 04, 2014 2:34 pm  (#44) 
Offline
GimpChat Member
User avatar

Joined: Apr 07, 2010
Posts: 14182
your screen shot shows that you are using Sans Pro Bold Italic font, size 18
The three boxes where you have the red oval outline.
top one is Identation of 1st line
middle one, adjust line spacing (increasing the numbers will make more space between the lines, decreasing will made the space less.)
bottom one adjust letter spacing. ( increase number for more spaces between your text)
The white box around your layer shows that you have that layer selected. If you click the eye to the left of it, the selection will be turned off.

_________________
Image


Top
 Post subject: Re: GIMP Themes - Getting Started
PostPosted: Mon Aug 04, 2014 2:42 pm  (#45) 
Offline
GimpChat Member

Joined: Jul 29, 2014
Posts: 6
molly wrote:
your screen shot shows that you are using Sans Pro Bold Italic font, size 18
The three boxes where you have the red oval outline.
top one is Identation of 1st line
middle one, adjust line spacing (increasing the numbers will make more space between the lines, decreasing will made the space less.)
bottom one adjust letter spacing. ( increase number for more spaces between your text)
The white box around your layer shows that you have that layer selected. If you click the eye to the left of it, the selection will be turned off.


Sorry, I wasn't clear enough, but I'm making this theme, and I was wondering what the name for these boxes are for making it. (like GtkEntry, GtkComboBox etc).
I'm trying to remove the shadow programmatically inside the text boxes, but I can't find the names that changes it.

Thanks for trying :)


Top
 Post subject: Re: GIMP Themes - Getting Started
PostPosted: Mon Sep 29, 2014 7:21 am  (#46) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
Here's a brief bit about highlighting menu items:
Attachment:
Untitled.png
Untitled.png [ 21.15 KiB | Viewed 13501 times ]


This is done by being specific about what item you want to style:
style "my_important"
{
  font_name = "sans bold 9"
  fg[NORMAL]        = "red"
}

style "my_ignore"
{
  fg[NORMAL]        = "yellow"
}

widget "GtkWindow.*.script-fu-drop-shadow.GtkAccelLabel" style:highest "my_important"
widget "GtkWindow.*.plug-in-nova.GtkAccelLabel" style:highest "my_important"

widget "GtkWindow.*.plug-in-gflare.GtkAccelLabel" style:highest "my_ignore"


Here we are applying the styles to very specific menu entries - which in this case are the GtkAccelLabel widgets which are used in menus to display the menu text with the associated keyboard shortcut.

You can see in my example that the name of the menu entry contains the function name that can be found using the Procedure and/or Plug-in Browsers
Attachment:
Untitled2.png
Untitled2.png [ 59.28 KiB | Viewed 13500 times ]


Because you can use a * as a wildcard specifier it is possible to have more generic styling:
widget "GtkWindow.*.plug-in*.GtkAccelLabel" style:highest "my_important"
would highlight all the plug-ins.

Also, because I always write my own personal scripts to start "kp24", I can highlight them:
widget "GtkWindow.*kp24*.GtkAccelLabel" style:highest "mine"
Attachment:
Untitled1.png
Untitled1.png [ 19.84 KiB | Viewed 13501 times ]
Where my scripts are highlighted in green and plug-ins coloured #ff8080.

Kevin


Top
 Post subject: Re: GIMP Themes - Getting Started
PostPosted: Thu Oct 16, 2014 7:07 am  (#47) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
Here's a bit about icons:
Attachment:
gimp-tool-icons_options.png
gimp-tool-icons_options.png [ 21.5 KiB | Viewed 13416 times ]


In this example I've replaced the default icons for the airbrush and bucket-fill tools using the symbolic icons. I have also created and referenced a green icon for when the mouse is hovered over the airbrush button (the PRELIGHT state)

It's also obvious from my example that the symbolic icons are the wrong colour for this background as they are too light against the horrible pink.

style "gimp-icons"
{
  stock["gimp-tool-airbrush"] =
  {
    { "stock_icons/tools/stock-tool-airbrush-22.png", *, *, "gtk-button" },
    { "stock_icons/tools/stock-tool-airbrush-22-prelight.png", *, PRELIGHT, "gtk-button" },
    { "stock_icons/tools/stock-tool-airbrush-22.png", *, *, *            }
  }

  stock["gimp-tool-bucket-fill"] =  { { "stock_icons/tools/stock-tool-bucket-fill-22.png" } }
#  stock["gimp-tool-clone"] = { { "stock_icons/gtk-stock/dialog-warning-48.png", *, *, "gtk-button" } }

  stock["gimp-warning"] =
  {
    { "stock_icons/gtk-stock/dialog-warning-22.png", *, *, "gtk-button" },
    { "stock_icons/gtk-stock/dialog-warning-22.png", *, ACTIVE, "gtk-button" },
    { "stock_icons/gtk-stock/dialog-warning-22.png", *, PRELIGHT, "gtk-button" },
    { "stock_icons/gtk-stock/dialog-warning-22.png", *, *, *            },
    { "stock_icons/gtk-stock/dialog-warning-48.png", *, *, "gtk-dialog" }
  }

# GTK_STOCK: http://www.gtk.org/api/2.6/gtk/gtk-Stock-Items.html
#
  stock["gtk-new"] =
  {
    { "stock_icons/gtk-stock/folder-documents-22.png", *, *, "gtk-button" },
    { "stock_icons/gtk-stock/folder-documents-22.png", *, ACTIVE, "gtk-button" },
    { "stock_icons/gtk-stock/folder-documents-22.png", *, PRELIGHT, "gtk-button" },
    { "stock_icons/gtk-stock/folder-documents-22.png", *, *, *            }
  }
  stock["gtk-open"] =
  {
    { "stock_icons/gtk-stock/document-open-22.png", *, *, "gtk-button" },
    { "stock_icons/gtk-stock/document-open-22.png", *, ACTIVE, "gtk-button" },
    { "stock_icons/gtk-stock/document-open-22.png", *, PRELIGHT, "gtk-button" },
    { "stock_icons/gtk-stock/document-open-22.png", *, *, *            }
  }
}

class "GtkWidget" style "gimp-icons"


This code also defines a different sized warning icon for when the icon is used in a gtk-dialog, so that GTK doesn't have to scale the small icon up:
Attachment:
gimp-warning-icon.png
gimp-warning-icon.png [ 30.75 KiB | Viewed 13416 times ]


Finally, here's the toolbox in my current theme using the symbolic icons:
Attachment:
toolbox-symbolic.png
toolbox-symbolic.png [ 21.99 KiB | Viewed 13416 times ]


Kevin


Top
 Post subject: Re: GIMP Themes - Getting Started
PostPosted: Thu Oct 16, 2014 7:50 am  (#48) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
I have started on the icons because I was asked how easy it would be to put together a theme more suited to use on a high resolution display:
Attachment:
big1.png
big1.png [ 43.64 KiB | Viewed 13411 times ]


If anyone is interested in trying this, I've attached the theme as it is (which is most of the big icons missing, but does include all the small (22x22), light coloured symbolic icons I've used so far)

I've been getting the SVG versions of the symbolic icons from
https://github.com/gnome-design-team/gn ... e-symbolic
https://github.com/GNOME/gnome-icon-the ... e/scalable

Kevin


Attachments:
Theme-Big.7z [76.48 KiB]
Downloaded 613 times
Top
 Post subject: Re: GIMP Themes - Getting Started
PostPosted: Wed Jul 04, 2018 6:34 pm  (#49) 
Offline
GimpChat Member

Joined: Jul 03, 2018
Posts: 38
I found oxygen theme (it is only the icons) and fused it with a colour theme, everything is fine except that when you put the mouse over a tool (brush, select, ...) at the left, the description shows with a white square making it unreadable.
Can that square be turned to the theme colour, that is "dark"?


Attachments:
text.png
text.png [ 28.7 KiB | Viewed 12140 times ]
Top
 Post subject: Re: GIMP Themes - Getting Started
PostPosted: Thu Jul 05, 2018 3:48 am  (#50) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
In principle it is possible to theme the tooltips:
Attachment:
Untitled.png
Untitled.png [ 17.77 KiB | Viewed 12128 times ]


You would need to create a new style definition in the gtkrc file:

style "tooltips"
{
  fg[NORMAL] = "red"
  bg[NORMAL]        = "#00ff00"
}


Then use it for tooltip widgets, also in the gtkrc:
widget "*tooltip*"             style:highest "tooltips"


Top
 Post subject: Re: GIMP Themes - Getting Started
PostPosted: Fri Jul 06, 2018 4:25 pm  (#51) 
Offline
GimpChat Member

Joined: Jul 03, 2018
Posts: 38
Did not work in gimp 2.8.22.


Top
 Post subject: Re: GIMP Themes - Getting Started
PostPosted: Fri Jul 06, 2018 4:28 pm  (#52) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
Can you attach your gtkrc file

Note that I am not able to check 2.8.22 as I only have 2.6.7 and 2.10.2


Top
 Post subject: Re: GIMP Themes - Getting Started
PostPosted: Fri Jul 06, 2018 4:36 pm  (#53) 
Offline
GimpChat Member

Joined: Jul 03, 2018
Posts: 38
Here they are, also, they work fine in 2.4 but not 2.6 nor 2.8


Attachments:
themes.zip [902 KiB]
Downloaded 455 times
Top
 Post subject: Re: GIMP Themes - Getting Started
PostPosted: Mon Jul 09, 2018 3:40 am  (#54) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
I took the cinzazul-oxygen theme, edited the gtkrc to match my previous instructions and got this:
Attachment:
Untitled.png
Untitled.png [ 25.44 KiB | Viewed 11612 times ]


You need to make the style assignment line look exactly line this:
widget "*tooltip*"              style:highest "tooltips"


Top
 Post subject: Re: GIMP Themes - Getting Started
PostPosted: Sun Aug 25, 2019 11:55 pm  (#55) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2637
Location: Poland
Hi Kevin.

In post # 46
viewtopic.php?f=23&t=10531&hilit=gtkrc&start=40#p150107

You showed how to highlight a group of plugins.
I would like to recognize by color whether it is script (* .scm), plugin (* .py) or program (* .exe).
Have you tested the possibility of this edition of gtkrc for Gimp 2.10 ?
Any tips on whether and how you can get it badly needed.

_________________
Image


Top
 Post subject: Re: GIMP Themes - Getting Started
PostPosted: Tue Aug 27, 2019 5:41 am  (#56) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
Hi MareroQ

I've not done much with the GIMP 2.10 themes, other than creating a basic mid-Grey theme that suits me better than those supplied.

This seems to work:
style "python"
{
  fg[NORMAL]        = "#00ffff"
  fg[PRELIGHT]      = "#ff00ff"
  fg[SELECTED]      = "#ff00ff"
  fg[ACTIVE]        = "#ff00ff"
  fg[INSENSITIVE]   = "#808080"
}
widget "*python-fu*" style:highest "python"

style "script-fu"
{
  fg[NORMAL]        = "#ff80ff"
  fg[PRELIGHT]      = "#ff00ff"
  fg[SELECTED]      = "#ff00ff"
  fg[ACTIVE]        = "#ff00ff"
  fg[INSENSITIVE]   = "#808080"
}
widget "*script-fu*" style:highest "script-fu"

style "plug-in"
{
  fg[NORMAL]        = "#ff8080"
  fg[PRELIGHT]      = "#ff00ff"
  fg[SELECTED]      = "#ff00ff"
  fg[ACTIVE]        = "#ff00ff"
  fg[INSENSITIVE]   = "#808080"
}
widget "*plug-in*" style:highest "plug-in"

Attachment:
Untitled.png
Untitled.png [ 60.08 KiB | Viewed 10136 times ]


Kevin


Top
 Post subject: Re: GIMP Themes - Getting Started
PostPosted: Tue Aug 27, 2019 7:03 am  (#57) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2637
Location: Poland
Thank you very much for your quick reply.

I have no experience in this.
I have pasted your code into the Dark theme (Gimp 2.10.12 setup3 from gimp.org).
It works according to my request in 95%.
I don't know why in some cases it doesn't work or breaks the type.
I will continue to experiment slowly because you showed me that it is possible and a way to solve it.
Does your own topic work 100% and if so - can you share it here?

Once again, thank you very much on my own behalf and for the visually impaired (with whom I will probably conduct a few classes about Gimp - and on the basis of different colors it will be easier for me to explain the differences).


Attachments:
New gtkrc Dark.png
New gtkrc Dark.png [ 17.55 KiB | Viewed 10126 times ]

_________________
Image
Top
 Post subject: Re: GIMP Themes - Getting Started
PostPosted: Tue Aug 27, 2019 8:01 am  (#58) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
The code I posted is all the code I tried.

I don't have any extra script-fu/python-fu/plug-ins other than the things I've written.

I thought I'd try to find the first, Spyrogimp, and download it, BUT the first hit on Google points me to the Script-Fu version, so I think you need to check that you haven't got the old script-fu version as well as the newer python-fu version.

If you can point me to a place to download some of the others, I'll try and find out why they don't work.


Top
 Post subject: Re: GIMP Themes - Getting Started
PostPosted: Tue Aug 27, 2019 9:14 am  (#59) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2637
Location: Poland
Spyrogimp in Gimp 2.10.12 is installed originally
Filters/Render/Spyrogimp...
(c:\Program Files\GIMP 2\lib\gimp\2.0\plug-ins\spyro_plus\spyro_plus.py)

QWERTY 256(textes_002_gimp-2.10.scm in zip)
Filters/Render/QWERTY 256

Plugin Pfeil zeichnen"HN-Pfeil-zeichnen.py
viewtopic.php?f=9&t=17218

210_effects_CarTOONize.scm
viewtopic.php?f=9&t=17628&hilit=CarTOONize#p241814


Attachments:
textes_002_gimp-2.10.zip [9.49 KiB]
Downloaded 394 times

_________________
Image
Top
 Post subject: Re: GIMP Themes - Getting Started
PostPosted: Tue Aug 27, 2019 10:55 am  (#60) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
GIMP 2.10.12 appears to ship with both versions of Spyrogimp, so I'm guess there's a conflict with the menu registration (although the script-fu version doesn't register itself in the menus)

Plugin Pfeil zeichnen"HN-Pfeil-zeichnen.py doesn't use the standard registration method, so it doesn't get a widget name that includes "python-fu", so it doesn't get picked-up by the
widget "*python-fu*" style:highest "python" line

Similarly, 210_effects_CarTOONize.scm doesn't register with "script-fu" in it's name, so doesn't get picked-up by
widget "*script-fu*" style:highest "script-fu"
(It's normal for script-fu scripts to prefix the name with script-fu i.e. script-fu-add-bevel)

And who knows what Lua and JavaScript scripts will do:
https://mobile.twitter.com/zemarmot/sta ... 445952?p=v


Top
Post new topic Reply to topic  [ 64 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group