Commit 657c39dc authored by Jehan's avatar Jehan

plug-ins, themes: use the "normal text" color as stdout color of...

... the python console.
It was using "selected text", which is most often inverted color (close
if not identical to the background color). As a consequence, it made
stdout output unreadable by default, forcing themes to always define a
style for the python console. Using "normal text" is a much better
choice to default to something readable from a parent style.

As a consequence, I also removed "python-fu-console" styling from the
System theme, where there should be as few theming as possible.
parent a7677c86
......@@ -97,7 +97,7 @@ def do_console():
def style_set(self, old_style, user_data):
style = self.get_style ()
self.cons.stdout_tag.set_property ("foreground", style.text[gtk.STATE_SELECTED])
self.cons.stdout_tag.set_property ("foreground", style.text[gtk.STATE_NORMAL])
self.cons.stderr_tag.set_property ("foreground", style.text[gtk.STATE_INSENSITIVE])
def response(self, dialog, response_id):
......
......@@ -2477,7 +2477,7 @@ widget "GtkMenuItem" style "ubuntu-fix-menu-item"
style "dark-python-console"
{
text[SELECTED] = "#8f8"
text[NORMAL] = "#8f8"
text[INSENSITIVE] = "#f88"
}
......
......@@ -2503,7 +2503,7 @@ widget "GtkMenuItem" style "ubuntu-fix-menu-item"
style "dark-python-console"
{
text[SELECTED] = "#8f8"
text[NORMAL] = "#8f8"
text[INSENSITIVE] = "#f88"
}
......
......@@ -2514,7 +2514,7 @@ widget "GtkMenuItem" style "ubuntu-fix-menu-item"
style "gray-python-console"
{
text[SELECTED] = "#080"
text[NORMAL] = "#080"
text[INSENSITIVE] = "#800"
}
......
......@@ -2514,7 +2514,7 @@ widget "GtkMenuItem" style "ubuntu-fix-menu-item"
style "light-python-console"
{
text[SELECTED] = "#080"
text[NORMAL] = "#080"
text[INSENSITIVE] = "#800"
}
......
......@@ -2520,7 +2520,7 @@ widget "GtkMenuItem" style "ubuntu-fix-menu-item"
style "light-python-console"
{
text[SELECTED] = "#080"
text[NORMAL] = "#080"
text[INSENSITIVE] = "#800"
}
......
......@@ -105,11 +105,3 @@ style "gimp-display-style" = "gimp-default-style"
}
widget "*GimpDisplayShell.*" style "gimp-display-style"
style "gimp-python-console"
{
text[SELECTED] = "#080"
text[INSENSITIVE] = "#800"
}
widget "python-fu-console" style "gimp-python-console"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment