Skip to content

Commit 104eaa9

Browse files
committed
v0.7.2
- Added a Max Fan Button for easier control
1 parent 3865b40 commit 104eaa9

3 files changed

Lines changed: 23 additions & 6 deletions

File tree

.idea/.idea.DivAcerManagerMax/.idea/workspace.xml

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

DivAcerManagerMax/MainWindow.axaml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,15 @@
154154
</StackPanel>
155155
</RadioButton>
156156

157+
<RadioButton x:Name="MaxFanSpeedRadioButton" GroupName="FanModeGroup"
158+
Margin="0 0 15 0"
159+
Click="MaxFanSpeedRadioButton_OnClick">
160+
<StackPanel>
161+
<material:MaterialIcon Kind="Turbine" Width="48" Height="48" />
162+
<TextBlock Text="Max" HorizontalAlignment="Center" />
163+
</StackPanel>
164+
</RadioButton>
165+
157166
<RadioButton x:Name="ManualFanSpeedRadioButton" GroupName="FanModeGroup"
158167
Margin="0 0 15 0">
159168
<StackPanel>
@@ -172,18 +181,21 @@
172181
<StackPanel
173182
IsVisible="{Binding ElementName=ManualFanSpeedRadioButton , Path=IsChecked}">
174183

175-
<Grid ColumnDefinitions="Auto,*,Auto" RowDefinitions="Auto,Auto" Margin="0 5">
184+
<Grid ColumnDefinitions="Auto,*,Auto" RowDefinitions="Auto,Auto"
185+
Margin="0 5">
176186
<TextBlock Grid.Row="0" Grid.Column="0" Text="CPU Fan:"
177187
VerticalAlignment="Center" Width="80" />
178188
<Slider x:Name="CpuFanSlider" Grid.Row="0" Grid.Column="1" Value="50" />
179-
<TextBlock x:Name="CpuFanTextBlock" Grid.Row="0" Grid.Column="2" Text="50%"
189+
<TextBlock x:Name="CpuFanTextBlock" Grid.Row="0" Grid.Column="2"
190+
Text="50%"
180191
Width="50" TextAlignment="Right" />
181192

182193
<TextBlock Grid.Row="1" Grid.Column="0" Text="GPU Fan:"
183194
VerticalAlignment="Center" Width="80" Margin="0 15 0 0" />
184195
<Slider x:Name="GpuFanSlider" Grid.Row="1" Grid.Column="1" Value="70"
185196
Margin="0 15 0 0" />
186-
<TextBlock x:Name="GpuFanTextBlock" Grid.Row="1" Grid.Column="2" Text="70%"
197+
<TextBlock x:Name="GpuFanTextBlock" Grid.Row="1" Grid.Column="2"
198+
Text="70%"
187199
Width="50" TextAlignment="Right" Margin="0 15 0 0" />
188200
</Grid>
189201

DivAcerManagerMax/MainWindow.axaml.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public partial class MainWindow : Window, INotifyPropertyChanged
1818
private readonly DAMXClient _client;
1919

2020
private readonly string _effectColor = "#0078D7";
21-
private readonly string ProjectVersion = "0.7.0";
21+
private readonly string ProjectVersion = "0.7.2";
2222
private Button _applyKeyboardColorsButton;
2323
private RadioButton _autoFanSpeedRadioButton;
2424

@@ -653,6 +653,7 @@ private void IssuePageButton_OnClick(object? sender, RoutedEventArgs e)
653653
Process.Start("xdg-open", "https://github.com/PXDiv/Div-Acer-Manager-Max/issues");
654654
}
655655

656+
656657
#region Event Handlers
657658

658659
// Unified thermal profile handler
@@ -752,6 +753,11 @@ private async void AutoFanSpeedRadioButtonClick(object sender, RoutedEventArgs e
752753
}
753754
}
754755

756+
private async void MaxFanSpeedRadioButton_OnClick(object? sender, RoutedEventArgs e)
757+
{
758+
if (_isConnected) await _client.SetFanSpeedAsync(100, 100);
759+
}
760+
755761
// Battery Calibration Handlers
756762
private async void StartCalibrationButton_Click(object sender, RoutedEventArgs e)
757763
{

0 commit comments

Comments
 (0)