@@ -15,10 +15,14 @@ public static void Setup()
1515 CodeFramework . iOS . Theme . CurrentTheme = theme ;
1616
1717 var defaultValues = Cirrious . CrossCore . Mvx . Resolve < CodeFramework . Core . Services . IDefaultValueService > ( ) ;
18- Theme . CurrentTheme . FontSizeRatio = defaultValues . Get < bool > ( "large_fonts" ) ? 1.3f : 1.0f ;
1918
20- RepositoryCellView . RoundImages = false ;
21- MonoTouch . Dialog . NameTimeStringElement . NameColor = Theme . CurrentTheme . MainTitleColor ;
19+ bool largeFonts ;
20+ if ( ! defaultValues . TryGet < bool > ( "large_fonts" , out largeFonts ) )
21+ largeFonts = false ;
22+ Theme . CurrentTheme . FontSizeRatio = largeFonts ? 1.3f : 1.0f ;
23+
24+ RepositoryCellView . RoundImages = false ;
25+ MonoTouch . Dialog . NameTimeStringElement . NameColor = Theme . CurrentTheme . MainTitleColor ;
2226 MonoTouch . Dialog . Element . FontSizeRatio = Theme . CurrentTheme . FontSizeRatio ;
2327
2428 UIApplication . SharedApplication . StatusBarStyle = UIStatusBarStyle . LightContent ;
@@ -67,16 +71,16 @@ public UITextAttributes SegmentedControlText
6771 } ;
6872 }
6973 }
70- public UIImage CheckButton { get { return UIImageHelper . FromFileAuto ( "Images/Buttons/check" ) ; } }
74+ public UIImage CheckButton { get { return UIImageHelper . FromFileAuto ( "Images/Buttons/check" ) ; } }
7175 public UIImage BackButton { get { return UIImageHelper . FromFileAuto ( "Images/Buttons/back" ) ; } }
7276 public UIImage ThreeLinesButton { get { return UIImageHelper . FromFileAuto ( "Images/Buttons/three_lines" ) ; } }
7377 public UIImage CancelButton { get { return UIImageHelper . FromFileAuto ( "Images/Buttons/cancel" ) ; } }
74- public UIImage SortButton { get { return UIImageHelper . FromFileAuto ( "Images/Buttons/sort" ) ; } }
78+ public UIImage SortButton { get { return UIImageHelper . FromFileAuto ( "Images/Buttons/sort" ) ; } }
7579 public UIImage SaveButton { get { return UIImageHelper . FromFileAuto ( "Images/Buttons/save" ) ; } }
7680 public UIImage ViewButton { get { return UIImageHelper . FromFileAuto ( "Images/Buttons/view" ) ; } }
7781 public UIImage ForkButton { get { return UIImageHelper . FromFileAuto ( "Images/Buttons/fork" ) ; } }
78- public UIImage WebBackButton { get { return UIImageHelper . FromFileAuto ( "Images/Web/back" ) ; } }
79- public UIImage WebFowardButton { get { return UIImageHelper . FromFileAuto ( "Images/Web/forward" ) ; } }
82+ public UIImage WebBackButton { get { return UIImageHelper . FromFileAuto ( "Images/Web/back" ) ; } }
83+ public UIImage WebFowardButton { get { return UIImageHelper . FromFileAuto ( "Images/Web/forward" ) ; } }
8084
8185 public UIImage AnonymousUserImage { get { return Images . Anonymous ; } }
8286
@@ -135,29 +139,29 @@ public UIImage RepositoryCellUser
135139
136140 public UIColor WebButtonTint { get { return UIColor . FromRGB ( 127 , 125 , 125 ) ; } }
137141
138- public UIColor AccountsNavigationBarTint
139- {
140- get
141- {
142- return UIColor . Red ;
143- }
144- }
145-
146- public UIColor SlideoutNavigationBarTint
147- {
148- get
149- {
150- return UIColor . Black ;
151- }
152- }
153-
154- public UIColor ApplicationNavigationBarTint
155- {
156- get
157- {
158- return UIColor . Black ;
159- }
160- }
142+ public UIColor AccountsNavigationBarTint
143+ {
144+ get
145+ {
146+ return UIColor . Red ;
147+ }
148+ }
149+
150+ public UIColor SlideoutNavigationBarTint
151+ {
152+ get
153+ {
154+ return UIColor . Black ;
155+ }
156+ }
157+
158+ public UIColor ApplicationNavigationBarTint
159+ {
160+ get
161+ {
162+ return UIColor . Black ;
163+ }
164+ }
161165
162166 public float FontSizeRatio { get ; set ; }
163167 }
0 commit comments