Theme

Storage class for basic theme-related properties.

Constructors

this
this(NVGContext nvg)
Undocumented in source.

Destructor

~this
~this()

Default destructor does nothing; allows for inheritance.

Members

Variables

mBorderDark
Color mBorderDark;

The dark border color (default: intensity=29, alpha=255; see nanogui.Color.Color(int,int)).

mBorderLight
Color mBorderLight;

The light border color (default: intensity=92, alpha=255; see nanogui.Color.Color(int,int)).

mBorderMedium
Color mBorderMedium;

The medium border color (default: intensity=35, alpha=255; see nanogui.Color.Color(int,int)).

mButtonCornerRadius
int mButtonCornerRadius;

Rounding radius for Button (and derived types) widgets (default: 2).

mButtonFontSize
int mButtonFontSize;

The font size for buttons (default: 20).

mButtonGradientBotFocused
Color mButtonGradientBotFocused;

The bottom gradient color for buttons in focus (default: intensity=48, alpha=255; see nanogui.Color.Color(int,int)).

mButtonGradientBotPushed
Color mButtonGradientBotPushed;

The bottom gradient color for buttons currently pushed (default: intensity=29, alpha=255; see nanogui.Color.Color(int,int)).

mButtonGradientBotUnfocused
Color mButtonGradientBotUnfocused;

The bottom gradient color for buttons not in focus (default: intensity=58, alpha=255; see nanogui.Color.Color(int,int)).

mButtonGradientTopFocused
Color mButtonGradientTopFocused;

The top gradient color for buttons in focus (default: intensity=64, alpha=255; see nanogui.Color.Color(int,int)).

mButtonGradientTopPushed
Color mButtonGradientTopPushed;

The top gradient color for buttons currently pushed (default: intensity=41, alpha=255; see nanogui.Color.Color(int,int)).

mButtonGradientTopUnfocused
Color mButtonGradientTopUnfocused;

The top gradient color for buttons not in focus (default: intensity=74, alpha=255; see nanogui.Color.Color(int,int)).

mCheckBoxIcon
dchar mCheckBoxIcon;

Icon to use for CheckBox widgets (default: Entypo.ICON_CHECK).

mDisabledTextColor
Color mDisabledTextColor;

The disable dtext color (default: intensity=255, alpha=80; see nanogui.Color.Color(int,int)).

mDropShadow
Color mDropShadow;

The color of the drop shadow drawn behind widgets (default: intensity=0, alpha=128; see nanogui.Color.Color(int,int)).

mFontBold
int mFontBold;

The bold font face (default: "sans-bold" from resources/roboto_regular.ttf).

mFontIcons
int mFontIcons;

The icon font face (default: "icons" from resources/entypo.ttf).

mFontNormal
int mFontNormal;

The standard font face (default: "sans" from resources/roboto_regular.ttf).

mIconColor
Color mIconColor;

The icon color (default: \ref nanogui::Theme::mTextColor).

mIconScale
float mIconScale;

The amount of scaling that is applied to each icon to fit the size of NanoGUI widgets. The default value is 0.77f, setting to e.g. higher than 1.0f is generally discouraged.

mMessageAltButtonIcon
dchar mMessageAltButtonIcon;

Icon to use on MessageDialog alt button (default: Entypo.ICON_CIRCLE_WITH_CROSS).

mMessageInformationIcon
dchar mMessageInformationIcon;

Icon to use for informational MessageDialog widgets (default: Entypo.ICON_INFO_WITH_CIRCLE).

mMessagePrimaryButtonIcon
dchar mMessagePrimaryButtonIcon;

Icon to use on MessageDialog primary button (default: Entypo.ICON_CHECK).

mMessageQuestionIcon
dchar mMessageQuestionIcon;

Icon to use for interrogative MessageDialog widgets (default: Entypo.ICON_HELP_WITH_CIRCLE).

mMessageWarningIcon
dchar mMessageWarningIcon;

Icon to use for warning MessageDialog widgets (default: Entypo.ICON_WARNING).

mPopupChevronLeftIcon
dchar mPopupChevronLeftIcon;

Icon to use for PopupButton widgets opening to the left (default: Entypo.ICON_CHEVRON_LEFT).

mPopupChevronRightIcon
dchar mPopupChevronRightIcon;

Icon to use for PopupButton widgets opening to the right (default: Entypo.ICON_CHEVRON_RIGHT).

