载入中...
搜索中...
未找到
eve::ui::Theme结构体 参考

Unified UI design tokens (colors, geometry, typography). Applied to ImGui each frame via applyThemeToImGui; metrics are design-time units at uiScale=1 and are multiplied by the current UI scale. 更多...

#include <Theme.h>

静态 Public 成员函数

static Theme dark ()
 Built-in presets with matching geometry; only colors differ.
 
static Theme light ()
 Light.
 

Public 属性

ThemeLayout layout
 
float text [4] = {0.87f, 0.89f, 0.93f, 1.f}
 
float textDisabled [4] = {0.55f, 0.58f, 0.65f, 1.f}
 
float windowBg [4] = {0.145f, 0.155f, 0.19f, 0.99f}
 
float childBg [4] = {0.18f, 0.195f, 0.24f, 0.98f}
 
float popupBg [4] = {0.18f, 0.195f, 0.24f, 0.99f}
 
float border [4] = {0.095f, 0.105f, 0.135f, 0.92f}
 
float borderShadow [4] = {0.f, 0.f, 0.f, 0.f}
 
float frameBg [4] = {0.16f, 0.17f, 0.21f, 1.f}
 
float frameBgHovered [4] = {0.21f, 0.225f, 0.275f, 1.f}
 
float frameBgActive [4] = {0.25f, 0.22f, 0.26f, 1.f}
 
float titleBg [4] = {0.21f, 0.225f, 0.275f, 1.f}
 
float titleBgActive [4] = {0.235f, 0.25f, 0.305f, 1.f}
 
float titleBgCollapsed [4] = {0.19f, 0.205f, 0.25f, 0.96f}
 
float menuBarBg [4] = {0.225f, 0.24f, 0.29f, 1.f}
 
float button [4] = {0.18f, 0.195f, 0.24f, 1.f}
 
float buttonHovered [4] = {0.43f, 0.25f, 0.30f, 1.f}
 
float buttonActive [4] = {0.98f, 0.36f, 0.43f, 1.f}
 
float header [4] = {0.25f, 0.22f, 0.27f, 0.78f}
 
float headerHovered [4] = {0.43f, 0.25f, 0.30f, 0.92f}
 
float headerActive [4] = {0.60f, 0.29f, 0.34f, 1.f}
 
float checkMark [4] = {1.f, 0.39f, 0.45f, 1.f}
 
float sliderGrab [4] = {0.92f, 0.34f, 0.40f, 0.94f}
 
float sliderGrabActive [4] = {1.f, 0.46f, 0.51f, 1.f}
 
float separator [4] = {0.095f, 0.105f, 0.135f, 0.88f}
 
float scrollbarBg [4] = {0.105f, 0.115f, 0.15f, 0.62f}
 
float scrollbarGrab [4] = {0.29f, 0.31f, 0.37f, 0.90f}
 
float scrollbarGrabHovered [4] = {0.39f, 0.41f, 0.48f, 0.96f}
 
float scrollbarGrabActive [4] = {0.55f, 0.31f, 0.36f, 1.f}
 
float tab [4] = {0.18f, 0.195f, 0.24f, 1.f}
 
float tabHovered [4] = {0.42f, 0.25f, 0.30f, 1.f}
 
float tabActive [4] = {0.28f, 0.225f, 0.27f, 1.f}
 
float tabUnfocused [4] = {0.155f, 0.165f, 0.205f, 1.f}
 
float tabUnfocusedActive [4] = {0.22f, 0.20f, 0.24f, 1.f}
 
float tableHeaderBg [4] = {0.20f, 0.215f, 0.26f, 1.f}
 
float tableBorderStrong [4] = {0.095f, 0.105f, 0.135f, 0.92f}
 
float tableBorderLight [4] = {0.14f, 0.15f, 0.19f, 0.72f}
 
float tableRowBg [4] = {0.f, 0.f, 0.f, 0.f}
 
float tableRowBgAlt [4] = {0.31f, 0.33f, 0.39f, 0.22f}
 
