mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
CHintBox: reduce window size for used auto size depends on text content
Origin commit data
------------------
Commit: 3b60a55f59
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-07 (Fri, 07 Oct 2016)
This commit is contained in:
@@ -215,6 +215,7 @@ void CHintBox::addHintItem(const std::string& Text, const int& text_mode, const
|
|||||||
|
|
||||||
//set required font and line size
|
//set required font and line size
|
||||||
Font* font = font_text == NULL ? g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO] : font_text;
|
Font* font = font_text == NULL ? g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO] : font_text;
|
||||||
|
width = max(width, min(font->getRenderWidth(Text), HINTBOX_MIN_WIDTH));
|
||||||
int h_line = font->getHeight();
|
int h_line = font->getHeight();
|
||||||
|
|
||||||
//init side picon object
|
//init side picon object
|
||||||
|
@@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
#include <gui/components/cc.h>
|
#include <gui/components/cc.h>
|
||||||
|
|
||||||
#define HINTBOX_MIN_WIDTH 600
|
#define HINTBOX_MIN_WIDTH 400
|
||||||
#define HINTBOX_MIN_HEIGHT 125
|
#define HINTBOX_MIN_HEIGHT 125
|
||||||
#define HINTBOX_MAX_HEIGHT 420
|
#define HINTBOX_MAX_HEIGHT 420
|
||||||
#define HINTBOX_DEFAULT_TIMEOUT 5
|
#define HINTBOX_DEFAULT_TIMEOUT 5
|
||||||
|
Reference in New Issue
Block a user