fonts in pt
This commit is contained in:
parent
e46fa8bc72
commit
d33c556a7b
@ -11,14 +11,11 @@
|
|||||||
#include <QskTextLabel.h>
|
#include <QskTextLabel.h>
|
||||||
#include <QskSkinHintTableEditor.h>
|
#include <QskSkinHintTableEditor.h>
|
||||||
#include <QskRgbValue.h>
|
#include <QskRgbValue.h>
|
||||||
#include <QskPlatform.h>
|
|
||||||
#include <QskFontRole.h>
|
#include <QskFontRole.h>
|
||||||
|
|
||||||
static inline QFont qskFont( qreal pointSize )
|
static inline QFont qskFont( qreal pointSize )
|
||||||
{
|
{
|
||||||
QFont font( "Roboto" );
|
return QFont( "Roboto", pointSize );
|
||||||
font.setPointSizeF( pointSize / qskDpToPixels( 1.0 ) );
|
|
||||||
return font;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Skin::Skin()
|
Skin::Skin()
|
||||||
@ -31,9 +28,8 @@ void Skin::initHints()
|
|||||||
{
|
{
|
||||||
using namespace QskRgb;
|
using namespace QskRgb;
|
||||||
|
|
||||||
setFont( QskFontRole::Caption, qskFont( 8 ) );
|
setFont( QskFontRole::Caption, qskFont( 12 ) );
|
||||||
setFont( QskFontRole::Body, qskFont( 13 ) );
|
setFont( QskFontRole::Body, qskFont( 16 ) );
|
||||||
setFont( QskFontRole::Title, qskFont( 20 ) );
|
|
||||||
|
|
||||||
const auto rgb1 = qRgb( 1, 16, 27 ); // Maastricht blue
|
const auto rgb1 = qRgb( 1, 16, 27 ); // Maastricht blue
|
||||||
const auto rgb2 = qRgb( 255, 0, 22 ); // Ruddy
|
const auto rgb2 = qRgb( 255, 0, 22 ); // Ruddy
|
||||||
|
Loading…
x
Reference in New Issue
Block a user