This commit is contained in:
Max Sandholm 2017-10-30 15:14:08 +02:00
parent ee893c5adf
commit 8fa01e2cd6
13 changed files with 72 additions and 73 deletions

View File

@ -38,15 +38,11 @@ struct DescInfo
class RoomInfoListItem : public QWidget
{
Q_OBJECT
Q_PROPERTY(QColor highlightedBackgroundColor
READ highlightedBackgroundColor
WRITE setHighlightedBackgroundColor)
Q_PROPERTY(QColor hoverBackgroundColor
READ hoverBackgroundColor
WRITE setHoverBackgroundColor)
Q_PROPERTY(QColor backgroundColor
READ backgroundColor
WRITE setBackgroundColor)
Q_PROPERTY(QColor highlightedBackgroundColor READ highlightedBackgroundColor WRITE
setHighlightedBackgroundColor)
Q_PROPERTY(
QColor hoverBackgroundColor READ hoverBackgroundColor WRITE setHoverBackgroundColor)
Q_PROPERTY(QColor backgroundColor READ backgroundColor WRITE setBackgroundColor)
public:
RoomInfoListItem(QSharedPointer<RoomSettings> settings,
@ -71,7 +67,10 @@ public:
inline QColor hoverBackgroundColor() const { return hoverBackgroundColor_; }
inline QColor backgroundColor() const { return backgroundColor_; }
inline void setHighlightedBackgroundColor(QColor &color) { highlightedBackgroundColor_ = color; }
inline void setHighlightedBackgroundColor(QColor &color)
{
highlightedBackgroundColor_ = color;
}
inline void setHoverBackgroundColor(QColor &color) { hoverBackgroundColor_ = color; }
inline void setBackgroundColor(QColor &color) { backgroundColor_ = color; }

View File

@ -19,9 +19,9 @@
#include <QHBoxLayout>
#include <QLabel>
#include <QPainter>
#include <QStyle>
#include <QStyleOption>
#include <QPainter>
#include "Emote.h"
#include "Image.h"

View File

@ -64,7 +64,8 @@ struct PendingMessage
, filename(filename)
, event_id(event_id)
, widget(widget)
{}
{
}
};
// In which place new TimelineItems should be inserted.

View File

@ -34,12 +34,12 @@ EmojiPanel::EmojiPanel(QWidget *parent)
{
// setStyleSheet(
// "QWidget {background: #fff; color: #e8e8e8; border: none;}"
// "QScrollBar:vertical { background-color: #fff; width: 8px; margin: 0px 2px 0 2px; }"
// "QScrollBar:vertical { background-color: #fff; width: 8px; margin: 0px 2px 0
// 2px; }"
// "QScrollBar::handle:vertical { background-color: #d6dde3; min-height: 20px; }"
// "QScrollBar::add-line:vertical { border: none; background: none; }"
// "QScrollBar::sub-line:vertical { border: none; background: none; }");
setStyleSheet(
"QWidget {border: none;}"
setStyleSheet("QWidget {border: none;}"
"QScrollBar:vertical { width: 8px; margin: 0px 2px 0 2px; }"
"QScrollBar::handle:vertical { min-height: 20px; }"
"QScrollBar::add-line:vertical { border: none; background: none; }"

View File

@ -66,7 +66,6 @@ TimelineItem::init()
headerLayout_->setMargin(0);
headerLayout_->setSpacing(conf::timeline::headerSpacing);
}
/*

View File

@ -17,12 +17,12 @@
#include <QApplication>
#include <QDesktopWidget>
#include <QFile>
#include <QFontDatabase>
#include <QLibraryInfo>
#include <QNetworkProxy>
#include <QSettings>
#include <QTranslator>
#include <QFile>
#include "MainWindow.h"