ES-DE/es-core/src/HelpStyle.h

38 lines
803 B
C
Raw Normal View History

// SPDX-License-Identifier: MIT
//
// EmulationStation Desktop Edition
// HelpStyle.h
//
// Style (default colors, position and origin) for the help system.
// Also theme handling.
//
#ifndef ES_CORE_HELP_STYLE_H
#define ES_CORE_HELP_STYLE_H
2014-05-29 20:41:47 +00:00
#include "utils/MathUtil.h"
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
struct HelpStyle {
glm::vec2 position;
glm::vec2 origin;
unsigned int textColor;
unsigned int textColorDimmed;
unsigned int iconColor;
unsigned int iconColorDimmed;
std::shared_ptr<Font> font;
float entrySpacing;
float iconTextSpacing;
std::string textStyle;
2014-05-29 20:41:47 +00:00
HelpStyle(); // Default values.
void applyTheme(const std::shared_ptr<ThemeData>& theme, const std::string& view);
};
#endif // ES_CORE_HELP_STYLE_H