예제 #1
0
파일: slim.go 프로젝트: dlintw/wingo
func DefaultSlimTheme() *SlimTheme {
	return &SlimTheme{
		BorderSize:   10,
		ABorderColor: render.NewColor(0x3366ff),
		IBorderColor: render.NewColor(0xdfdcdf),
	}
}
예제 #2
0
func DefaultBordersTheme() *BordersTheme {
	return &BordersTheme{
		BorderSize:   10,
		AThinColor:   render.NewColor(0x0),
		IThinColor:   render.NewColor(0x0),
		ABorderColor: render.NewColor(0x3366ff),
		IBorderColor: render.NewColor(0xdfdcdf),
	}
}
예제 #3
0
파일: full.go 프로젝트: flying99999/wingo
func DefaultFullTheme(X *xgbutil.XUtil) *FullTheme {
	return &FullTheme{
		Font: xgraphics.MustFont(xgraphics.ParseFont(
			bytes.NewBuffer(misc.DejavusansTtf))),
		FontSize:   15,
		AFontColor: render.NewColor(0xffffff),
		IFontColor: render.NewColor(0x000000),

		TitleSize:   25,
		ATitleColor: render.NewColor(0x3366ff),
		ITitleColor: render.NewColor(0xdfdcdf),

		ACloseButton: builtInButton(X, misc.ClosePng),
		ICloseButton: builtInButton(X, misc.ClosePng),

		AMaximizeButton: builtInButton(X, misc.MaximizePng),
		IMaximizeButton: builtInButton(X, misc.MaximizePng),

		AMinimizeButton: builtInButton(X, misc.MinimizePng),
		IMinimizeButton: builtInButton(X, misc.MinimizePng),

		BorderSize:   10,
		ABorderColor: render.NewColor(0x3366ff),
		IBorderColor: render.NewColor(0xdfdcdf),
	}
}
예제 #4
0
파일: theme.go 프로젝트: dlintw/wingo
func newTheme(X *xgbutil.XUtil) *theme {
	return &theme{
		defaultIcon: builtInIcon(X),
		full: themeFull{
			font:       builtInFont(),
			fontSize:   15,
			aFontColor: render.NewColor(0xffffff),
			iFontColor: render.NewColor(0x000000),

			titleSize:   25,
			aTitleColor: render.NewColor(0x3366ff),
			iTitleColor: render.NewColor(0xdfdcdf),

			borderSize:   10,
			aBorderColor: render.NewColor(0x3366ff),
			iBorderColor: render.NewColor(0xdfdcdf),

			aCloseButton: builtInButton(X, bindata.ClosePng),
			iCloseButton: builtInButton(X, bindata.ClosePng),
			aCloseColor:  render.NewColor(0xffffff),
			iCloseColor:  render.NewColor(0x000000),

			aMaximizeButton: builtInButton(X, bindata.MaximizePng),
			iMaximizeButton: builtInButton(X, bindata.MaximizePng),
			aMaximizeColor:  render.NewColor(0xffffff),
			iMaximizeColor:  render.NewColor(0x000000),

			aMinimizeButton: builtInButton(X, bindata.MinimizePng),
			iMinimizeButton: builtInButton(X, bindata.MinimizePng),
			aMinimizeColor:  render.NewColor(0xffffff),
			iMinimizeColor:  render.NewColor(0x000000),
		},
		borders: themeBorders{
			borderSize:   10,
			aThinColor:   render.NewColor(0x0),
			iThinColor:   render.NewColor(0x0),
			aBorderColor: render.NewColor(0x3366ff),
			iBorderColor: render.NewColor(0xdfdcdf),
		},
		slim: themeSlim{
			borderSize:   10,
			aBorderColor: render.NewColor(0x3366ff),
			iBorderColor: render.NewColor(0xdfdcdf),
		},
		prompt: themePrompt{
			bgColor:               render.NewColor(0xffffff),
			borderColor:           render.NewColor(0x585a5d),
			borderSize:            10,
			padding:               10,
			font:                  builtInFont(),
			fontSize:              15.0,
			fontColor:             render.NewColor(0x000000),
			cycleIconSize:         32,
			cycleIconBorderSize:   3,
			cycleIconTransparency: 50,
			selectActiveBgColor:   render.NewColor(0xffffff),
			selectActiveFontColor: render.NewColor(0x000000),
			selectGroupBgColor:    render.NewColor(0xffffff),
			selectGroupFont:       builtInFont(),
			selectGroupFontSize:   25.0,
			selectGroupFontColor:  render.NewColor(0x0),
		},
	}
}
예제 #5
0
파일: theme.go 프로젝트: BurntSushi/wingo
func newTheme() *ThemeConfig {
	return &ThemeConfig{
		DefaultIcon: builtInIcon(),
		Full: ThemeFull{
			font:       builtInFont(),
			fontSize:   15,
			aFontColor: render.NewColor(0xffffff),
			iFontColor: render.NewColor(0x000000),

			titleSize:   25,
			aTitleColor: render.NewColor(0x3366ff),
			iTitleColor: render.NewColor(0xdfdcdf),

			borderSize:   10,
			aBorderColor: render.NewColor(0x3366ff),
			iBorderColor: render.NewColor(0xdfdcdf),

			aCloseButton: builtInButton(misc.ClosePng),
			iCloseButton: builtInButton(misc.ClosePng),
			aCloseColor:  render.NewColor(0xffffff),
			iCloseColor:  render.NewColor(0x000000),

			aMaximizeButton: builtInButton(misc.MaximizePng),
			iMaximizeButton: builtInButton(misc.MaximizePng),
			aMaximizeColor:  render.NewColor(0xffffff),
			iMaximizeColor:  render.NewColor(0x000000),

			aMinimizeButton: builtInButton(misc.MinimizePng),
			iMinimizeButton: builtInButton(misc.MinimizePng),
			aMinimizeColor:  render.NewColor(0xffffff),
			iMinimizeColor:  render.NewColor(0x000000),
		},
		Borders: ThemeBorders{
			borderSize:   10,
			aThinColor:   render.NewColor(0x0),
			iThinColor:   render.NewColor(0x0),
			aBorderColor: render.NewColor(0x3366ff),
			iBorderColor: render.NewColor(0xdfdcdf),
		},
		Slim: ThemeSlim{
			borderSize:   10,
			aBorderColor: render.NewColor(0x3366ff),
			iBorderColor: render.NewColor(0xdfdcdf),
		},
		Prompt: ThemePrompt{
			bgColor:               render.NewColor(0xffffff),
			borderColor:           render.NewColor(0x585a5d),
			borderSize:            10,
			padding:               10,
			font:                  builtInFont(),
			fontSize:              15.0,
			fontColor:             render.NewColor(0x000000),
			cycleIconSize:         32,
			cycleIconBorderSize:   3,
			cycleIconTransparency: 50,
			selectActiveBgColor:   render.NewColor(0xffffff),
			selectActiveFontColor: render.NewColor(0x000000),
			selectGroupBgColor:    render.NewColor(0xffffff),
			selectGroupFont:       builtInFont(),
			selectGroupFontSize:   25.0,
			selectGroupFontColor:  render.NewColor(0x0),
		},
	}
}