mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-04 11:06:47 -04:00
using font scale of 1.5
This commit is contained in:
parent
660b1c4025
commit
9c11b21ee7
2 changed files with 3 additions and 3 deletions
|
@ -25,7 +25,7 @@
|
|||
#include "gui/gxschannels/GxsChannelPostThumbnail.h"
|
||||
|
||||
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)
|
||||
: 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)
|
||||
font.setPointSizeF(FONT_SCALE_FACTOR * DEFAULT_SIZE_IN_FONT_HEIGHT / 5.0 * font.pointSizeF());
|
||||
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)
|
||||
font.setBold(true);
|
||||
|
|
|
@ -95,7 +95,7 @@ public:
|
|||
static constexpr char *CHAN_DEFAULT_IMAGE = ":images/thumb-default-video.png";
|
||||
|
||||
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);
|
||||
|
||||
void init(const RsGxsChannelPost& post);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue