-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Simplify color parsing and add fallback color handling Simplified color parsing methods by using Color.FromArgb directly. Updated ParseColorBrushFromName and ParseOxyColorFromName to handle invalid color names with fallback colors. Added tests in MetaDrawSettingsAndViewsTest.cs to verify fallback color behavior. * Update color setting logic in TreeViewModel classes Updated `SelectedColor` setting in `CoverageTypeForTreeViewModel.cs`, `IonForTreeViewModel.cs`, and `ModForTreeViewModel.cs` to use `MetaDrawSettings.PossibleColors` dictionary instead of `GetColorName()`. In `ModForTreeViewModel.cs`, added fallback to `MetaDrawSettings.FallbackColor` if color is not found in `ModificationTypeToColor` dictionary, replacing the previous default of `OxyColors.Aqua`. * Defered construction of gui color components
- Loading branch information
Showing
6 changed files
with
49 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters