Skip to content

Commit

Permalink
Merge pull request #375 from xoascf/fix-margins
Browse files Browse the repository at this point in the history
Fix tray icon margins and clock margins
  • Loading branch information
dremin authored Jul 18, 2022
2 parents 5d932d9 + 1f45c12 commit b96ba72
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 9 deletions.
21 changes: 16 additions & 5 deletions RetroBar/Themes/Windows XP Blue.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@
BorderBrush="{DynamicResource TrayLeftBorder4}"
Padding="7,0,0,0"
Name="TrayInnerBorder4">
<ContentPresenter Margin="0,0,4,0"
<ContentPresenter Margin="0,0,6,0"
Name="Content" />
</Border>
</Border>
Expand Down Expand Up @@ -461,7 +461,7 @@
Value="{DynamicResource TrayVerticalBackground}" />
<Setter TargetName="Content"
Property="Margin"
Value="0,0,0,7" />
Value="0,0,0,6" />
</DataTrigger.Setters>
</DataTrigger>
</ControlTemplate.Triggers>
Expand Down Expand Up @@ -1274,13 +1274,13 @@
x:Key="Clock"
BasedOn="{StaticResource Clock}">
<Setter Property="Margin"
Value="3,-1,10,0" />
Value="8,-1,11,0" />
<Style.Triggers>
<DataTrigger Binding="{Binding Path=Orientation, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}"
Value="Vertical">
<DataTrigger.Setters>
<Setter Property="Margin"
Value="0,2" />
Value="0,1,1,6" />
</DataTrigger.Setters>
</DataTrigger>
</Style.Triggers>
Expand All @@ -1295,11 +1295,13 @@
</TextBlock>
<TextBlock Text="{Binding Path=Now, StringFormat=dddd, Mode=OneWay}"
Style="{DynamicResource Clock}"
Margin="0,0,0,6"
Name="ClockVerticalDayOfWeek"
Visibility="Collapsed">
</TextBlock>
<TextBlock Text="{Binding Path=Now, StringFormat=d, Mode=OneWay}"
Style="{DynamicResource Clock}"
Margin="0,0,0,3"
Name="ClockVerticalDate"
Visibility="Collapsed">
</TextBlock>
Expand All @@ -1323,7 +1325,16 @@
x:Key="NotifyIcon"
BasedOn="{StaticResource NotifyIcon}">
<Setter Property="Margin"
Value="0,2,4,2" />
Value="0,2,2,2" />
<Style.Triggers>
<DataTrigger Binding="{Binding Path=Orientation, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}"
Value="Vertical">
<DataTrigger.Setters>
<Setter Property="Margin"
Value="2,2,0,2" />
</DataTrigger.Setters>
</DataTrigger>
</Style.Triggers>
</Style>

<Style TargetType="ItemsControl"
Expand Down
4 changes: 2 additions & 2 deletions RetroBar/Themes/Windows XP Royale.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@
BorderBrush="{DynamicResource TrayLeftBorder1}"
Padding="7,0,0,0"
Name="TrayInnerBorder1">
<ContentPresenter Margin="0,0,4,0"
<ContentPresenter Margin="0,0,6,0"
Name="Content" />
</Border>
</Border>
Expand Down Expand Up @@ -466,7 +466,7 @@
Value="{DynamicResource TrayVerticalBackground}" />
<Setter TargetName="Content"
Property="Margin"
Value="0,0,1,7" />
Value="0,0,0,6" />
</DataTrigger.Setters>
</DataTrigger>
</ControlTemplate.Triggers>
Expand Down
4 changes: 2 additions & 2 deletions RetroBar/Themes/Windows XP Silver.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@
BorderBrush="{DynamicResource TrayLeftBorder4}"
Padding="7,0,0,0"
Name="TrayInnerBorder4">
<ContentPresenter Margin="0,1,4,0"
<ContentPresenter Margin="0,1,6,0"
Name="Content" />
</Border>
</Border>
Expand Down Expand Up @@ -488,7 +488,7 @@
Value="{DynamicResource TrayVerticalBackground}" />
<Setter TargetName="Content"
Property="Margin"
Value="0,0,-1,7" />
Value="0,0,-1,6" />
</DataTrigger.Setters>
</DataTrigger>
</ControlTemplate.Triggers>
Expand Down

0 comments on commit b96ba72

Please sign in to comment.