mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 19:50:03 -06:00
Updated timeline application stylesheet and colors
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user