public static void SetDependentColors(Application app)
        {
            Color mainBackgroundColor = (Color)app.Resources[Key_BackgroundColor];
            Color textColor           = (Color)app.Resources[Key_TextColor];

            app.Resources[Key_ContrastColor] = NamedColor.BlackOrWhiteForContrast(mainBackgroundColor);

            app.Resources[Key_DisabledTextColor] = NamedColor.BlendColors(mainBackgroundColor, textColor, 0.5);

            app.Resources[Key_backgroundTextBlend05PcColor] = NamedColor.BlendColors(mainBackgroundColor, textColor, 0.05);
            app.Resources[Key_backgroundTextBlend10PcColor] = NamedColor.BlendColors(mainBackgroundColor, textColor, 0.10);
            app.Resources[Key_backgroundTextBlend25PcColor] = NamedColor.BlendColors(mainBackgroundColor, textColor, 0.25);
            app.Resources[Key_backgroundTextBlend50PcColor] = NamedColor.BlendColors(mainBackgroundColor, textColor, 0.50);
            app.Resources[Key_backgroundTextBlend75PcColor] = NamedColor.BlendColors(mainBackgroundColor, textColor, 0.75);
            app.Resources[Key_backgroundTextBlend85PcColor] = NamedColor.BlendColors(mainBackgroundColor, textColor, 0.85);
            app.Resources[Key_backgroundTextBlend95PcColor] = NamedColor.BlendColors(mainBackgroundColor, textColor, 0.95);

            if (mainBackgroundColor == NamedColor.Black)
            {
                app.Resources[Key_EntryBackgroundColor] = NamedColor.White;
                app.Resources[Key_EntryTextColor]       = NamedColor.Black;
            }
            else
            {
                app.Resources[Key_EntryBackgroundColor] = mainBackgroundColor;
                app.Resources[Key_EntryTextColor]       = app.Resources[Key_TextColor];
            }
        }