File: jamin_ui.in

package info (click to toggle)
jamin 0.95.0-4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 3,876 kB
  • ctags: 1,372
  • sloc: ansic: 11,501; sh: 8,579; perl: 678; makefile: 127; xml: 96
file content (228 lines) | stat: -rw-r--r-- 6,148 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
# pixmap_path "<dir 1>:<dir 2>:<dir 3>:..."
#

pixmap_path "@prefix@/share/jamin/pixmaps"
 
#
# style <name> [= <name>]
# {
#   <option>
# }
#
# widget <widget_set> style <style_name>
# widget_class <widget_class_set> style <style_name>

# Here is a list of all the possible states.  Note that some do not apply to
# certain widgets.
#
# NORMAL - The normal state of a widget, without the mouse over top of
# it, and not being pressed, etc.
#
# PRELIGHT - When the mouse is over top of the widget, colors defined
# using this state will be in effect.
#
# ACTIVE - When the widget is pressed or clicked it will be active, and
# the attributes assigned by this tag will be in effect.
#
# INSENSITIVE - When a widget is set insensitive, and cannot be
# activated, it will take these attributes.
#
# SELECTED - When an object is selected, it takes these attributes.
#
# Given these states, we can set the attributes of the widgets in each of
# these states using the following directives.
#
# fg - Sets the foreground color of a widget.
# fg - Sets the background color of a widget.
# bg_pixmap - Sets the background of a widget to a tiled pixmap.
# font - Sets the font to be used with the given widget.
#

# This sets a style called "button".  The name is not really important, as
# it is assigned to the actual widgets at the bottom of the file.

#style "example"
#{
#  #This sets the padding around the window to the pixmap specified.
#  #bg_pixmap[<STATE>] = "<pixmap filename>"
#  bg_pixmap[NORMAL] = "gold.xpm"
#  
#  #Sets the background color to red when in the "ACTIVE"
#  #state.
#
#  bg[ACTIVE] = { 1.0, 0, 0 }
#
#}

style "steel"
{
  #This sets the padding around the window to the pixmap specified.
  #bg_pixmap[<STATE>] = "<pixmap filename>"
   	bg_pixmap[NORMAL] = "brushed-steel.png"
   	bg_pixmap[ACTIVE] = "brushed-steel.png"
   	bg_pixmap[PRELIGHT] = "brushed-steel.png"
   	bg_pixmap[INSENSITIVE] = "brushed-steel.png"
   	bg_pixmap[SELECTED] = "brushed-steel.png"

}

style "steelgrey"
{
  #This sets the padding around the window to the pixmap specified.
  #bg_pixmap[<STATE>] = "<pixmap filename>"
   	bg[NORMAL] = { 0.5, 0.5, 0.5 }
   	bg[ACTIVE] = { 0.5, 0.5, 0.5 }
   	bg[PRELIGHT] = { 0.5, 0.5, 0.5 }
   	bg[INSENSITIVE] = { 0.5, 0.5, 0.5 }
   	bg[SELECTED] = { 0.5, 0.5, 0.5 }

}


style "thai-gold"
{

   #Sets the colors for the faders

   	bg_pixmap[NORMAL] = "thai-gold.png"
    	bg_pixmap[ACTIVE] = "thai-gold.png"
  	bg_pixmap[PRELIGHT] = "thai-gold-knobs.png"

   # text and borders

	fg[NORMAL] = { 0.74, 0.85, 0.93 }	# sky blue
	fg[ACTIVE] = { 0.74, 0.85, 0.93 }
	fg[PRELIGHT] = { 0.74, 0.85, 0.93 }
	fg[SELECTED] = { 0.74, 0.85, 0.93 }
	fg[INSENSITIVE] = { 0.5, 0.5, 0.5 }	# grey
	
	bg[NORMAL] = { 0.7, 0.7, 0.7 }		# grey
	bg[INSENSITIVE] = { 0.3, 0.3, 0.3 }	# grey
}

style "button"
{
  # This shows all the possible states for a button.  The only one that
  # doesn't apply is the SELECTED state.
  
  fg[NORMAL] = { 0, 0, 0 } 		# black
  fg[ACTIVE] = {0.32, 0.39, 0.45 } 	# grey blue nee. ardour
  fg[PRELIGHT] = { 0, 0, 0 }
  bg[NORMAL] = {0.32, 0.39, 0.45 }	
  bg[ACTIVE] = { 0, 0, 0 }
  bg[PRELIGHT] = {0.32, 0.39, 0.45 }	
}

