Exemple #1
0
        private void setColor()
        {
            AppColorPalette palette = new AppColorPalette(_is_dark_theme, _color);

            this.MenuBar.Background  = palette.newPrimaryColor;
            this.TitleBar.Background = palette.newDarkPrimaryColor;
            this.Background          = palette.backGroundColor;
        }
        private void setColor()
        {
            AppColorPalette palette = new AppColorPalette(_is_dark_theme, _color);

            NewBackGroundColor = palette.backGroundColor;
            NewMenuColor       = palette.newPrimaryColor;
            NewTitleBarColor   = palette.newDarkPrimaryColor;

            this.Background          = NewBackGroundColor;
            this.TitleBar.Background = NewTitleBarColor;

            PrimaryColorChanged?.Invoke(NewMenuColor);
            BackGroundThemeChanged?.Invoke(NewBackGroundColor);
            SecondaryColorChanged?.Invoke(NewTitleBarColor);
        }