mirror of https://github.com/OpenMW/openmw.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
474 B
C++
25 lines
474 B
C++
1 year ago
|
#ifndef OPENMW_WIDGETS_WRAPPER_H
|
||
|
#define OPENMW_WIDGETS_WRAPPER_H
|
||
|
|
||
|
#include <MyGUI_Prerequest.h>
|
||
|
|
||
|
#include "components/settings/values.hpp"
|
||
|
|
||
|
#include <algorithm>
|
||
|
|
||
|
namespace Gui
|
||
|
{
|
||
|
template <class T>
|
||
|
class FontWrapper : public T
|
||
|
{
|
||
|
public:
|
||
|
void setFontName(std::string_view name) override
|
||
|
{
|
||
|
T::setFontName(name);
|
||
|
T::setPropertyOverride("FontHeight", std::to_string(Settings::gui().mFontSize));
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif
|