[vlmc-devel] commit: MediaListView.cpp: Remove ugly dark blue colour when media item is selected. (Rohit Yadav )
git at videolan.org
git at videolan.org
Thu Sep 23 00:03:58 CEST 2010
vlmc | branch: master | Rohit Yadav <rohityadav89 at gmail.com> | Thu Sep 23 03:50:37 2010 +0530| [790f32ebfe9d29f97918e6b5da467520e926d624] | committer: Rohit Yadav
MediaListView.cpp: Remove ugly dark blue colour when media item is selected.
Instead, use the application's default active highlighted colour.
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=790f32ebfe9d29f97918e6b5da467520e926d624
---
src/Gui/library/MediaListView.cpp | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/Gui/library/MediaListView.cpp b/src/Gui/library/MediaListView.cpp
index 3380a07..6d0714b 100644
--- a/src/Gui/library/MediaListView.cpp
+++ b/src/Gui/library/MediaListView.cpp
@@ -27,6 +27,8 @@
#include "MediaContainer.h"
#include "StackViewController.h"
+#include <QApplication>
+
MediaListView::MediaListView( StackViewController *nav, MediaContainer *mc ) :
ListViewController( nav ),
m_nav( nav ),
@@ -78,8 +80,8 @@ MediaListView::cellSelection( const QUuid &uuid )
MediaCellView *cell = m_cells.value( m_currentUuid );
cell->setPalette( m_cells.value( uuid )->palette() );
}
- QPalette p = m_cells.value( uuid )->palette();
- p.setColor( QPalette::Window, QColor( Qt::darkBlue ) );
+ QPalette p = m_cells.value( uuid )->palette();
+ p.setColor( QPalette::Window, QApplication::palette().brush( QPalette::Active, QPalette::Highlight ).color() );
m_cells.value( uuid )->setPalette( p );
m_currentUuid = uuid;
emit clipSelected( m_mediaContainer->clip( uuid ) );
More information about the Vlmc-devel
mailing list