NexusForce 1.0.0
A rigorously engineered full-stack C++ backend library.
载入中...
搜索中...
未找到
neforce::tui::theme结构体 参考

主题 更多...

#include <style.hpp>

Public 成员函数

style button_style (style::variant v) const
 获取按钮样式
style text_style () const
 获取默认文本样式
style input_style (bool focused) const
 获取输入框样式

Public 属性

color bg
 默认背景色
color fg
 默认前景色
color primary
 主色调
color secondary
 次要色调
color danger
 危险/错误色
color success
 成功色
color warning
 警告色
color muted
 弱化/禁用色
color border
 边框色

详细描述

主题

在文件 style.hpp180 行定义.

成员函数说明

◆ button_style()

style neforce::tui::theme::button_style ( style::variant v) const
nodiscard

获取按钮样式

参数
v语义变体
返回
对应变体的样式

◆ input_style()

style neforce::tui::theme::input_style ( bool focused) const
nodiscard

获取输入框样式

参数
focused是否处于焦点状态
返回
输入框样式

◆ text_style()

style neforce::tui::theme::text_style ( ) const
nodiscard

获取默认文本样式

返回
文本样式

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