2020-09-21 17:17:34 +00:00
|
|
|
// SPDX-License-Identifier: MIT
|
2020-06-26 15:17:35 +00:00
|
|
|
//
|
2020-09-21 17:17:34 +00:00
|
|
|
// EmulationStation Desktop Edition
|
2020-06-26 15:17:35 +00:00
|
|
|
// HelpStyle.h
|
|
|
|
//
|
|
|
|
// Style (default colors, position and origin) for the help system.
|
|
|
|
// Also theme handling.
|
|
|
|
//
|
|
|
|
|
2017-10-31 17:12:50 +00:00
|
|
|
#ifndef ES_CORE_HELP_STYLE_H
|
|
|
|
#define ES_CORE_HELP_STYLE_H
|
2014-05-29 20:41:47 +00:00
|
|
|
|
2021-08-17 20:11:16 +00:00
|
|
|
#include "utils/MathUtil.h"
|
2020-09-21 17:17:34 +00:00
|
|
|
|
2014-05-29 20:41:47 +00:00
|
|
|
#include <memory>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
class Font;
|
2017-11-01 22:21:10 +00:00
|
|
|
class ThemeData;
|
2014-05-29 20:41:47 +00:00
|
|
|
|
2020-06-26 15:17:35 +00:00
|
|
|
struct HelpStyle {
|
2021-08-16 16:25:01 +00:00
|
|
|
glm::vec2 position;
|
|
|
|
glm::vec2 origin;
|
2020-06-26 15:17:35 +00:00
|
|
|
unsigned int textColor;
|
2021-08-22 14:43:15 +00:00
|
|
|
unsigned int textColorDimmed;
|
|
|
|
unsigned int iconColor;
|
|
|
|
unsigned int iconColorDimmed;
|
2020-06-26 15:17:35 +00:00
|
|
|
std::shared_ptr<Font> font;
|
2021-08-20 15:20:05 +00:00
|
|
|
float entrySpacing;
|
|
|
|
float iconTextSpacing;
|
2021-08-20 15:51:36 +00:00
|
|
|
std::string textStyle;
|
2014-05-29 20:41:47 +00:00
|
|
|
|
2020-06-26 15:17:35 +00:00
|
|
|
HelpStyle(); // Default values.
|
|
|
|
void applyTheme(const std::shared_ptr<ThemeData>& theme, const std::string& view);
|
2017-10-31 17:12:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // ES_CORE_HELP_STYLE_H
|