mStandardFontSize
int mStandardFontSize;

The font size for all widgets other than buttons and textboxes (default: 16).

mTabBorderWidth
float mTabBorderWidth;

The border width for TabHeader widgets (default: 0.75f).

mTabButtonHorizontalPadding
int mTabButtonHorizontalPadding;

The amount of horizontal padding for a TabHeader widget (default: 10).

mTabButtonVerticalPadding
int mTabButtonVerticalPadding;

The amount of vertical padding for a TabHeader widget (default: 2).

mTabControlWidth
int mTabControlWidth;

Used to help specify what lies "in bound" for a TabHeader widget (default: 20).

mTabHeaderLeftIcon
dchar mTabHeaderLeftIcon;

Icon to indicate hidden tabs to the left on a TabHeader (default: Entypo.ICON_ARROW_BOLD_LEFT).

mTabHeaderRightIcon
dchar mTabHeaderRightIcon;

Icon to indicate hidden tabs to the right on a TabHeader (default: Entypo.ICON_ARROW_BOLD_RIGHT).

mTabInnerMargin
int mTabInnerMargin;

The inner margin on a TabHeader widget (default: 5).

mTabMaxButtonWidth
int mTabMaxButtonWidth;

The maximum size for buttons on a TabHeader widget (default: 160).

mTabMinButtonWidth
int mTabMinButtonWidth;

The minimum size for buttons on a TabHeader widget (default: 20).

mTextBoxDownIcon
dchar mTextBoxDownIcon;

Icon to use when a TextBox has a down toggle (e.g. IntBox) (default: Entypo.ICON_CHEVRON_DOWN).

mTextBoxFontSize
int mTextBoxFontSize;

The font size for text boxes (default: 20).

mTextBoxUpIcon
dchar mTextBoxUpIcon;

Icon to use when a TextBox has an up toggle (e.g. IntBox) (default: Entypo.ICON_CHEVRON_UP).

mTextColor
Color mTextColor;

The text color (default: intensity=255, alpha=160; see nanogui.Color.Color(int,int)).

mTextColorShadow
Color mTextColorShadow;

The text shadow color (default: intensity=0, alpha=160; see nanogui.Color.Color(int,int)).

mTransparent
Color mTransparent;

The transparency color (default: intensity=0, alpha=0; see nanogui.Color.Color(int,int)).

mWindowCornerRadius
int mWindowCornerRadius;

Rounding radius for Window widget corners (default: 2).

mWindowDropShadowSize
int mWindowDropShadowSize;

Size of drop shadow rendered behind the Window widgets (default: 10).

mWindowFillFocused
Color mWindowFillFocused;

The fill color for a Window that is in focus (default: intensity=45, alpha=230; see nanogui.Color.Color(int,int)).

mWindowFillUnfocused
Color mWindowFillUnfocused;

The fill color for a Window that is not in focus (default: intensity=43, alpha=230; see nanogui.Color.Color(int,int)).

mWindowHeaderGradientBot
Color mWindowHeaderGradientBot;

The bottom gradient color for Window headings (default: \ref nanogui::Theme::mButtonGradientBotUnfocused).

mWindowHeaderGradientTop
Color mWindowHeaderGradientTop;

The top gradient color for Window headings (default: \ref nanogui::Theme::mButtonGradientTopUnfocused).

mWindowHeaderHeight
int mWindowHeaderHeight;

Default size of Window widget titles (default: 30).

mWindowHeaderSepBot
Color mWindowHeaderSepBot;

The Window header bottom separation color (default: nanogui.Theme.mBorderDark).

mWindowHeaderSepTop
Color mWindowHeaderSepTop;

The Window header top separation color (default: nanogui.Theme.mBorderLight).

mWindowPopup
Color mWindowPopup;

The popup window color (default: intensity=50, alpha=255; see nanogui.Color.Color(int,int)).

mWindowPopupTransparent
Color mWindowPopupTransparent;

The transparent popup window color (default: intensity=50, alpha=0; see nanogui.Color.Color(int,int)).

mWindowTitleFocused
Color mWindowTitleFocused;

The title color for a Window that is in focus (default: intensity=255, alpha=190; see nanogui.Color.Color(int,int)).

mWindowTitleUnfocused
Color mWindowTitleUnfocused;

The title color for a Window that is not in focus (default: intensity=220, alpha=160; see nanogui.Color.Color(int,int)).

Meta