-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhelper.ps1
More file actions
42 lines (37 loc) · 1001 Bytes
/
Copy pathhelper.ps1
File metadata and controls
42 lines (37 loc) · 1001 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Rainer Schuster (http://github.com/schuster-rainer/posh-spice)
function Get-Color {
$colorDialog = new-object System.Windows.Forms.ColorDialog
$colorDialog.AllowFullOpen = $true
[void]$colorDialog.ShowDialog()
$colorDialog.Color.Name
}
function Get-Font {
$fontDialog = new-object System.Windows.Forms.FontDialog
[void]$fontDialog.ShowDialog()
$fontDialog.FontName
}
function Set-CommandBackPaneColor {
param
(
[parameter(Mandatory=$true,ValueFromPipeline=$true)]
$color
)
$psise.Options.CommandPaneBackgroundColor = $color
}
function Set-OutputPaneColor {
param
(
[parameter(Mandatory=$true,ValueFromPipeline=$true)]
$color
)
$psise.Options.OutputPaneBackgroundColor = $color
$psise.Options.OutputPaneTextBackgroundColor = $color
}
function Set-ScriptPaneColor {
param
(
[parameter(Mandatory=$true,ValueFromPipeline=$true)]
$color
)
$psise.Options.ScriptPaneBackgroundColor = $color
}