Commit 245792d0 authored by Alessandro Portale's avatar Alessandro Portale

Theming: Undo unintended "default style" changes

Change-Id: Id2a185f90a4e27ec2c74d63278a4abe7e3983b20
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent fc568fd0
...@@ -56,10 +56,10 @@ static void drawFirstLevelSeparator(QPainter *painter, QPoint top, QPoint bottom ...@@ -56,10 +56,10 @@ static void drawFirstLevelSeparator(QPainter *painter, QPoint top, QPoint bottom
{ {
QLinearGradient grad(top, bottom); QLinearGradient grad(top, bottom);
if (creatorTheme()->widgetStyle() == Theme::StyleDefault) { if (creatorTheme()->widgetStyle() == Theme::StyleDefault) {
grad.setColorAt(0, QColor(255, 0, 255, 20)); grad.setColorAt(0, QColor(255, 255, 255, 20));
grad.setColorAt(0.4, QColor(255, 0, 255, 60)); grad.setColorAt(0.4, QColor(255, 255, 255, 60));
grad.setColorAt(0.7, QColor(255, 0, 255, 50)); grad.setColorAt(0.7, QColor(255, 255, 255, 50));
grad.setColorAt(1, QColor(255, 0, 255, 40)); grad.setColorAt(1, QColor(255, 255, 255, 40));
painter->setPen(QPen(grad, 0)); painter->setPen(QPen(grad, 0));
painter->drawLine(top, bottom); painter->drawLine(top, bottom);
grad.setColorAt(0, QColor(0, 0, 0, 30)); grad.setColorAt(0, QColor(0, 0, 0, 30));
...@@ -78,10 +78,10 @@ static void drawSecondLevelSeparator(QPainter *painter, QPoint top, QPoint botto ...@@ -78,10 +78,10 @@ static void drawSecondLevelSeparator(QPainter *painter, QPoint top, QPoint botto
{ {
QLinearGradient grad(top, bottom); QLinearGradient grad(top, bottom);
if (creatorTheme()->widgetStyle() == Theme::StyleDefault) { if (creatorTheme()->widgetStyle() == Theme::StyleDefault) {
grad.setColorAt(0, QColor(255, 255, 255, 20)); grad.setColorAt(0, QColor(255, 255, 255, 0));
grad.setColorAt(0.4, QColor(255, 255, 255, 60)); grad.setColorAt(0.4, QColor(255, 255, 255, 100));
grad.setColorAt(0.7, QColor(255, 255, 255, 50)); grad.setColorAt(0.7, QColor(255, 255, 255, 100));
grad.setColorAt(1, QColor(255, 255, 255, 40)); grad.setColorAt(1, QColor(255, 255, 255, 0));
painter->setPen(QPen(grad, 0)); painter->setPen(QPen(grad, 0));
painter->drawLine(top, bottom); painter->drawLine(top, bottom);
grad.setColorAt(0, QColor(0, 0, 0, 0)); grad.setColorAt(0, QColor(0, 0, 0, 0));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment