Ajout de la langue anglaise
Ajout d'un README.md avec le descriptif et les instructions L'ancien README.md s'appelle désormais CHANGELOG.md Activation du pavé numérique par défaut pour les installations sans assistance Nouveau design pour la fenêtre de déploiement. Ajout de paramètre pour pouvoir procéder à une installation totalement automatisée Ajout de paramètre pour copier au choix sources, drivers ou les deux sur C:\DeployVenter avant leur usage par DISM.
This commit is contained in:
1 parent
cb917c97ce
commit
2212e25d31
26 files changed
+2625
-830
No files matched your search
@@ -4,7 +4,7 @@ function ConvertFrom-ThemeColor {
|
||||
param([Parameter(Mandatory=$true)][string]$Value)
|
||||
$hex = $Value.Trim().TrimStart('#')
|
||||
if ($hex -notmatch '^[0-9A-Fa-f]{6}$') {
|
||||
throw "Couleur invalide dans un thème : '$Value'. Utiliser #RRGGBB."
|
||||
throw "Invalid color in theme: '$Value'. Use #RRGGBB."
|
||||
}
|
||||
return [System.Drawing.Color]::FromArgb(
|
||||
[Convert]::ToInt32($hex.Substring(0,2),16),
|
||||
@@ -27,13 +27,13 @@ function Import-DeployCenterTheme {
|
||||
[Parameter(Mandatory=$true)][string]$ThemesRoot,
|
||||
[Parameter(Mandatory=$true)][string]$ThemeName
|
||||
)
|
||||
if ($ThemeName -notmatch '^[A-Za-z0-9_-]+$') { throw "Nom de thème invalide : $ThemeName" }
|
||||
if ($ThemeName -notmatch '^[A-Za-z0-9_-]+$') { throw "Invalid theme name: $ThemeName" }
|
||||
$path = Join-Path $ThemesRoot ($ThemeName + '.psd1')
|
||||
if (-not (Test-Path -LiteralPath $path -PathType Leaf)) { throw "Thème introuvable : $ThemeName" }
|
||||
if (-not (Test-Path -LiteralPath $path -PathType Leaf)) { throw "Theme not found: $ThemeName" }
|
||||
$data = Import-PowerShellDataFile -LiteralPath $path
|
||||
$required = @('Background','Panel','PanelAlt','Text','Secondary','Accent','Success','Border','Danger')
|
||||
foreach ($key in $required) {
|
||||
if (-not $data.ContainsKey($key)) { throw "Le thème '$ThemeName' ne contient pas la clé '$key'." }
|
||||
if (-not $data.ContainsKey($key)) { throw "Theme '$ThemeName' does not contain key '$key'." }
|
||||
}
|
||||
$theme = @{}
|
||||
foreach ($key in $required) { $theme[$key] = ConvertFrom-ThemeColor -Value ([string]$data[$key]) }
|
||||
|
||||
Reference in new issue
Block a user