﻿<?xml version="1.0" encoding="utf-8" ?>
<theme name="SBBRed">

	<!--  Colour Pallete -->
	<colours>

		<!-- Toast popups -->
		<colour name="ToastText" value="#ffffff" />
		<colour name="ToastBackground" value="#da0000" />

		<!-- Tab Colours -->
		<colour name="TabText" value="#ffffff" />
		<colour name="TabBackground" value="#000000" />
		<colour name="TabSelectedText" value="#ffffff" />
		<colour name="TabSelectedBackground" value="#da0000" />
		
		<!-- Page Title-->
		<colour name="TitleBackground" value="#e00000" />
		<colour name="TitleText" value="#ffffff" />
		<colour name="HeaderBackground" value="#da0000" />
		<colour name="HeaderText" value="#ffffff" />


		<!-- Keypad Button Colours  -->
		<colour name="KeyText" value="#ffffff" />
		<colour name="KeyBackground" value="#000000" />
		<colour name="KeyBorder" value="#ffffff" />
		<colour name="Key2Text" value="#ffffff" />
		<colour name="Key2Background" value="#da0000" />
		<colour name="Key3Text" value="#ffffff" />
		<colour name="Key3Background" value="#da0000" />

		<!-- Other page buttons -->
		<colour name="ButtonText" value="#ffffff" />
		<colour name="ButtonBackground" value="#da0000" />
		<colour name="ButtonBorder" value="#da0000" />

		<!-- Forms and Lists -->
		<colour name="FormBackground" value="#ffffff" />
		<colour name="ListText" value="#000000" />
		<colour name="ListBackground" value="#ffffff" />
		<colour name="ListSeparator" value="#ffffff" />
		
		<colour name="ListSelected" value="#ffffbb" />
		
		<colour name="GroupText" value="#ffffff" />
		<colour name="GroupBackground" value="#da0000" />
		<colour name="HoldText" value="#000000" />
		<colour name="HoldBackground" value="#ff6666" />
		<colour name="AmbigText" value="#000000" />
		<colour name="AmbigBackground" value="#ffffbb" />
		<colour name="NoteText" value="#000088" />


		<!-- Entry Fields -->
		<colour name="EntryBackground" value="#ffffff" />
		<colour name="EntryText" value="#000000" />
		<colour name="PlaceholderText" value="#888888" />

		<!-- Notepad, stats etc -->
		<colour name="StatsText" value="#ffffff" />
		<colour name="StatsBackground" value="#da0000" />
		

		<!-- Book -->
    <colour name="SeenBar" value="#da0000" />
    <colour name="HaulBar" value="#ff9900" />
	
		<!-- Settings -->
		<colour name="Switch" value="#ffffff" />
		<colour name="SwitchOnBackground" value="#da0000" />
	</colours>

	<!--  Dark Pallete -->
	<colours mode="Dark">
		<!-- Toast popups -->
		<colour name="ToastText" value="#ffffff" />
		<colour name="ToastBackground" value="#800000" />

		<!-- Tab Colours -->
    <colour name="TabText" value="#ffffff" />
    <colour name="TabBackground" value="#000000" />
    <colour name="TabSelectedText" value="#ffffff" />
    <colour name="TabSelectedBackground" value="#da0000" />
		
		<!-- Page Title-->
		<colour name="TitleBackground" value="#990000" />
		<colour name="TitleText" value="#ffffff" />
		<colour name="HeaderBackground" value="#990000" />
		<colour name="HeaderText" value="#ffffff" />
		
		
		<!-- Keypad Button Colours  -->
		<colour name="KeyText" value="#ffffff" />
		<colour name="KeyBackground" value="#000000" />
		<colour name="KeyBorder" value="#444444" />
		<colour name="Key2Text" value="#00ffff" />
		<colour name="Key2Background" value="#000000" />
		<colour name="Key3Text" value="#00ff00" />
		<colour name="Key3Background" value="#000000" />

		<!-- Other page buttons -->
    <colour name="ButtonText" value="#ffffff" />
    <colour name="ButtonBackground" value="#da0000" />
    <colour name="ButtonBorder" value="#da0000" />

		<!-- Forms and Lists -->
		<colour name="FormBackground" value="#000000" />
		<colour name="ListText" value="#ffffff" />
		<colour name="ListBackground" value="#000000" />
		<colour name="ListSeparator" value="#444444" />
		
		<colour name="ListSelected" value="#4871b5" />
		
		<colour name="GroupText" value="#ffffff" />
		<colour name="GroupBackground" value="#990000" />
		<colour name="HoldText" value="#cc0000" />
		<colour name="HoldBackground" value="#000000" />
		<colour name="AmbigText" value="#ffff00" />
		<colour name="AmbigBackground" value="#000000" />
		<colour name="NoteText" value="#00ffff" />


		<!-- Entry Fields -->
		<colour name="EntryBackground" value="#444444" />
		<colour name="EntryText" value="#ffffff" />
		<colour name="PlaceholderText" value="#88888" />

		<!-- Notepad, stats etc -->
		<colour name="StatsText" value="#ffffff" />
		<colour name="StatsBackground" value="#990000" />
		

		<!-- Book -->
		<colour name="SeenBar" value="#da0000" />
		<colour name="HaulBar" value="#ff9900" />
	
		<!-- Settings -->
    <colour name="Switch" value="#ffffff" />
    <colour name="SwitchOnBackground" value="#da0000" />
	</colours>

	<!-- Tab bar settings -->
	<tabs height="100" backgroundcolour="TabBackground" textcolour="TabText"
		  selectedtextcolour="TabSelectedText" selectedbackgroundcolor="TabSelectedBackground">
	</tabs>

	<!--  NotePad page -->
	<notepad>

		<format orientation="Landscape" form="Tablet">
			Two-Column
		</format>

		<keypad>
			<!-- Keypad and entry fields etc  -->
			<layout name="buttonpad" type="grid" rows="7" cols="5" backgroundcolour="FormBackground">

				<!-- Buttons -->
				<button text="0" row="5" col="2" function="Digit" backgroundcolour="KeyBackground" textcolour="KeyText" bordercolour="KeyBorder"></button>
				<button text="1" row="4" col="1" function="Digit" backgroundcolour="KeyBackground" textcolour="KeyText" bordercolour="KeyBorder"></button>
				<button text="2" row="4" col="2" function="Digit" backgroundcolour="KeyBackground" textcolour="KeyText" bordercolour="KeyBorder"></button>
				<button text="3" row="4" col="3" function="Digit" backgroundcolour="KeyBackground" textcolour="KeyText" bordercolour="KeyBorder"></button>
				<button text="4" row="3" col="1" function="Digit" backgroundcolour="KeyBackground" textcolour="KeyText" bordercolour="KeyBorder"></button>
				<button text="5" row="3" col="2" function="Digit" backgroundcolour="KeyBackground" textcolour="KeyText" bordercolour="KeyBorder"></button>
				<button text="6" row="3" col="3" function="Digit" backgroundcolour="KeyBackground" textcolour="KeyText" bordercolour="KeyBorder"></button>
				<button text="7" row="2" col="1" function="Digit" backgroundcolour="KeyBackground" textcolour="KeyText" bordercolour="KeyBorder"></button>
				<button text="8" row="2" col="2" function="Digit" backgroundcolour="KeyBackground" textcolour="KeyText" bordercolour="KeyBorder"></button>
				<button text="9" row="2" col="3" function="Digit" backgroundcolour="KeyBackground" textcolour="KeyText" bordercolour="KeyBorder"></button>

				<button text="-" row="4" col="0" function="Digit"       backgroundcolour="KeyBackground" textcolour="KeyText" bordercolour="KeyBorder"></button>
				<button text="(spc)" row="5" col="3" function="Space"   backgroundcolour="KeyBackground" textcolour="KeyText" bordercolour="KeyBorder"></button>
				<button text="BK" row="4" col="4" function="Back"       backgroundcolour="KeyBackground" textcolour="KeyText" bordercolour="KeyBorder"></button>
				<button text="'D'" row="5" col="1" function="Prefix"    backgroundcolour="KeyBackground" textcolour="KeyText" bordercolour="KeyBorder"></button>

				<!-- entry buttons -->
				<button text="Add" row="2" col="0" function="Add"       backgroundcolour="Key2Background" textcolour="Key2Text" bordercolour="KeyBorder"></button>
				<button text="Photo" row="2" col="4" function="AddPhoto" backgroundcolour="Key2Background" textcolour="Key2Text" bordercolour="KeyBorder"></button>
				<button text="Haul" row="3" col="0" function="AddHaul"  backgroundcolour="Key2Background" textcolour="Key2Text" bordercolour="KeyBorder"></button>
				<button text="Hold" row="3" col="4" function="AddHold"  backgroundcolour="Key2Background" textcolour="Key2Text" bordercolour="KeyBorder"></button>

				<!--  other buttons -->
				<button text="Proc" row="5" col="4" function="Process"  backgroundcolour="Key3Background" textcolour="Key3Text" bordercolour="KeyBorder"></button>
				<button text="Rec" row="5" col="0" name="Record" function="Record" backgroundcolour="Key3Background" textcolour="Key3Text" bordercolour="KeyBorder"></button>


				<!--  Stats Field -->
				<label name="Stats" row="6" col="0" colspan="5" text="stats" margin="0,0,0,0"  padding="5,5,5,5"
					   alignment="centre" backgroundcolour="StatsBackground" textcolour="StatsText" >
				</label>

				<!-- Mode Picker -->
				<label row="0" col="0" text="Mode:" alignment="right" fontsize="12" valignment="middle"
						backgroundcolour="FormBackground" textcolour="EntryText"></label>
				<picker name="EntryMode" row="0" col="1" colspan="1" fontsize="12" 
						backgroundcolour="EntryBackground" textcolour="EntryText"></picker>


				<!--  Entry Fields -->
				<entry name="Number" row="0" col="2" colspan="3" backgroundcolour="EntryBackground" textcolour="EntryText"></entry>
				<entry name="Note" row="1" col="2" colspan="3" placeholder="Note" placeholdercolour="PlaceholderText" backgroundcolour="EntryBackground"  textcolour="EntryText"></entry>
				<entry name="Location" row="1" col="0" colspan="2" placeholder="Location"  placeholdercolour="PlaceholderText" backgroundcolour="EntryBackground"  textcolour="EntryText"></entry>

			</layout>
		</keypad>Form


		<!--  NotePad List -->
		<notepadlist rowheight="44" backgroundcolour="ListSeparator">	
			<layout name="NotePadListItem" type="grid" backgroundcolour="@RowColour"  >
				<label width="1*" row="0" col="0" text="@DateOrTime" textcolour="@TextColour"></label>
				<label width="1*" row="0" col="1" text="@Number" textcolour="@TextColour"></label>
				<label width="1*" row="0" col="2" text="@Location" textcolour="@TextColour"></label>

				<image width="20" row="0" col="3"  height="20" rowspan="2" source="@CameraIcon" visible="@Photo"></image>
				<image width="20" row="0" col="4" height="20"  rowspan="2" source="@TrainIcon" visible="@Haul"></image>

				<label colspan="2" row="1" col="1"  text="@Note" textcolour="NoteText"></label>
			</layout>
		</notepadlist>
	</notepad>

	<!-- Book -->
	<book>

		<!-- Class View -->
		<bookclass>
			<format orientation="Landscape" form="Tablet">
				Two-Column
			</format>

			<!-- Class Header details -->
			<classheader>
				<layout name="classheader" type="stack" backgroundcolour="FormBackground" padding="0,0,0,10">
					<label name="Note" textcolour="HeaderText" backgroundcolour="HeaderBackground" margin="0,0,0,0" padding="10,10,10,10"></label>
					<image name="ClassPic" backgroundcolour="FormBackground"  aspect="AspectFit" margin="0,0,0,0" padding="0,0,0,0" ></image>
					<label name="PhotoCredit" textcolour="EntryText" FontAttributes="Italic" backgroundcolour="FormBackground" margin="10,0,10,0" alignment="Right"></label>
					<label name="Type" textcolour="EntryText" backgroundcolour="FormBackground"  margin="10,0,10,0"></label>
					<webview name="Description"  textcolour="EntryText" backgroundcolour="EntryBackground"  margin="10,0,10,0" />	
				</layout>
				
				<!-- This block is not currently read -->
				<attributes >
					<layout name="AttrListItem" type="grid" >
						<label  text="@Attribute" width="5*"  />
						<label  text="@Value" width="1*" />
					</layout>
				</attributes>

				<layout name="classheaderspacer" type="stack" backgroundcolour="HeaderBackground" padding="10,10,10,10">
				</layout>
			</classheader>

			<!-- Loco table -->
			<locolist>
				<layout name="BookClassList" type="list" >
					<layout name="BookListItem" type="grid" backgroundcolour="ListBackground" >
						<image width="32" height="32" source="@BookIcon" ></image>
						<label  text="@ListNumber" width="4*" alignment="Right" textcolour="ListText"/>
						<label  text="@Status" width="16" alignment="Right"  textcolour="ListText"/>
						<label  text="@Name" width="4*" colspan="@BookSpanNameNote"  textcolour="ListText"/>
						<label  text="@Note" width="4*"  textcolour="ListText" />
					</layout>
				</layout>


			</locolist>
		</bookclass>

		<!-- Loco View -->
		<bookloco>

			<!-- Loco Header details -->
			<locoheader>
				<layout name="locoheader" type="stack" backgroundcolour="FormBackground">

					<!-- not currently in use -->
					<list name="attributes" backgroundcolour="ListBackground" >
						<layout name="AttrListItem" type="grid"  backgroundcolour="ListBackground" >
							<label  text="@Attribute" width="1*" textcolour="ListText"/>
							<label  text="@Value" width="2*" textcolour="ListText"/>
						</layout>
					</list>

										<!-- not currently in use -->

					<grid backgroundcolour="ListBackground" >
						<label text="Mark Seen" row="0" col="0" textcolour="ListText"></label>
						<switch name="MarkSeen" row="0" col="1" textcolour="ListText"></switch>
						<label text="Mark Haul" row="1" col="0" textcolour="ListText"></label>
						<switch name="MarkHaul" row="1" col="1" textcolour="ListText"></switch>
						<label text="Mark Photo" row="" col="0" textcolour="ListText"></label>
						<switch name="MarkPhoto" row="2" col="1" textcolour="ListText"></switch>

						<button text="Seen" row="3" col="0" function="SeenNow" backgroundcolour="ButtonBackground" textcolour="ButtonText"></button>
						<button text="Photo" row="3" col="1" function="PhotoNow" backgroundcolour="ButtonBackground" textcolour="ButtonText"></button>
						<button text="Haul" row="3" col="2" function="HaulNow" backgroundcolour="ButtonBackground" textcolour="ButtonText"></button>
					</grid>
				</layout>

				<!-- not currently used -->
				<attributes >
					<layout name="AttrListItem" type="grid" colour="ListText" backgroundcolour="ListBackground" >
						<label  text="@Attribute" width="1*" />
						<label  text="@Value" width="1*" />
					</layout>
				</attributes>

			</locoheader>



			<!-- Record table -->
			<recordlist>
				<layout name="BookRecordList" type="list" backgroundcolour="ListBackground" >
					<layout name="LogListItem" type="grid" visible="@ShowRow" backgroundcolour="ListBackground" >
						<image width="20" height="20" source="@CameraIcon" visible="@Photo"></image>
						<image width="20" height="20" source="@TrainIcon" visible="@Haul"></image>

						<label width="2*" text="@Date" textcolour="ListText" ></label>
						<label width="2*" text="@Location" textcolour="ListText" ></label>
					
				
					</layout>
				</layout>
			</recordlist>

		</bookloco>
	</book>

	<log>

		<!--  Log List -->
		<layout name="LogList" type="list" rowheight="28" padding="0,0,0,0" margin="0,0,0,0" backgroundcolour="ListBackground">
			<layout name="LogListHeader" type="stack" orientation="Horizontal" visible="@ShowDayHeader" backgroundcolour="GroupBackground" >
				<label  text="@ShortDate" textcolour="GroupText"></label>
				<label  text="@Records" textcolour="GroupText"></label>
				<label  text="Records." textcolour="GroupText"></label>
				<label  text="@Firsts" textcolour="GroupText"></label>
				<label  text="Firsts." textcolour="GroupText"></label>
			</layout>
			<layout name="LogListItem" type="grid" visible="@ShowRow" padding="0,0,0,0" margin="0,0,0,0" spacing="0" backgroundcolour="ListBackground">
				<image width="20" height="20" source="@CameraIcon" visible="@Photo" padding="0,0,0,0"></image>
				<image width="20" height="20" source="@TrainIcon" visible="@Haul" padding="0,0,0,0" margin="0,0,0,0"></image>
				<image width="20" height="20" source="@StarIcon" visible="@First"></image>

				<label width="2*" text="@Time" textcolour="ListText" ></label>
				<label width="3*" text="@ClassCode" textcolour="ListText" ></label>
				<label width="3*" text="@LogNumber" textcolour="ListText" ></label>
				<label width="3*" text="@Location"  textcolour="ListText" ></label>
			</layout>
		</layout>

		<!--  Log List Tablet Landscape -->
		<layout name="LogList" type="list"  orientation="Landscape" form="Tablet" rowheight="28" padding="0,0,0,0" margin="0,0,0,0">

			<layout name="LogListHeader" type="stack" orientation="Horizontal"  backgroundcolour="GroupBackground" visible="@ShowDayHeader">
				<label  text="@ShortDate" textcolour="#ffffff"></label>
				<label  text="@Records" textcolour="#ffffff"></label>
				<label  text="Records." textcolour="#ffffff"></label>
				<label  text="@Firsts" textcolour="#ffffff"></label>
				<label  text="Firsts." textcolour="#ffffff"></label>
			</layout>

			<layout name="LogListItem" type="grid" visible="@ShowRow" padding="0,0,0,0" margin="0,0,0,0" spacing="0" backgroundcolour="ListBackground">
				<image width="18" height="16" source="@CameraIcon" visible="@Photo"></image>
				<image width="18" height="16" source="@TrainIcon" visible="@Haul"></image>
				<image width="18" height="16" source="@StarIcon" visible="@First"></image>

				<label width="2*" text="@Time" ></label>
				<label width="2*" text="@ClassCode"></label>
				<label width="2*" text="@LogNumber"></label>
				<label width="3*" text="@Location" ></label>
				<label width="3*" text="@Note" ></label>
			</layout>
		</layout>
	</log>


	<!-- About Page -->
	<about>
		<applog>

			<!--  App Log  -->
			<layout name="AppLog"  type="grid" backgroundcolour="ListBackground" >
				<label width="1*" text="@Time" textcolour="ListText"></label>
				<label width="1*" text="@Type" textcolour="ListText"></label>
				<label width="3*" text="@Text" textcolour="ListText"></label>
			</layout>

			<layout name="AppLog" type="grid" orientation="Landscape"  backgroundcolour="ListBackground">

				<label width="1*" text="@Time" textcolour="ListText"></label>
				<label width="1*" text="@Type" textcolour="ListText"></label>
				<label width="5*" text="@Text" textcolour="ListText"></label>

			</layout>

		</applog>
	</about>


</theme>
