El vie, mar 20 2009, Axel Beckert va escriure:
> I though wonder if the previous way could be available as plugin,
> add-on, module or so since I can imagine that there are people who
> prefer to style conkeror differently than the reminder of their
> desktop.
>
I think that it can be possible to create some theme rules specific to Conkeror and store them in your ~/.gtkrc-2.0
As an example, these rules change all colors of all widgets; you can try it:
style "mystyle"
{
xthickness = 1
ythickness = 1
fg[NORMAL] = "#ccc"
fg[ACTIVE] = "black"
fg[PRELIGHT] = "red"
fg[SELECTED] = "#ddbb88"
fg[INSENSITIVE] = "#aaf"
bg[NORMAL] = "#111"
bg[ACTIVE] = "#f70"
bg[PRELIGHT] = "#440"
bg[SELECTED] = "#4c3"
bg[INSENSITIVE] = "#400"
text[NORMAL] = "#ffffff"
text[ACTIVE] = "yellow"
text[PRELIGHT] = "#ffffff"
text[SELECTED] = "#ddbb88"
text[INSENSITIVE] = "#2ff"
base[NORMAL] = "#333"
base[ACTIVE] = "red"
base[PRELIGHT] = "blue"
base[SELECTED] = "#2e2"
base[INSENSITIVE] = "#f61618"
}
widget_class "*" style "mystyle"
style "scrollbar-arrows" {
GtkScrollbar::has-backward-stepper = 0 # top - up arrow
GtkScrollbar::has-forward-stepper = 1 # bottom - down arrow
GtkScrollbar::has-secondary-backward-stepper = 1 # bottom - up arrow
GtkScrollbar::has-secondary-forward-stepper = 0 # top - down arrow
}
class "GtkScrollbar" style "scrollbar-arrows"
On Gtk theming:
-
http://ubuntuforums.org/showthread.php?t=377397-
http://live.gnome.org/GnomeArt/Tutorials/GtkThemesFor Conkeror:
Can someone provide some rules which emulate the former „blackened“ theme but using ~/.gtkrc-2.0?
I did not find how to style scrollbars, since the widget GTKScrollbar has no properties related to colors:
http://library.gnome.org/devel/gtk/unstable/GtkHScrollbar.html I hope someone finds this interesting
-- Daniel
_______________________________________________
Conkeror mailing list
Conkeror@...
https://www.mozdev.org/mailman/listinfo/conkeror