Esempio n. 1
0
        private SadConsole.Themes.ButtonTheme CreateButtonTheme(Color color, Color textColor)
        {
            var theme = new SadConsole.Themes.ButtonTheme();

            theme.Normal                   =
                theme.MouseOver            =
                    theme.MouseClicking    =
                        theme.Focused      =
                            theme.Disabled =
                                new SadConsole.Cell(textColor, color);

            return(theme);
        }
        private SadConsole.Themes.ButtonTheme CreateButtonTheme(Color color, Color textColor)
        {
            var theme = new SadConsole.Themes.ButtonTheme();
            theme.Normal =
                theme.MouseOver =
                theme.MouseClicking =
                theme.Focused =
                theme.Disabled =
                new SadConsole.CellAppearance(textColor, color);

            return theme;
        }