#pragma once #include #include #include namespace APP { /* * 主题模块现在只保留一套固定暗色风格。 * * - 不参与 DRI 枚举 * - 不参与协议解析 * - 不参与业务判断 */ class APP_Theme { public: // 返回标准控件使用的统一调色板。 static QPalette App_Func_GetPalette(); // 正文说明文字的默认字体。 static QFont App_Func_GetBodyFont(); // 页面标题字体。 static QFont App_Func_GetTitleFont(); // 指标、卡片主标题使用的强调字体。 static QFont App_Func_GetMetricFont(); // 键帽中央主文字字体。 static QFont App_Func_GetKeyLabelFont(); // 键帽角落提示文字字体。 static QFont App_Func_GetKeyHintFont(); private: // 从候选字体列表中挑出当前系统真实存在的一项。 static QString App_Func_PickFontFamily(const QStringList& FamilyList); }; } // namespace APP