Index: Core/Common/src/Core.Common.Controls/Style/ColorDefinitions.cs =================================================================== diff -u --- Core/Common/src/Core.Common.Controls/Style/ColorDefinitions.cs (revision 0) +++ Core/Common/src/Core.Common.Controls/Style/ColorDefinitions.cs (revision 87c8cb491a5e976625df04ec2e268786e878bdd9) @@ -0,0 +1,56 @@ +// Copyright (C) Stichting Deltares 2021. All rights reserved. +// +// This file is part of Riskeer. +// +// Riskeer is free software: you can redistribute it and/or modify +// it under the terms of the GNU Lesser General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with this program. If not, see . +// +// All names, logos, and references to "Deltares" are registered trademarks of +// Stichting Deltares and remain full property of Stichting Deltares at all times. +// All rights reserved. + +using System.Drawing; + +namespace Core.Common.Controls.Style +{ + /// + /// Class with all color definitions that can be used in winforms controls. + /// + public static class ColorDefinitions + { + /// + /// Gets the background color for controls. + /// + public static Color ControlBackgroundColor { get; } = Color.FromArgb(241, 241, 238); + + /// + /// Gets the button background color. + /// + public static Color ButtonBackgroundColor { get; } = Color.FromArgb(228, 228, 223); + + /// + /// Gets the button border color. + /// + public static Color ButtonBorderColor { get; } = Color.FromArgb(210, 210, 202); + + /// + /// Gets the front color for active buttons. + /// + public static Color ButtonActiveFrontColor { get; } = Color.FromArgb(0, 139, 191); + + /// + /// Gets the front color for inactive buttons. + /// + public static Color ButtonInactiveFrontColor { get; } = Color.Black; + } +} \ No newline at end of file Index: Core/Common/test/Core.Common.Controls.Test/Style/ColorDefinitionsTest.cs =================================================================== diff -u --- Core/Common/test/Core.Common.Controls.Test/Style/ColorDefinitionsTest.cs (revision 0) +++ Core/Common/test/Core.Common.Controls.Test/Style/ColorDefinitionsTest.cs (revision 87c8cb491a5e976625df04ec2e268786e878bdd9) @@ -0,0 +1,41 @@ +// Copyright (C) Stichting Deltares 2021. All rights reserved. +// +// This file is part of Riskeer. +// +// Riskeer is free software: you can redistribute it and/or modify +// it under the terms of the GNU Lesser General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with this program. If not, see . +// +// All names, logos, and references to "Deltares" are registered trademarks of +// Stichting Deltares and remain full property of Stichting Deltares at all times. +// All rights reserved. + +using System.Drawing; +using Core.Common.Controls.Style; +using NUnit.Framework; + +namespace Core.Common.Controls.Test.Style +{ + [TestFixture] + public class ColorDefinitionsTest + { + [Test] + public void Constants_Always_ExpectedValues() + { + Assert.AreEqual(Color.FromArgb(241, 241, 238), ColorDefinitions.ControlBackgroundColor); + Assert.AreEqual(Color.FromArgb(228, 228, 223), ColorDefinitions.ButtonBackgroundColor); + Assert.AreEqual(Color.FromArgb(210, 210, 202), ColorDefinitions.ButtonBorderColor); + Assert.AreEqual(Color.FromArgb(0, 139, 191), ColorDefinitions.ButtonActiveFrontColor); + Assert.AreEqual(Color.Black, ColorDefinitions.ButtonInactiveFrontColor); + } + } +} \ No newline at end of file