Gimp-Forum.net
Can't change the color of inactive options in Menu bar. - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions)
+--- Thread: Can't change the color of inactive options in Menu bar. (/Thread-Can-t-change-the-color-of-inactive-options-in-Menu-bar)



Can't change the color of inactive options in Menu bar. - justusr846 - 09-29-2017

I've been making some changes to a duplicate of the default Dark theme provided by GIMP 2.9.7 via the 'gtkrc' file to suit my requirements.

Most of the UI seem fine now, but I can't find the right modifier to change the font color of the inactive options in the Menu bar (it doesn't go well with the dark theme).

However when I change the values of 'text[NORMAL]' of 'gimp-dark-list-header-style' in gtkrc from empty to any two digit hexadecimal value, the color of the menu font (active options included) and docked panels changes to white.


From the gtkrc file:

style "gimp-dark-list-header-style"

{
  #Comment out the ythickness setting below for thicker column headers.
  #ythickness = 0

  GtkTreeView::odd_row_color = "#828282"
  GtkTreeView::even_row_color = "#828282"

  #
  # set custom header text color here
  #

  #fg[NORMAL] = "#00F"
  #fg[PRELIGHT] = "#00F"
  #fg[SELECTED] = "#00F"
  #fg[INSENSITIVE] = "#00F"
  #fg[ACTIVE] = "#00F"

  #
  # set custom text color here
  #

  text[NORMAL] = "#"
  #text[PRELIGHT] = "#FF0"
  #text[SELECTED] = "#FF0"
  #text[INSENSITIVE] = "#FF0"
  #text[ACTIVE] = "#FF0"


[attachment=777]


Any value above 2 digits reverts it to the default color.



How will I be able to solve this?

Thank you beforehand for any help.   Smile


RE: Can't change the color of inactive options in Menu bar. - rich2005 - 09-30-2017

I had a dabble with my Gimp 2.9.7 and the Dark theme. I could change a few things but not 'inactive' colour, but then I am no expert.
Have you tried adding your 'bespoke colours as clr10/11/....in the global definitions beginning of the file.

Code:
style "gimp-dark-default-style"
{
#  font_name = "Sans 11"

  color["clr1"]  = "#EEEEEE"
  color["clr2"]  = "#FFFFFF"
  color["clr3"]  = "#C1C1C1"
  color["clr4"]  = "#383838"
  color["clr5"]  = "#555555"
  color["clr6"]  = "#828282"
  color["clr7"]  = "#3B3B3B"
  color["clr8"]  = "#383838"
  color["clr9"]  = "#4D4D4D"
  color["clr10"] = "#00FFFF"
  color["clr11"] = "#D4C7AA"

  fg[NORMAL] = @clr1
#### snipped a lot out #####
  base[INSENSITIVE] = @clr8

  text[NORMAL] = @clr10 # <<<<<<<<< blue
  text[PRELIGHT] = @clr11 #<<<<<<<< yellow/grey-ish
  text[ACTIVE] = @clr1
  text[SELECTED] = @clr1
  text[INSENSITIVE] = @clr9

gives this, maybe not the best colours but at least not invisible.

[Image: 4ve2Sfx.jpg]

When it comes to the subject 'inactive colors' I would not hold out much hope at the moment.

There is this: https://www.gimp.org/news/2016/07/13/gimp-2-9-4-released/

With the understatement of year.

quote: Note that we still consider this feature a work in progress, as dark themes still need some fine-tuning (especially regarding the color of inactive menu items).

As an afterthought, which version of linux and DE are you using. Might help someone give better information.


RE: Can't change the color of inactive options in Menu bar. - justusr846 - 09-30-2017

Sorry, the panels changing color was just a side effect of me trying to change the font color of inactive options. I had set the panel color to another dark theme, so the text is visible. I'll try changing the colors anyway as you mentioned however. Big Grin

I did read somewhere about the inactive options' colors being hard-coded into gimp or something and so couldn't be changed, but it did change when I modified that value. Tongue So I thought it could be modified through gtkrc.



I use Ubuntu 17.04 with GNOME desktop.