载入中...
搜索中...
未找到
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 ()
 

Public 属性

float text [4] = {0.92f, 0.93f, 0.95f, 1.f}
 
float textDisabled [4] = {0.50f, 0.52f, 0.55f, 1.f}
 
float windowBg [4] = {0.09f, 0.10f, 0.12f, 0.96f}
 
float childBg [4] = {0.07f, 0.08f, 0.10f, 0.90f}
 
float popupBg [4] = {0.11f, 0.12f, 0.14f, 0.98f}
 
float border [4] = {0.28f, 0.30f, 0.35f, 0.70f}
 
float frameBg [4] = {0.16f, 0.18f, 0.22f, 1.f}
 
float frameBgHovered [4] = {0.22f, 0.26f, 0.32f, 1.f}
 
float frameBgActive [4] = {0.26f, 0.32f, 0.40f, 1.f}
 
float titleBg [4] = {0.07f, 0.08f, 0.10f, 1.f}
 
float titleBgActive [4] = {0.12f, 0.18f, 0.28f, 1.f}
 
float titleBgCollapsed [4] = {0.07f, 0.08f, 0.10f, 0.75f}
 
float button [4] = {0.22f, 0.45f, 0.78f, 0.70f}
 
float buttonHovered [4] = {0.28f, 0.55f, 0.92f, 1.f}
 
float buttonActive [4] = {0.16f, 0.38f, 0.72f, 1.f}
 
float header [4] = {0.22f, 0.45f, 0.78f, 0.45f}
 
float headerHovered [4] = {0.28f, 0.55f, 0.92f, 0.70f}
 
float headerActive [4] = {0.22f, 0.45f, 0.78f, 1.f}
 
float checkMark [4] = {0.45f, 0.75f, 1.f, 1.f}
 
float sliderGrab [4] = {0.35f, 0.60f, 0.95f, 0.90f}
 
float sliderGrabActive [4] = {0.45f, 0.70f, 1.f, 1.f}
 
float separator [4] = {0.35f, 0.38f, 0.42f, 0.60f}
 
float scrollbarBg [4] = {0.05f, 0.06f, 0.07f, 0.55f}
 
float scrollbarGrab [4] = {0.35f, 0.38f, 0.42f, 0.80f}
 
float scrollbarGrabHovered [4] = {0.45f, 0.48f, 0.52f, 0.90f}
 
float scrollbarGrabActive [4] = {0.55f, 0.58f, 0.62f, 1.f}
 
float windowRounding = 6.f
 
float childRounding = 4.f
 
float frameRounding = 4.f
 
float popupRounding = 6.f
 
float scrollbarRounding = 8.f
 
float grabRounding = 3.f
 
float tabRounding = 4.f
 
float windowBorderSize = 1.f
 
float childBorderSize = 1.f
 
float popupBorderSize = 1.f
 
float frameBorderSize = 0.f
 
float windowPaddingX = 12.f
 
float windowPaddingY = 10.f
 
float framePaddingX = 8.f
 
float framePaddingY = 5.f
 
float itemSpacingX = 8.f
 
float itemSpacingY = 6.f
 
float itemInnerSpacingX = 6.f
 
float itemInnerSpacingY = 4.f
 
float indentSpacing = 18.f
 
float scrollbarSize = 14.f
 
float grabMinSize = 12.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.h12 行定义.

成员函数说明

◆ dark()

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

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

在文件 Theme.cpp34 行定义.

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

◆ light()

类成员变量说明

◆ border

float eve::ui::Theme::border[4] = {0.28f, 0.30f, 0.35f, 0.70f}

在文件 Theme.h19 行定义.

被这些函数引用 light().

◆ button

float eve::ui::Theme::button[4] = {0.22f, 0.45f, 0.78f, 0.70f}

在文件 Theme.h26 行定义.

被这些函数引用 light().

◆ buttonActive

float eve::ui::Theme::buttonActive[4] = {0.16f, 0.38f, 0.72f, 1.f}

在文件 Theme.h28 行定义.

被这些函数引用 light().

◆ buttonHovered

float eve::ui::Theme::buttonHovered[4] = {0.28f, 0.55f, 0.92f, 1.f}

在文件 Theme.h27 行定义.

被这些函数引用 light().

◆ checkMark

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

在文件 Theme.h32 行定义.

被这些函数引用 light().

◆ childBg

float eve::ui::Theme::childBg[4] = {0.07f, 0.08f, 0.10f, 0.90f}

在文件 Theme.h17 行定义.

被这些函数引用 light().

◆ childBorderSize

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

在文件 Theme.h51 行定义.

◆ childRounding

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

在文件 Theme.h43 行定义.

◆ 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.h69 行定义.

◆ frameBg

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

在文件 Theme.h20 行定义.

被这些函数引用 light().

