Skip to content

Commit

Permalink
Add new Accent colour on task bar parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoobdude committed Jun 14, 2024
1 parent cf604f1 commit 7ccf211
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions configs/711245.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
],
"Funny-joe-biden": false,
"Accent-colour": "FF AB CB 00 F7 83 B2 00 F7 52 94 00 EA 00 5E 00 AC 00 46 00 88 00 37 00 6B 00 2B 00 7A 75 74 00",
"Accent-colour-on-task-bar": true,
"Install-git": true,
"Task-bar-search-mode": "Icon"
}
1 change: 1 addition & 0 deletions configs/712057.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
],
"Funny-joe-biden": false,
"Accent-colour": "FD 86 5F 00 FC 75 51 00 F8 63 42 00 F7 63 0C 00 D0 41 22 00 9C 31 1A 00 79 27 14 00 00 99 BC 00",
"Accent-colour-on-task-bar": true,
"Install-git": true,
"Task-bar-search-mode": "Hidden"
}
1 change: 1 addition & 0 deletions configs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Below the type, there is an example of what it could be.
| `Open-tabs` | This opens all these tabs in your default browser | Array of strings<br>(`["https://google.com", "https://github.com"]`) |
| `Funny-joe-biden` | This downloads and opens a bunch of images of mainly Joe Biden and others. The list of [images that open are here](https://github.com/likes-gay/win-config/blob/main/photos.txt) | Boolean<br>(`true`/`false`) |
| `Accent-colour` | Sets the accent colour of the system | String.<br>[Read here to find how to set the value](#how-to-find-the-accent-colour-value) |
| `Accent-colour-on-task-bar` | Apply the accent colour to the start menu, taskbar and action centre | Boolean<br>(`true`/`false`) |
| `Install-git` | This intalls Git onto the computers, and it also adds it to PATH | Boolean<br>(`true`/`false`) |
| `Task-bar-search-mode` | This changes how the taskbar's search bar appears. It could be hidden, or to show only the icon, or to show the entire bar. | String<br>(`Hidden`/`Icon`/`Bar`) |

Expand Down
6 changes: 5 additions & 1 deletion main.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ if ($configFile."Open-tabs") {
$i -lt $configFile."Open-tabs".Count
$i++
) {
Start-Process "chrome.exe" $configFile."Open-tabs"[$i]
Start-Process $configFile."Open-tabs"[$i]
}
}

Expand All @@ -182,6 +182,10 @@ if ($configFile."Accent-colour") {

$ColorValue = $configFile."Accent-colour".Split(" ") | ForEach-Object { "0x$_" }

if ($configFile."Accent-colour-on-task-bar") {
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize" -Name "ColorPrevalence" -Value 1
}

Stop-Process -processName: Explorer # Restart explorer to apply changes that require it

# Easter egg ;)
Expand Down

0 comments on commit 7ccf211

Please sign in to comment.