float plotLines [4] = {0.62f, 0.65f, 0.72f, 1.f}
 
float plotLinesHovered [4] = {1.f, 0.39f, 0.45f, 1.f}
 
float plotHistogram [4] = {0.85f, 0.60f, 0.28f, 1.f}
 
float plotHistogramHovered [4] = {0.96f, 0.70f, 0.34f, 1.f}
 
float textSelectedBg [4] = {0.90f, 0.31f, 0.38f, 0.42f}
 
float navHighlight [4] = {1.f, 0.39f, 0.45f, 0.88f}
 
float modalDimBg [4] = {0.055f, 0.06f, 0.08f, 0.72f}
 
float windowRounding = 3.f
 
float childRounding = 3.f
 
float frameRounding = 3.f
 
float popupRounding = 4.f
 
float scrollbarRounding = 3.f
 
float grabRounding = 3.f
 
float tabRounding = 2.f
 
float windowBorderSize = 1.f
 
float childBorderSize = 1.f
 
float popupBorderSize = 1.f
 
float frameBorderSize = 0.f
 
float windowPaddingX = 14.f
 
float windowPaddingY = 12.f
 
float framePaddingX = 9.f
 
float framePaddingY = 5.f
 
float itemSpacingX = 9.f
 
float itemSpacingY = 7.f
 
float itemInnerSpacingX = 6.f
 
float itemInnerSpacingY = 4.f
 
float cellPaddingX = 6.f
 
float cellPaddingY = 3.f
 
float indentSpacing = 16.f
 
float scrollbarSize = 10.f
 
float grabMinSize = 8.f
 
float fontScale = 1.f
 
bool navEnableKeyboard = true
 
bool navEnableGamepad = false
 

详细描述

Unified UI design tokens (colors, geometry, typography). Applied to ImGui each frame via applyThemeToImGui; metrics are design-time units at uiScale=1 and are multiplied by the current UI scale.

在文件 Theme.h 第 39 行定义.

成员函数说明

◆ dark()

Theme eve::ui::Theme::dark ( )
static

Built-in presets with matching geometry; only colors differ.

在文件 Theme.cpp 第 174 行定义.

引用了 t.

被这些函数引用 eve::ui::setThemeByName(), eve::ui_editing::themeFromPreset() , 以及 eve::ui_editing::UiThemeCatalogTarget::UiThemeCatalogTarget().

◆ light()

类成员变量说明

◆ border

float eve::ui::Theme::border[4] = {0.095f, 0.105f, 0.135f, 0.92f}

在文件 Theme.h 第 49 行定义.

被这些函数引用 light().

◆ borderShadow

float eve::ui::Theme::borderShadow[4] = {0.f, 0.f, 0.f, 0.f}

在文件 Theme.h 第 50 行定义.

被这些函数引用 light().

◆ button

float eve::ui::Theme::button[4] = {0.18f, 0.195f, 0.24f, 1.f}

在文件 Theme.h 第 58 行定义.

被这些函数引用 light().

◆ buttonActive

float eve::ui::Theme::buttonActive[4] = {0.98f, 0.36f, 0.43f, 1.f}

在文件 Theme.h 第 60 行定义.

被这些函数引用 light().

◆ buttonHovered

float eve::ui::Theme::buttonHovered[4] = {0.43f, 0.25f, 0.30f, 1.f}

在文件 Theme.h 第 59 行定义.

被这些函数引用 light().

◆ cellPaddingX

float eve::ui::Theme::cellPaddingX = 6.f

在文件 Theme.h 第 112 行定义.

◆ cellPaddingY

float eve::ui::Theme::cellPaddingY = 3.f

在文件 Theme.h 第 113 行定义.

◆ checkMark

float eve::ui::Theme::checkMark[4] = {1.f, 0.39f, 0.45f, 1.f}

在文件 Theme.h 第 64 行定义.

被这些函数引用 light().

◆ childBg

float eve::ui::Theme::childBg[4] = {0.18f, 0.195f, 0.24f, 0.98f}

在文件 Theme.h 第 47 行定义.

