From 79c09ab665c0d1d34cfcd2cbfd2a3a3e51b177c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Fauconnier?= Date: Tue, 14 Nov 2017 10:34:51 +0100 Subject: [PATCH] improved active scene lisibility and changed color + fix update view on dropEvent --- src/gui/UBBoardThumbnailsView.cpp | 2 ++ src/gui/UBThumbnailWidget.h | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gui/UBBoardThumbnailsView.cpp b/src/gui/UBBoardThumbnailsView.cpp index ee90f077..aca126c4 100644 --- a/src/gui/UBBoardThumbnailsView.cpp +++ b/src/gui/UBBoardThumbnailsView.cpp @@ -317,4 +317,6 @@ void UBBoardThumbnailsView::dropEvent(QDropEvent *event) mDropSource = NULL; mDropTarget = NULL; mDropBar->hide(); + + update(); } diff --git a/src/gui/UBThumbnailWidget.h b/src/gui/UBThumbnailWidget.h index c0a93737..64b1bf77 100644 --- a/src/gui/UBThumbnailWidget.h +++ b/src/gui/UBThumbnailWidget.h @@ -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("" + tr("Page %0").arg(i+1) + ""); else - mPageNumber->setDefaultTextColor(QColor("#000000")); + mPageNumber->setHtml("" + tr("Page %0").arg(i+1) + ""); } private: