mirror of
https://github.com/ChrisTitusTech/winutil
synced 2026-02-06 16:00:10 +00:00
cleanup and checkbox addition
This commit is contained in:
2
.github/PULL_REQUEST_TEMPLATE.md
vendored
2
.github/PULL_REQUEST_TEMPLATE.md
vendored
@@ -19,4 +19,4 @@
|
|||||||
## Checklist
|
## Checklist
|
||||||
- [ ] My code adheres to the coding and style guidelines of the project.
|
- [ ] My code adheres to the coding and style guidelines of the project.
|
||||||
- [ ] I have commented my code, particularly in hard-to-understand areas.
|
- [ ] I have commented my code, particularly in hard-to-understand areas.
|
||||||
- [ ] I have made corresponding changes to the documentation.
|
- [ ] I have made corresponding changes to the documentation.
|
||||||
|
|||||||
6
.github/workflows/label-pr.yaml
vendored
6
.github/workflows/label-pr.yaml
vendored
@@ -18,7 +18,7 @@ jobs:
|
|||||||
script: |
|
script: |
|
||||||
const prBody = context.payload.pull_request.body || '';
|
const prBody = context.payload.pull_request.body || '';
|
||||||
const labelsToAdd = [];
|
const labelsToAdd = [];
|
||||||
|
|
||||||
if (/\[x\]\s*New feature/i.test(prBody)) {
|
if (/\[x\]\s*New feature/i.test(prBody)) {
|
||||||
labelsToAdd.push('new feature');
|
labelsToAdd.push('new feature');
|
||||||
}
|
}
|
||||||
@@ -34,7 +34,7 @@ jobs:
|
|||||||
if (/\[x\]\s*UI\/UX improvement/i.test(prBody)) {
|
if (/\[x\]\s*UI\/UX improvement/i.test(prBody)) {
|
||||||
labelsToAdd.push('ui update');
|
labelsToAdd.push('ui update');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (labelsToAdd.length > 0) {
|
if (labelsToAdd.length > 0) {
|
||||||
await github.rest.issues.addLabels({
|
await github.rest.issues.addLabels({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
@@ -42,4 +42,4 @@ jobs:
|
|||||||
issue_number: context.payload.pull_request.number,
|
issue_number: context.payload.pull_request.number,
|
||||||
labels: labelsToAdd
|
labels: labelsToAdd
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"shared":{
|
"shared":{
|
||||||
"AppEntryWidth": "130",
|
"AppEntryWidth": "200",
|
||||||
"AppEntryFontSize": "11",
|
"AppEntryFontSize": "11",
|
||||||
"AppEntryMargin": "1,1,1,1",
|
"AppEntryMargin": "1,0,1,0",
|
||||||
"AppEntryBorderThickness": "0",
|
"AppEntryBorderThickness": "0",
|
||||||
"CustomDialogFontSize": "12",
|
"CustomDialogFontSize": "12",
|
||||||
"CustomDialogFontSizeHeader": "14",
|
"CustomDialogFontSizeHeader": "14",
|
||||||
|
|||||||
@@ -546,5 +546,5 @@ Outputs `winutil.ps1` in the root directory.
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
**Last Updated**: January 2026
|
**Last Updated**: January 2026
|
||||||
**Maintainers**: Chris Titus Tech and contributors
|
**Maintainers**: Chris Titus Tech and contributors
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
"powercfg.exe /hibernate on"
|
"powercfg.exe /hibernate on"
|
||||||
],
|
],
|
||||||
```
|
```
|
||||||
|
|
||||||
## Registry Changes
|
## Registry Changes
|
||||||
Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place.
|
Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place.
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
Write-Host \"Uninstalling OneDrive...\"
|
Write-Host \"Uninstalling OneDrive...\"
|
||||||
Start-Process 'C:\\Windows\\System32\\OneDriveSetup.exe' -ArgumentList '/uninstall' -Wait
|
Start-Process 'C:\\Windows\\System32\\OneDriveSetup.exe' -ArgumentList '/uninstall' -Wait
|
||||||
|
|
||||||
# Some of OneDrive files use explorer, and OneDrive uses FileCoAuth
|
# Some of OneDrive files use explorer, and OneDrive uses FileCoAuth
|
||||||
Write-Host \"Removing leftover OneDrive Files...\"
|
Write-Host \"Removing leftover OneDrive Files...\"
|
||||||
Stop-Process -Name FileCoAuth,Explorer
|
Stop-Process -Name FileCoAuth,Explorer
|
||||||
|
|||||||
@@ -297,5 +297,5 @@ Can't find your answer? Try these resources:
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
**Last Updated**: January 2026
|
**Last Updated**: January 2026
|
||||||
**Found this helpful?** Consider starring the project on [GitHub](https://github.com/ChrisTitusTech/winutil)!
|
**Found this helpful?** Consider starring the project on [GitHub](https://github.com/ChrisTitusTech/winutil)!
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ Apply optimizations for performance, privacy, and usability. Choose from preset
|
|||||||
|
|
||||||
Quick fixes for common Windows problems:
|
Quick fixes for common Windows problems:
|
||||||
- Reset network settings
|
- Reset network settings
|
||||||
- Fix Windows Update issues
|
- Fix Windows Update issues
|
||||||
- Repair system files
|
- Repair system files
|
||||||
- Access legacy Windows panels
|
- Access legacy Windows panels
|
||||||
|
|
||||||
@@ -152,7 +152,7 @@ This User Guide covers everything you need to know:
|
|||||||
|
|
||||||
1. **[Getting Started](getting-started/)** - Installation, first run, basic usage
|
1. **[Getting Started](getting-started/)** - Installation, first run, basic usage
|
||||||
2. **[Application Store](store/)** - Installing software, using presets
|
2. **[Application Store](store/)** - Installing software, using presets
|
||||||
3. **[Tweaks](tweaks/)** - System optimizations and customizations
|
3. **[Tweaks](tweaks/)** - System optimizations and customizations
|
||||||
4. **[Features & Fixes](features/)** - Troubleshooting tools and utilities
|
4. **[Features & Fixes](features/)** - Troubleshooting tools and utilities
|
||||||
5. **[MicroWin](microwin/)** - Creating custom Windows ISOs
|
5. **[MicroWin](microwin/)** - Creating custom Windows ISOs
|
||||||
6. **[Updates](updates/)** - Managing Windows Update behavior
|
6. **[Updates](updates/)** - Managing Windows Update behavior
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ function Initialize-InstallCategoryAppList {
|
|||||||
foreach ($category in $($appsByCategory.Keys | Sort-Object)) {
|
foreach ($category in $($appsByCategory.Keys | Sort-Object)) {
|
||||||
Add-Category -Category $category -TargetElement $TargetElement
|
Add-Category -Category $category -TargetElement $TargetElement
|
||||||
$wrapPanel = New-Object Windows.Controls.WrapPanel
|
$wrapPanel = New-Object Windows.Controls.WrapPanel
|
||||||
$wrapPanel.Orientation = "Horizontal"
|
$wrapPanel.Orientation = "Vertical"
|
||||||
$wrapPanel.HorizontalAlignment = "Stretch"
|
$wrapPanel.HorizontalAlignment = "Stretch"
|
||||||
$wrapPanel.VerticalAlignment = "Center"
|
$wrapPanel.VerticalAlignment = "Center"
|
||||||
$wrapPanel.Margin = New-Object Windows.Thickness(0, 0, 0, 20)
|
$wrapPanel.Margin = New-Object Windows.Thickness(0, 0, 0, 20)
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
<Setter Property="BorderBrush" Value="{DynamicResource BorderColor}"/>
|
<Setter Property="BorderBrush" Value="{DynamicResource BorderColor}"/>
|
||||||
<Setter Property="MaxWidth" Value="{DynamicResource ToolTipWidth}"/>
|
<Setter Property="MaxWidth" Value="{DynamicResource ToolTipWidth}"/>
|
||||||
<Setter Property="BorderThickness" Value="1"/>
|
<Setter Property="BorderThickness" Value="1"/>
|
||||||
<Setter Property="Padding" Value="5"/>
|
<Setter Property="Padding" Value="2"/>
|
||||||
<Setter Property="FontSize" Value="{DynamicResource FontSize}"/>
|
<Setter Property="FontSize" Value="{DynamicResource FontSize}"/>
|
||||||
<Setter Property="FontFamily" Value="{DynamicResource FontFamily}"/>
|
<Setter Property="FontFamily" Value="{DynamicResource FontFamily}"/>
|
||||||
<!-- This ContentTemplate ensures that the content of the ToolTip wraps text properly for better readability -->
|
<!-- This ContentTemplate ensures that the content of the ToolTip wraps text properly for better readability -->
|
||||||
@@ -85,7 +85,7 @@
|
|||||||
<Style x:Key="AppEntryBorderStyle" TargetType="Border">
|
<Style x:Key="AppEntryBorderStyle" TargetType="Border">
|
||||||
<Setter Property="BorderBrush" Value="Gray"/>
|
<Setter Property="BorderBrush" Value="Gray"/>
|
||||||
<Setter Property="BorderThickness" Value="{DynamicResource AppEntryBorderThickness}"/>
|
<Setter Property="BorderThickness" Value="{DynamicResource AppEntryBorderThickness}"/>
|
||||||
<Setter Property="CornerRadius" Value="5"/>
|
<Setter Property="CornerRadius" Value="2"/>
|
||||||
<Setter Property="Padding" Value="{DynamicResource AppEntryMargin}"/>
|
<Setter Property="Padding" Value="{DynamicResource AppEntryMargin}"/>
|
||||||
<Setter Property="Width" Value="{DynamicResource AppEntryWidth}"/>
|
<Setter Property="Width" Value="{DynamicResource AppEntryWidth}"/>
|
||||||
<Setter Property="VerticalAlignment" Value="Top"/>
|
<Setter Property="VerticalAlignment" Value="Top"/>
|
||||||
@@ -101,10 +101,30 @@
|
|||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<Setter.Value>
|
<Setter.Value>
|
||||||
<ControlTemplate TargetType="CheckBox">
|
<ControlTemplate TargetType="CheckBox">
|
||||||
<ContentPresenter Content="{TemplateBinding Content}"
|
<StackPanel Orientation="Horizontal">
|
||||||
VerticalAlignment="Center"
|
<Grid Width="16" Height="16" Margin="0,0,8,0">
|
||||||
HorizontalAlignment="Left"
|
<Border x:Name="CheckBoxBorder"
|
||||||
Margin="{TemplateBinding Padding}"/>
|
BorderBrush="{DynamicResource MainForegroundColor}"
|
||||||
|
Background="{DynamicResource ButtonBackgroundColor}"
|
||||||
|
BorderThickness="1"
|
||||||
|
Width="16"
|
||||||
|
Height="16"
|
||||||
|
CornerRadius="2"/>
|
||||||
|
<Path x:Name="CheckMark"
|
||||||
|
Stroke="{DynamicResource ToggleButtonOnColor}"
|
||||||
|
StrokeThickness="2"
|
||||||
|
Data="M 2 8 L 6 12 L 14 4"
|
||||||
|
Visibility="Collapsed"/>
|
||||||
|
</Grid>
|
||||||
|
<ContentPresenter Content="{TemplateBinding Content}"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
HorizontalAlignment="Left"/>
|
||||||
|
</StackPanel>
|
||||||
|
<ControlTemplate.Triggers>
|
||||||
|
<Trigger Property="IsChecked" Value="True">
|
||||||
|
<Setter TargetName="CheckMark" Property="Visibility" Value="Visible"/>
|
||||||
|
</Trigger>
|
||||||
|
</ControlTemplate.Triggers>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
</Setter.Value>
|
</Setter.Value>
|
||||||
</Setter>
|
</Setter>
|
||||||
@@ -164,6 +184,7 @@
|
|||||||
</Setter.Value>
|
</Setter.Value>
|
||||||
</Setter>
|
</Setter>
|
||||||
|
|
||||||
|
|
||||||
</Style>
|
</Style>
|
||||||
<Style TargetType="Button" x:Key="HoverButtonStyle">
|
<Style TargetType="Button" x:Key="HoverButtonStyle">
|
||||||
<Setter Property="Foreground" Value="{DynamicResource MainForegroundColor}" />
|
<Setter Property="Foreground" Value="{DynamicResource MainForegroundColor}" />
|
||||||
@@ -532,7 +553,7 @@
|
|||||||
BorderThickness="1"
|
BorderThickness="1"
|
||||||
Width="{DynamicResource CheckBoxBulletDecoratorSize *0.85}"
|
Width="{DynamicResource CheckBoxBulletDecoratorSize *0.85}"
|
||||||
Height="{DynamicResource CheckBoxBulletDecoratorSize *0.85}"
|
Height="{DynamicResource CheckBoxBulletDecoratorSize *0.85}"
|
||||||
Margin="2"
|
Margin="1"
|
||||||
SnapsToDevicePixels="True"/>
|
SnapsToDevicePixels="True"/>
|
||||||
<Viewbox x:Name="CheckMarkContainer"
|
<Viewbox x:Name="CheckMarkContainer"
|
||||||
Width="{DynamicResource CheckBoxBulletDecoratorSize}"
|
Width="{DynamicResource CheckBoxBulletDecoratorSize}"
|
||||||
|
|||||||
Reference in New Issue
Block a user