From 33eaccd4119b2c2c5be08d639a455969ef675bbf Mon Sep 17 00:00:00 2001 From: masc4ii Date: Wed, 25 Mar 2020 21:02:29 +0100 Subject: [PATCH] Change look of current clip indicator --- platform/qt/MainWindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/qt/MainWindow.cpp b/platform/qt/MainWindow.cpp index b69c81c7..8b32e7f0 100644 --- a/platform/qt/MainWindow.cpp +++ b/platform/qt/MainWindow.cpp @@ -3013,7 +3013,7 @@ void MainWindow::addFileToSession(QString fileName) sliders->setFileName( fileName ); m_pSessionReceipts.append( sliders ); //Remove color unloaded clip - if( m_lastActiveClipInSession < ui->listWidgetSession->count() ) ui->listWidgetSession->item( m_lastActiveClipInSession )->setBackgroundColor( QColor( 0, 0, 0, 0 ) ); + if( m_lastActiveClipInSession < ui->listWidgetSession->count() ) ui->listWidgetSession->item( m_lastActiveClipInSession )->setForeground( Qt::white ); //Save index of active clip m_lastActiveClipInSession = ui->listWidgetSession->row( item ); //Set this row to current row @@ -4591,13 +4591,13 @@ int MainWindow::showFileInEditor(int row) setSliders( m_pSessionReceipts.at( row ), false ); //Remove color unloaded clip - ui->listWidgetSession->item( m_lastActiveClipInSession )->setBackgroundColor( QColor( 0, 0, 0, 0 ) ); + ui->listWidgetSession->item( m_lastActiveClipInSession )->setForeground( Qt::white ); //Save new position in session m_lastActiveClipInSession = row; //Set color loaded clip - ui->listWidgetSession->item( m_lastActiveClipInSession )->setBackgroundColor( QColor( 255, 200, 0, 128 ) ); + ui->listWidgetSession->item( m_lastActiveClipInSession )->setForeground( QColor( 255, 154, 50 ) ); //Caching is in which state? Set it! if( ui->actionCaching->isChecked() ) on_actionCaching_triggered();