-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 2.4.4
- 2.4.3
- 2.4.2
- 2.4.1
- 2.4.0
- 2.3.4
- 2.3.3
- 2.3.2
- 2.3.1
- 2.3.0
- 2.2.15
- 2.2.13
- 2.2.12
- 2.2.11
- 2.2.10
- 2.2.9
- 2.2.8
- 2.2.6
- 2.2.5
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.0
- 1.0.9.1
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6.2
- 1.0.6.1
- 1.0.6
- 1.0.5.4
- 1.0.5.3
- 1.0.5.2
- 1.0.5.1
- 1.0.5
- 1.0.4.1
- 1.0.4
- 1.0.3.5
- 1.0.3.4
- 1.0.3.3
- 1.0.3.2
- 1.0.3.1
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 0.9.4
- 0.9.3
- 0.9.2
- 0.9.1
- 0.9.0
- 0.8.1
- 0.8.0
- 0.7.1
- 0.7.0
- 0.6.1
- 0.6.0
- 0.5.4
- 0.5.3
- 0.5.2
- 0.5.1
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.0
Showing
7 changed files
with
177 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
<UserControl x:Class="AATUV3.Pages.AMDCPU.AMDCustomPresets" | ||
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" | ||
xmlns:local="clr-namespace:AATUV3.Pages" | ||
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" | ||
mc:Ignorable="d" | ||
d:DesignHeight="500" d:DesignWidth="850"> | ||
<UserControl.Resources> | ||
<Style x:Key="FocusVisual"> | ||
<Setter Property="Control.Template"> | ||
<Setter.Value> | ||
<ControlTemplate> | ||
<Rectangle Margin="2" StrokeDashArray="1 2" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" SnapsToDevicePixels="true" StrokeThickness="1"/> | ||
</ControlTemplate> | ||
</Setter.Value> | ||
</Setter> | ||
</Style> | ||
<SolidColorBrush x:Key="Button.Static.Background" Color="#FFDDDDDD"/> | ||
<SolidColorBrush x:Key="Button.Static.Border" Color="#FF707070"/> | ||
<SolidColorBrush x:Key="Button.MouseOver.Background" Color="#FFBEE6FD"/> | ||
<SolidColorBrush x:Key="Button.MouseOver.Border" Color="#FF3C7FB1"/> | ||
<SolidColorBrush x:Key="Button.Pressed.Background" Color="#FFC4E5F6"/> | ||
<SolidColorBrush x:Key="Button.Pressed.Border" Color="#FF2C628B"/> | ||
<SolidColorBrush x:Key="Button.Disabled.Background" Color="#FFF4F4F4"/> | ||
<SolidColorBrush x:Key="Button.Disabled.Border" Color="#FFADB2B5"/> | ||
<SolidColorBrush x:Key="Button.Disabled.Foreground" Color="#FF838383"/> | ||
<Style x:Key="RoundedButtonStyle" TargetType="{x:Type Button}"> | ||
<Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/> | ||
<Setter Property="Background" Value="{StaticResource Button.Static.Background}"/> | ||
<Setter Property="BorderBrush" Value="{StaticResource Button.Static.Border}"/> | ||
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/> | ||
<Setter Property="BorderThickness" Value="1"/> | ||
<Setter Property="HorizontalContentAlignment" Value="Center"/> | ||
<Setter Property="VerticalContentAlignment" Value="Center"/> | ||
<Setter Property="Padding" Value="1"/> | ||
<Setter Property="Template"> | ||
<Setter.Value> | ||
<ControlTemplate TargetType="{x:Type Button}"> | ||
<Border x:Name="border" Background="{TemplateBinding Background}" CornerRadius="4" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="0" SnapsToDevicePixels="true"> | ||
<ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/> | ||
</Border> | ||
<ControlTemplate.Triggers> | ||
<Trigger Property="IsDefaulted" Value="true"> | ||
<Setter Property="BorderBrush" TargetName="border" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/> | ||
</Trigger> | ||
<Trigger Property="IsMouseOver" Value="true"> | ||
<Setter Property="Background" TargetName="border" Value="{DynamicResource PrimaryBlueColorHover}"/> | ||
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.MouseOver.Border}"/> | ||
</Trigger> | ||
<Trigger Property="IsPressed" Value="true"> | ||
<Setter Property="Background" TargetName="border" Value="{DynamicResource PrimaryBlueColorDown}"/> | ||
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Pressed.Border}"/> | ||
</Trigger> | ||
<Trigger Property="IsEnabled" Value="false"> | ||
<Setter Property="Background" TargetName="border" Value="{StaticResource Button.Disabled.Background}"/> | ||
<Setter Property="BorderBrush" TargetName="border" Value="{StaticResource Button.Disabled.Border}"/> | ||
<Setter Property="TextElement.Foreground" TargetName="contentPresenter" Value="{StaticResource Button.Disabled.Foreground}"/> | ||
</Trigger> | ||
</ControlTemplate.Triggers> | ||
</ControlTemplate> | ||
</Setter.Value> | ||
</Setter> | ||
</Style> | ||
</UserControl.Resources> | ||
<Grid> | ||
<Border CornerRadius="5" Background="{DynamicResource PrimaryBackgroundColor}"> | ||
<DockPanel LastChildFill="True"> | ||
<StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,6,4,0"> | ||
<Button Style="{DynamicResource RoundedButtonStyle}" Margin="0,0,3,3" Background="{DynamicResource PrimaryBlueColor}" FontSize="16" Foreground="White" Content="Apply Settings" Height="45" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="170" Click="Apply_Click"/> | ||
</StackPanel> | ||
<DockPanel LastChildFill="True" Margin="6,0,0,0"> | ||
<ScrollViewer VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Auto" Margin="0,0,0,0" CanContentScroll="False" Name="rightView" > | ||
<DockPanel LastChildFill="False"> | ||
<StackPanel CanVerticallyScroll="True" DockPanel.Dock="Left"> | ||
<StackPanel Margin="0,6,0,0"> | ||
<CheckBox Name="cbPower" Content="CPU Power Control:" FontSize="17.2" Foreground="White" BorderThickness="0,1,1,1" Padding="4,-4,0,0" Margin="6,0,0,0" /> | ||
<StackPanel Orientation="Horizontal" Margin="20,2,0,0"> | ||
<Label Content="PPT:" Foreground="White" BorderBrush="White" FontSize="16" Height="auto" Width="50" /> | ||
<xctk:IntegerUpDown Name="nudPPT" Watermark="Enter Integer" Width="95" Height="20" Minimum="0" Value="0" Increment="5"/> | ||
</StackPanel> | ||
<StackPanel Orientation="Horizontal" Margin="20,-5,0,0"> | ||
<Label Content="TDC:" Foreground="White" BorderBrush="White" FontSize="16" Height="auto" Width="50" /> | ||
<xctk:IntegerUpDown Name="nudTDC" Watermark="Enter Integer" Width="95" Height="20" Minimum="0" Value="0" Increment="5"/> | ||
</StackPanel> | ||
<StackPanel Orientation="Horizontal" Margin="20,-5,0,0"> | ||
<Label Content="EDC:" Foreground="White" BorderBrush="White" FontSize="16" Height="auto" Width="50" /> | ||
<xctk:IntegerUpDown Name="nudEDC" Watermark="Enter Integer" Width="95" Height="20" Minimum="0" Value="0" Increment="5"/> | ||
</StackPanel> | ||
|
||
<TextBlock Foreground="White" FontSize="16" MaxWidth="295" TextWrapping="WrapWithOverflow" Margin="0,55,0,0">More options will be added over time.</TextBlock> | ||
|
||
</StackPanel> | ||
|
||
</StackPanel> | ||
<StackPanel DockPanel.Dock="Right" Margin="0,6,0,0" Visibility="Collapsed"> | ||
<StackPanel Margin="0,6,0,0"> | ||
<Label Content="Radeon iGPU Settings:" FontSize="18" Foreground="White"/> | ||
<StackPanel Orientation="Horizontal" Margin="20,6,0,0"> | ||
<CheckBox Name="cbiGPU" Content="iGPU Clock:" Foreground="White" BorderBrush="White" FontSize="16" Height="18" Width="150" BorderThickness="0,1,1,1" Padding="8,-4,0,0"/> | ||
<xctk:IntegerUpDown Name="nudiGPU" Watermark="Enter Integer" Width="95" Height="20" Minimum="200" Value="1500" Increment="25"/> | ||
</StackPanel> | ||
</StackPanel> | ||
|
||
|
||
</StackPanel> | ||
</DockPanel> | ||
</ScrollViewer> | ||
</DockPanel> | ||
</DockPanel> | ||
</Border> | ||
</Grid> | ||
</UserControl> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows; | ||
using System.Windows.Controls; | ||
using System.Windows.Data; | ||
using System.Windows.Documents; | ||
using System.Windows.Input; | ||
using System.Windows.Media; | ||
using System.Windows.Media.Imaging; | ||
using System.Windows.Navigation; | ||
using System.Windows.Shapes; | ||
using RyzenSMUBackend; | ||
using AATUV3.Scripts.SMU_Backend_Scripts; | ||
using AATUV3.Scripts; | ||
using UXTU.Scripts.Intel; | ||
|
||
namespace AATUV3.Pages.AMDCPU | ||
{ | ||
/// <summary> | ||
/// Interaction logic for HomeMenu.xaml | ||
/// </summary> | ||
public partial class AMDCustomPresets : UserControl | ||
{ | ||
public AMDCustomPresets() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
private void Apply_Click(object sender, RoutedEventArgs e) | ||
{ | ||
if(cbPower.IsChecked == true) | ||
{ | ||
SendCommand.set_ppt((uint)nudPPT.Value * 1000); | ||
SendCommand.set_edc((uint)nudEDC.Value * 1000); | ||
SendCommand.set_tdc((uint)nudTDC.Value * 1000); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters