Index: /trunk/src/VBox/Frontends/VirtualBox/src/widgets/graphics/UIGraphicsButton.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/widgets/graphics/UIGraphicsButton.cpp	(revision 42796)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/widgets/graphics/UIGraphicsButton.cpp	(revision 42797)
@@ -21,5 +21,4 @@
 #include <QPainter>
 #include <QGraphicsSceneMouseEvent>
-#include <QPropertyAnimation>
 
 /* GUI includes: */
@@ -30,8 +29,5 @@
     , m_icon(icon)
     , m_buttonType(UIGraphicsButtonType_Iconified)
-    , m_pAnimation(0)
     , m_fParentSelected(false)
-    , m_fHovered(false)
-    , m_iColor(-1)
 {
     /* Refresh finally: */
@@ -42,18 +38,8 @@
     : QIGraphicsWidget(pParent)
     , m_buttonType(buttonType)
-    , m_pAnimation(0)
     , m_fParentSelected(false)
-    , m_fHovered(false)
-    , m_iColor(-1)
 {
     /* Refresh finally: */
     refresh();
-
-    /* Prepare animation: */
-    setAcceptHoverEvents(true);
-    m_pAnimation = new QPropertyAnimation(this, "color", this);
-    m_pAnimation->setDuration(1000);
-    m_pAnimation->setLoopCount(-1);
-    reconfigureAnimation();
 }
 
@@ -63,5 +49,5 @@
         return;
     m_fParentSelected = fParentSelected;
-    reconfigureAnimation();
+    update();
 }
 
@@ -115,10 +101,15 @@
             /* Prepare variables: */
             QPalette pal = palette();
-            QColor windowColor = pal.color(QPalette::Window);
+            QColor backgroundColor = pal.color(m_fParentSelected ? QPalette::Highlight : QPalette::Window);
+            QColor buttonColor = pal.color(QPalette::Window);
+            if (backgroundColor.black() > 128)
+                buttonColor = buttonColor.darker(95);
+            else
+                buttonColor = buttonColor.darker(160);
 
             /* Setup: */
             pPainter->setRenderHint(QPainter::Antialiasing);
             QPen pen = pPainter->pen();
-            pen.setColor(windowColor.darker(color()));
+            pen.setColor(buttonColor);
             pen.setWidth(2);
             pen.setCapStyle(Qt::RoundCap);
@@ -145,10 +136,15 @@
             /* Prepare variables: */
             QPalette pal = palette();
-            QColor windowColor = pal.color(QPalette::Window);
+            QColor backgroundColor = pal.color(m_fParentSelected ? QPalette::Highlight : QPalette::Window);
+            QColor buttonColor = pal.color(QPalette::Window);
+            if (backgroundColor.black() > 128)
+                buttonColor = buttonColor.darker(95);
+            else
+                buttonColor = buttonColor.darker(160);
 
             /* Setup: */
             pPainter->setRenderHint(QPainter::Antialiasing);
             QPen pen = pPainter->pen();
-            pen.setColor(windowColor.darker(color()));
+            pen.setColor(buttonColor);
             pen.setWidth(2);
             pen.setCapStyle(Qt::RoundCap);
@@ -171,9 +167,4 @@
 }
 
-void UIGraphicsButton::hideEvent(QHideEvent*)
-{
-    setHovered(false);
-}
-
 void UIGraphicsButton::mousePressEvent(QGraphicsSceneMouseEvent *pEvent)
 {
@@ -190,14 +181,4 @@
 }
 
-void UIGraphicsButton::hoverMoveEvent(QGraphicsSceneHoverEvent*)
-{
-    setHovered(true);
-}
-
-void UIGraphicsButton::hoverLeaveEvent(QGraphicsSceneHoverEvent*)
-{
-    setHovered(false);
-}
-
 void UIGraphicsButton::refresh()
 {
@@ -208,43 +189,2 @@
 }
 
-void UIGraphicsButton::reconfigureAnimation()
-{
-    setColor(m_fParentSelected ? 105 : 140);
-    m_pAnimation->setStartValue(m_fParentSelected ? 105 : 140);
-    m_pAnimation->setEndValue(m_fParentSelected ? 105 : 140);
-    m_pAnimation->setKeyValueAt(0.5, m_fParentSelected ? 130 : 115);
-}
-
-bool UIGraphicsButton::hovered() const
-{
-    return m_fHovered;
-}
-
-void UIGraphicsButton::setHovered(bool fHovered)
-{
-    if (m_fHovered == fHovered)
-        return;
-
-    m_fHovered = fHovered;
-    if (m_fHovered)
-    {
-        m_pAnimation->start();
-    }
-    else
-    {
-        m_pAnimation->stop();
-        setColor(m_fParentSelected ? 105 : 140);
-    }
-}
-
-int UIGraphicsButton::color() const
-{
-    return m_iColor;
-}
-
-void UIGraphicsButton::setColor(int iColor)
-{
-    m_iColor = iColor;
-    update();
-}
-
Index: /trunk/src/VBox/Frontends/VirtualBox/src/widgets/graphics/UIGraphicsButton.h
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/widgets/graphics/UIGraphicsButton.h	(revision 42796)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/widgets/graphics/UIGraphicsButton.h	(revision 42797)
@@ -43,5 +43,4 @@
 {
     Q_OBJECT;
-    Q_PROPERTY(int color READ color WRITE setColor);
 
 signals:
@@ -78,22 +77,10 @@
     virtual void paint(QPainter *pPainter, const QStyleOptionGraphicsItem *pOption, QWidget *pWidget = 0);
 
-    /* Hide event: */
-    void hideEvent(QHideEvent *pEvent);
-
     /* Mouse handlers: */
     virtual void mousePressEvent(QGraphicsSceneMouseEvent *pEvent);
     virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *pEvent);
-    virtual void hoverMoveEvent(QGraphicsSceneHoverEvent *pEvent);
-    virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent *pEvent);
 
     /* Helpers: Update stuff: */
     virtual void refresh();
-
-    /* Helpers: Hover animation stuff: */
-    void reconfigureAnimation();
-    bool hovered() const;
-    void setHovered(bool fHovered);
-    int color() const;
-    void setColor(int iColor);
 
 private:
@@ -102,8 +89,5 @@
     QIcon m_icon;
     UIGraphicsButtonType m_buttonType;
-    QPropertyAnimation *m_pAnimation;
     bool m_fParentSelected;
-    bool m_fHovered;
-    int m_iColor;
 };
 
