Updated timeline application stylesheet and colors

This commit is contained in:
Alexander Bock
2015-05-08 16:39:28 +02:00
parent db05279a35
commit 0f72d5ddda
3 changed files with 11 additions and 6 deletions

View File

@@ -222,11 +222,11 @@ void ControlWidget::onValueChange() {
float delta;
if (value < 0.f) {
value = -value;
float d = std::pow(2, value / 10) - 1.f;
float d = std::pow(3, value / 10) - 1.f;
delta = -d;
}
else {
float d = std::pow(2, value / 10) - 1.f;
float d = std::pow(3, value / 10) - 1.f;
delta = d;
}

View File

@@ -28,7 +28,7 @@
static const QString style = R"style(
QWidget {
background-color: rgb(100, 100, 100);
background-color: rgb(80, 80, 80);
font-family: Helvetica;
}
@@ -52,13 +52,17 @@ QGroupBox::title {
padding: 0 10px;
}
QLineEdit {
color: lightgray;
}
QSlider::groove:horizontal {
border: 1px solid #999999;
height: 8px; /* the groove expands to the size of the slider by default. by giving it a height, it has a fixed size */
background: qlineargradient(
x1:0, y1:0, x2:1, y2:0,
stop:0 #c4c4c4,
stop:0.5 #888888,
stop:0.5 #555555,
stop:1 #c4c4c4
);
margin: 2px 0;

View File

@@ -121,8 +121,9 @@ void TimelineWidget::drawContent(QPainter& painter, QRectF rect) {
QRectF dateRect(rect.width() - TimeWidth, 0, TimeWidth, rect.height());
// Draw background
painter.setBrush(QBrush(Qt::lightGray)); painter.drawRect(timelineRect);
painter.setBrush(QBrush(Qt::gray)); painter.drawRect(dateRect);
//painter.setBrush(QBrush(Qt::lightGray)); painter.drawRect(timelineRect);
painter.setBrush(QBrush(QColor(85, 85, 85))); painter.drawRect(timelineRect);
painter.setBrush(QBrush(QColor(165, 165, 165))); painter.drawRect(dateRect);
const double lowerTime = _currentTime.et - etSpread;
const double upperTime = _currentTime.et + etSpread;