Commits

Ron Huang  committed 325209e

Added link to source code.

  • Participants
  • Parent commits 2da07e7

Comments (0)

Files changed (3)

File WhereIsMakkah/Lang/AppResources.Designer.cs

         }
         
         /// <summary>
-        ///   Looks up a localized string similar to Arrow is pointing toward Makkah..
-        /// </summary>
-        public static string FeedbackReadyLabel {
-            get {
-                return ResourceManager.GetString("FeedbackReadyLabel", resourceCulture);
-            }
-        }
-        
-        /// <summary>
         ///   Looks up a localized string similar to Starting location service. This may take a while..
         /// </summary>
         public static string FeedbackStartingLabel {
         }
         
         /// <summary>
-        ///   Looks up a localized string similar to Note: with Windows Phone 7.5, you no longer have to manually point the top of the phone toward north first to show the direction to Makkah..
+        ///   Looks up a localized string similar to Note: Motion API may be interfered by the surroundings of the phone, such as magnets and metels. Please be warned that the direction might not be 100% correct..
         /// </summary>
         public static string NoteLabel {
             get {
         }
         
         /// <summary>
+        ///   Looks up a localized string similar to Source Code.
+        /// </summary>
+        public static string SourceCodeLabel {
+            get {
+                return ResourceManager.GetString("SourceCodeLabel", resourceCulture);
+            }
+        }
+        
+        /// <summary>
         ///   Looks up a localized string similar to Where Is Makkah.
         /// </summary>
         public static string TitleLabel {

File WhereIsMakkah/Lang/AppResources.resx

   <data name="FeedbackNotAvailableLabel" xml:space="preserve">
     <value>Location data is not available.</value>
   </data>
-  <data name="FeedbackReadyLabel" xml:space="preserve">
-    <value>Arrow is pointing toward Makkah.</value>
-  </data>
   <data name="FeedbackStartingLabel" xml:space="preserve">
     <value>Starting location service. This may take a while.</value>
   </data>
     <value>kilometer(s)</value>
   </data>
   <data name="NoteLabel" xml:space="preserve">
-    <value>Note: with Windows Phone 7.5, you no longer have to manually point the top of the phone toward north first to show the direction to Makkah.</value>
+    <value>Note: Motion API may be interfered by the surroundings of the phone, such as magnets and metels. Please be warned that the direction might not be 100% correct.</value>
   </data>
   <data name="SettingsTitle" xml:space="preserve">
     <value>Settings</value>
   </data>
+  <data name="SourceCodeLabel" xml:space="preserve">
+    <value>Source Code</value>
+  </data>
   <data name="TitleLabel" xml:space="preserve">
     <value>Where Is Makkah</value>
   </data>

File WhereIsMakkah/View/SettingsPage.xaml

             	</ScrollViewer>
             </controls:PivotItem>
             <controls:PivotItem x:Name="License" Header="{Binding Path=LocalizedResources.LicenseLabel, Source={StaticResource LocalizedStrings}}">
-            	<StackPanel d:LayoutOverrides="Width, Height">
-            		<TextBlock Text="{Binding LocalizedResources.TitleLabel, Source={StaticResource LocalizedStrings}}" Style="{StaticResource PhoneTextSmallStyle}" TextWrapping="Wrap" />
-            		<TextBlock Text="{Binding LocalizedResources.AppCopyrightText, Source={StaticResource LocalizedStrings}}" Style="{StaticResource PhoneTextNormalStyle}" TextWrapping="Wrap" Margin="{StaticResource PhoneMargin}" />
-            		<TextBlock Text="{Binding LocalizedResources.IconLabel, Source={StaticResource LocalizedStrings}}" Style="{StaticResource PhoneTextSmallStyle}" TextWrapping="Wrap" />
-            		<TextBlock Text="{Binding LocalizedResources.IconCopyrightText, Source={StaticResource LocalizedStrings}}" Style="{StaticResource PhoneTextNormalStyle}" TextWrapping="Wrap" Margin="{StaticResource PhoneMargin}" />
-            		<TextBlock Text="{Binding LocalizedResources.BackgroundLabel, Source={StaticResource LocalizedStrings}}" Style="{StaticResource PhoneTextSmallStyle}" TextWrapping="Wrap" />
-            		<TextBlock Text="{Binding LocalizedResources.BackgroundCopyrightText, Source={StaticResource LocalizedStrings}}" Style="{StaticResource PhoneTextNormalStyle}" TextWrapping="Wrap" Margin="{StaticResource PhoneMargin}" />
-            	</StackPanel>
+            	<ScrollViewer>
+            		<StackPanel>
+            			<TextBlock Text="{Binding LocalizedResources.TitleLabel, Source={StaticResource LocalizedStrings}}" Style="{StaticResource PhoneTextSmallStyle}" TextWrapping="Wrap" />
+            			<TextBlock Text="{Binding LocalizedResources.AppCopyrightText, Source={StaticResource LocalizedStrings}}" Style="{StaticResource PhoneTextNormalStyle}" TextWrapping="Wrap" Margin="{StaticResource PhoneMargin}" />
+            			<TextBlock Text="{Binding LocalizedResources.SourceCodeLabel, Source={StaticResource LocalizedStrings}}" Style="{StaticResource PhoneTextSmallStyle}" TextWrapping="Wrap" />
+            			<HyperlinkButton Content="https://bitbucket.org/" HorizontalAlignment="Left" Margin="{StaticResource PhoneVerticalMargin}" NavigateUri="https://bitbucket.org/ronhuang/where-is-makkah" TargetName="_blank" />
+            			<TextBlock Text="{Binding LocalizedResources.IconLabel, Source={StaticResource LocalizedStrings}}" Style="{StaticResource PhoneTextSmallStyle}" TextWrapping="Wrap" />
+            			<TextBlock Text="{Binding LocalizedResources.IconCopyrightText, Source={StaticResource LocalizedStrings}}" Style="{StaticResource PhoneTextNormalStyle}" TextWrapping="Wrap" Margin="{StaticResource PhoneMargin}" />
+            			<TextBlock Text="{Binding LocalizedResources.BackgroundLabel, Source={StaticResource LocalizedStrings}}" Style="{StaticResource PhoneTextSmallStyle}" TextWrapping="Wrap" />
+            			<TextBlock Text="{Binding LocalizedResources.BackgroundCopyrightText, Source={StaticResource LocalizedStrings}}" Style="{StaticResource PhoneTextNormalStyle}" TextWrapping="Wrap" Margin="{StaticResource PhoneMargin}" />
+            		</StackPanel>
+            	</ScrollViewer>
             </controls:PivotItem>
         </controls:Pivot>
     </Grid>