被这些函数引用 light().

◆ childBorderSize

float eve::ui::Theme::childBorderSize = 1.f

在文件 Theme.h 第 100 行定义.

◆ childRounding

float eve::ui::Theme::childRounding = 3.f

在文件 Theme.h 第 92 行定义.

◆ fontScale

float eve::ui::Theme::fontScale = 1.f

Font size multiplier relative to the base UI font (FontGlobalScale). Display DPI is cancelled out of FontGlobalScale so this stays logical.

在文件 Theme.h 第 120 行定义.

◆ frameBg

float eve::ui::Theme::frameBg[4] = {0.16f, 0.17f, 0.21f, 1.f}

在文件 Theme.h 第 51 行定义.

被这些函数引用 light().

◆ frameBgActive

float eve::ui::Theme::frameBgActive[4] = {0.25f, 0.22f, 0.26f, 1.f}

在文件 Theme.h 第 53 行定义.

被这些函数引用 light().

◆ frameBgHovered

float eve::ui::Theme::frameBgHovered[4] = {0.21f, 0.225f, 0.275f, 1.f}

在文件 Theme.h 第 52 行定义.

被这些函数引用 light().

◆ frameBorderSize

float eve::ui::Theme::frameBorderSize = 0.f

在文件 Theme.h 第 102 行定义.

◆ framePaddingX

float eve::ui::Theme::framePaddingX = 9.f

在文件 Theme.h 第 106 行定义.

◆ framePaddingY

float eve::ui::Theme::framePaddingY = 5.f

在文件 Theme.h 第 107 行定义.

◆ frameRounding

float eve::ui::Theme::frameRounding = 3.f

在文件 Theme.h 第 93 行定义.

◆ grabMinSize

float eve::ui::Theme::grabMinSize = 8.f

在文件 Theme.h 第 116 行定义.

◆ grabRounding

float eve::ui::Theme::grabRounding = 3.f

在文件 Theme.h 第 96 行定义.

◆ header

float eve::ui::Theme::header[4] = {0.25f, 0.22f, 0.27f, 0.78f}

在文件 Theme.h 第 61 行定义.

被这些函数引用 light().

◆ headerActive

float eve::ui::Theme::headerActive[4] = {0.60f, 0.29f, 0.34f, 1.f}

在文件 Theme.h 第 63 行定义.

被这些函数引用 light().

◆ headerHovered

float eve::ui::Theme::headerHovered[4] = {0.43f, 0.25f, 0.30f, 0.92f}

在文件 Theme.h 第 62 行定义.

被这些函数引用 light().

◆ indentSpacing

float eve::ui::Theme::indentSpacing = 16.f

在文件 Theme.h 第 114 行定义.

◆ itemInnerSpacingX

float eve::ui::Theme::itemInnerSpacingX = 6.f

在文件 Theme.h 第 110 行定义.

◆ itemInnerSpacingY

float eve::ui::Theme::itemInnerSpacingY = 4.f

在文件 Theme.h 第 111 行定义.

◆ itemSpacingX

float eve::ui::Theme::itemSpacingX = 9.f

在文件 Theme.h 第 108 行定义.

◆ itemSpacingY

float eve::ui::Theme::itemSpacingY = 7.f

在文件 Theme.h 第 109 行定义.

◆ layout

ThemeLayout eve::ui::Theme::layout

CSS-like component layout defaults; explicit widget metrics override them.

在文件 Theme.h 第 41 行定义.

被这些函数引用 eve::ui::measureNode().

◆ menuBarBg

float eve::ui::Theme::menuBarBg[4] = {0.225f, 0.24f, 0.29f, 1.f}

在文件 Theme.h 第 57 行定义.

被这些函数引用 light().

◆ modalDimBg

float eve::ui::Theme::modalDimBg[4] = {0.055f, 0.06f, 0.08f, 0.72f}

在文件 Theme.h 第 88 行定义.

被这些函数引用 light().

◆ navEnableGamepad

bool eve::ui::Theme::navEnableGamepad = false

