mirror of
https://github.com/ChrisTitusTech/winutil
synced 2026-04-05 22:28:31 +00:00
Hightlight FOSS Apps (#4065)
* add foss tag functionality * update applications * update * update * fix * update * update * fix formatting
This commit is contained in:
@@ -174,6 +174,18 @@ function Invoke-WinutilThemeChange {
|
||||
}
|
||||
}
|
||||
|
||||
# Set FOSS Highlight Color
|
||||
$fossEnabled = $true
|
||||
if ($sync.WPFToggleFOSSHighlight) {
|
||||
$fossEnabled = $sync.WPFToggleFOSSHighlight.IsChecked
|
||||
}
|
||||
|
||||
if ($fossEnabled) {
|
||||
$sync.Form.Resources["FOSSColor"] = [Windows.Media.SolidColorBrush]::new([Windows.Media.Color]::FromRgb(76, 175, 80)) # #4CAF50
|
||||
} else {
|
||||
$sync.Form.Resources["FOSSColor"] = $sync.Form.Resources["MainForegroundColor"]
|
||||
}
|
||||
|
||||
# Update the theme selector button with the appropriate icon
|
||||
$ThemeButton = $sync.Form.FindName("ThemeButton")
|
||||
$ThemeButton.Content = [string]$themeButtonIcon
|
||||
|
||||
Reference in New Issue
Block a user