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 087a59a commit b6d2e91
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 9 deletions.
2 changes: 1 addition & 1 deletion source/DerivedStyles/DetailsViewItemTemplate.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
VerticalContentAlignment="Center"
Margin="0,0,0,0"
Opacity="0" DockPanel.Dock="Right"
Height="{Binding Height, ElementName=PART_ImageIcon, Mode=OneWay}"
Height="{Binding Height, ElementName=PART_ImageIcon, Mode=OneWay}" MaxHeight="25"
RenderOptions.BitmapScalingMode="Fant" />
<Image Name="PART_ImageIcon"
Height="{Settings DetailsViewListIconSize}"
Expand Down
8 changes: 7 additions & 1 deletion source/Views/DetailsViewGameOverview.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -289,13 +289,19 @@

<ContentControl x:Name="LibraryManagement_PluginFeaturesIconList"
Height="35"
Margin="30,0,0,0"
Margin="15,0,0,0"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Opacity="0.85"
Visibility="{PluginSettings Plugin=LibraryManagement,
Path=EnableIntegrationFeatures,
FallbackValue=Collapsed,
Converter={StaticResource BooleanToVisibilityConverter}}" />

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

</StackPanel>
Expand Down
25 changes: 18 additions & 7 deletions source/Views/GridViewGameOverview.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,24 @@

</DockPanel>

<ContentControl x:Name="DuplicateHider_SourceSelector"
Height="24"
Margin="0,0,0,0"
HorizontalAlignment="Right"
VerticalContentAlignment="Center"
DockPanel.Dock="Top"
RenderOptions.BitmapScalingMode="Fant" />
<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 Margin="0,10,0,10" DockPanel.Dock="Top">
<Grid.ColumnDefinitions>
Expand Down

0 comments on commit b6d2e91

Please sign in to comment.