# In this example, we inherit the attributes of the "button" style and then
# override the font and background color when prelit to create a new
# "main_button" style.

style "main_button" = "button"
{
  font = "-*-helvetica-medium-r-normal--*-100-*-*-*-*-*-*"
  bg[PRELIGHT] = { 1.0, 0, 0 } 	# red
  bg[NORMAL] = { 1.0, 0, 0 }
  bg[ACTIVE] = { 1.0, 0, 0 }
  fg[NORMAL] = { 1.0, 0, 0 }
  fg[ACTIVE] = { 1.0, 0, 0 }
}

style "toggle_button" = "button"
{
  fg[ACTIVE] = { 1.0, 0, 0 }
  fg[PRELIGHT] = { 1.0, 0, 0 }
  bg[ACTIVE] = {0.32, 0.39, 0.45 }
  # This sets the background pixmap of the toggle_button to that of its
  # parent widget (as defined in the application).
  # bg_pixmap[NORMAL] = "<parent>"
}

style "radio_button" = "steelgrey"
{
  fg[NORMAL] = { 0, 0, 0 }
  fg[ACTIVE] = { 0, 0, 0 }
  fg[PRELIGHT] = { 1.0, 0, 0 }
  fg[SELECTED] = { 0, 0, 0 }
  fg[INSENSITIVE] = { 0, 0, 0 }  
  
}

# This sets the text for everything except the faders and buttons.

style "text" = "steelgrey"
{
	fg[NORMAL] = { 0.74, 0.85, 0.93 }	# sky blue
	fg[ACTIVE] = { 0.74, 0.85, 0.93 }
	fg[PRELIGHT] = { 0.74, 0.85, 0.93 }
	fg[SELECTED] = { 0.74, 0.85, 0.93 }
	fg[INSENSITIVE] = { 0.5, 0.5, 0.5 }	# grey

}

style "menu_text" = "radio_button"

{
	fg[PRELIGHT] = {0.32, 0.39, 0.45 }
	fg[INSENSITIVE] = { 0.5, 0.5, 0.5 }	# grey
	bg[PRELIGHT] = {0.32, 0.39, 0.45 }
	

}

style "sys_label" = "radio_button"

{
	fg[PRELIGHT] = {0.32, 0.39, 0.45 }
	fg[NORMAL] = { 1.0, 1.0, 1.0 }	
	fg[INSENSITIVE] = { 0.5, 0.5, 0.5 }	# grey
	bg[PRELIGHT] = {0.32, 0.39, 0.45 }
	bg[NORMAL] = { 1.0, 1.0, 1.0 }	

}


style "ruler"
{
  font = "-*-helvetica-medium-r-normal--*-80-*-*-*-*-*-*"
}

# pixmap_path "~/.pixmaps"

# These set the widget types to use the styles defined above.
# The widget types are listed in the class hierarchy, but could probably be
# just listed in this document for the users reference.

# Only need to change these next two to get a different bg color

# main window colors
widget_class "GtkWindow" style "steelgrey"

# comps and limiter colors
widget_class "*Gtk*Box" style "steelgrey"

widget_class "*Gtk*Dialog" style "steelgrey"
widget_class "GtkFileSelection" style "steelgrey"

# fader colors
widget_class "*Gtk*Scale" style "thai-gold"


widget_class "*GtkButton*" style "button"
widget_class "*GtkCheckButton*" style "toggle_button"
widget_class "*GtkToggleButton*" style "toggle_button"
widget_class "*GtkCheckMenu*" style "radio_button"
widget_class "*GtkRadioMenu*" style "radio_button"
widget_class "*Ruler" style "ruler"
widget_class "*GtkText" style "text"
widget_class "*Gtk*Label" style "text"
widget_class "*GtkMenuBar*" style "text"
widget_class "*Gtk*Menu" style "text"
widget_class "*GtkOptionMenu*" style "text"

# notebook  color
widget_class "*GtkNotebook" style "text"

# This sets all the buttons that are children of "window1" to
# the main_button style.  These must be documented to be taken advantage of.
widget "window1.*GtkButton*" style "main_button"