themes: add option to enable frames for message and hint boxes

Origin commit data
------------------
Commit: e3f1754f14
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-10-27 (Sun, 27 Oct 2019)
This commit is contained in:
2019-10-27 22:56:50 +01:00
committed by vanhofen
parent 8e13aadd70
commit b60daa3fd0
14 changed files with 29 additions and 2 deletions

View File

@@ -37,6 +37,7 @@
#include <gui/components/cc_timer.h>
#include <driver/fontrenderer.h>
#include <system/debug.h>
#include <system/settings.h>
#define MSG_FONT g_Font[SNeutrinoSettings::FONT_TYPE_MESSAGE_TEXT]
@@ -164,7 +165,7 @@ void CHintBox::init( const std::string& Text,
col_frame = color_frame;
col_body = color_body;
col_shadow = color_shadow;
fr_thickness = frame_width;
fr_thickness = g_settings.theme.message_frame_enable ? frame_width : 0;
hb_font = MSG_FONT;