~ubuntu-branches/debian/jessie/synthv1/jessie

« back to all changes in this revision

Viewing changes to src/synthv1widget_wave.cpp

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia, Jaromír Mikeš, Alessio Treglia
  • Date: 2013-07-01 07:54:55 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20130701075455-y8d04axdwo1ui917
Tags: 0.3.3-1
[ Jaromír Mikeš ]
* Added myself as uploader

[ Alessio Treglia ]
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// synthv1widget_wave.cpp
2
2
//
3
3
/****************************************************************************
4
 
   Copyright (C) 2012, rncbc aka Rui Nuno Capela. All rights reserved.
 
4
   Copyright (C) 2012-2013, rncbc aka Rui Nuno Capela. All rights reserved.
5
5
 
6
6
   This program is free software; you can redistribute it and/or
7
7
   modify it under the terms of the GNU General Public License
120
120
        const bool bDark = (pal.window().color().value() < 0x7f);
121
121
        const QColor& rgbLite = (isEnabled()
122
122
                ? (bDark ? Qt::darkYellow : Qt::yellow) : pal.mid().color());
 
123
    const QColor& rgbDark = pal.window().color().darker(180);
123
124
 
124
 
        painter.fillRect(rect, pal.dark().color());
 
125
        painter.fillRect(rect, rgbDark);
125
126
 
126
127
        painter.setPen(bDark ? pal.mid().color() : pal.midlight().color());
127
128
        painter.drawLine(w2, 0, w2, h);