|
|
|
@ -16,11 +16,11 @@
|
|
|
|
|
"yellow", Brushes.Yellow;] |
|
|
|
|
|> Map.ofList |
|
|
|
|
|
|
|
|
|
let isColourValid (colour: string) = |
|
|
|
|
let private isColourValid (colour: string) = |
|
|
|
|
colourList |
|
|
|
|
|> Map.containsKey (colour.ToLower()) |
|
|
|
|
|
|
|
|
|
let parseColour colour = |
|
|
|
|
let private parseColour colour = |
|
|
|
|
match (isColourValid colour) with |
|
|
|
|
| true -> |
|
|
|
|
colourList |
|
|
|
@ -33,7 +33,7 @@
|
|
|
|
|
let getDesktopPath = |
|
|
|
|
Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory) |
|
|
|
|
|
|
|
|
|
let parsePath (path: string) = |
|
|
|
|
let private parsePath (path: string) = |
|
|
|
|
match path with |
|
|
|
|
| path when ((path.ToLower()).Equals "desktop") -> getDesktopPath |
|
|
|
|
| path when ((path.ToLower()).Equals "d") -> getDesktopPath |
|
|
|
@ -52,7 +52,7 @@
|
|
|
|
|
} |
|
|
|
|
spec |
|
|
|
|
|
|
|
|
|
let parseOverlay (oType: string) = |
|
|
|
|
let private parseOverlay (oType: string) = |
|
|
|
|
match oType.ToLower() with |
|
|
|
|
| "border" -> Border |
|
|
|
|
| "b" -> Border |
|
|
|
@ -60,13 +60,13 @@
|
|
|
|
|
| "f" -> Full |
|
|
|
|
| _ -> invalidArg "Overlay Type" "The overlay type must be either 'border' or 'full'." |
|
|
|
|
|
|
|
|
|
let buildOverlaySpec oColour (oType: string) = |
|
|
|
|
let private buildOverlaySpec oColour (oType: string) = |
|
|
|
|
let oSpec = |
|
|
|
|
{ colour = parseColour oColour; |
|
|
|
|
overlayType = parseOverlay oType } |
|
|
|
|
oSpec |
|
|
|
|
|
|
|
|
|
let buildMainSpec iWidth iHeight mainColour path oSpec = |
|
|
|
|
let private buildMainSpec iWidth iHeight mainColour path oSpec = |
|
|
|
|
let spec = |
|
|
|
|
{ width = iWidth; |
|
|
|
|
height = iHeight; |
|
|
|
|