Skip to content

Commit

Permalink
Added support to display GOG Second Class Watcher extension data on D…
Browse files Browse the repository at this point in the history
…etails View and Grid View
  • Loading branch information
darklinkpower committed Dec 7, 2024
1 parent 8228a5d commit 0b3ae84
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
2 changes: 2 additions & 0 deletions source/DerivedStyles/DetailsViewItemTemplate.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@
Margin="0,0,0,0"
Opacity="0" DockPanel.Dock="Right"
Height="{Binding Height, ElementName=PART_ImageIcon, Mode=OneWay}"
MaxHeight="25"
RenderOptions.BitmapScalingMode="Fant" />
<Image Name="PART_ImageIcon"
Height="{Settings DetailsViewListIconSize}"
Width="{Settings DetailsViewListIconSize}"
RenderOptions.BitmapScalingMode="Fant"
DockPanel.Dock="Left" Margin="0,0,8,0" />
<TextBlock Text="{Binding DisplayName}" TextTrimming="CharacterEllipsis" x:Name="DisplayName"
Expand Down
6 changes: 6 additions & 0 deletions source/Views/DetailsViewGameOverview.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@
<Style TargetType="Button" BasedOn="{StaticResource PlayersCountButtonStyle}" />
</ContentControl.Resources>
</ContentControl>

<ContentControl x:Name="GogSecondClassWatcher_SecondClassWatcherControl"
DockPanel.Dock="Left" HorizontalAlignment="Left"
VerticalAlignment="Center"
Visibility="{PluginSettings Plugin=GogSecondClassWatcher, Path=IsControlVisible, FallbackValue=Collapsed, Converter={StaticResource BooleanToVisibilityConverter}}"
Margin="10,0,0,0"/>
</DockPanel>
</WrapPanel>
</DockPanel>
Expand Down
18 changes: 15 additions & 3 deletions source/Views/GridViewGameOverview.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,25 @@

</DockPanel>

<ContentControl DockPanel.Dock="Top" x:Name="DuplicateHider_SourceSelector"
HorizontalAlignment="Right"
VerticalContentAlignment="Center"
<DockPanel Margin="0,5,0,0" DockPanel.Dock="Top" LastChildFill="False">
<ContentControl x:Name="DuplicateHider_SourceSelector"
Visibility="{PluginSettings Plugin=DuplicateHider, Path=EnableUiIntegration, FallbackValue=Collapsed, Converter={StaticResource BooleanToVisibilityConverter}}"
DockPanel.Dock="Right"
HorizontalAlignment="Right"
VerticalContentAlignment="Center"
VerticalAlignment="Center"
Margin="0,0,0,0"
Height="24"
RenderOptions.BitmapScalingMode="Fant" />

<ContentControl x:Name="GogSecondClassWatcher_SecondClassWatcherControl"
DockPanel.Dock="Right"
HorizontalAlignment="Right"
VerticalAlignment="Center"
Visibility="{PluginSettings Plugin=GogSecondClassWatcher, Path=IsControlVisible, FallbackValue=Collapsed, Converter={StaticResource BooleanToVisibilityConverter}}"
Margin="0,0,10,0"/>
</DockPanel>

<Grid DockPanel.Dock="Top" Margin="0,10,0,10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" MaxWidth="150" />
Expand Down

0 comments on commit 0b3ae84

Please sign in to comment.