Skip to content

Portable Tool for an Ideal Windows Setup

-changed

Greedeks9c545ffe18f7
diff --git a/.Source/GTweak/Assets/UserControl/ToggleButton.xaml.cs b/.Source/GTweak/Assets/UserControl/ToggleButton.xaml.cs
index 2709578a..8621360b 100644
--- a/.Source/GTweak/Assets/UserControl/ToggleButton.xaml.cs
+++ b/.Source/GTweak/Assets/UserControl/ToggleButton.xaml.cs
@@ -98,7 +98,7 @@ namespace GTweak.Assets.UserControl
};
Timeline.SetDesiredFrameRate(brushanimation, 400);
Back.BeginAnimation(Shape.FillProperty, brushanimation);
- ToggleText.Style = (Style)Application.Current.Resources["Text"];
+ ToggleText.Style = (Style)FindResource("Text");
}
else if (!isState && Dot.Margin != _leftSide)
@@ -127,7 +127,7 @@ namespace GTweak.Assets.UserControl
};
Timeline.SetDesiredFrameRate(brushanimation, 400);
Back.BeginAnimation(Shape.FillProperty, brushanimation);
- ToggleText.Style = (Style)Application.Current.Resources["Text_In"];
+ ToggleText.Style = (Style)FindResource("Text_In");
}
}
}
diff --git a/.Source/GTweak/Styles/Slider.xaml b/.Source/GTweak/Styles/Slider.xaml
index bfc2a528..89ca6f19 100644
--- a/.Source/GTweak/Styles/Slider.xaml
+++ b/.Source/GTweak/Styles/Slider.xaml
@@ -23,7 +23,7 @@
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="RepeatButton">
- <Border SnapsToDevicePixels="True" Background="{DynamicResource Color_Accent}" BorderThickness="1" BorderBrush="{DynamicResource Color_Border_Slider}" Height="5" CornerRadius="1,0,0,1"/>
+ <Border SnapsToDevicePixels="True" Background="{DynamicResource Color_Accent}" BorderThickness="1" BorderBrush="{DynamicResource Color_Border}" Height="5" CornerRadius="1,0,0,1"/>
</ControlTemplate>
</Setter.Value>
</Setter>