mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-03 02:50:07 -05:00
using font scale of 1.5
This commit is contained in:
parent
660b1c4025
commit
9c11b21ee7
@ -25,7 +25,7 @@
|
|||||||
#include "gui/gxschannels/GxsChannelPostThumbnail.h"
|
#include "gui/gxschannels/GxsChannelPostThumbnail.h"
|
||||||
|
|
||||||
const float ChannelPostThumbnailView::DEFAULT_SIZE_IN_FONT_HEIGHT = 5.0;
|
const float ChannelPostThumbnailView::DEFAULT_SIZE_IN_FONT_HEIGHT = 5.0;
|
||||||
const float ChannelPostThumbnailView::FONT_SCALE_FACTOR = 2.0;
|
const float ChannelPostThumbnailView::FONT_SCALE_FACTOR = 1.5;
|
||||||
|
|
||||||
ChannelPostThumbnailView::ChannelPostThumbnailView(const RsGxsChannelPost& post,uint32_t flags,QWidget *parent)
|
ChannelPostThumbnailView::ChannelPostThumbnailView(const RsGxsChannelPost& post,uint32_t flags,QWidget *parent)
|
||||||
: QWidget(parent),mPostTitle(nullptr),mFlags(flags), mAspectRatio(ASPECT_RATIO_2_3)
|
: QWidget(parent),mPostTitle(nullptr),mFlags(flags), mAspectRatio(ASPECT_RATIO_2_3)
|
||||||
@ -138,7 +138,7 @@ void ChannelPostThumbnailView::init(const RsGxsChannelPost& post)
|
|||||||
if(mFlags & ChannelPostThumbnailView::FLAG_SCALE_FONT)
|
if(mFlags & ChannelPostThumbnailView::FLAG_SCALE_FONT)
|
||||||
font.setPointSizeF(FONT_SCALE_FACTOR * DEFAULT_SIZE_IN_FONT_HEIGHT / 5.0 * font.pointSizeF());
|
font.setPointSizeF(FONT_SCALE_FACTOR * DEFAULT_SIZE_IN_FONT_HEIGHT / 5.0 * font.pointSizeF());
|
||||||
else
|
else
|
||||||
font.setPointSizeF(FONT_SCALE_FACTOR * DEFAULT_SIZE_IN_FONT_HEIGHT / 5.0 * font.pointSizeF());
|
font.setPointSizeF(DEFAULT_SIZE_IN_FONT_HEIGHT / 5.0 * font.pointSizeF());
|
||||||
|
|
||||||
if(is_msg_new)
|
if(is_msg_new)
|
||||||
font.setBold(true);
|
font.setBold(true);
|
||||||
|
@ -95,7 +95,7 @@ public:
|
|||||||
static constexpr char *CHAN_DEFAULT_IMAGE = ":images/thumb-default-video.png";
|
static constexpr char *CHAN_DEFAULT_IMAGE = ":images/thumb-default-video.png";
|
||||||
|
|
||||||
virtual ~ChannelPostThumbnailView();
|
virtual ~ChannelPostThumbnailView();
|
||||||
ChannelPostThumbnailView(QWidget *parent=NULL,uint32_t flags=FLAG_ALLOW_PAN | FLAG_SHOW_TEXT);
|
ChannelPostThumbnailView(QWidget *parent=NULL,uint32_t flags=FLAG_ALLOW_PAN | FLAG_SHOW_TEXT | FLAG_SCALE_FONT);
|
||||||
ChannelPostThumbnailView(const RsGxsChannelPost& post,uint32_t flags,QWidget *parent=NULL);
|
ChannelPostThumbnailView(const RsGxsChannelPost& post,uint32_t flags,QWidget *parent=NULL);
|
||||||
|
|
||||||
void init(const RsGxsChannelPost& post);
|
void init(const RsGxsChannelPost& post);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user