ui: added universal font size setting and shortcuts for changing it

This change adds font size and font family to the ApplicationSettings to have a single point for manipulating them. The
font size can also be changed via the menu or the zoomIn and zoomOut shortcuts on all platforms.
This commit is contained in:
Eberhard Graether
2015-07-15 00:38:10 +02:00
parent 7275082284
commit fb170cbd5d
46 changed files with 368 additions and 152 deletions
@@ -6,7 +6,8 @@
class MessageRefresh: public Message<MessageRefresh>
{
public:
MessageRefresh()
MessageRefresh(bool uiOnly = false)
: uiOnly(uiOnly)
{
}
@@ -14,6 +15,8 @@ public:
{
return "MessageRefresh";
}
const bool uiOnly;
};
#endif // MESSAGE_REFRESH_H
@@ -0,0 +1,23 @@
#ifndef MESSAGE_ZOOM_H
#define MESSAGE_ZOOM_H
#include "utility/messaging/Message.h"
class MessageZoom
: public Message<MessageZoom>
{
public:
MessageZoom(bool zoomIn)
: zoomIn(zoomIn)
{
}
static const std::string getStaticType()
{
return "MessageZoom";
}
const bool zoomIn;
};
#endif // MESSAGE_ZOOM_H