mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-06-28 09:04:47 -05:00
Remove trailing whitespace characters (#2149)
* Remove All Trailing Whitespace Characters in '.ps1' Files * Remove All Trailing Whitespace Characters in '.json' Files * Remove All Trailing Whitespace Characters in '.yaml' Files * Remove All Trailing Whitespace Characters in Different Files * Remove Even More Trailing Whitespace Characters
This commit is contained in:
@ -2,10 +2,10 @@ function Show-CustomDialog {
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Displays a custom dialog box with an image, heading, message, and an OK button.
|
||||
|
||||
|
||||
.DESCRIPTION
|
||||
This function creates a custom dialog box with the specified message and additional elements such as an image, heading, and an OK button. The dialog box is designed with a green border, rounded corners, and a black background.
|
||||
|
||||
|
||||
.PARAMETER Message
|
||||
The message to be displayed in the dialog box.
|
||||
|
||||
@ -14,10 +14,10 @@ function Show-CustomDialog {
|
||||
|
||||
.PARAMETER Height
|
||||
The height of the custom dialog window.
|
||||
|
||||
|
||||
.EXAMPLE
|
||||
Show-CustomDialog -Message "This is a custom dialog with a message and an image above." -Width 300 -Height 200
|
||||
|
||||
|
||||
#>
|
||||
param(
|
||||
[string]$Message,
|
||||
@ -99,7 +99,7 @@ function Show-CustomDialog {
|
||||
$grid.RowDefinitions.Add($row0)
|
||||
$grid.RowDefinitions.Add($row1)
|
||||
$grid.RowDefinitions.Add($row2)
|
||||
|
||||
|
||||
# Add StackPanel for horizontal layout with margins
|
||||
$stackPanel = New-Object Windows.Controls.StackPanel
|
||||
$stackPanel.Margin = New-Object Windows.Thickness(10) # Add margins around the stack panel
|
||||
@ -113,7 +113,7 @@ function Show-CustomDialog {
|
||||
$viewbox = New-Object Windows.Controls.Viewbox
|
||||
$viewbox.Width = 25
|
||||
$viewbox.Height = 25
|
||||
|
||||
|
||||
# Combine the paths into a single string
|
||||
# $cttLogoPath = @"
|
||||
# M174 1094 c-4 -14 -4 -55 -2 -92 3 -57 9 -75 41 -122 41 -60 45 -75 22 -84 -25 -9 -17 -21 30 -44 l45 -22 0 -103 c0 -91 3 -109 26 -155 30 -60 65 -87 204 -157 l95 -48 110 58 c184 96 205 127 205 293 l0 108 45 22 c47 23 55 36 30 46 -22 8 -18 30 9 63 13 16 34 48 46 71 20 37 21 52 15 116 l-6 73 -69 -23 c-38 -12 -137 -59 -220 -103 -82 -45 -160 -81 -171 -81 -12 0 -47 15 -78 34 -85 51 -239 127 -309 151 l-62 22 -6 -23z m500 -689 c20 -8 36 -19 36 -24 0 -18 -53 -51 -80 -51 -28 0 -80 33 -80 51 0 10 55 38 76 39 6 0 28 -7 48 -15z
|
||||
@ -159,7 +159,7 @@ $cttLogoPath = @"
|
||||
46.21,102.83 36.63,98.57 31.04,93.68
|
||||
16.88,81.28 19.00,62.88 19.00,46.00 Z
|
||||
"@
|
||||
|
||||
|
||||
# Add SVG path
|
||||
$svgPath = New-Object Windows.Shapes.Path
|
||||
$svgPath.Data = [Windows.Media.Geometry]::Parse($cttLogoPath)
|
||||
@ -167,7 +167,7 @@ $cttLogoPath = @"
|
||||
|
||||
# Add SVG path to Viewbox
|
||||
$viewbox.Child = $svgPath
|
||||
|
||||
|
||||
# Add SVG path to the stack panel
|
||||
$stackPanel.Children.Add($viewbox)
|
||||
|
||||
@ -215,7 +215,7 @@ $cttLogoPath = @"
|
||||
param($sender, $args)
|
||||
$sender.Foreground = $foregroundColor
|
||||
})
|
||||
|
||||
|
||||
$messageTextBlock.Inlines.Add($hyperlink)
|
||||
|
||||
# Update the last position
|
||||
|
Reference in New Issue
Block a user