mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 15:39:27 -05:00
removed explicit color in board items to comply with css style
This commit is contained in:
parent
2673c92e3c
commit
ff0836929d
@ -88,11 +88,11 @@ void PostedPostDelegate::paint(QPainter * painter, const QStyleOptionViewItem &
|
|||||||
|
|
||||||
painter->save();
|
painter->save();
|
||||||
|
|
||||||
painter->fillRect( option.rect, option.backgroundBrush);
|
painter->fillRect( option.rect, option.palette.background());
|
||||||
painter->restore();
|
painter->restore();
|
||||||
|
|
||||||
QPixmap pixmap(option.rect.size());
|
QPixmap pixmap(option.rect.size());
|
||||||
pixmap.fill(QRgb(0x00f0f0f0)); // choose a fully transparent background
|
pixmap.fill(option.palette.alternateBase().color()); // use base() instead to have all widgets the same background
|
||||||
|
|
||||||
if(mDisplayMode == BoardPostDisplayWidget_compact::DISPLAY_MODE_COMPACT)
|
if(mDisplayMode == BoardPostDisplayWidget_compact::DISPLAY_MODE_COMPACT)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user