forked from chocolatey/ChocolateyGUI
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(chocolateyGH-685) Add additional Chocolatey colors and brushes
Also introduce resource keys for chocolatey colors and brushes.
- Loading branch information
Showing
13 changed files
with
193 additions
and
46 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
54 changes: 54 additions & 0 deletions
54
Source/ChocolateyGui.Common.Windows/Theming/ChocolateyBrushes.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
// -------------------------------------------------------------------------------------------------------------------- | ||
// <copyright file="ChocolateyBrushes.cs" company="Chocolatey"> | ||
// Copyright 2017 - Present Chocolatey Software, LLC | ||
// Copyright 2014 - 2017 Rob Reynolds, the maintainers of Chocolatey, and RealDimensions Software, LLC | ||
// </copyright> | ||
// -------------------------------------------------------------------------------------------------------------------- | ||
|
||
using System.Windows; | ||
|
||
namespace ChocolateyGui.Common.Windows.Theming | ||
{ | ||
public static class ChocolateyBrushes | ||
{ | ||
/// <summary> | ||
/// Gets the resource key for the background brush. | ||
/// </summary> | ||
public static ComponentResourceKey BackgroundKey { get; } = new ComponentResourceKey(typeof(ChocolateyBrushes), "Chocolatey.Brushes.Background"); | ||
|
||
/// <summary> | ||
/// Gets the resource key for the body brush. | ||
/// </summary> | ||
public static ComponentResourceKey BodyKey { get; } = new ComponentResourceKey(typeof(ChocolateyBrushes), "Chocolatey.Brushes.Body"); | ||
|
||
/// <summary> | ||
/// Gets the resource key for the out of date brush. | ||
/// </summary> | ||
public static ComponentResourceKey OutOfDateKey { get; } = new ComponentResourceKey(typeof(ChocolateyBrushes), "Chocolatey.Brushes.OutOfDate"); | ||
|
||
/// <summary> | ||
/// Gets the resource key for the out of date foreground brush. | ||
/// </summary> | ||
public static ComponentResourceKey OutOfDateForegroundKey { get; } = new ComponentResourceKey(typeof(ChocolateyBrushes), "Chocolatey.Brushes.OutOfDate.Foreground"); | ||
|
||
/// <summary> | ||
/// Gets the resource key for the installed brush. | ||
/// </summary> | ||
public static ComponentResourceKey IsInstalledKey { get; } = new ComponentResourceKey(typeof(ChocolateyBrushes), "Chocolatey.Brushes.IsInstalled"); | ||
|
||
/// <summary> | ||
/// Gets the resource key for the installed foreground brush. | ||
/// </summary> | ||
public static ComponentResourceKey IsInstalledForegroundKey { get; } = new ComponentResourceKey(typeof(ChocolateyBrushes), "Chocolatey.Brushes.IsInstalled.Foreground"); | ||
|
||
/// <summary> | ||
/// Gets the resource key for the pre-release brush. | ||
/// </summary> | ||
public static ComponentResourceKey PreReleaseKey { get; } = new ComponentResourceKey(typeof(ChocolateyBrushes), "Chocolatey.Brushes.PreRelease"); | ||
|
||
/// <summary> | ||
/// Gets the resource key for the pre-release foreground brush. | ||
/// </summary> | ||
public static ComponentResourceKey PreReleaseForegroundKey { get; } = new ComponentResourceKey(typeof(ChocolateyBrushes), "Chocolatey.Brushes.PreRelease.Foreground"); | ||
} | ||
} |
54 changes: 54 additions & 0 deletions
54
Source/ChocolateyGui.Common.Windows/Theming/ChocolateyColors.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
// -------------------------------------------------------------------------------------------------------------------- | ||
// <copyright file="ChocolateyColors.cs" company="Chocolatey"> | ||
// Copyright 2017 - Present Chocolatey Software, LLC | ||
// Copyright 2014 - 2017 Rob Reynolds, the maintainers of Chocolatey, and RealDimensions Software, LLC | ||
// </copyright> | ||
// -------------------------------------------------------------------------------------------------------------------- | ||
|
||
using System.Windows; | ||
|
||
namespace ChocolateyGui.Common.Windows.Theming | ||
{ | ||
public static class ChocolateyColors | ||
{ | ||
/// <summary> | ||
/// Gets the resource key for the background color. | ||
/// </summary> | ||
public static ComponentResourceKey BackgroundKey { get; } = new ComponentResourceKey(typeof(ChocolateyBrushes), "Chocolatey.Colors.Background"); | ||
|
||
/// <summary> | ||
/// Gets the resource key for the body color. | ||
/// </summary> | ||
public static ComponentResourceKey BodyKey { get; } = new ComponentResourceKey(typeof(ChocolateyBrushes), "Chocolatey.Colors.Body"); | ||
|
||
/// <summary> | ||
/// Gets the resource key for the out of date color. | ||
/// </summary> | ||
public static ComponentResourceKey OutOfDateKey { get; } = new ComponentResourceKey(typeof(ChocolateyColors), "Chocolatey.Colors.OutOfDate"); | ||
|
||
/// <summary> | ||
/// Gets the resource key for the out of date foreground color. | ||
/// </summary> | ||
public static ComponentResourceKey OutOfDateForegroundKey { get; } = new ComponentResourceKey(typeof(ChocolateyColors), "Chocolatey.Colors.OutOfDate.Foreground"); | ||
|
||
/// <summary> | ||
/// Gets the resource key for the installed color. | ||
/// </summary> | ||
public static ComponentResourceKey IsInstalledKey { get; } = new ComponentResourceKey(typeof(ChocolateyColors), "Chocolatey.Colors.IsInstalled"); | ||
|
||
/// <summary> | ||
/// Gets the resource key for the installed foreground color. | ||
/// </summary> | ||
public static ComponentResourceKey IsInstalledForegroundKey { get; } = new ComponentResourceKey(typeof(ChocolateyColors), "Chocolatey.Colors.IsInstalled.Foreground"); | ||
|
||
/// <summary> | ||
/// Gets the resource key for the pre-release color. | ||
/// </summary> | ||
public static ComponentResourceKey PreReleaseKey { get; } = new ComponentResourceKey(typeof(ChocolateyColors), "Chocolatey.Colors.PreRelease"); | ||
|
||
/// <summary> | ||
/// Gets the resource key for the pre-release foreground color. | ||
/// </summary> | ||
public static ComponentResourceKey PreReleaseForegroundKey { get; } = new ComponentResourceKey(typeof(ChocolateyColors), "Chocolatey.Colors.PreRelease.Foreground"); | ||
} | ||
} |
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
Oops, something went wrong.