# --- PearL----------------------------------------------------------#

Display Pearl_user {
	driver		'DPF'
	port		'usb0'
	font		'6x8'
	size		'320x240'
	basecolor	'000000'	#RAL 9005 Tiefschwarz
	foreground	'ffffff'	#RAL 9010 Reinweiß
	background	'00000000'	#RAL 9005 Tiefschwarz
	backlight	file::readline('/tmp/lcd/brightness', 1)
}

# --- Samsung SPF-Auto --------------------------------------------- #

Display Samsung800x600_user {
	driver		'SamsungSPF'
	model		'SPF-Auto'
	port		'usb0'
	font		'6x8'
	size		'800x600'
	basecolor	'000000'
	foreground	'ffffff'	#RAL 9010 Reinweiß
	background	'00000000'	#RAL 9005 Tiefschwarz
	orientation	1
}

Display Samsung800x480_user {
	driver		'SamsungSPF'
	model		'SPF-Auto'
	port		'usb0'
	font		'6x8'
	size		'800x480'
	basecolor	'000000'
	foreground	'ffffff'	#RAL 9010 Reinweiß
	background	'00000000'	#RAL 9005 Tiefschwarz
	orientation	1
}

Display Samsung1024x600_user {
	driver		'SamsungSPF'
	model		'SPF-Auto'
	port		'usb0'
	font		'6x8'
	size		'1024x600'
	basecolor	'000000'
	foreground	'ffffff'	#RAL 9010 Reinweiß
	background	'00000000'	#RAL 9005 Tiefschwarz
	orientation	1
}

# ---Pearl Widgets -------------------------------------------------------#

Widget Pearl_LOGO {
	class		'Image'
	file		file::exist('/tmp/lcd/menu') == 1 ? ICONS . 'menu.png' : file::readline('/tmp/lcd/logo', 1)
	visible		file::exist('/tmp/lcd/menu') == 1 ? 1 : file::readline('/tmp/lcd/mode_logo', 1)
	update		3300
	center		55
	scale		100
	width		320
	height		60
	reload		1
}

