-rw-r--r-- | microkde/KDGanttMinimizeSplitter.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/microkde/KDGanttMinimizeSplitter.cpp b/microkde/KDGanttMinimizeSplitter.cpp index 6cb1f31..253175e 100644 --- a/microkde/KDGanttMinimizeSplitter.cpp +++ b/microkde/KDGanttMinimizeSplitter.cpp @@ -270,9 +270,14 @@ void KDGanttSplitterHandle::paintEvent( QPaintEvent * ) // Draw the splitter rectangle p.setBrush( colorGroup().background() ); p.setPen( colorGroup().foreground() ); //p.drawRect( rect() ); - buffer.fill( colorGroup().background() ); +#ifndef DESKTOP_VERSION + if ( mMouseDown ) + buffer.fill( QColor( 242,27,255 ) ); + else +#endif + buffer.fill( colorGroup().background() ); //buffer.fill( backgroundColor() ); // parentWidget()->style().drawPrimitive( QStyle::PE_Panel, &p, rect(), parentWidget()->colorGroup()); int sw = 8; // Hardcoded, given I didn't use styles anymore, I didn't like to use their size @@ -282,9 +287,13 @@ void KDGanttSplitterHandle::paintEvent( QPaintEvent * ) if ( _activeButton ) col = colorGroup().background().dark( 250 ); else { if ( mMouseDown ) - col = Qt::white; +#ifndef DESKTOP_VERSION + col = QColor( 178,18,188);//QColor( 242,27,255 );//Qt::white; +#else + col = Qt::white; +#endif else col = colorGroup().background().dark( 150 ); } //QColor col = backgroundColor().dark( 130 ); |