在文件 Theme.h 第 122 行定义.

被这些函数引用 eve::ui::UI::setNavGamepad().

◆ navEnableKeyboard

bool eve::ui::Theme::navEnableKeyboard = true

在文件 Theme.h 第 121 行定义.

被这些函数引用 eve::ui::UI::setNavKeyboard().

◆ navHighlight

float eve::ui::Theme::navHighlight[4] = {1.f, 0.39f, 0.45f, 0.88f}

在文件 Theme.h 第 87 行定义.

被这些函数引用 light().

◆ plotHistogram

float eve::ui::Theme::plotHistogram[4] = {0.85f, 0.60f, 0.28f, 1.f}

在文件 Theme.h 第 84 行定义.

被这些函数引用 light().

◆ plotHistogramHovered

float eve::ui::Theme::plotHistogramHovered[4] = {0.96f, 0.70f, 0.34f, 1.f}

在文件 Theme.h 第 85 行定义.

被这些函数引用 light().

◆ plotLines

float eve::ui::Theme::plotLines[4] = {0.62f, 0.65f, 0.72f, 1.f}

在文件 Theme.h 第 82 行定义.

被这些函数引用 light().

◆ plotLinesHovered

float eve::ui::Theme::plotLinesHovered[4] = {1.f, 0.39f, 0.45f, 1.f}

在文件 Theme.h 第 83 行定义.

被这些函数引用 light().

◆ popupBg

float eve::ui::Theme::popupBg[4] = {0.18f, 0.195f, 0.24f, 0.99f}

在文件 Theme.h 第 48 行定义.

被这些函数引用 light().

◆ popupBorderSize

float eve::ui::Theme::popupBorderSize = 1.f

在文件 Theme.h 第 101 行定义.

◆ popupRounding

float eve::ui::Theme::popupRounding = 4.f

在文件 Theme.h 第 94 行定义.

◆ scrollbarBg

float eve::ui::Theme::scrollbarBg[4] = {0.105f, 0.115f, 0.15f, 0.62f}

在文件 Theme.h 第 68 行定义.

被这些函数引用 light().

◆ scrollbarGrab

float eve::ui::Theme::scrollbarGrab[4] = {0.29f, 0.31f, 0.37f, 0.90f}

在文件 Theme.h 第 69 行定义.

被这些函数引用 light().

◆ scrollbarGrabActive

float eve::ui::Theme::scrollbarGrabActive[4] = {0.55f, 0.31f, 0.36f, 1.f}

在文件 Theme.h 第 71 行定义.

被这些函数引用 light().

◆ scrollbarGrabHovered

float eve::ui::Theme::scrollbarGrabHovered[4] = {0.39f, 0.41f, 0.48f, 0.96f}

在文件 Theme.h 第 70 行定义.

被这些函数引用 light().

◆ scrollbarRounding

float eve::ui::Theme::scrollbarRounding = 3.f

在文件 Theme.h 第 95 行定义.

◆ scrollbarSize

float eve::ui::Theme::scrollbarSize = 10.f

在文件 Theme.h 第 115 行定义.

◆ separator

float eve::ui::Theme::separator[4] = {0.095f, 0.105f, 0.135f, 0.88f}

在文件 Theme.h 第 67 行定义.

被这些函数引用 light().

◆ sliderGrab

float eve::ui::Theme::sliderGrab[4] = {0.92f, 0.34f, 0.40f, 0.94f}

在文件 Theme.h 第 65 行定义.

被这些函数引用 light().

◆ sliderGrabActive

float eve::ui::Theme::sliderGrabActive[4] = {1.f, 0.46f, 0.51f, 1.f}

在文件 Theme.h 第 66 行定义.

被这些函数引用 light().

◆ tab

float eve::ui::Theme::tab[4] = {0.18f, 0.195f, 0.24f, 1.f}

在文件 Theme.h 第 72 行定义.

被这些函数引用 light().

◆ tabActive

float eve::ui::Theme::tabActive[4] = {0.28f, 0.225f, 0.27f, 1.f}

