Commit a9219c76 authored by Julien Wintz's avatar Julien Wintz
Browse files

Styling of generic composer controls entries (some bg tests).

parent dd6a6832
......@@ -4,9 +4,9 @@
* Copyright (C) 2008-2011 - Julien Wintz, Inria.
* Created: Wed Nov 28 15:12:23 2012 (+0100)
* Version: $Id$
* Last-Updated: Wed Nov 28 16:06:09 2012 (+0100)
* Last-Updated: Wed Nov 28 17:16:25 2012 (+0100)
* By: Julien Wintz
* Update #: 92
* Update #: 135
*/
/* Commentary:
......@@ -59,7 +59,19 @@ QWidget *dtkComposerControlsDelegate::createEditor(QWidget *parent, const QStyle
void dtkComposerControlsDelegate::paint(QPainter *painter, const QStyleOptionViewItem& option, const QModelIndex& index) const
{
painter->fillRect(option.rect, Qt::lightGray);
QLinearGradient gradient;
gradient.setStart(option.rect.topLeft());
gradient.setFinalStop(option.rect.bottomLeft());
gradient.setColorAt(0, Qt::lightGray);
gradient.setColorAt(1, Qt::gray);
painter->save();
painter->fillRect(option.rect, gradient);
painter->setPen(QColor("#eeeeee"));
painter->drawLine(option.rect.topLeft(), option.rect.topRight());
painter->setPen(Qt::darkGray);
painter->drawLine(option.rect.bottomLeft(), option.rect.bottomRight());
painter->restore();
QStyledItemDelegate::paint(painter, option, index);
}
......
......@@ -4,9 +4,9 @@
;; Copyright (C) 2008-2011 - Julien Wintz, Inria.
;; Created: Thu Mar 15 12:05:17 2012 (+0100)
;; Version: $Id$
;; Last-Updated: Wed Nov 28 16:08:27 2012 (+0100)
;; Last-Updated: Wed Nov 28 17:03:56 2012 (+0100)
;; By: Julien Wintz
;; Update #: 440
;; Update #: 455
*/
/*Commentary:
......@@ -401,6 +401,11 @@ dtkComposerPath {
border-bottom: 1px solid #6c6c6c;
}
dtkComposerPath:!active {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #f5f5f5, stop: 1.0 #dadada);
border-bottom: 1px solid #6c6c6c;
}
dtkComposerPath QLabel {
color : #111111;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment