SkyGui.cpp   SkyGui.cpp 
skipping to change at line 141 skipping to change at line 141
} }
if (!autoHideVerticalButtonBar) if (!autoHideVerticalButtonBar)
{ {
animLeftBarTimeLine->setDirection(QTimeLine::Forward); animLeftBarTimeLine->setDirection(QTimeLine::Forward);
animLeftBarTimeLine->start(); animLeftBarTimeLine->start();
} }
buttonBarPath->setZValue(-0.1); buttonBarPath->setZValue(-0.1);
updateBarsPos(); updateBarsPos();
connect(&StelApp::getInstance(), SIGNAL(colorSchemeChanged(const QSt ring&)), this, SLOT(setStelStyle(const QString&)));
} }
void SkyGui::resizeEvent(QGraphicsSceneResizeEvent* event) void SkyGui::resizeEvent(QGraphicsSceneResizeEvent* event)
{ {
QGraphicsWidget::resizeEvent(event); QGraphicsWidget::resizeEvent(event);
updateBarsPos(); updateBarsPos();
} }
void SkyGui::hoverMoveEvent(QGraphicsSceneHoverEvent* event) void SkyGui::hoverMoveEvent(QGraphicsSceneHoverEvent* event)
{ {
skipping to change at line 230 skipping to change at line 231
const qreal newProgressBarY = hh-progressBarMgr->boundingRect().heig ht()+7; const qreal newProgressBarY = hh-progressBarMgr->boundingRect().heig ht()+7;
progressBarMgr->setPos(newProgressBarX, newProgressBarY); progressBarMgr->setPos(newProgressBarX, newProgressBarY);
progressBarMgr->setZValue(400); progressBarMgr->setZValue(400);
// Update position of the auto-hide buttons // Update position of the auto-hide buttons
autoHidebts->setPos(0, hh-autoHidebts->childrenBoundingRect().height ()+1); autoHidebts->setPos(0, hh-autoHidebts->childrenBoundingRect().height ()+1);
double opacity = qMax(animLeftBarTimeLine->currentValue(), animBotto mBarTimeLine->currentValue()); double opacity = qMax(animLeftBarTimeLine->currentValue(), animBotto mBarTimeLine->currentValue());
autoHidebts->setOpacity(opacity < 0.01 ? 0.01 : opacity); // W ork around a qt bug autoHidebts->setOpacity(opacity < 0.01 ? 0.01 : opacity); // W ork around a qt bug
} }
void SkyGui::setStelStyle(const StelStyle& style) void SkyGui::setStelStyle(const QString& style)
{ {
if (style.confSectionName=="night_color") if (style == "night_color")
{ {
buttonBarPath->setPen(QColor::fromRgbF(0.7,0.2,0.2,0.5)); buttonBarPath->setPen(QColor::fromRgbF(0.7,0.2,0.2,0.5));
buttonBarPath->setBrush(QColor::fromRgbF(0.23, 0.13, 0.03, 0 .2)); buttonBarPath->setBrush(QColor::fromRgbF(0.23, 0.13, 0.03, 0 .2));
buttonBar->setColor(QColor::fromRgbF(0.9, 0.33, 0.33, 0.9)); buttonBar->setColor(QColor::fromRgbF(0.9, 0.33, 0.33, 0.9));
winBar->setColor(QColor::fromRgbF(0.9, 0.33, 0.33, 0.9)); winBar->setColor(QColor::fromRgbF(0.9, 0.33, 0.33, 0.9));
winBar->setRedMode(true); winBar->setRedMode(true);
buttonBar->setRedMode(true); buttonBar->setRedMode(true);
btHorizAutoHide->setRedMode(true); btHorizAutoHide->setRedMode(true);
btVertAutoHide->setRedMode(true); btVertAutoHide->setRedMode(true);
} }
 End of changes. 3 change blocks. 
2 lines changed or deleted 3 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/