Widget Pearl_SERVICE {
	class		'Truetype'
	expression	file::exist('/tmp/lcd/menu') == 1 ? '' : (file::readline('/tmp/lcd/mode_logo', 1) == 1 ? '' : file::readline('/tmp/lcd/service', 1))
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'ffffff'	#RAL 9010 Reinweiß
	update		3000
	align		'C'
	width		320
	height		60
	reload		1
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget Pearl_EVENT {
	class		'Truetype'
	expression	file::exist('/tmp/lcd/menu') == 1 ? file::readline('/tmp/lcd/menu', 1) : file::readline('/tmp/lcd/event', 1)
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'00f700'	#RAL 6038 Leuchtgrün
	align		'L'
	width		320
	height		36
	update		5000
	reload		1
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget Pearl_PROGRESS {
	class		'Bar'
	expression	0
	expression2	file::exist('/tmp/lcd/menu') == 1 ? 0 : file::readline('/tmp/lcd/progress', 1)
	min		0
	max		100
	length		27
	update		5000
	foreground	'f70000ff'	#RAL 3024 Leuchtrot
	barcolor0	'00000000'	#RAL 9005 Tiefschwarz
}

Widget Pearl_START {
	class		'Truetype'
	expression	file::exist('/tmp/lcd/menu') == 1 | file::readline('/tmp/lcd/event', 1) le '' ? '' : file::readline('/tmp/lcd/start', 1)
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'c4caca'	#RAL 7025 Lichtgrau
	align		'L'
	width		70
	height		36
	update		5000
	reload		1
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget Pearl_END {
	class		'Truetype'
	expression	file::exist('/tmp/lcd/menu') == 1 | file::readline('/tmp/lcd/event', 1) le '' ? '' : file::readline('/tmp/lcd/end', 1)
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'c4caca'	#RAL 7025 Lichtgrau
	align		'R'
	width		70
	height		36
	update		5000
	reload		1
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget Pearl_DURATION {
	class		'Text'
	expression	file::exist('/tmp/lcd/menu') == 1 ? '' : file::readline('/tmp/lcd/duration', 1)
	align		'R'
	width		13
	update		1000
	foreground	'c4caca'	#RAL 7025 Lichtgrau
}

Widget Pearl_DURATION_BJ {
	class		'Truetype'
	expression	file::exist('/tmp/lcd/menu') == 1 ? '' : file::readline('/tmp/lcd/duration', 2)
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'f70000'	#RAL 3024 Leuchtrot
	align		'R'
	width		49
	height		20
	update		5000
	reload		1
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget Pearl_DURATION_BE {
	class		'Truetype'
	expression	file::exist('/tmp/lcd/menu') == 1 ? '' : file::readline('/tmp/lcd/duration', 3)
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'00f700'	#RAL 6038 Leuchtgrün
	align		'L'
	width		50
	height		20
	update		5000
	reload		1
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget Pearl_DURATION_KPL {
	class		'Truetype'
	expression	file::exist('/tmp/lcd/menu') == 1 ? '' : file::readline('/tmp/lcd/duration', 4)
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'c4caca'	#RAL 7025 Lichtgrau
	align		'C'
	width		50
	height		20
	update		5000
	reload		1
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget Pearl_LEFT {
	class		'Truetype'
	expression	file::exist('/tmp/lcd/menu') == 1 ? '' : '>'
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'c4caca'	#RAL 7025 Lichtgrau
	align		'R'
	width		15
	height		20
	update		5000
	reload		1
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget Pearl_RIGHT {
	class		'Truetype'
	expression	file::exist('/tmp/lcd/menu') == 1 ? '' : '<'
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'c4caca'	#RAL 7025 Lichtgrau
	align		'L'
	width		15
	height		20
	update		5000
	reload		1
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget Pearl_TIME {
	class		'Truetype'
	expression	strftime('%H:%M', time())
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'c4caca'	#RAL 7025 Lichtgrau
	align		'C'
	width		198
	height		51
	update		5000
	reload		1
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

# --- general mode-icons ---------------------------------------------------- #

Widget Pearl_ICON_ECM {
	class		'Image'
	file		ICONS . 'mode/ecm_' . file::readline('/tmp/lcd/mode_ecm', 1) . '.png'
	update		10000
	reload		1
}

Widget Pearl_ICON_S_CAMDD {
	class		'Image'
	file		ICONS . 'mode/camd_' . file::readline('/tmp/lcd/mode_camd', 1) . '.png'
	update		4000
	reload		1
	align		'R'
}

Widget Pearl_ICON_S_CI {
	class		'Image'
	file		ICONS . 'mode/ci_' . file::readline('/tmp/lcd/mode_cam', 1) . '.png'
	update		4000
	reload		1
	align		'R'
}

Widget Pearl_ICON_S_CAMD {
	class		'Image'
	file		file::exist(DOSCAM) == 1 ? ICONS . 'mode/camd_doscam.png' : ( file::exist(OSCAM) == 1 ? ICONS . 'mode/camd_oscam.png' :  ( file::exist(OSMOD) == 1 ? ICONS . 'mode/camd_osmod.png' :  ( file::exist(GBOX) == 1 ? ICONS . 'mode/camd_gbox.png' :  ( file::exist(CCCAM) == 1 ? ICONS . 'mode/camd_cccam.png' :  ( file::exist(MGCAMD) == 1 ? ICONS . 'mode/camd_mgcamd.png' :  ( file::exist(NCAM) == 1 ? ICONS . 'mode/camd_ncam.png' :  ICONS . 'mode/camd_off.png' ) ) ) ) ) )
	update		4000
	reload		1
	align		'R'
}

Widget Pearl_ICON_TIMER {
	class		'Image'
	file		ICONS . 'mode/timer_' . file::readline('/tmp/lcd/mode_timer', 1) . '.png'
	update		10000
	reload		1
}

Widget Pearl_ICON_REC {
	class		'Image'
	file		ICONS . 'mode/rec_' . file::readline('/tmp/lcd/mode_rec', 1) . '.png'
	update		10000
	reload		1
}

Widget Pearl_ICON_TS {
	class		'Image'
	file		ICONS . 'mode/ts_' . file::readline('/tmp/lcd/mode_tshift', 1) . '.png'
	update		10000
	reload		1
}

Widget Pearl_STRIPE {
	class		'Image'
	file		ICONS . 'mode/stripe.png'
	update		10000
	reload		1
}

Widget Pearl_BAR {
	class		'Image'
	file		file::exist('/tmp/lcd/menu') == 1 ? ICONS . 'bar1.png' : ICONS . 'bar2.png'
	update		5000
	reload		1
}

Widget Pearl_DURATION1 {
	class		'Truetype'
	expression	'DURATION'
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'484b52'	#RAL 7024 Graphitgrau
	align		'L'
	width		80
	height		15
	update		0
	reload		1
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget Pearl_SERVICE1 {
	class		'Truetype'
	expression	'SERVICE'
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'484b52'	#RAL 7024 Graphitgrau
	align		'L'
	width		70
	height		15
	update		0
	reload		1
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget Pearl_EVENT1 {
	class		'Truetype'
	expression	'EVENT'
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'484b52'	#RAL 7024 Graphitgrau
	align		'L'
	width		50
	height		15
	update		0
	reload		1
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget Pearl_TIME1 {
	class		'Truetype'
	expression	'TIME'
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'484b52'	#RAL 7024 Graphitgrau
	align		'L'
	width		40
	height		15
	update		0
	reload		1
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget Pearl_VOLUME {
	class		'Truetype'
	expression	'VOL:'
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'484b52'	#RAL 7024 Graphitgrau
	align		'R'
	width		40
	height		15
	update		0
	reload		1
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget Pearl_VOLUME1 {
	class		'Truetype'
	expression	file::readline('/tmp/lcd/volume', 1)
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'ffffff00'	#RAL 9010 Reinweiß
	update		3000
	reload		1
	inverted	0
	size		0
	width		40
	height		20
	align		'C'
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget Pearl_HST {
	class		'Truetype'
	expression	file::readline('/tmp/lcd/brightness', 1)
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'484b52'	#RAL 7024 Graphitgrau
	width		20
	height		15
	align		'L'
	update		4000
	reload		1
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget Pearl_RES320x240 {
	class		'Truetype'
	expression	file::readline('/usr/share/lcd/icons/spf.txt', 11)
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'484b52'	#RAL 7024 Graphitgrau
	width		60
	height		15
	align		'R'
	update		0
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

# --- the background -------------------------------------------------------- #

Widget Pearl_BACKGROUND {
	class		'Image'
	file		ICONS . 'background/' . file::readline('/tmp/lcd/layout', 1) . '.png'
	update		0
}

# --- the digital clock ----------------------------------------------------- #

Widget Pearl_HOUR1_ {
	class		'image'
	file		file::exist(FCLOCK) == 1 ? ICONS . 'blank.png' : ICONS . 'clock/digital/' . substr(strftime('%H', time()), 0, 1) . '.png'
	update		10000
	reload		1
}

Widget Pearl_HOUR_1 {
	class		'image'
	file		file::exist(FCLOCK) == 1 ? ICONS . 'blank.png' : ICONS . 'clock/digital/' . substr(strftime('%H', time()), 1) . '.png'
	update		10000
	reload		1
}

Widget Pearl_DP {
	class		'Image'
	file		file::exist(FCLOCK) == 1 ? ICONS . 'blank.png' : ICONS . 'clock/digital/dp.png'
	update		0
}

Widget Pearl_MIN1_ {
	class		'image'
	file		file::exist(FCLOCK) == 1 ? ICONS . 'blank.png' : ICONS . 'clock/digital/' . substr(strftime('%M', time()), 0, 1) . '.png'
	update		10000
	reload		1
}

Widget Pearl_MIN_1 {
	class		'image'
	file		file::exist(FCLOCK) == 1 ? ICONS . 'blank.png' : ICONS . 'clock/digital/' . substr(strftime('%M', time()), 1) . '.png'
	update		10000
	reload		1
}

# --- weather ----------------------------------------------------------- #

Widget ICON_WEATHER {
	class		'Image'
	file		file::exist(FWEATHER) == 0 ? '' : ICONS . 'mode/weather_on.png'
	update		10000
	reload		1
}

Widget ICON_WEATHER1 {
	class		'Image'
	file		file::exist(FWEATHER) == 0 ? ICONS . 'mode/weather_off.png' : ICONS . 'mode/weather_on.png'
	update		10000
	reload		1
	scale		270
}

Widget ICON_WEATHER2 {
	class		'Image'
	file		file::exist(FWEATHER) == 0 ? ICONS . 'mode/weather_off.png' : ICONS . 'mode/weather_on.png'
	update		10000
	reload		1
	scale		200
}

Widget S_WIND {
	class		'Image'
	file		file::exist(FWEATHER) == 0 ? '' :  (VAR0=file::readline(W . 'wind', 1); VAR1=substr(VAR0, strstr(VAR0, '|') + 1); VAR2=substr(VAR1, strstr(VAR1,'|') + 1); W_ICON . VAR2 . '.png')
	update		4000
	reload		1
	align		'L'
}

Widget S1_WIND {
	class		'Image'
	file		file::exist(FWEATHER) == 0 ? '' : (VAR1=file::readline(W . 'wind', 1); VAR2=substr(VAR1, strstr(VAR1, '|') + 1); W_ICON . (VAR2 < 22.5 ? 'N' : (VAR2 < 67.5 ? 'NO' : (VAR2 < 112.5 ? 'O' : (VAR2 < 157.5 ? 'SO' : (VAR2 < 202.5 ? 'S' : (VAR2 < 247.5 ? 'SW' : (VAR2 < 292.5 ? 'W' : (VAR2 > 292 ? 'NW' : 'Variable')))))))) . '.png')
	update		4000
	reload		1
	align		'L'
	scale		20
}

Widget S2_WIND {
	class		'Truetype'
	expression	file::exist(FWEATHER) == 0 ? '' :  (VAR0=file::readline(W . 'wind', 1); VAR1=substr(VAR0, strstr(VAR0, '|') + 1); VAR2=substr(VAR1, strstr(VAR1,'|') + 1); VAR2)
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'c4caca'	#RAL 7025 Lichtgrau
	width		80
	height		40
	align		'C'
	update		10000
	reload		1
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget SS_WIND {
	class		'Truetype'
	expression	file::exist(FWEATHER) == 0 ? '' : round(substr(file::readline(W . 'wind', 1), 0, strstr(file::readline(W . 'wind', 1), '|'))). ' m/s'
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'c4caca'	#RAL 7025 Lichtgrau
	width		90
	height		35
	align		'L'
	update		10000
	reload		1
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget SS_WIND1 {
	class		'Truetype'
	expression	file::exist(FWEATHER) == 0 ? '' : round(substr(file::readline(W . 'wind', 1), 0, strstr(file::readline(W . 'wind', 1), '|'))*3.6). ' km/h'
	font		'/usr/share/fonts/ubuntu-l-webfont.ttf'
	fcolor		'c4caca'	#RAL 7025 Lichtgrau
	width		175
	height		45
	align		'C'
	update		10000
	reload		1
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget WEATHER_CITY1 {
	class		'Truetype'
	expression	file::exist(FWEATHER) == 0 ? '' : file::readline('/tmp/lcd/weather_city', 1)
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'c4caca'	#RAL 7025 Lichtgrau
	width		300
	height		50
	align		'C'
	update		10000
	reload		1
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget WEATHERICON_CURRENT {
	class		'image'
	file		file::exist(FWEATHER) == 0 ? ICONS . 'blank.png' : file::readline('/tmp/lcd/weather_icon', 1)
	update		10000
	reload		1
	scale		100
}

Widget WEATHERICON_LATER {
	class		'image'
	file		file::exist(FWEATHER) == 0 ? ICONS . 'blank.png' : file::readline('/tmp/lcd/weather_icon', strftime('%H', time()) < 16 ? 2 : 3)
	update		10000
	reload		1
	scale		100
}

Widget TEMPERATURE_CURRENT {
	class		'Text'
	expression	file::exist(FWEATHER) == 0 ? '' : file::readline('/tmp/lcd/weather_temp', 1)
	align		'L'
	width		3
	update		10000
	reload		1
}

Widget TEMPERATURE_CURRENT1 {
	class		'Truetype'
	expression	file::exist(FWEATHER) == 0 ? '' : file::readline('/tmp/lcd/weather_temp', 1) . '°'
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'c4caca'	#RAL 7025 Lichtgrau
	width		70
	height		45
	align		'C'
	update		10000
	reload		1
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget TEMPERATURE_LATER {
	class		'Text'
	expression	file::exist(FWEATHER) == 0 ? '' : (TEMP=file::readline('/tmp/lcd/weather_temp', strftime('%H', time()) < 16 ? 2 : 3); substr(TEMP, (strstr(TEMP, '|') + 1)))
	align		'R'
	width		3
	update		10000
	reload		1
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget TEMPERATURE_LATER1 {
	class		'Truetype'
	expression	file::exist(FWEATHER) == 0 ? '' : (TEMP=file::readline('/tmp/lcd/weather_temp', strftime('%H', time()) < 16 ? 2 : 3); substr(TEMP, (strstr(TEMP, '|') + 1))) . '°'
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'c4caca'	#RAL 7025 Lichtgrau
	width		70
	height		45
	align		'C'
	update		10000
	reload		1
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}


#--- 800x600 ----------------------------------------------------#

Widget S_BAR {
	class		'Image'
	file		file::exist('/tmp/lcd/menu') == 1 ? ICONS . 'background/800x600/' . 'bar1.png' : ICONS . 'background/800x600/' . 'bar3.png'
	update		5000
	reload		1
}

Widget S_BAR1 {
	class		'Image'
	file		file::exist('/tmp/lcd/menu') == 1 ? ICONS . 'background/1024x600/' . 'bar1.png' : ICONS . 'background/1024x600/' . 'bar3.png'
	update		5000
	reload		1
}

Widget S800_STRIPE {
	class		'Image'
	file		ICONS . 'background/800x600/' . 'stripe.png'
	update		0
	reload		1
}

Widget S1024_STRIPE {
	class		'Image'
	file		ICONS . 'background/1024x600/' . 'stripe.png'
	update		0
	reload		1
}

Widget S_SERVICE2 {
	class		'Truetype'
	expression	'SERVICE'
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'484b52'	#RAL 7024 Graphitgrau
	align		'L'
	width		70
	height		20
	update		0
	reload		1
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget S_EVENT {
	class		'Truetype'
	expression	'EVENT'
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'484b52'	#RAL 7024 Graphitgrau
	align		'L'
	width		50
	height		20
	update		0
	reload		1
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget S_TIME {
	class		'Truetype'
	expression	'TIME'
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'484b52'	#RAL 7024 Graphitgrau
	align		'L'
	width		45
	height		20
	update		0
	reload		1
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget S_WEATHER {
	class		'Truetype'
	expression	'Weather'
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'484b52'	#RAL 7024 Graphitgrau
	align		'L'
	width		80
	height		20
	update		0
	reload		1
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget S_VOLUME {
	class		'Truetype'
	expression	'VOL:'
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'484b52'	#RAL 7024 Graphitgrau
	align		'L'
	width		50
	height		20
	update		0
	reload		1
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget S_VOLUME1 {
	class		'Truetype'
	expression	file::readline('/tmp/lcd/volume', 1)
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'ffffff00'	#RAL 9010 Reinweiß
	#update		3000
	reload		1
	inverted	0
	size		0
	width		60
	height		40
	align		'C'
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget S800x600_STB {
	class		'Image'
	file		ICONS . 'background/800x600/' . file::readline('/tmp/lcd/layout', 1) . '.png'
	update		0
	reload		1
}

Widget S800x600_BG {
	class		'Image'
	file		ICONS . 'background/800x600/' . file::readline('/tmp/lcd/layout', 1) . '.png'
	update		0
	reload		1
}

Widget S800x600_BG1 {
	class		'Image'
	file		ICONS . 'background/800x600/' . file::readline('/tmp/lcd/brightness', 1) . '.png'
	update		3000
	reload		1
}

Widget S800x600_STB1 {
	class		'Image'
	file		ICONS . 'background/800x600/' . file::readline('/tmp/lcd/brightness_standby', 1) . '.png'
	update		5000
	reload		1
}

Widget S800x600_XCAM {
	class		'Image'
	file		ICONS . 'background/800x600/' . file::readline('/tmp/lcd/layout', 1) . '.png'
	update		0
	reload		1
}

# 800x480 ----------------------------------------------------#

Widget S800x480_STB {
	class		'Image'
	file		ICONS . 'background/800x480/' . file::readline('/tmp/lcd/layout', 1) . '.png'
	update		0
	reload		1
}

Widget S800x480_BG {
	class		'Image'
	file		ICONS . 'background/800x480/' . file::readline('/tmp/lcd/layout', 1) . '.png'
	update		0
	reload		1
}

Widget S800x480_BG1 {
	class		'Image'
	file		ICONS . 'background/800x480/' . file::readline('/tmp/lcd/brightness', 1) . '.png'
	update		3000
	reload		1
}

Widget S800x480_STB1 {
	class		'Image'
	file		ICONS . 'background/800x480/' . file::readline('/tmp/lcd/brightness_standby', 1) . '.png'
	update		5000
	reload		1
}

Widget S800x480_XCAM {
	class		'Image'
	file		ICONS . 'background/800x480/' . file::readline('/tmp/lcd/layout', 1) . '.png'
	update		0
	reload		1
}

# 1024x600 ----------------------------------------------------#

Widget S1024x600_STB {
	class		'Image'
	file		ICONS . 'background/1024x600/' . file::readline('/tmp/lcd/layout', 1) . '.png'
	update		0
	reload		1
}

Widget S1024x600_BG {
	class		'Image'
	file		ICONS . 'background/1024x600/' . file::readline('/tmp/lcd/layout', 1) . '.png'
	update		0
	reload		1
}

Widget S1024x600_BG1 {
	class		'Image'
	file		ICONS . 'background/1024x600/' . file::readline('/tmp/lcd/brightness', 1) . '.png'
	update		3000
	reload		1
}

Widget S1024x600_STB1 {
	class		'Image'
	file		ICONS . 'background/1024x600/' . file::readline('/tmp/lcd/brightness_standby', 1) . '.png'
	update		5000
	reload		1
}

Widget S1024x600_XCAM {
	class		'Image'
	file		ICONS . 'background/1024x600/' . file::readline('/tmp/lcd/layout', 1) . '.png'
	update		0
	reload		1
}

#----------------------------------------------------------------------------------------------------------------------------------------#

Widget S_TIMER {
	class		'Image'
	file		ICONS . 'mode/timer_' . file::readline('/tmp/lcd/mode_timer', 1) . '.png'
	update		4000
	reload		1
	align		'R'
	scale		300
}

Widget S_VFORMAT {
	class		'Image'
	file		file::readline('/tmp/lcd/resolution', 1) eq '1920x1080' ? SYSICONS . 'res_hd.png' : ( file::readline('/tmp/lcd/resolution', 1) eq '1280x720' ? SYSICONS . 'res_hd.png' : ( file::readline('/tmp/lcd/resolution', 1) eq '1440x1080' ? SYSICONS . 'res_hd.png' : ( file::readline('/tmp/lcd/resolution', 1) eq '3840x2160' ? SYSICONS . 'res_uhd.png' : SYSICONS . 'res_sd.png' )  )
	update		4000
	reload		1
	align		'R'
	scale		150
}

Widget S_ASPECTRATIO {
	class		'Image'
	file		file::readline('/tmp/lcd/aspectratio', 1) eq '16:9' ? SYSICONS . '16_9.png' : SYSICONS . '16_9_gray.png'
	update		4000
	reload		1
	align		'R'
	scale		150
}

Widget S_DOLBY {
	class		'Image'
	file		file::readline('/tmp/lcd/dolbydigital', 1) eq 'yes' ? SYSICONS . 'dd.png' : SYSICONS . 'dd_gray.png'
	update		4000
	reload		1
	align		'R'
	scale		150
}

Widget S_TXT {
	class		'Image'
	file		file::readline('/tmp/lcd/videotext', 1) eq 'yes' ? SYSICONS . 'vtxt.png' : SYSICONS . 'vtxt_gray.png'
	update		4000
	reload		1
	align		'R'
	scale		150
}

Widget S_TUNERTXT {
	class		'Truetype'
	expression	'Tuner:'
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'484b5200'	#RAL 7024 Graphitgrau
	#update		3000
	reload		1
	inverted	0
	size		0
	width		90
	height		20
	align		'C'
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget S_TUNERTXT3 {
	class		'Truetype'
	expression	file::readline('/tmp/lcd/tuner', 1)
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'ffffff00'	#RAL 9010 Reinweiß
	#update		3000
	reload		1
	inverted	0
	size		0
	width		35
	height		40
	align		'C'
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget S_TUNERTXT1 {
	class		'Truetype'
	expression	'SIG:'
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'484b5200'	#RAL 7024 Graphitgrau
	#update		3000
	reload		1
	inverted	0
	size		0
	width		60
	height		20
	align		'C'
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget S_TUNER_SIG {
	class		'Truetype'
	expression	file::readline('/tmp/lcd/tuner_sig', 1) . '%'
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'FFFFFF00'	#RAL 9010 Reinweiß
	update		3000
	reload		1
	width		85
	height		40
	align		'C'
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget S_TUNERTXT2 {
	class		'Truetype'
	expression	'SNR:'
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'484b5200'	#RAL 7024 Graphitgrau
	#update		3000
	reload		1
	inverted	0
	size		0
	width		60
	height		20
	align		'C'
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget S_TUNER_SNR {
	class		'Truetype'
	expression	file::readline('/tmp/lcd/tuner_snr', 1) . '%'
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'FFFFFF00'	#RAL 9010 Reinweiß
	update		3000
	reload		1
	width		85
	height		40
	align		'C'
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget S_REC {
	class		'Image'
	file		ICONS . 'mode/rec_' . file::readline('/tmp/lcd/mode_rec', 1) . '.png'
	update		4000
	reload		1
	inverted	0
	align		'R'
	scale		300
}

Widget S_TS {
	class		'Image'
	file		ICONS . 'mode/ts_' . file::readline('/tmp/lcd/mode_tshift', 1) . '.png'
	update		4000
	reload		1
	align		'R'
	scale		300
}

Widget S_ECM {
	class		'Image'
	file		ICONS . 'mode/ecm_' . file::readline('/tmp/lcd/mode_ecm', 1) . '.png'
	update		4000
	reload		1
	align		'R'
	scale		300
}

Widget S_CAMDD {
	class		'Image'
	file		ICONS . 'mode/cam_' . file::readline('/tmp/lcd/mode_camd', 1) . '.png'
	update		4000
	reload		1
	align		'R'
	scale		300
}

Widget S_CI {
	class		'Image'
	file		ICONS . 'mode/ci_' . file::readline('/tmp/lcd/mode_cam', 1) . '.png'
	update		4000
	reload		1
	align		'R'
	scale		300
}

Widget S_CAMD {
	class		'Image'
	file		file::exist(DOSCAM) == 1 ? ICONS . 'mode/camd_doscam.png' : ( file::exist(OSCAM) == 1 ? ICONS . 'mode/camd_oscam.png' :  ( file::exist(OSMOD) == 1 ? ICONS . 'mode/camd_osmod.png' :  ( file::exist(GBOX) == 1 ? ICONS . 'mode/camd_gbox.png' :  ( file::exist(CCCAM) == 1 ? ICONS . 'mode/camd_cccam.png' :  ( file::exist(MGCAMD) == 1 ? ICONS . 'mode/camd_mgcamd.png' :  ( file::exist(NCAM) == 1 ? ICONS . 'mode/camd_ncam.png' :  ICONS . 'mode/camd_off.png' ) ) ) ) ) )
	update		4000
	reload		1
	align		'R'
	scale		300
}

Widget S_LOGO {
	class		'Image'
	file		file::exist('/tmp/lcd/menu') == 1 ? ICONS . 'menu.png' : file::readline('/tmp/lcd/logo', 1)
	update		3300
	reload		1
	center		108
	width		780
	height		108
	#scale		270
}

Widget S_LOGO1 {
	class		'Image'
	file		file::exist('/tmp/lcd/menu') == 1 ? ICONS . 'menu.png' : file::readline('/tmp/lcd/logo', 1)
	update		3300
	reload		1
	center		108
	width		1004
	height		108
	#scale		270
}

Widget S_SERVICE {
	class		'Truetype'
	expression	file::exist('/tmp/lcd/menu') == 1 ? '' : (file::readline('/tmp/lcd/mode_logo', 1) == 1 ? '' : file::readline('/tmp/lcd/service', 1))
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'ffffff'	#RAL 9010 Reinweiß
	update		3000
	width		800
	height		108
	align		'C'
	reload		1
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget S_SERVICE1 {
	class		'Truetype'
	expression	file::exist('/tmp/lcd/menu') == 1 ? '' : (file::readline('/tmp/lcd/mode_logo', 1) == 1 ? '' : file::readline('/tmp/lcd/service', 1))
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'c4caca00'	#RAL 7025 Lichtgrau
	update		3000
	reload		1
	width		1024
	height		108
	align		'C'
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget S_START {
	class		'Truetype'
	expression	file::exist('/tmp/lcd/menu') == 1 | file::readline('/tmp/lcd/event', 1) le '' ? '' : file::readline('/tmp/lcd/start', 1)
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'c4caca00'	#RAL 7025 Lichtgrau
	size		0
	width		190
	height		75
	align		'C'
	update		3000
	reload		1
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget S_END {
	class		'Truetype'
	expression	file::exist('/tmp/lcd/menu') == 1 | file::readline('/tmp/lcd/event', 2) le '' ? '' : file::readline('/tmp/lcd/end', 1)
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'8c969f00'	#RAL 7001 Silbergrau
	size		0
	width		190
	height		75
	align		'C'
	update		3000
	reload		1
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget S_TTF-EPG-NOW {
	class		'Truetype'
	expression	file::exist('/tmp/lcd/menu') == 1 ? file::readline('/tmp/lcd/menu', 1) : (file::readline('/tmp/lcd/event', 1) le '' ? '' : substr(file::readline('/tmp/lcd/event', 1), 0, 32)
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'c4caca00'	#RAL 7025 Lichtgrau
	update		3000
	reload		1
	inverted	0
	size		0
	width		800
	height		60
	align		'C'
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget S_TTF-EPG-NOW1 {
	class		'Truetype'
	expression	file::exist('/tmp/lcd/menu') == 1 ? file::readline('/tmp/lcd/menu', 1) : (file::readline('/tmp/lcd/event', 1) le '' ? '' : substr(file::readline('/tmp/lcd/event', 1), 0, 42)
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'c4caca00'	#RAL 7025 Lichtgrau
	update		3000
	reload		1
	inverted	0
	size		0
	width		1024
	height		60
	align		'C'
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget S_TTF-EPG-NEXT {
	class		'Truetype'
	expression	file::exist('/tmp/lcd/menu') == 1 ? '' : (file::readline('/tmp/lcd/event', 2) le '' ? '' : substr(file::readline('/tmp/lcd/event', 2), 0, 32)
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'8c969f00'	#RAL 7001 Silbergrau
	update		3000
	reload		1
	inverted	0
	size		0
	width		800
	height		60
	align		'C'
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget S_TTF-EPG-NEXT1 {
	class		'Truetype'
	expression	file::exist('/tmp/lcd/menu') == 1 ? '' : (file::readline('/tmp/lcd/event', 2) le '' ? '' : substr(file::readline('/tmp/lcd/event', 2), 0, 42)
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'8c969f00'	#RAL 7001 Silbergrau
	update		3000
	reload		1
	inverted	0
	size		0
	width		1024
	height		60
	align		'C'
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget S_DURATION {
	class		'Truetype'
	expression	file::exist('/tmp/lcd/menu') == 1 ? '' : file::readline('/tmp/lcd/duration', 1)
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'fd6d1300'
	update		3000
	reload		1
	inverted	0
	size		0
	width		160
	height		50
	align		'R'
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget S_DURATION1 {
	class		'Truetype'
	expression	file::exist('/tmp/lcd/menu') == 1 ? '' : file::readline('/tmp/lcd/duration', 1)
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'fd6d1300'
	update		3000
	reload		1
	width		160
	height		40
	align		'C'
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget S_LEFT {
	class		'Truetype'
	expression	file::exist('/tmp/lcd/menu') == 1 ? '' : '>'
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'c4caca'	#RAL 7025 Lichtgrau
	update		5000
	reload		1
	width		30
	height		50
	align		'R'
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget S_RIGHT {
	class		'Truetype'
	expression	file::exist('/tmp/lcd/menu') == 1 ? '' : '<'
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'c4caca'	#RAL 7025 Lichtgrau
	update		5000
	reload		1
	width		30
	height		50
	align		'L'
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget S_DURATION_BJ1 {
	class		'Truetype'
	expression	file::exist('/tmp/lcd/menu') == 1 ? '' : file::readline('/tmp/lcd/duration', 2)
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'f7000000'	#RAL 3024 Leuchtrot
	update		3000
	reload		1
	width		110
	height		50
	align		'R'
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget S_DURATION_BE1 {
	class		'Truetype'
	expression	file::exist('/tmp/lcd/menu') == 1 ? '' : file::readline('/tmp/lcd/duration', 3)
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'00f70000'	#RAL 6038 Leuchtgrün
	update		3000
	reload		1
	width		110
	height		50
	align		'L'
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget S_DURATION_KPL1 {
	class		'Truetype'
	expression	file::exist('/tmp/lcd/menu') == 1 ? '' : file::readline('/tmp/lcd/duration', 4)
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'c4caca00'	#RAL 7025 Lichtgrau
	update		3000
	reload		1
	width		110
	height		50
	align		'C'
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget S_EPGBAR {
	class		'Bar'
	expression	file::exist('/tmp/lcd/menu') == 1 ? '' : file::readline('/tmp/lcd/progress', 1)
	min		0
	max		100
	length		68
	update		5000
	direction	'E'
	foreground	'f70000'	#RAL 3024 Leuchtrot
}

Widget S_EPGBAR1 {
	class		'Bar'
	expression	file::exist('/tmp/lcd/menu') == 1 ? '' : file::readline('/tmp/lcd/progress', 1)
	min		0
	max		100
	length		105
	update		5000
	direction	'E'
	foreground	'f70000'	#RAL 3024 Leuchtrot
}

Widget HST {
	class		'Truetype'
	expression	file::readline('/tmp/lcd/brightness', 1)
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'484b52'	#RAL 7024 Graphitgrau
	width		20
	height		15
	align		'L'
	update		4000
	reload		1
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget HST_STB {
	class		'Truetype'
	expression	file::readline('/tmp/lcd/brightness_standby', 1)
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'484b52'	#RAL 7024 Graphitgrau
	width		30
	height		15
	align		'L'
	update		0
	reload		1
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget RES320x240 {
	class		'Truetype'
	expression	file::readline('/usr/share/lcd/icons/spf.txt', 11)
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'484b52'	#RAL 7024 Graphitgrau
	width		70
	height		15
	align		'R'
	update		0
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget RES800x480 {
	class		'Truetype'
	expression	file::readline('/usr/share/lcd/icons/spf.txt', 8)
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'484b52'	#RAL 7024 Graphitgrau
	width		70
	height		15
	align		'R'
	update		0
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget RES800x600 {
	class		'Truetype'
	expression	file::readline('/usr/share/lcd/icons/spf.txt', 9)
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'484b52'	#RAL 7024 Graphitgrau
	width		70
	height		15
	align		'R'
	update		0
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget RES1024x600 {
	class		'Truetype'
	expression	file::readline('/usr/share/lcd/icons/spf.txt', 10)
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'484b52'	#RAL 7024 Graphitgrau
	width		90
	height		15
	align		'R'
	update		0
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

# --- the digital clock ----------------------------------------------------- #

Widget S_HOUR1_ {
	class		'image'
	file		ICONS . 'clock/digital_white_129px/' . substr(strftime('%H', time()), 0, 1) . '.png'
	update		10000
	reload		1
	scale		70
}

Widget S_HOUR_1 {
	class		'image'
	file		ICONS . 'clock/digital_white_129px/' . substr(strftime('%H', time()), 1) . '.png'
	update		10000
	reload		1
	scale		70
}

Widget S_DP {
	class		'Image'
	file		ICONS . 'clock/digital_white_129px/dp.png'
	update		0
	scale		70
}

Widget S_MIN1_ {
	class		'image'
	file		ICONS . 'clock/digital_white_129px/' . substr(strftime('%M', time()), 0, 1) . '.png'
	update		10000
	reload		1
	scale		70
}

Widget S_MIN_1 {
	class		'image'
	file		ICONS . 'clock/digital_white_129px/' . substr(strftime('%M', time()), 1) . '.png'
	update		10000
	reload		1
	scale		70
}

Widget S_STANDBY_HOUR1_ {
	class		'image'
	file		file::exist(FCLOCK) == 1 ? ICONS . 'blank.png' : ICONS . 'clock/digital_white_129px/' . substr(strftime('%H', time()), 0, 1) . '.png'
	update		10000
	reload		1
	scale		130
}

Widget S_STANDBY_HOUR_1 {
	class		'image'
	file		file::exist(FCLOCK) == 1 ? ICONS . 'blank.png' : ICONS . 'clock/digital_white_129px/' . substr(strftime('%H', time()), 1) . '.png'
	update		10000
	reload		1
	scale		130
}

Widget S_STANDBY_DP {
	class		'Image'
	file		file::exist(FCLOCK) == 1 ? ICONS . 'blank.png' : ICONS . 'clock/digital_white_129px/dp.png'
	update		0
	scale		130
}

Widget S_STANDBY_MIN1_ {
	class		'image'
	file		file::exist(FCLOCK) == 1 ? ICONS . 'blank.png' : ICONS . 'clock/digital_white_129px/' . substr(strftime('%M', time()), 0, 1) . '.png'
	update		10000
	reload		1
	scale		130
}

Widget S_STANDBY_MIN_1 {
	class		'image'
	file		file::exist(FCLOCK) == 1 ? ICONS . 'blank.png' : ICONS . 'clock/digital_white_129px/' . substr(strftime('%M', time()), 1) . '.png'
	update		10000
	reload		1
	scale		130
}

# --- Tag Datum ----------------------------------------------------- #

Widget TAGDATUM-TTF {
	class		'truetype'
	expression	(strftime('%u', time()) == 1 ? 'Montag' : (strftime('%u', time()) == 2 ? 'Dienstag' : (strftime('%u', time()) == 3 ? 'Mittwoch' : (strftime('%u', time()) == 4 ? 'Donnerstag' : (strftime('%u', time()) == 5 ? 'Freitag' : (strftime('%u', time()) == 6 ? 'Samstag' : 'Sonntag')))))) . ', ' . strftime('%d.%m.%Y', time())
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'c4caca00'	#RAL 7025 Lichtgrau
	align		'C'
	width		800
	height		75
	update		30000
	reload		1
	visible		1
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

Widget TAGDATUM-TTF1 {
	class		'truetype'
	expression	(strftime('%u', time()) == 1 ? 'Montag' : (strftime('%u', time()) == 2 ? 'Dienstag' : (strftime('%u', time()) == 3 ? 'Mittwoch' : (strftime('%u', time()) == 4 ? 'Donnerstag' : (strftime('%u', time()) == 5 ? 'Freitag' : (strftime('%u', time()) == 6 ? 'Samstag' : 'Sonntag')))))) . ', ' . strftime('%d.%m.%Y', time())
	font		file::readline('/tmp/lcd/font', 2)
	fcolor		'c4caca00'	#RAL 7025 Lichtgrau
	align		'C'
	width		1000
	height		75
	update		30000
	reload		1
	visible		1
	debugborder	file::exist(DEBUGBORDER) == 1 ? DB_ON : DB_OFF
}

# --------------------------------------------------------------------------- #

Layout Pearl_user {
	layer 0 {
		row19.col14	'Pearl_PROGRESS'
	}
	layer 1 {
		x005.y001	'Pearl_SERVICE1'
		x008.y073	'Pearl_ICON_ECM'
		x008.y105	'Pearl_ICON_S_CAMD'
		x008.y150	'Pearl_ICON_S_CI'
		x008.y217	'Pearl_ICON_TIMER'
		x008.y258	'Pearl_ICON_REC'
		x008.y289	'Pearl_ICON_TS'
		x020.y001	'Pearl_LOGO'
		x080.y001	'Pearl_STRIPE'
		x091.y001	'Pearl_EVENT1'
		x105.y001	'Pearl_EVENT'
		x141.y001	'Pearl_START'
		x141.y250	'Pearl_END'
		X149.Y079	'Pearl_BAR'
		x157.y071	'Pearl_DURATION_BJ'
		x157.y120	'Pearl_LEFT'
		x157.y135	'Pearl_DURATION_KPL'
		x157.y185	'Pearl_RIGHT'
		x157.y200	'Pearl_DURATION_BE'
		x177.y001	'Pearl_STRIPE'
		x189.y001	'Pearl_TIME1'
		x189.y061	'Pearl_TIME'
		x189.y280	'Pearl_VOLUME'
		x205.y280	'Pearl_VOLUME1'



		x225.y001	'Pearl_HST'
		x225.y260	'Pearl_RES320x240'
	}
	layer 2 {
		x001.y001	'Pearl_BACKGROUND'
		x020.y001	'Pearl_SERVICE'
	}
}

Layout Samsung800x600_user {
	Layer 0 {
		X001.Y001	'S800x600_BG1'
	}
	Layer 1 {
		X017.Y001	'S_SERVICE2'
		X017.Y200	'S_TIMER'
		X017.Y325	'S_REC'
		X017.Y415	'S_TS'
		X017.Y475	'S_CI'
		X017.Y560	'S_CAMD'
		X017.Y710	'S_ECM'
		X070.Y001	'S_LOGO'
		X205.Y001	'S800_STRIPE'
		X225.Y001	'S_EVENT'
		X225.Y060	'S_VOLUME'
		X220.Y110	'S_VOLUME1'
		X225.Y180	'S_TUNERTXT'
		X220.Y270	'S_TUNERTXT3'
		X225.Y315	'S_TUNERTXT1'
		X220.Y375	'S_TUNER_SIG'
		X225.Y470	'S_TUNERTXT2'
		X220.Y530	'S_TUNER_SNR'
		X225.Y628	'S_VFORMAT'
		X225.Y667	'S_ASPECTRATIO'
		X225.Y721	'S_DOLBY'
		X225.Y760	'S_TXT'
		X270.Y001	'S_TTF-EPG-NOW'
		X332.Y001	'S_START'
		X362.Y210	'S_DURATION_BJ1'
		X362.Y320	'S_LEFT'
		X362.Y350	'S_DURATION_KPL1'
		X362.Y460	'S_RIGHT'
		X362.Y490	'S_DURATION_BE1'
		X332.Y610	'S_END'
		X412.Y001	'S_TTF-EPG-NEXT'
		X470.Y001	'S800_STRIPE'
		X483.Y001	'S_TIME'
		X483.Y500	'S_WEATHER'
		X479.Y380	'WEATHERICON_CURRENT'
		X550.Y380	'TEMPERATURE_CURRENT1'
		X508.Y500	'S2_WIND'
		X550.Y457	'SS_WIND1'
		X479.Y640	'WEATHERICON_LATER'
		X550.Y640	'TEMPERATURE_LATER1'
		X500.Y047	'S_HOUR1_'
		X500.Y115	'S_HOUR_1'
		X500.Y188	'S_DP'
		X500.Y215	'S_MIN1_'
		X500.Y283	'S_MIN_1'
		X585.Y001	'HST'
		X585.Y730	'RES800x600'
	}
	Layer 2 {
		X080.Y001	'S_SERVICE'
		Row45.Col34	'S_EPGBAR'
	}
	Layer 3 {
		X353.Y199	'S_BAR'
		X001.Y001	'S800x600_BG'
	}
}

Layout Samsung800x480_user {
	Layer 0 {
		X001.Y001	'S800x480_BG1'
	}
	Layer 1 {
		X017.Y001	'S_SERVICE2'
		X017.Y200	'S_TIMER'
		X017.Y325	'S_REC'
		X017.Y415	'S_TS'
		X017.Y475	'S_CI'
		X017.Y560	'S_CAMD'
		X017.Y710	'S_ECM'
		X065.Y001	'S_LOGO'
		X200.Y001	'S800_STRIPE'
		X220.Y001	'S_EVENT'
		X220.Y120	'S_TUNERTXT'
		X215.Y220	'S_TUNERTXT3'
		X220.Y270	'S_TUNERTXT1'
		X215.Y340	'S_TUNER_SIG'
		X220.Y440	'S_TUNERTXT2'
		X215.Y510	'S_TUNER_SNR'
		X217.Y623	'S_VFORMAT'
		X217.Y662	'S_ASPECTRATIO'
		X217.Y716	'S_DOLBY'
		X217.Y755	'S_TXT'
		X260.Y001	'S_TTF-EPG-NOW'
		X325.Y001	'S_START'
		X355.Y210	'S_DURATION_BJ1'
		X355.Y310	'S_LEFT'
		X355.Y340	'S_DURATION_KPL1'
		X355.Y440	'S_RIGHT'
		X355.Y470	'S_DURATION_BE1'
		X325.Y605	'S_END'
		X407.Y001	'S_TTF-EPG-NEXT'
		X465.Y001	'HST'
		X465.Y730	'RES800x480'
	}
	Layer 2 {
		X080.Y001	'S_SERVICE'
		Row44.Col34	'S_EPGBAR'
	}
	Layer 3 {
		X345.Y199	'S_BAR'
		X001.Y001	'S800x480_BG'
	}
}

Layout Samsung1024x600_user {
	Layer 0 {
		X001.Y001	'S1024x600_BG1'
	}
	Layer 1 {
		X013.Y001	'S_SERVICE2'
		X013.Y330	'S_TIMER'
		X013.Y475	'S_REC'
		X013.Y585	'S_TS'
		X013.Y665	'S_CI'
		X013.Y770	'S_CAMD'
		X013.Y930	'S_ECM'
		X060.Y001	'S_LOGO1'
		X205.Y001	'S1024_STRIPE'
		X225.Y001	'S_EVENT'
		X225.Y220	'S_TUNERTXT'
		X220.Y320	'S_TUNERTXT3'
		X225.Y390	'S_TUNERTXT1'
		X220.Y460	'S_TUNER_SIG'
		X225.Y580	'S_TUNERTXT2'
		X220.Y650	'S_TUNER_SNR'
		X222.Y823	'S_VFORMAT'
		X222.Y862	'S_ASPECTRATIO'
		X222.Y916	'S_DOLBY'
		X222.Y955	'S_TXT'
		X270.Y001	'S_TTF-EPG-NOW1'
		X335.Y001	'S_START'
		X355.Y306	'S_DURATION_BJ1'
		X355.Y417	'S_LEFT'
		X355.Y448	'S_DURATION_KPL1'
		X355.Y559	'S_RIGHT'
		X355.Y590	'S_DURATION_BE1'
		X335.Y830	'S_END'
		X410.Y001	'S_TTF-EPG-NEXT1'
		X470.Y001	'S1024_STRIPE'
		X483.Y001	'S_TIME'
		X483.Y700	'S_WEATHER'
		X479.Y580	'WEATHERICON_CURRENT'
		X550.Y580	'TEMPERATURE_CURRENT1'
		X508.Y700	'S2_WIND'
		X550.Y657	'SS_WIND1'
		X479.Y840	'WEATHERICON_LATER'
		X550.Y840	'TEMPERATURE_LATER1'
		X500.Y047	'S_HOUR1_'
		X500.Y115	'S_HOUR_1'
		X500.Y188	'S_DP'
		X500.Y215	'S_MIN1_'
		X500.Y283	'S_MIN_1'
		X585.Y001	'HST'
		X585.Y930	'RES1024x600'
	}
	Layer 2 {
		X080.Y001	'S_SERVICE1'
		Row44.Col34	'S_EPGBAR1'
	}
	Layer 3 {
		X345.Y199	'S_BAR1'
		X001.Y001	'S1024x600_BG'
	}
}

# --- General Settings ------------------------------------------------------ #

Variables {
	DEBUGBORDER	'/var/etc/.lcd-debugborder'
	DB_ON		'ffff0000'		# debugborder on
	DB_OFF		'ffff00ff'		# debugborder off
	W		'/tmp/lcd/weather_'
	W_ICON		'/share/lcd/icons/wind/'
	ICONS		'/share/lcd/icons/'
	SYSICONS	'/share/tuxbox/neutrino/icons/'
	FWEATHER	'/var/etc/.lcd-weather'
	FCLOCK		'/var/etc/.lcd-clock_a'
	FXCAM		'/var/etc/.lcd-xcam'
	OSCAM		'/var/etc/.oscam'
	DOSCAM		'/var/etc/.doscam'
	OSMOD		'/var/etc/.osmod'
	CCCAM		'/var/etc/.cccam'
	MGCAMD		'/var/etc/.mgcamd'
	GBOX		'/var/etc/.gbox'
	NCAM		'/var/etc/.ncam'
}

# --------------------------------------------------------------------------- #

Display file::readline('/tmp/lcd/layout', 1)

Layout file::readline('/tmp/lcd/layout', 1)

# --------------------------------------------------------------------------- #
