improved active scene lisibility and changed color + fix update view on dropEvent

preferencesAboutTextFull
Clément Fauconnier 7 years ago
parent d4a3a19845
commit 79c09ab665
  1. 2
      src/gui/UBBoardThumbnailsView.cpp
  2. 5
      src/gui/UBThumbnailWidget.h

@ -317,4 +317,6 @@ void UBBoardThumbnailsView::dropEvent(QDropEvent *event)
mDropSource = NULL;
mDropTarget = NULL;
mDropBar->hide();
update();
}

@ -488,10 +488,11 @@ class UBDraggableThumbnailView : public UBDraggableThumbnail
void setPageNumber(int i)
{
mPageNumber->setPlainText(tr("Page %0").arg(i+1));
if (UBApplication::boardController->activeSceneIndex() == i)
mPageNumber->setDefaultTextColor(QColor("#6682b5"));
mPageNumber->setHtml("<span style=\";font-weight:bold;color: red\">" + tr("Page %0").arg(i+1) + "</span>");
else
mPageNumber->setDefaultTextColor(QColor("#000000"));
mPageNumber->setHtml("<span style=\";color: #000000\">" + tr("Page %0").arg(i+1) + "</span>");
}
private:

Loading…
Cancel
Save