Skip to content

Commit

Permalink
Increase default image sizes on Dashboard & fix Missing Eps Padding
Browse files Browse the repository at this point in the history
  • Loading branch information
ElementalCrisis committed Jul 3, 2018
1 parent 146110b commit 042d832
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions Shoko.Desktop/AppSettings.cs
Expand Up @@ -510,7 +510,7 @@ public static int DisplayHeight_DashImage
get get
{ {
string val = Get("DisplayHeight_DashImage"); string val = Get("DisplayHeight_DashImage");
if (!int.TryParse(val, out var ival)) return 150; // default value if (!int.TryParse(val, out var ival)) return 200; // default value
if (ival < 30) if (ival < 30)
return 30; return 30;


Expand Down Expand Up @@ -979,7 +979,7 @@ public static int Dash_WatchNext_Height
get get
{ {
string val = Get("Dash_WatchNext_Height"); string val = Get("Dash_WatchNext_Height");
if (!int.TryParse(val, out var ival)) return 150; // default value if (!int.TryParse(val, out var ival)) return 200; // default value
if (ival < 30) if (ival < 30)
return 30; return 30;


Expand All @@ -997,7 +997,7 @@ public static int Dash_RecentAdditions_Height
get get
{ {
string val = Get("Dash_RecentAdditions_Height"); string val = Get("Dash_RecentAdditions_Height");
if (!int.TryParse(val, out var ival)) return 150; // default value if (!int.TryParse(val, out var ival)) return 200; // default value
if (ival < 30) if (ival < 30)
return 30; return 30;


Expand Down Expand Up @@ -1041,7 +1041,7 @@ public static int Dash_RecentlyWatchedEp_Height
get get
{ {
string val = Get("Dash_RecentlyWatchedEp_Height"); string val = Get("Dash_RecentlyWatchedEp_Height");
if (!int.TryParse(val, out var ival)) return 150; // default value if (!int.TryParse(val, out var ival)) return 200; // default value
if (ival < 30) if (ival < 30)
return 30; return 30;


Expand Down Expand Up @@ -1074,7 +1074,7 @@ public static int Dash_MissingEps_Height
get get
{ {
string val = Get("Dash_MissingEps_Height"); string val = Get("Dash_MissingEps_Height");
if (!int.TryParse(val, out var ival)) return 150; // default value if (!int.TryParse(val, out var ival)) return 200; // default value
if (ival < 30) if (ival < 30)
return 30; return 30;


Expand Down Expand Up @@ -1119,7 +1119,7 @@ public static int Dash_MiniCalendar_Height
get get
{ {
string val = Get("Dash_MiniCalendar_Height"); string val = Get("Dash_MiniCalendar_Height");
if (!int.TryParse(val, out var ival)) return 150; // default value if (!int.TryParse(val, out var ival)) return 200; // default value
if (ival < 30) if (ival < 30)
return 30; return 30;


Expand All @@ -1137,7 +1137,7 @@ public static int Dash_RecWatch_Height
get get
{ {
string val = Get("Dash_RecWatch_Height"); string val = Get("Dash_RecWatch_Height");
if (!int.TryParse(val, out var ival)) return 150; // default value if (!int.TryParse(val, out var ival)) return 200; // default value
if (ival < 30) if (ival < 30)
return 30; return 30;


Expand Down Expand Up @@ -1169,7 +1169,7 @@ public static int Dash_RecDownload_Height
get get
{ {
string val = Get("Dash_RecDownload_Height"); string val = Get("Dash_RecDownload_Height");
if (!int.TryParse(val, out var ival)) return 150; // default value if (!int.TryParse(val, out var ival)) return 200; // default value
if (ival < 30) if (ival < 30)
return 30; return 30;


Expand Down Expand Up @@ -1201,7 +1201,7 @@ public static int Dash_TraktFriends_Height
get get
{ {
string val = Get("Dash_TraktFriends_Height"); string val = Get("Dash_TraktFriends_Height");
if (!int.TryParse(val, out var ival)) return 150; // default value if (!int.TryParse(val, out var ival)) return 200; // default value
if (ival < 30) if (ival < 30)
return 30; return 30;


Expand Down Expand Up @@ -1255,7 +1255,7 @@ public static int SeriesGroup_Image_Height
get get
{ {
string val = Get("SeriesGroup_Image_Height"); string val = Get("SeriesGroup_Image_Height");
if (!int.TryParse(val, out var ival)) return 150; // default value if (!int.TryParse(val, out var ival)) return 200; // default value
if (ival < 80) if (ival < 80)
return 80; return 80;


Expand Down
4 changes: 2 additions & 2 deletions Shoko.Desktop/UserControls/DashboardControl.xaml
Expand Up @@ -277,10 +277,10 @@
<TextBlock Text="{Resx ResxName=Shoko.Commons.Properties.Resources, Key=LatestEp_Anime}" Foreground="Black" <TextBlock Text="{Resx ResxName=Shoko.Commons.Properties.Resources, Key=LatestEp_Anime}" Foreground="Black"
VerticalAlignment="Center" HorizontalAlignment="Left" Grid.Column="1" Grid.Row="0"/> VerticalAlignment="Center" HorizontalAlignment="Left" Grid.Column="1" Grid.Row="0"/>
<TextBlock Text="{Binding Path=AniDBAnime.AniDBAnime.LatestEpisodeNumber}" Foreground="Black" FontWeight="Bold" <TextBlock Text="{Binding Path=AniDBAnime.AniDBAnime.LatestEpisodeNumber}" Foreground="Black" FontWeight="Bold"
VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Column="2" Grid.Row="0" Margin="8,0,0,0"/> VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Column="2" Grid.Row="0" Margin="16,0,0,0"/>
<TextBlock Text="{Resx ResxName=Shoko.Commons.Properties.Resources, Key=MissingEpisodeCount}" Foreground="Black" <TextBlock Text="{Resx ResxName=Shoko.Commons.Properties.Resources, Key=MissingEpisodeCount}" Foreground="Black"
VerticalAlignment="Center" HorizontalAlignment="Left" Grid.Column="1" Grid.Row="1"/> VerticalAlignment="Center" HorizontalAlignment="Left" Grid.Column="1" Grid.Row="1"/>
<TextBlock Text="{Binding Path=MissingEpisodeCountGroups}" Foreground="Black" FontWeight="Bold" Margin="8,0,0,0" <TextBlock Text="{Binding Path=MissingEpisodeCountGroups}" Foreground="Black" FontWeight="Bold" Margin="16,0,0,0"
VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Column="2" Grid.Row="1"/> VerticalAlignment="Center" HorizontalAlignment="Right" Grid.Column="2" Grid.Row="1"/>
</Grid> </Grid>
</StackPanel> </StackPanel>
Expand Down

0 comments on commit 042d832

Please sign in to comment.