Gtkrc

From LXDE.org
Jump to: navigation, search

Unofficial Documentation of the Ported Industrial Theme's gtkrc File

This file is composed of two main sections: style definitions and gtk widget creation commands.

This first style section describes how LXDM draws its background. Edit the file= attribute in order to change the background image.

style "back"

{
engine "pixmap"
{
image
{
function = FLAT_BOX
shadow=NONE
state = NORMAL
file="wave.svg"
stretch=TRUE
detail = "base"
}
}
}

This section defines the time and prompt styles by describing the formatting of the time display and the login/password prompt (established as objects in the greeter.ui file). Edit the fg[normal]= attribute to change the respective text color. Edit the font_name= attribute to change the font/size.

style "time"

{
fg[NORMAL]="#ffffff"
font_name="Sans 12"
}

style "prompt"

{
fg[NORMAL]="#000000"
font_name="Sans Bold 14"
}

This section defines the style of the bottom event bar and describes the formatting of the sessions, language, and exit functions. Edit the font_name= property in order to change font and size of the text displayed for the sessions, language, keyboard layout, and exit elements. Edit the fg[NORMAL]= property to change the color of the displayed text of those elements. The image element property file=shade.png is, it seems, a completely transparent image. I wouldn't recommend altering it...unless it suits some specific purpose.

# Normally this won't paint an invisible event box, but we did some hacks in greeter.c.
style "bottom"

{
font_name="Sans 12"
fg[NORMAL] = "#9E9D9B"
engine "pixmap"
{
image
{
function = FLAT_BOX
file="shade.png"
stretch=TRUE
detail="eventbox"
}
}
}

This section makes widgets out of the above style sections.

widget "lxdm" style "back"
widget "lxdm.*.time" style "time"
widget "lxdm.*.prompt" style "prompt"
widget "lxdm.*.bottom_pane" style "bottom"
widget_class "GtkWindow.*.GtkEventBox.*.<GtkLabel>" style "bottom"