Skip to content

Commit

Permalink
Update v3.90
Browse files Browse the repository at this point in the history
- Fixed details panel when option for 1 column is enabled (Asked by xCeeTee)
    - All the item will now be visible
    - Margins are to be ameliored when this option is enabled
- Added support for plugin Theme Options from ashpynov
    - Added a preset to enable/disable rounded corner for Windows 11 (Asked by lionnesquaer)
    - Added a preset to change the Playnite logo of the theme
    - There is 5 Playnite logo you can choose from
    - eMixedNiteMC logo is enabled by default
    - To re-enable the default Playnite logo, go in the plugin settings of Theme Options
- Re-added both detail view value horizontal alignement options
    - Removed Global Text banner vertical and Horizontal alignment options from ThemeModifier file
    - you can still change these otpions manually in the constants file
- Changed default value of constants for Top Panel, Side Panel, Side Icon Panel
    - Default value for these constants is now "transparent"
  • Loading branch information
MCC321-QC committed Oct 28, 2024
1 parent 730c5e8 commit a99e7db
Show file tree
Hide file tree
Showing 29 changed files with 2,426 additions and 11 deletions.
4 changes: 2 additions & 2 deletions source/Constants.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
<!-- General Panels Settings -->
<sys:Double x:Key="DetailPanelOpacity">0.5</sys:Double>
<sys:Double x:Key="DetailPanelLessOpacity">0.7</sys:Double>
<SolidColorBrush x:Key="TopPanelBrush" Color="#FF262626" />
<SolidColorBrush x:Key="SideIconBrush" Color="#FF262626" />
<SolidColorBrush x:Key="TopPanelBrush" Color="#00000000" />
<SolidColorBrush x:Key="SideIconBrush" Color="#00000000" />
<SolidColorBrush x:Key="SidePanelBrush" Color="#00000000" />
<sys:Boolean x:Key="SecondLinksPanelVisibility">True</sys:Boolean> <!-- Values: True False -->
<sys:Boolean x:Key="DLinkVisibilityIfSLinksOn">True</sys:Boolean> <!-- Values: True False -->
Expand Down
Binary file added source/Images/applogo_eMixedNiteMC.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
55 changes: 55 additions & 0 deletions source/Presets/PlayniteLogo/BlackLogo/Views/Sidebar.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d">

<Style TargetType="{x:Type Sidebar}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Sidebar}">
<Border BorderThickness="0,0,0,0" BorderBrush="{DynamicResource PanelSeparatorBrush}"
x:Name="BorderContentHolder" Margin="{TemplateBinding Padding}">
<DockPanel x:Name="DockContentHolder" Background="{DynamicResource SidePanelBrush}">
<Border x:Name="PART_ElemMainMenu" Background="{DynamicResource SideIconBrush}"
Width="44" Height="44" Margin="2,0,-2,0"
DockPanel.Dock="Top" Padding="3" Cursor="Hand"
WindowChrome.IsHitTestVisibleInChrome="True">
<Image Source="{ThemeFile 'Images/applogo_black.ico'}"
RenderOptions.BitmapScalingMode="Fant" />
</Border>

<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Hidden"
DockPanel.Dock="Top" CanContentScroll="True"
x:Name="ScrollSidebarItems">
<StackPanel x:Name="PART_PanelSideBarItems" Orientation="Vertical" />
</ScrollViewer>
</DockPanel>
</Border>
<ControlTemplate.Triggers>
<DataTrigger Binding="{Settings SidebarPosition}" Value="Right">
<Setter Property="Padding" Value="0,25,0,0" />
<Setter Property="Margin" Value="0,0,0,5" TargetName="PART_ElemMainMenu" />
<Setter Property="BorderThickness" Value="1,0,0,0" TargetName="BorderContentHolder" />
</DataTrigger>
<DataTrigger Binding="{Settings SidebarPosition}" Value="Top">
<Setter Property="Margin" Value="0,0,5,0" TargetName="PART_ElemMainMenu" />
<Setter Property="BorderThickness" Value="0,0,0,1" TargetName="BorderContentHolder" />
<Setter Property="DockPanel.Dock" Value="Left" TargetName="PART_ElemMainMenu" />
<Setter Property="DockPanel.Dock" Value="Left" TargetName="ScrollSidebarItems" />
<Setter Property="Margin" Value="0,0,100,0" TargetName="ScrollSidebarItems" />
<Setter Property="Orientation" Value="Horizontal" TargetName="PART_PanelSideBarItems" />
</DataTrigger>
<DataTrigger Binding="{Settings SidebarPosition}" Value="Bottom">
<Setter Property="Margin" Value="0,0,5,0" TargetName="PART_ElemMainMenu" />
<Setter Property="BorderThickness" Value="0,1,0,0" TargetName="BorderContentHolder" />
<Setter Property="DockPanel.Dock" Value="Left" TargetName="PART_ElemMainMenu" />
<Setter Property="DockPanel.Dock" Value="Left" TargetName="ScrollSidebarItems" />
<Setter Property="Orientation" Value="Horizontal" TargetName="PART_PanelSideBarItems" />
</DataTrigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>
Loading

0 comments on commit a99e7db

Please sign in to comment.