public static Xresources Create() { var theme = new TangoTheme(); theme.Reset(); return(theme); }
// ---------------------------------------------------------------------------------------------------- // -- Constructors // ---------------------------------------------------------------------------------------------------- /// <summary> /// Create terminal with this geometry /// </summary> public TextDisplay(int sizeX, int sizeY, Xresources colorTheme = null) { // load resources theme = colorTheme != null ? colorTheme : TangoTheme.Create( ); cursor = new DisplayCursor(this); backgroundMaterial = ReadMaterial("VARP/DebugDraw/GLlineZOff"); defaultMaterial = ReadMaterial("VARP/DebugDraw/GLFontZOff"); defaultFont = ReadFont("VARP/DebugDraw/GLFont"); // get font's information lineHeight = defaultFont.lineHeight; charAdvance = GetMaxCharWidth(); SetBufferSize(sizeX, sizeY); ResetColor(); }