theme.go
func ThemeReset() {
	thememtx.Lock()
	defer thememtx.Unlock()

	themeManager.current = defaultTheme
	themeManager.themes = make(map[string]theme, 0)

	defTheme := theme{parent: "", title: "Default Theme", author: "Vladimir V. Markelov", version: "1.0"}
	defTheme.colors = make(map[string]term.Attribute, 0)
	defTheme.objects = make(map[string]string, 0)

	defTheme.objects[ObjSingleBorder] = "─│┌┐└┘"
	defTheme.objects[ObjDoubleBorder] = "═║╔╗╚╝"
	defTheme.objects[ObjEdit] = "←→V*"
	defTheme.objects[ObjScrollBar] = "░■▲▼◄►"
	defTheme.objects[ObjViewButtons] = "^↓○[]"
	defTheme.objects[ObjCheckBox] = "[] X?"
	defTheme.objects[ObjRadio] = "() *"
	defTheme.objects[ObjProgressBar] = "░▒"
	defTheme.objects[ObjBarChart] = "█─│┌┐└┘┬┴├┤┼"
	defTheme.objects[ObjSparkChart] = "█"
	defTheme.objects[ObjTableView] = "─│┼▼▲"

	defTheme.colors[ColorDisabledText] = ColorBlackBold
	defTheme.colors[ColorDisabledBack] = ColorWhite
	defTheme.colors[ColorText] = ColorWhite
	defTheme.colors[ColorBack] = ColorBlack
	defTheme.colors[ColorViewBack] = ColorBlack
	defTheme.colors[ColorViewText] = ColorWhite

	defTheme.colors[ColorControlText] = ColorWhite
	defTheme.colors[ColorControlBack] = ColorBlack
	defTheme.colors[ColorControlActiveText] = ColorWhite
	defTheme.colors[ColorControlActiveBack] = ColorMagenta
	defTheme.colors[ColorControlShadow] = ColorBlue
	defTheme.colors[ColorControlDisabledText] = ColorWhite
	defTheme.colors[ColorControlDisabledBack] = ColorBlack

	defTheme.colors[ColorButtonText] = ColorWhite
	defTheme.colors[ColorButtonBack] = ColorGreen
	defTheme.colors[ColorButtonActiveText] = ColorWhite
	defTheme.colors[ColorButtonActiveBack] = ColorMagenta
	defTheme.colors[ColorButtonShadow] = ColorBlue
	defTheme.colors[ColorButtonDisabledText] = ColorWhite
	defTheme.colors[ColorButtonDisabledBack] = ColorBlack

	defTheme.colors[ColorEditText] = ColorBlack
	defTheme.colors[ColorEditBack] = ColorWhite
	defTheme.colors[ColorEditActiveText] = ColorBlack
	defTheme.colors[ColorEditActiveBack] = ColorYellow
	defTheme.colors[ColorSelectionText] = ColorYellow
	defTheme.colors[ColorSelectionBack] = ColorBlue

	defTheme.colors[ColorScrollBack] = ColorBlack
	defTheme.colors[ColorScrollText] = ColorWhite
	defTheme.colors[ColorThumbBack] = ColorBlack
	defTheme.colors[ColorThumbText] = ColorWhite

	defTheme.colors[ColorProgressText] = ColorBlue
	defTheme.colors[ColorProgressBack] = ColorBlack
	defTheme.colors[ColorProgressActiveText] = ColorBlack
	defTheme.colors[ColorProgressActiveBack] = ColorBlue
	defTheme.colors[ColorProgressTitleText] = ColorWhite

	defTheme.colors[ColorBarChartBack] = ColorBlack
	defTheme.colors[ColorBarChartText] = ColorWhite

	defTheme.colors[ColorSparkChartBack] = ColorBlack
	defTheme.colors[ColorSparkChartText] = ColorWhite
	defTheme.colors[ColorSparkChartBarBack] = ColorBlack
	defTheme.colors[ColorSparkChartBarText] = ColorCyan
	defTheme.colors[ColorSparkChartMaxBack] = ColorBlack
	defTheme.colors[ColorSparkChartMaxText] = ColorCyanBold

	defTheme.colors[ColorTableText] = ColorWhite
	defTheme.colors[ColorTableBack] = ColorBlack
	defTheme.colors[ColorTableSelectedText] = ColorWhite
	defTheme.colors[ColorTableSelectedBack] = ColorBlack
	defTheme.colors[ColorTableActiveCellText] = ColorWhiteBold
	defTheme.colors[ColorTableActiveCellBack] = ColorBlack
	defTheme.colors[ColorTableLineText] = ColorWhite
	defTheme.colors[ColorTableHeaderText] = ColorWhite
	defTheme.colors[ColorTableHeaderBack] = ColorBlack

	themeManager.themes[defaultTheme] = defTheme
}
func ThemeReset() {
	thememtx.Lock()
	defer thememtx.Unlock()

	themeManager.current = defaultTheme
	themeManager.themes = make(map[string]theme, 0)

	defTheme := theme{parent: "", title: "Default Theme", author: "Vladimir V. Markelov", version: "1.0"}
	defTheme.colors = make(map[string]term.Attribute, 0)
	defTheme.objects = make(map[string]string, 0)

	defTheme.objects[ObjSingleBorder] = "─│┌┐└┘"
	defTheme.objects[ObjDoubleBorder] = "═║╔╗╚╝"
	defTheme.objects[ObjEdit] = "←→V*"
	defTheme.objects[ObjScrollBar] = "░■▲▼◄►"
	defTheme.objects[ObjViewButtons] = "^↓○[]"
	defTheme.objects[ObjCheckBox] = "[] X?"
	defTheme.objects[ObjRadio] = "() *"
	defTheme.objects[ObjProgressBar] = "░▒"
	defTheme.objects[ObjBarChart] = "█─│┌┐└┘┬┴├┤┼"
	defTheme.objects[ObjSparkChart] = "█"
	defTheme.objects[ObjTableView] = "─│┼▼▲"

	defTheme.colors[ColorDisabledText] = ColorBlackBold
	defTheme.colors[ColorDisabledBack] = ColorWhite
	defTheme.colors[ColorText] = ColorWhite
	defTheme.colors[ColorBack] = ColorBlack
	defTheme.colors[ColorViewBack] = ColorBlack
	defTheme.colors[ColorViewText] = ColorWhite

	defTheme.colors[ColorControlText] = ColorWhite
	defTheme.colors[ColorControlBack] = ColorBlack
	defTheme.colors[ColorControlActiveText] = ColorWhite
	defTheme.colors[ColorControlActiveBack] = ColorMagenta
	defTheme.colors[ColorControlShadow] = ColorBlue
	defTheme.colors[ColorControlDisabledText] = ColorWhite
	defTheme.colors[ColorControlDisabledBack] = ColorBlack

	defTheme.colors[ColorButtonText] = ColorWhite
	defTheme.colors[ColorButtonBack] = ColorGreen
	defTheme.colors[ColorButtonActiveText] = ColorWhite
	defTheme.colors[ColorButtonActiveBack] = ColorMagenta
	defTheme.colors[ColorButtonShadow] = ColorBlue
	defTheme.colors[ColorButtonDisabledText] = ColorWhite
	defTheme.colors[ColorButtonDisabledBack] = ColorBlack

	defTheme.colors[ColorEditText] = ColorBlack
	defTheme.colors[ColorEditBack] = ColorWhite
	defTheme.colors[ColorEditActiveText] = ColorBlack
	defTheme.colors[ColorEditActiveBack] = ColorYellow
	defTheme.colors[ColorSelectionText] = ColorYellow
	defTheme.colors[ColorSelectionBack] = ColorBlue

	defTheme.colors[ColorScrollBack] = ColorBlack
	defTheme.colors[ColorScrollText] = ColorWhite
	defTheme.colors[ColorThumbBack] = ColorBlack
	defTheme.colors[ColorThumbText] = ColorWhite

	defTheme.colors[ColorProgressText] = ColorBlue
	defTheme.colors[ColorProgressBack] = ColorBlack
	defTheme.colors[ColorProgressActiveText] = ColorBlack
	defTheme.colors[ColorProgressActiveBack] = ColorBlue
	defTheme.colors[ColorProgressTitleText] = ColorWhite

	defTheme.colors[ColorBarChartBack] = ColorBlack
	defTheme.colors[ColorBarChartText] = ColorWhite

	defTheme.colors[ColorSparkChartBack] = ColorBlack
	defTheme.colors[ColorSparkChartText] = ColorWhite
	defTheme.colors[ColorSparkChartBarBack] = ColorBlack
	defTheme.colors[ColorSparkChartBarText] = ColorCyan
	defTheme.colors[ColorSparkChartMaxBack] = ColorBlack
	defTheme.colors[ColorSparkChartMaxText] = ColorCyanBold

	defTheme.colors[ColorTableText] = ColorWhite
	defTheme.colors[ColorTableBack] = ColorBlack
	defTheme.colors[ColorTableSelectedText] = ColorWhite
	defTheme.colors[ColorTableSelectedBack] = ColorBlack
	defTheme.colors[ColorTableActiveCellText] = ColorWhiteBold
	defTheme.colors[ColorTableActiveCellBack] = ColorBlack
	defTheme.colors[ColorTableLineText] = ColorWhite
	defTheme.colors[ColorTableHeaderText] = ColorWhite
	defTheme.colors[ColorTableHeaderBack] = ColorBlack

	themeManager.themes[defaultTheme] = defTheme
}
func ThemeReset ( ) { thememtx . Lock ( ) defer thememtx . Unlock ( ) themeManager . current = defaultTheme themeManager . themes = make ( map [ string ] theme , 0 ) defTheme := theme { parent : " " , title : " " , author : " " , version : " " } defTheme . colors = make ( map [ string ] term . Attribute , 0 ) defTheme . objects = make ( map [ string ] string , 0 ) defTheme . objects [ ObjSingleBorder ] = " defTheme . objects [ ObjDoubleBorder ] = " defTheme . objects [ ObjEdit ] = " defTheme . objects [ ObjScrollBar ] = " defTheme . objects [ ObjViewButtons ] = " defTheme . objects [ ObjCheckBox ] = " " defTheme . objects [ ObjRadio ] = " " defTheme . objects [ ObjProgressBar ] = " defTheme . objects [ ObjBarChart ] = " defTheme . objects [ ObjSparkChart ] = " defTheme . objects [ ObjTableView ] = " defTheme . colors [ ColorDisabledText ] = ColorBlackBold defTheme . colors [ ColorDisabledBack ] = ColorWhite defTheme . colors [ ColorText ] = ColorWhite defTheme . colors [ ColorBack ] = ColorBlack defTheme . colors [ ColorViewBack ] = ColorBlack defTheme . colors [ ColorViewText ] = ColorWhite defTheme . colors [ ColorControlText ] = ColorWhite defTheme . colors [ ColorControlBack ] = ColorBlack defTheme . colors [ ColorControlActiveText ] = ColorWhite defTheme . colors [ ColorControlActiveBack ] = ColorMagenta defTheme . colors [ ColorControlShadow ] = ColorBlue defTheme . colors [ ColorControlDisabledText ] = ColorWhite defTheme . colors [ ColorControlDisabledBack ] = ColorBlack defTheme . colors [ ColorButtonText ] = ColorWhite defTheme . colors [ ColorButtonBack ] = ColorGreen defTheme . colors [ ColorButtonActiveText ] = ColorWhite defTheme . colors [ ColorButtonActiveBack ] = ColorMagenta defTheme . colors [ ColorButtonShadow ] = ColorBlue defTheme . colors [ ColorButtonDisabledText ] = ColorWhite defTheme . colors [ ColorButtonDisabledBack ] = ColorBlack defTheme . colors [ ColorEditText ] = ColorBlack defTheme . colors [ ColorEditBack ] = ColorWhite defTheme . colors [ ColorEditActiveText ] = ColorBlack defTheme . colors [ ColorEditActiveBack ] = ColorYellow defTheme . colors [ ColorSelectionText ] = ColorYellow defTheme . colors [ ColorSelectionBack ] = ColorBlue defTheme . colors [ ColorScrollBack ] = ColorBlack defTheme . colors [ ColorScrollText ] = ColorWhite defTheme . colors [ ColorThumbBack ] = ColorBlack defTheme . colors [ ColorThumbText ] = ColorWhite defTheme . colors [ ColorProgressText ] = ColorBlue defTheme . colors [ ColorProgressBack ] = ColorBlack defTheme . colors [ ColorProgressActiveText ] = ColorBlack defTheme . colors [ ColorProgressActiveBack ] = ColorBlue defTheme . colors [ ColorProgressTitleText ] = ColorWhite defTheme . colors [ ColorBarChartBack ] = ColorBlack defTheme . colors [ ColorBarChartText ] = ColorWhite defTheme . colors [ ColorSparkChartBack ] = ColorBlack defTheme . colors [ ColorSparkChartText ] = ColorWhite defTheme . colors [ ColorSparkChartBarBack ] = ColorBlack defTheme . colors [ ColorSparkChartBarText ] = ColorCyan defTheme . colors [ ColorSparkChartMaxBack ] = ColorBlack defTheme . colors [ ColorSparkChartMaxText ] = ColorCyanBold defTheme . colors [ ColorTableText ] = ColorWhite defTheme . colors [ ColorTableBack ] = ColorBlack defTheme . colors [ ColorTableSelectedText ] = ColorWhite defTheme . colors [ ColorTableSelectedBack ] = ColorBlack defTheme . colors [ ColorTableActiveCellText ] = ColorWhiteBold defTheme . colors [ ColorTableActiveCellBack ] = ColorBlack defTheme . colors [ ColorTableLineText ] = ColorWhite defTheme . colors [ ColorTableHeaderText ] = ColorWhite defTheme . colors [ ColorTableHeaderBack ] = ColorBlack themeManager . themes [ defaultTheme ] = defTheme }
// Reset removes all loaded themes from cache and reinitialize
// the default theme
Reset removes all loaded themes from cache and reinitialize the default theme