Skip to content

Commit

Permalink
Merge pull request #806 from dremin/fix-unlocked-scale
Browse files Browse the repository at this point in the history
Fix unlocked taskbar scaling size
  • Loading branch information
dremin authored Apr 22, 2024
2 parents e77fb64 + a4e854b commit f7d0ff5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RetroBar/Taskbar.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public Taskbar(WindowManager windowManager, ShellManager shellManager, StartMenu

if (AppBarMode == AppBarMode.AutoHide || !Settings.Instance.LockTaskbar)
{
double unlockedSize = Application.Current.FindResource("TaskbarUnlockedSize") as double? ?? 0;
double unlockedSize = Settings.Instance.TaskbarScale * (Application.Current.FindResource("TaskbarUnlockedSize") as double? ?? 0);
DesiredHeight += unlockedSize;
DesiredWidth += unlockedSize;
}
Expand Down Expand Up @@ -157,7 +157,7 @@ private void RecalculateSize()

if (AppBarMode == AppBarMode.AutoHide || !Settings.Instance.LockTaskbar)
{
double unlockedSize = Application.Current.FindResource("TaskbarUnlockedSize") as double? ?? 0;
double unlockedSize = Settings.Instance.TaskbarScale * (Application.Current.FindResource("TaskbarUnlockedSize") as double? ?? 0);
newHeight += unlockedSize;
newWidth += unlockedSize;
}
Expand Down

0 comments on commit f7d0ff5

Please sign in to comment.