Skip to content

Commit

Permalink
Fix country flag position in geoinfo
Browse files Browse the repository at this point in the history
Centered it vertically
  • Loading branch information
Tyrrrz committed Jan 27, 2017
1 parent d0ec3bf commit f7ad3ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion LightBulb/Views/GeolocationSettingsPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,13 @@
<Image Grid.Column="0"
Height="16"
Margin="5,0,5,5"
VerticalAlignment="Top"
VerticalAlignment="Center"
Source="{Binding Settings.GeoInfo.CountryFlag, IsAsync=True}"
Visibility="{Binding Settings.GeoinfoNotNull, Converter={StaticResource BoolToVisibilityConverter}, ConverterParameter=Collapsed}" />

<!-- Geoinfo is set -->
<TextBlock Grid.Column="1"
VerticalAlignment="Top"
TextWrapping="Wrap"
Visibility="{Binding Settings.GeoinfoNotNull, Converter={StaticResource BoolToVisibilityConverter}, ConverterParameter=Collapsed}">
<Run Foreground="{DynamicResource PrimaryTextBrush}" Text="{Binding Settings.GeoInfo.City, Mode=OneWay, TargetNullValue=???}" />
Expand All @@ -99,6 +100,7 @@
</TextBlock>
<!-- Geoinfo is not set -->
<TextBlock Grid.Column="1"
VerticalAlignment="Top"
Text="Geographical location is undetermined"
TextWrapping="Wrap"
ToolTip="If this message doesn't disappear after some time, it might mean that the geolocation server is down"
Expand Down

0 comments on commit f7ad3ec

Please sign in to comment.