예제 #1
0
        /// <summary>
        /// Sets the basic colours.
        /// </summary>
        /// <param name="basicPaletteColourDefinition">The basic palette colour definition.</param>
        /// <param name="colour">The colour.</param>
        public static void SetBasicColours(BasicPaletteColourDefinitions basicPaletteColourDefinition, Color colour)
        {
            BasicColourSettingsManager colourSettingsManager = new BasicColourSettingsManager();

            switch (basicPaletteColourDefinition)
            {
            case BasicPaletteColourDefinitions.BASECOLOUR:
                colourSettingsManager.SetBaseColour(colour);
                break;

            case BasicPaletteColourDefinitions.DARKESTCOLOUR:
                colourSettingsManager.SetDarkColour(colour);
                break;

            case BasicPaletteColourDefinitions.MIDDLECOLOUR:
                colourSettingsManager.SetMediumColour(colour);
                break;

            case BasicPaletteColourDefinitions.LIGHTCOLOUR:
                colourSettingsManager.SetLightColour(colour);
                break;

            case BasicPaletteColourDefinitions.LIGHTESTCOLOUR:
                colourSettingsManager.SetLightestColour(colour);
                break;

            default:
                break;
            }
        }
예제 #2
0
        private void AlterColours(BasicPaletteColourDefinitions paletteColourDefinitions)
        {
            switch (paletteColourDefinitions)
            {
            case BasicPaletteColourDefinitions.BASECOLOUR:
                SetBasicPaletteColourDefinition(BasicPaletteColourDefinitions.BASECOLOUR);
                break;

            case BasicPaletteColourDefinitions.DARKESTCOLOUR:
                SetBasicPaletteColourDefinition(BasicPaletteColourDefinitions.DARKESTCOLOUR);
                break;

            case BasicPaletteColourDefinitions.MIDDLECOLOUR:
                SetBasicPaletteColourDefinition(BasicPaletteColourDefinitions.MIDDLECOLOUR);
                break;

            case BasicPaletteColourDefinitions.LIGHTCOLOUR:
                SetBasicPaletteColourDefinition(BasicPaletteColourDefinitions.LIGHTCOLOUR);
                break;

            case BasicPaletteColourDefinitions.LIGHTESTCOLOUR:
                SetBasicPaletteColourDefinition(BasicPaletteColourDefinitions.LIGHTESTCOLOUR);
                break;

            default:
                break;
            }
        }
예제 #3
0
 private void SetBasicPaletteColourDefinition(BasicPaletteColourDefinitions colourDefinition)
 {
     BasicPaletteColourDefinition = colourDefinition;
 }