Skip to content

Commit

Permalink
close #20
Browse files Browse the repository at this point in the history
  • Loading branch information
tkowalczyk committed May 24, 2015
1 parent 78e8756 commit b83b57e
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 3 deletions.
20 changes: 20 additions & 0 deletions Application/DevTalkMobile/Views/HomeView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,26 @@ public HomeView ()
activity.SetBinding(ActivityIndicator.IsRunningProperty, "IsBusy");
#endregion

#region Platform Specific Code
Device.OnPlatform (
iOS: () => {
buttonPlay.TextColor = Color.FromHex("#ffffff");
buttonPlay.FontFamily = "HelveticaNeue-Thin";
title.FontFamily = "HelveticaNeue-Thin";
category.FontFamily = "HelveticaNeue-Thin";
date.FontFamily = "HelveticaNeue-Thin";
dateLabel.FontFamily = "HelveticaNeue-Thin";
},
Android: () => {
buttonPlay.FontFamily = "sans-serif-condensed";
title.FontFamily = "sans-serif-condensed";
category.FontFamily = "sans-serif-condensed";
date.FontFamily = "sans-serif-condensed";
dateLabel.FontFamily = "sans-serif-condensed";
}
);
#endregion

var overlay = new AbsoluteLayout();

AbsoluteLayout.SetLayoutFlags(mainGrid, AbsoluteLayoutFlags.PositionProportional);
Expand Down
23 changes: 21 additions & 2 deletions Application/DevTalkMobile/Views/SocialView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,25 @@ public SocialView ()
};
#endregion

#region Platform Specific Code
Device.OnPlatform (
iOS: () => {
rssButton.TextColor = Color.FromHex("#ffffff");
rssButton.FontFamily = "HelveticaNeue-Thin";
emailButton.TextColor = Color.FromHex("#ffffff");
emailButton.FontFamily = "HelveticaNeue-Thin";
facebookButton.TextColor = Color.FromHex("#ffffff");
facebookButton.FontFamily = "HelveticaNeue-Thin";
twitterButton.TextColor = Color.FromHex("#ffffff");
twitterButton.FontFamily = "HelveticaNeue-Thin";
itunesButton.TextColor = Color.FromHex("#ffffff");
itunesButton.FontFamily = "HelveticaNeue-Thin";
}
);
#endregion

this.Content = new StackLayout {
HorizontalOptions = LayoutOptions.Center,
VerticalOptions = LayoutOptions.Center,
VerticalOptions = LayoutOptions.CenterAndExpand,
Spacing = 5,
Children = {
rssButton,
Expand All @@ -94,6 +110,9 @@ public SocialView ()
itunesButton,
}
};

// Accomodate iPhone status bar.
this.Padding = new Thickness(30, Device.OnPlatform(20, 0, 0), 30, 5);
}
}
}
2 changes: 1 addition & 1 deletion Application/iOS/Renderers/AudioPlayerRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
using System.Timers;
using AVFoundation;
using CoreMedia;
using DevTalkMobile.CustomControls;
using Foundation;
using Hanselman.iOS.Renderers;
using Xamarin.Forms;
using Xamarin.Forms.Platform.iOS;
using DevTalkMobile.CustomControls;

[assembly: ExportCell(typeof(AudioPlayer), typeof(AudioPlayerRenderer))]
namespace Hanselman.iOS.Renderers
Expand Down

0 comments on commit b83b57e

Please sign in to comment.