/// <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; } }
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; } }
private void SetBasicPaletteColourDefinition(BasicPaletteColourDefinitions colourDefinition) { BasicPaletteColourDefinition = colourDefinition; }