在文件 Theme.h 第 74 行定义.

被这些函数引用 light().

◆ tabHovered

float eve::ui::Theme::tabHovered[4] = {0.42f, 0.25f, 0.30f, 1.f}

在文件 Theme.h 第 73 行定义.

被这些函数引用 light().

◆ tableBorderLight

float eve::ui::Theme::tableBorderLight[4] = {0.14f, 0.15f, 0.19f, 0.72f}

在文件 Theme.h 第 79 行定义.

被这些函数引用 light().

◆ tableBorderStrong

float eve::ui::Theme::tableBorderStrong[4] = {0.095f, 0.105f, 0.135f, 0.92f}

在文件 Theme.h 第 78 行定义.

被这些函数引用 light().

◆ tableHeaderBg

float eve::ui::Theme::tableHeaderBg[4] = {0.20f, 0.215f, 0.26f, 1.f}

在文件 Theme.h 第 77 行定义.

被这些函数引用 light().

◆ tableRowBg

float eve::ui::Theme::tableRowBg[4] = {0.f, 0.f, 0.f, 0.f}

在文件 Theme.h 第 80 行定义.

被这些函数引用 light().

◆ tableRowBgAlt

float eve::ui::Theme::tableRowBgAlt[4] = {0.31f, 0.33f, 0.39f, 0.22f}

在文件 Theme.h 第 81 行定义.

被这些函数引用 light().

◆ tabRounding

float eve::ui::Theme::tabRounding = 2.f

在文件 Theme.h 第 97 行定义.

◆ tabUnfocused

float eve::ui::Theme::tabUnfocused[4] = {0.155f, 0.165f, 0.205f, 1.f}

在文件 Theme.h 第 75 行定义.

被这些函数引用 light().

◆ tabUnfocusedActive

float eve::ui::Theme::tabUnfocusedActive[4] = {0.22f, 0.20f, 0.24f, 1.f}

在文件 Theme.h 第 76 行定义.

被这些函数引用 light().

◆ text

float eve::ui::Theme::text[4] = {0.87f, 0.89f, 0.93f, 1.f}

在文件 Theme.h 第 44 行定义.

被这些函数引用 light().

◆ textDisabled

float eve::ui::Theme::textDisabled[4] = {0.55f, 0.58f, 0.65f, 1.f}

在文件 Theme.h 第 45 行定义.

被这些函数引用 light().

◆ textSelectedBg

float eve::ui::Theme::textSelectedBg[4] = {0.90f, 0.31f, 0.38f, 0.42f}

在文件 Theme.h 第 86 行定义.

被这些函数引用 light().

◆ titleBg

float eve::ui::Theme::titleBg[4] = {0.21f, 0.225f, 0.275f, 1.f}

在文件 Theme.h 第 54 行定义.

被这些函数引用 light().

◆ titleBgActive

float eve::ui::Theme::titleBgActive[4] = {0.235f, 0.25f, 0.305f, 1.f}

在文件 Theme.h 第 55 行定义.

被这些函数引用 light().

◆ titleBgCollapsed

float eve::ui::Theme::titleBgCollapsed[4] = {0.19f, 0.205f, 0.25f, 0.96f}

在文件 Theme.h 第 56 行定义.

被这些函数引用 light().

◆ windowBg

float eve::ui::Theme::windowBg[4] = {0.145f, 0.155f, 0.19f, 0.99f}

在文件 Theme.h 第 46 行定义.

被这些函数引用 light().

◆ windowBorderSize

float eve::ui::Theme::windowBorderSize = 1.f

在文件 Theme.h 第 99 行定义.

◆ windowPaddingX

float eve::ui::Theme::windowPaddingX = 14.f

在文件 Theme.h 第 104 行定义.

◆ windowPaddingY

float eve::ui::Theme::windowPaddingY = 12.f

在文件 Theme.h 第 105 行定义.

◆ windowRounding

float eve::ui::Theme::windowRounding = 3.f

在文件 Theme.h 第 91 行定义.


该结构体的文档由以下文件生成: