[vlc-commits] commit: Qt/EPG: Aesthetic modifications. (Adrien Maglo )
git at videolan.org
git at videolan.org
Fri Jun 18 23:39:45 CEST 2010
vlc | branch: master | Adrien Maglo <magsoft at videolan.org> | Fri Jun 18 23:39:40 2010 +0200| [44676a0590c2b96d13ea5a700b5878166b6f432a] | committer: Adrien Maglo
Qt/EPG: Aesthetic modifications.
Feel free to change what you don't like.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=44676a0590c2b96d13ea5a700b5878166b6f432a
---
modules/gui/qt4/components/epg/EPGItem.cpp | 18 +++++++++++-------
modules/gui/qt4/components/epg/EPGView.hpp | 2 +-
2 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/modules/gui/qt4/components/epg/EPGItem.cpp b/modules/gui/qt4/components/epg/EPGItem.cpp
index 8f0ebc3..d634175 100644
--- a/modules/gui/qt4/components/epg/EPGItem.cpp
+++ b/modules/gui/qt4/components/epg/EPGItem.cpp
@@ -59,15 +59,19 @@ void EPGItem::paint( QPainter *painter, const QStyleOptionGraphicsItem*, QWidget
QTransform viewPortTransform = m_view->viewportTransform();
QRectF mapped = deviceTransform( viewPortTransform ).mapRect( boundingRect() );
- painter->setPen( QPen( Qt::black ) );
-
if ( m_current )
- painter->setBrush( QBrush( QColor( 100, 100, 100 ) ) );
+ {
+ painter->setBrush( QBrush( QColor( 244, 102, 146 ) ) );
+ painter->setPen( QPen( QColor( 244, 102, 146 ) ) );
+ }
else
- painter->setBrush( QBrush( QColor( 150, 150, 150 ) ) );
-
- painter->drawRect( mapped );
+ {
+ painter->setBrush( QBrush( QColor( 201, 217, 242 ) ) );
+ painter->setPen( QPen( QColor( 201, 217, 242 ) ) );
+ }
+ mapped.adjust( 1, 2, -1, -2 );
+ painter->drawRoundedRect( mapped, 10, 10 );
/* Draw text */
@@ -80,7 +84,7 @@ void EPGItem::paint( QPainter *painter, const QStyleOptionGraphicsItem*, QWidget
// Adjust the drawing rect
mapped.adjust( 6, 6, -6, -6 );
- painter->setPen( Qt::white );
+ painter->setPen( Qt::black );
/* Draw the title. */
painter->drawText( mapped, Qt::AlignTop | Qt::AlignLeft, fm.elidedText( m_name, Qt::ElideRight, mapped.width() ) );
diff --git a/modules/gui/qt4/components/epg/EPGView.hpp b/modules/gui/qt4/components/epg/EPGView.hpp
index 3cad7a5..0655ce5 100644
--- a/modules/gui/qt4/components/epg/EPGView.hpp
+++ b/modules/gui/qt4/components/epg/EPGView.hpp
@@ -29,7 +29,7 @@
#include <QGraphicsView>
#include <QList>
-#define TRACKS_HEIGHT 75
+#define TRACKS_HEIGHT 60
class QDateTime;
class EPGView : public QGraphicsView
More information about the vlc-commits
mailing list