◆ frameBgActive

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

在文件 Theme.h22 行定义.

被这些函数引用 light().

◆ frameBgHovered

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

在文件 Theme.h21 行定义.

被这些函数引用 light().

◆ frameBorderSize

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

在文件 Theme.h53 行定义.

◆ framePaddingX

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

在文件 Theme.h57 行定义.

◆ framePaddingY

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

在文件 Theme.h58 行定义.

◆ frameRounding

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

在文件 Theme.h44 行定义.

◆ grabMinSize

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

在文件 Theme.h65 行定义.

◆ grabRounding

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

在文件 Theme.h47 行定义.

◆ header

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

在文件 Theme.h29 行定义.

被这些函数引用 light().

◆ headerActive

float eve::ui::Theme::headerActive[4] = {0.22f, 0.45f, 0.78f, 1.f}

在文件 Theme.h31 行定义.

被这些函数引用 light().

◆ headerHovered

float eve::ui::Theme::headerHovered[4] = {0.28f, 0.55f, 0.92f, 0.70f}

在文件 Theme.h30 行定义.

被这些函数引用 light().

◆ indentSpacing

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

在文件 Theme.h63 行定义.

◆ itemInnerSpacingX

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

在文件 Theme.h61 行定义.

◆ itemInnerSpacingY

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

在文件 Theme.h62 行定义.

◆ itemSpacingX

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

在文件 Theme.h59 行定义.

◆ itemSpacingY

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

在文件 Theme.h60 行定义.

◆ navEnableGamepad

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

在文件 Theme.h71 行定义.

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

◆ navEnableKeyboard

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

在文件 Theme.h70 行定义.

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

◆ popupBg

float eve::ui::Theme::popupBg[4] = {0.11f, 0.12f, 0.14f, 0.98f}

在文件 Theme.h18 行定义.

被这些函数引用 light().

◆ popupBorderSize

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

在文件 Theme.h52 行定义.

◆ popupRounding

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

在文件 Theme.h45 行定义.

◆ scrollbarBg

float eve::ui::Theme::scrollbarBg[4] = {0.05f, 0.06f, 0.07f, 0.55f}

在文件 Theme.h36 行定义.

被这些函数引用 light().

◆ scrollbarGrab

float eve::ui::Theme::scrollbarGrab[4] = {0.35f, 0.38f, 0.42f, 0.80f}

在文件 Theme.h37 行定义.

被这些函数引用 light().

◆ scrollbarGrabActive

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

在文件 Theme.h39 行定义.

被这些函数引用 light().

◆ scrollbarGrabHovered

float eve::ui::Theme::scrollbarGrabHovered[4] = {0.45f, 0.48f, 0.52f, 0.90f}

在文件 Theme.h38 行定义.

被这些函数引用 light().

◆ scrollbarRounding

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

在文件 Theme.h46 行定义.

◆ scrollbarSize

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

在文件 Theme.h64 行定义.

◆ separator

float eve::ui::Theme::separator[4] = {0.35f, 0.38f, 0.42f, 0.60f}

在文件 Theme.h35 行定义.

被这些函数引用 light().

◆ sliderGrab

float eve::ui::Theme::sliderGrab[4] = {0.35f, 0.60f, 0.95f, 0.90f}

在文件 Theme.h33 行定义.

被这些函数引用 light().

◆ sliderGrabActive

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

在文件 Theme.h34 行定义.

被这些函数引用 light().

◆ tabRounding

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

在文件 Theme.h48 行定义.

◆ text

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

在文件 Theme.h14 行定义.

被这些函数引用 light().

◆ textDisabled

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

在文件 Theme.h15 行定义.

被这些函数引用 light().

◆ titleBg

float eve::ui::Theme::titleBg[4] = {0.07f, 0.08f, 0.10f, 1.f}

在文件 Theme.h23 行定义.

被这些函数引用 light().

◆ titleBgActive

float eve::ui::Theme::titleBgActive[4] = {0.12f, 0.18f, 0.28f, 1.f}

在文件 Theme.h24 行定义.

被这些函数引用 light().

◆ titleBgCollapsed

float eve::ui::Theme::titleBgCollapsed[4] = {0.07f, 0.08f, 0.10f, 0.75f}

在文件 Theme.h25 行定义.

被这些函数引用 light().

◆ windowBg

float eve::ui::Theme::windowBg[4] = {0.09f, 0.10f, 0.12f, 0.96f}

在文件 Theme.h16 行定义.

被这些函数引用 light().

◆ windowBorderSize

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

在文件 Theme.h50 行定义.

◆ windowPaddingX

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

在文件 Theme.h55 行定义.

◆ windowPaddingY

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

在文件 Theme.h56 行定义.

◆ windowRounding

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

在文件 Theme.h42 行定义.


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