-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathBlackNavBar.ps1
More file actions
25 lines (24 loc) · 901 Bytes
/
BlackNavBar.ps1
File metadata and controls
25 lines (24 loc) · 901 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
###Import the module if not imported already
Import-Module -Name UniversalDashboard
###Stop any running dashboards so no conflict with port numbers
Get-UDDashboard | Stop-UDDashboard
$theme = New-UDTheme -Name "Basic" -Definition @{
UDNavBar = @{
BackgroundColor = "black"
FontColor = "white"
}
UDFooter = @{
BackgroundColor = "black"
FontColor = "white"
}
}
$Layout = '{"lg":[{"w":1,"h":2,"x":5,"y":0,"i":"grid-element-icon","moved":false,"static":false}]}'
$test = New-UDPage -Name 'Test' -Content {
New-UDGridLayout -Layout $Layout -Content {
New-UDIcon -Color "#d0021b" -Icon "laptop" -Id "icon" -Size "5x"
}
}
$Dashboard = New-UDDashboard -Title "BlackNavBar" -Pages @(
$test
) -Theme $theme
Start-UDDashboard -Dashboard $Dashboard -Port 8091