Qt 4.8
Enumerations | Functions | Variables
qcleanlooksstyle.cpp File Reference
#include "qcleanlooksstyle.h"
#include "qcleanlooksstyle_p.h"
#include "qwindowsstyle_p.h"
#include <qcombobox.h>
#include <qpushbutton.h>
#include <qpainter.h>
#include <qdir.h>
#include <qhash.h>
#include <qstyleoption.h>
#include <qapplication.h>
#include <qmainwindow.h>
#include <qfont.h>
#include <qgroupbox.h>
#include <qprocess.h>
#include <qpixmapcache.h>
#include <qdialogbuttonbox.h>
#include <qscrollbar.h>
#include <qspinbox.h>
#include <qslider.h>
#include <qsplitter.h>
#include <qprogressbar.h>
#include <qtoolbar.h>
#include <qwizard.h>
#include <qlibrary.h>
#include <private/qstylehelper_p.h>

Go to the source code of this file.

Enumerations

enum  Direction { TopDown, FromLeft, BottomUp, FromRight }
 

Functions

static QColor mergedColors (const QColor &colorA, const QColor &colorB, int factor=50)
 
static void qt_cleanlooks_draw_buttongradient (QPainter *painter, const QRect &rect, const QColor &gradientStart, const QColor &gradientMid, const QColor &gradientStop, Direction direction=TopDown, QBrush bgBrush=QBrush())
 
static void qt_cleanlooks_draw_gradient (QPainter *painter, const QRect &rect, const QColor &gradientStart, const QColor &gradientStop, Direction direction=TopDown, QBrush bgBrush=QBrush())
 
static void qt_cleanlooks_draw_mdibutton (QPainter *painter, const QStyleOptionTitleBar *option, const QRect &tmp, bool hover, bool sunken)
 

Variables

static const char *const dock_widget_close_xpm []
 
static const char *const dock_widget_restore_xpm []
 
static const char *const qt_cleanlooks_arrow_down_xpm []
 
static const char *const qt_cleanlooks_arrow_up_xpm []
 
static const char *const qt_cleanlooks_checkbox_checked []
 
static const char *const qt_cleanlooks_menuitem_checkbox_checked []
 
static const char *const qt_cleanlooks_radiobutton []
 
static const char *const qt_cleanlooks_radiobutton_checked []
 
static const char *const qt_scrollbar_button_arrow_down []
 
static const char *const qt_scrollbar_button_arrow_left []
 
static const char *const qt_scrollbar_button_arrow_right []
 
static const char *const qt_scrollbar_button_arrow_up []
 
static const char *const qt_scrollbar_button_down []
 
static const char *const qt_scrollbar_button_left []
 
static const char *const qt_scrollbar_button_right []
 
static const char *const qt_scrollbar_button_up []
 
static const char *const qt_spinbox_button_arrow_down []
 
static const char *const qt_spinbox_button_arrow_up []
 
static const char *const qt_titlebar_context_help []
 
static const int windowsItemFrame = 2
 
static const int windowsItemHMargin = 3
 
static const int windowsItemVMargin = 8
 
static const int windowsRightBorder = 15
 
static const char *const workspace_minimize []
 

Enumeration Type Documentation

◆ Direction

enum Direction
Enumerator
TopDown 
FromLeft 
BottomUp 
FromRight 

Definition at line 75 of file qcleanlooksstyle.cpp.

Function Documentation

◆ mergedColors()

static QColor mergedColors ( const QColor colorA,
const QColor colorB,
int  factor = 50 
)
static

Definition at line 670 of file qcleanlooksstyle.cpp.

Referenced by QCleanlooksStyle::drawComplexControl(), QCleanlooksStyle::drawControl(), and QCleanlooksStyle::drawPrimitive().

671 {
672  const int maxFactor = 100;
673  QColor tmp = colorA;
674  tmp.setRed((tmp.red() * factor) / maxFactor + (colorB.red() * (maxFactor - factor)) / maxFactor);
675  tmp.setGreen((tmp.green() * factor) / maxFactor + (colorB.green() * (maxFactor - factor)) / maxFactor);
676  tmp.setBlue((tmp.blue() * factor) / maxFactor + (colorB.blue() * (maxFactor - factor)) / maxFactor);
677  return tmp;
678 }
void setRed(int red)
Sets the red color component of this color to red.
Definition: qcolor.cpp:1143
The QColor class provides colors based on RGB, HSV or CMYK values.
Definition: qcolor.h:67
void setGreen(int green)
Sets the green color component of this color to green.
Definition: qcolor.cpp:1170
ushort red
Returns the red color component of this color.
Definition: qcolor.h:243
void setBlue(int blue)
Sets the blue color component of this color to blue.
Definition: qcolor.cpp:1199
ushort blue
Returns the blue color component of this color.
Definition: qcolor.h:245
ushort green
Returns the green color component of this color.
Definition: qcolor.h:244

◆ qt_cleanlooks_draw_buttongradient()

static void qt_cleanlooks_draw_buttongradient ( QPainter painter,
const QRect rect,
const QColor gradientStart,
const QColor gradientMid,
const QColor gradientStop,
Direction  direction = TopDown,
QBrush  bgBrush = QBrush() 
)
static

Definition at line 488 of file qcleanlooksstyle.cpp.

Referenced by QCleanlooksStyle::drawPrimitive().

491 {
492  int x = rect.center().x();
493  int y = rect.center().y();
494  QLinearGradient *gradient;
495  bool horizontal = false;
496  switch(direction) {
497  case FromLeft:
498  horizontal = true;
499  gradient = new QLinearGradient(rect.left(), y, rect.right(), y);
500  break;
501  case FromRight:
502  horizontal = true;
503  gradient = new QLinearGradient(rect.right(), y, rect.left(), y);
504  break;
505  case BottomUp:
506  gradient = new QLinearGradient(x, rect.bottom(), x, rect.top());
507  break;
508  case TopDown:
509  default:
510  gradient = new QLinearGradient(x, rect.top(), x, rect.bottom());
511  break;
512  }
513  if (bgBrush.gradient())
514  gradient->setStops(bgBrush.gradient()->stops());
515  else {
516  int size = horizontal ? rect.width() : rect.height() ;
517  if (size > 4) {
518  float edge = 4.0/(float)size;
519  gradient->setColorAt(0, gradientStart);
520  gradient->setColorAt(edge, gradientMid.lighter(104));
521  gradient->setColorAt(1.0 - edge, gradientMid.darker(100));
522  gradient->setColorAt(1.0, gradientStop);
523  }
524  }
525  painter->fillRect(rect, *gradient);
526  delete gradient;
527 }
void setColorAt(qreal pos, const QColor &color)
Creates a stop point at the given position with the given color.
Definition: qbrush.cpp:1475
const QGradient * gradient() const
Returns the gradient describing this brush.
Definition: qbrush.cpp:871
int left() const
Returns the x-coordinate of the rectangle&#39;s left edge.
Definition: qrect.h:240
int width() const
Returns the width of the rectangle.
Definition: qrect.h:303
int height() const
Returns the height of the rectangle.
Definition: qrect.h:306
int bottom() const
Returns the y-coordinate of the rectangle&#39;s bottom edge.
Definition: qrect.h:249
QGradientStops stops() const
Returns the stop points for this gradient.
Definition: qbrush.cpp:1520
QColor darker(int f=200) const
Returns a darker (or lighter) color, but does not change this object.
Definition: qcolor.h:301
QPoint center() const
Returns the center point of the rectangle.
Definition: qrect.h:300
int top() const
Returns the y-coordinate of the rectangle&#39;s top edge.
Definition: qrect.h:243
int right() const
Returns the x-coordinate of the rectangle&#39;s right edge.
Definition: qrect.h:246
The QLinearGradient class is used in combination with QBrush to specify a linear gradient brush...
Definition: qbrush.h:280
void setStops(const QGradientStops &stops)
Replaces the current set of stop points with the given stopPoints.
Definition: qbrush.cpp:1504
int y() const
Returns the y coordinate of this point.
Definition: qpoint.h:131
int x() const
Returns the x coordinate of this point.
Definition: qpoint.h:128
QColor lighter(int f=150) const
Returns a lighter (or darker) color, but does not change this object.
Definition: qcolor.h:298
void fillRect(const QRectF &, const QBrush &)
Fills the given rectangle with the brush specified.
Definition: qpainter.cpp:7420
Qt::LayoutDirection direction

◆ qt_cleanlooks_draw_gradient()

static void qt_cleanlooks_draw_gradient ( QPainter painter,
const QRect rect,
const QColor gradientStart,
const QColor gradientStop,
Direction  direction = TopDown,
QBrush  bgBrush = QBrush() 
)
static

Definition at line 457 of file qcleanlooksstyle.cpp.

Referenced by QCleanlooksStyle::drawComplexControl(), and QCleanlooksStyle::drawControl().

459 {
460  int x = rect.center().x();
461  int y = rect.center().y();
462  QLinearGradient *gradient;
463  switch(direction) {
464  case FromLeft:
465  gradient = new QLinearGradient(rect.left(), y, rect.right(), y);
466  break;
467  case FromRight:
468  gradient = new QLinearGradient(rect.right(), y, rect.left(), y);
469  break;
470  case BottomUp:
471  gradient = new QLinearGradient(x, rect.bottom(), x, rect.top());
472  break;
473  case TopDown:
474  default:
475  gradient = new QLinearGradient(x, rect.top(), x, rect.bottom());
476  break;
477  }
478  if (bgBrush.gradient())
479  gradient->setStops(bgBrush.gradient()->stops());
480  else {
481  gradient->setColorAt(0, gradientStart);
482  gradient->setColorAt(1, gradientStop);
483  }
484  painter->fillRect(rect, *gradient);
485  delete gradient;
486 }
void setColorAt(qreal pos, const QColor &color)
Creates a stop point at the given position with the given color.
Definition: qbrush.cpp:1475
const QGradient * gradient() const
Returns the gradient describing this brush.
Definition: qbrush.cpp:871
int left() const
Returns the x-coordinate of the rectangle&#39;s left edge.
Definition: qrect.h:240
int bottom() const
Returns the y-coordinate of the rectangle&#39;s bottom edge.
Definition: qrect.h:249
QGradientStops stops() const
Returns the stop points for this gradient.
Definition: qbrush.cpp:1520
QPoint center() const
Returns the center point of the rectangle.
Definition: qrect.h:300
int top() const
Returns the y-coordinate of the rectangle&#39;s top edge.
Definition: qrect.h:243
int right() const
Returns the x-coordinate of the rectangle&#39;s right edge.
Definition: qrect.h:246
The QLinearGradient class is used in combination with QBrush to specify a linear gradient brush...
Definition: qbrush.h:280
void setStops(const QGradientStops &stops)
Replaces the current set of stop points with the given stopPoints.
Definition: qbrush.cpp:1504
int y() const
Returns the y coordinate of this point.
Definition: qpoint.h:131
int x() const
Returns the x coordinate of this point.
Definition: qpoint.h:128
void fillRect(const QRectF &, const QBrush &)
Fills the given rectangle with the brush specified.
Definition: qpainter.cpp:7420
Qt::LayoutDirection direction

◆ qt_cleanlooks_draw_mdibutton()

static void qt_cleanlooks_draw_mdibutton ( QPainter painter,
const QStyleOptionTitleBar option,
const QRect tmp,
bool  hover,
bool  sunken 
)
static

Definition at line 529 of file qcleanlooksstyle.cpp.

Referenced by QCleanlooksStyle::drawComplexControl().

530 {
531  QColor dark;
532  dark.setHsv(option->palette.button().color().hue(),
533  qMin(255, (int)(option->palette.button().color().saturation()*1.9)),
534  qMin(255, (int)(option->palette.button().color().value()*0.7)));
535 
536  QColor highlight = option->palette.highlight().color();
537 
538  bool active = (option->titleBarState & QStyle::State_Active);
539  QColor titleBarHighlight(255, 255, 255, 60);
540 
541  if (sunken)
542  painter->fillRect(tmp.adjusted(1, 1, -1, -1), option->palette.highlight().color().darker(120));
543  else if (hover)
544  painter->fillRect(tmp.adjusted(1, 1, -1, -1), QColor(255, 255, 255, 20));
545 
546  QColor mdiButtonGradientStartColor;
547  QColor mdiButtonGradientStopColor;
548 
549  mdiButtonGradientStartColor = QColor(0, 0, 0, 40);
550  mdiButtonGradientStopColor = QColor(255, 255, 255, 60);
551 
552  if (sunken)
553  titleBarHighlight = highlight.darker(130);
554 
555  QLinearGradient gradient(tmp.center().x(), tmp.top(), tmp.center().x(), tmp.bottom());
556  gradient.setColorAt(0, mdiButtonGradientStartColor);
557  gradient.setColorAt(1, mdiButtonGradientStopColor);
558  QColor mdiButtonBorderColor(active ? option->palette.highlight().color().darker(180): dark.darker(110));
559 
560  painter->setPen(QPen(mdiButtonBorderColor, 1));
561  const QLine lines[4] = {
562  QLine(tmp.left() + 2, tmp.top(), tmp.right() - 2, tmp.top()),
563  QLine(tmp.left() + 2, tmp.bottom(), tmp.right() - 2, tmp.bottom()),
564  QLine(tmp.left(), tmp.top() + 2, tmp.left(), tmp.bottom() - 2),
565  QLine(tmp.right(), tmp.top() + 2, tmp.right(), tmp.bottom() - 2)
566  };
567  painter->drawLines(lines, 4);
568  const QPoint points[4] = {
569  QPoint(tmp.left() + 1, tmp.top() + 1),
570  QPoint(tmp.right() - 1, tmp.top() + 1),
571  QPoint(tmp.left() + 1, tmp.bottom() - 1),
572  QPoint(tmp.right() - 1, tmp.bottom() - 1)
573  };
574  painter->drawPoints(points, 4);
575 
576  painter->setPen(titleBarHighlight);
577  painter->drawLine(tmp.left() + 2, tmp.top() + 1, tmp.right() - 2, tmp.top() + 1);
578  painter->drawLine(tmp.left() + 1, tmp.top() + 2, tmp.left() + 1, tmp.bottom() - 2);
579 
580  painter->setPen(QPen(gradient, 1));
581  painter->drawLine(tmp.right() + 1, tmp.top() + 2, tmp.right() + 1, tmp.bottom() - 2);
582  painter->drawPoint(tmp.right() , tmp.top() + 1);
583 
584  painter->drawLine(tmp.left() + 2, tmp.bottom() + 1, tmp.right() - 2, tmp.bottom() + 1);
585  painter->drawPoint(tmp.left() + 1, tmp.bottom());
586  painter->drawPoint(tmp.right() - 1, tmp.bottom());
587  painter->drawPoint(tmp.right() , tmp.bottom() - 1);
588 }
The QColor class provides colors based on RGB, HSV or CMYK values.
Definition: qcolor.h:67
const QBrush & highlight() const
Returns the highlight brush of the current color group.
Definition: qpalette.h:140
QRect adjusted(int x1, int y1, int x2, int y2) const
Returns a new rectangle with dx1, dy1, dx2 and dy2 added respectively to the existing coordinates of ...
Definition: qrect.h:431
Q_DECL_CONSTEXPR const T & qMin(const T &a, const T &b)
Definition: qglobal.h:1215
void setColorAt(qreal pos, const QColor &color)
Creates a stop point at the given position with the given color.
Definition: qbrush.cpp:1475
const QColor & color() const
Returns the brush color.
Definition: qbrush.h:183
ushort hue
Returns the hue color component of this color.
Definition: qcolor.h:250
The QLine class provides a two-dimensional vector using integer precision.
Definition: qline.h:57
void drawPoints(const QPointF *points, int pointCount)
Draws the first pointCount points in the array points using the current pen&#39;s color.
Definition: qpainter.cpp:3816
int left() const
Returns the x-coordinate of the rectangle&#39;s left edge.
Definition: qrect.h:240
void drawLine(const QLineF &line)
Draws a line defined by line.
Definition: qpainter.h:573
int bottom() const
Returns the y-coordinate of the rectangle&#39;s bottom edge.
Definition: qrect.h:249
The QPen class defines how a QPainter should draw lines and outlines of shapes.
Definition: qpen.h:64
void drawPoint(const QPointF &pt)
Draws a single point at the given position using the current pen&#39;s color.
Definition: qpainter.h:676
void setHsv(int h, int s, int v, int a=255)
Sets a HSV color value; h is the hue, s is the saturation, v is the value and a is the alpha componen...
Definition: qcolor.cpp:734
QColor darker(int f=200) const
Returns a darker (or lighter) color, but does not change this object.
Definition: qcolor.h:301
ushort value
Returns the value color component of this color.
Definition: qcolor.h:252
void drawLines(const QLineF *lines, int lineCount)
Draws the first lineCount lines in the array lines using the current pen.
Definition: qpainter.cpp:4873
ushort saturation
Returns the saturation color component of this color.
Definition: qcolor.h:251
QPalette palette
the palette that should be used when painting the control
Definition: qstyleoption.h:92
QPoint center() const
Returns the center point of the rectangle.
Definition: qrect.h:300
int top() const
Returns the y-coordinate of the rectangle&#39;s top edge.
Definition: qrect.h:243
int right() const
Returns the x-coordinate of the rectangle&#39;s right edge.
Definition: qrect.h:246
The QLinearGradient class is used in combination with QBrush to specify a linear gradient brush...
Definition: qbrush.h:280
The QPoint class defines a point in the plane using integer precision.
Definition: qpoint.h:53
void setPen(const QColor &color)
Sets the painter&#39;s pen to have style Qt::SolidLine, width 0 and the specified color.
Definition: qpainter.cpp:4047
int x() const
Returns the x coordinate of this point.
Definition: qpoint.h:128
const QBrush & button() const
Returns the button brush of the current color group.
Definition: qpalette.h:125
int titleBarState
the state of the title bar
Definition: qstyleoption.h:824
void fillRect(const QRectF &, const QBrush &)
Fills the given rectangle with the brush specified.
Definition: qpainter.cpp:7420

Variable Documentation

◆ dock_widget_close_xpm

const char* const dock_widget_close_xpm[]
static
Initial value:
= {
"11 13 7 1",
" c None",
". c #D5CFCB",
"+ c #8F8B88",
"@ c #6C6A67",
"# c #ABA6A3",
"$ c #B5B0AC",
"% c #A4A09D",
" ",
" +@@@@@@@+ ",
"+# #+",
"@ $@ @$ @",
"@ @@@ @@@ @",
"@ @@@@@ @",
"@ @@@ @",
"@ @@@@@ @",
"@ @@@ @@@ @",
"@ $@ @$ @",
"+% #+",
" +@@@@@@@+ ",
" "}

Definition at line 89 of file qcleanlooksstyle.cpp.

Referenced by QCleanlooksStyle::standardPixmap().

◆ dock_widget_restore_xpm

const char* const dock_widget_restore_xpm[]
static
Initial value:
= {
"11 13 7 1",
" c None",
". c #D5CFCB",
"+ c #8F8B88",
"@ c #6C6A67",
"# c #ABA6A3",
"$ c #B5B0AC",
"% c #A4A09D",
" ",
" +@@@@@@@+ ",
"+# #+",
"@ #@@@# @",
"@ @ @ @",
"@ #@@@# @ @",
"@ @ @ @ @",
"@ @ @@@ @",
"@ @ @ @",
"@ #@@@# @",
"+% #+",
" +@@@@@@@+ ",
" "}

Definition at line 136 of file qcleanlooksstyle.cpp.

Referenced by QCleanlooksStyle::standardPixmap().

◆ qt_cleanlooks_arrow_down_xpm

const char* const qt_cleanlooks_arrow_down_xpm[]
static
Initial value:
= {
"11 7 2 1",
" c None",
"x c #000000",
" ",
" x x ",
" xxx xxx ",
" xxxxxxx ",
" xxxxx ",
" xxx ",
" x "}

Definition at line 112 of file qcleanlooksstyle.cpp.

Referenced by QCleanlooksStyle::drawComplexControl(), and QCleanlooksStyle::drawPrimitive().

◆ qt_cleanlooks_arrow_up_xpm

const char* const qt_cleanlooks_arrow_up_xpm[]
static
Initial value:
= {
"11 7 2 1",
" c None",
"x c #000000",
" x ",
" xxx ",
" xxxxx ",
" xxxxxxx ",
" xxx xxx ",
" x x ",
" "}

Definition at line 124 of file qcleanlooksstyle.cpp.

Referenced by QCleanlooksStyle::drawPrimitive().

◆ qt_cleanlooks_checkbox_checked

const char* const qt_cleanlooks_checkbox_checked[]
static
Initial value:
= {
"13 13 3 1",
" c None",
". c #272D33",
"% c #666666",
" ",
" % ",
" %. ",
" %.% ",
" %.. ",
" %.% %.. ",
" %..%..% ",
" %...% ",
" %..% ",
" %.% ",
" % ",
" ",
" "}

Definition at line 437 of file qcleanlooksstyle.cpp.

Referenced by QCleanlooksStyle::drawPrimitive().

◆ qt_cleanlooks_menuitem_checkbox_checked

const char* const qt_cleanlooks_menuitem_checkbox_checked[]
static
Initial value:
= {
"8 7 6 1",
" g None",
". g #959595",
"+ g #676767",
"@ g #454545",
"# g #1D1D1D",
"0 g #101010",
" ..",
" .+ ",
" .+ ",
"0 .@ ",
"@#++. ",
" @# ",
" . "}

Definition at line 421 of file qcleanlooksstyle.cpp.

Referenced by QCleanlooksStyle::drawControl().

◆ qt_cleanlooks_radiobutton

const char* const qt_cleanlooks_radiobutton[]
static
Initial value:
= {
"13 13 9 1",
" c None",
". c #ABA094",
"+ c #B7ADA0",
"@ c #C4BBB2",
"# c #DDD4CD",
"$ c #E7E1E0",
"% c #F4EFED",
"& c #FFFAF9",
"* c #FCFEFB",
" #@...@# ",
" @+@#$$#+@ ",
" @+$%%***&@@ ",
"#+$%**&&**&+#",
"@@$&&******#@",
".#**********.",
".$&******&*&.",
".$*&******&*.",
"+#********&#@",
"#+*********+#",
" @@*******@@ ",
" @+#%*%#+@ ",
" #@...+# "}

Definition at line 199 of file qcleanlooksstyle.cpp.

Referenced by QCleanlooksStyle::drawPrimitive().

◆ qt_cleanlooks_radiobutton_checked

const char* const qt_cleanlooks_radiobutton_checked[]
static

Definition at line 224 of file qcleanlooksstyle.cpp.

Referenced by QCleanlooksStyle::drawPrimitive().

◆ qt_scrollbar_button_arrow_down

const char* const qt_scrollbar_button_arrow_down[]
static
Initial value:
= {
"7 4 2 1",
" c None",
"* c #BFBFBF",
"*******",
" ***** ",
" *** ",
" * "}

Definition at line 294 of file qcleanlooksstyle.cpp.

Referenced by QCleanlooksStyle::drawComplexControl().

◆ qt_scrollbar_button_arrow_left

const char* const qt_scrollbar_button_arrow_left[]
static
Initial value:
= {
"4 7 2 1",
" c None",
"* c #BFBFBF",
" *",
" **",
" ***",
"****",
" ***",
" **",
" *"}

Definition at line 261 of file qcleanlooksstyle.cpp.

◆ qt_scrollbar_button_arrow_right

const char* const qt_scrollbar_button_arrow_right[]
static
Initial value:
= {
"4 7 2 1",
" c None",
"* c #BFBFBF",
"* ",
"** ",
"*** ",
"****",
"*** ",
"** ",
"* "}

Definition at line 273 of file qcleanlooksstyle.cpp.

◆ qt_scrollbar_button_arrow_up

const char* const qt_scrollbar_button_arrow_up[]
static
Initial value:
= {
"7 4 2 1",
" c None",
"* c #BFBFBF",
" * ",
" *** ",
" ***** ",
"*******"}

Definition at line 285 of file qcleanlooksstyle.cpp.

Referenced by QCleanlooksStyle::drawComplexControl().

◆ qt_scrollbar_button_down

const char* const qt_scrollbar_button_down[]
static
Initial value:
= {
"16 16 6 1",
" c None",
". c #BFBFBF",
"+ c #979797",
"# c #FAFAFA",
"< c #FAFAFA",
"* c #FAFAFA",
"++++++++++++++++",
"+##############+",
"+# <+",
"+# <+",
"+# <+",
"+# <+",
"+# <+",
"+# <+",
"+# <+",
"+# <+",
"+# <+",
"+# <+",
"+# <+",
"+# <+",
".+<<<<<<<<<<<<+.",
" .++++++++++++. "}

Definition at line 396 of file qcleanlooksstyle.cpp.

Referenced by QCleanlooksStyle::drawComplexControl().

◆ qt_scrollbar_button_left

const char* const qt_scrollbar_button_left[]
static
Initial value:
= {
"16 16 6 1",
" c None",
". c #BFBFBF",
"+ c #979797",
"# c #FAFAFA",
"< c #FAFAFA",
"* c #FAFAFA",
" .++++++++++++++",
".+#############+",
"+# <+",
"+# <+",
"+# <+",
"+# <+",
"+# <+",
"+# <+",
"+# <+",
"+# <+",
"+# <+",
"+# <+",
"+# <+",
"+# <+",
".+<<<<<<<<<<<<<+",
" .++++++++++++++"}

Definition at line 321 of file qcleanlooksstyle.cpp.

Referenced by QCleanlooksStyle::drawComplexControl().

◆ qt_scrollbar_button_right

const char* const qt_scrollbar_button_right[]
static
Initial value:
= {
"16 16 6 1",
" c None",
". c #BFBFBF",
"+ c #979797",
"# c #FAFAFA",
"< c #FAFAFA",
"* c #FAFAFA",
"++++++++++++++. ",
"+#############+.",
"+# <+",
"+# <+",
"+# <+",
"+# <+",
"+# <+",
"+# <+",
"+# <+",
"+# <+",
"+# <+",
"+# <+",
"+# <+",
"+# <+",
"+<<<<<<<<<<<<<+.",
"++++++++++++++. "}

Definition at line 346 of file qcleanlooksstyle.cpp.

Referenced by QCleanlooksStyle::drawComplexControl().

◆ qt_scrollbar_button_up

const char* const qt_scrollbar_button_up[]
static
Initial value:
= {
"16 16 6 1",
" c None",
". c #BFBFBF",
"+ c #979797",
"# c #FAFAFA",
"< c #FAFAFA",
"* c #FAFAFA",
" .++++++++++++. ",
".+############+.",
"+# <+",
"+# <+",
"+# <+",
"+# <+",
"+# <+",
"+# <+",
"+# <+",
"+# <+",
"+# <+",
"+# <+",
"+# <+",
"+# <+",
"+<<<<<<<<<<<<<<+",
"++++++++++++++++"}

Definition at line 371 of file qcleanlooksstyle.cpp.

Referenced by QCleanlooksStyle::drawComplexControl().

◆ qt_spinbox_button_arrow_down

const char* const qt_spinbox_button_arrow_down[]
static
Initial value:
= {
"7 4 2 1",
" c None",
"* c #BFBFBF",
"*******",
" ***** ",
" *** ",
" * "}

Definition at line 303 of file qcleanlooksstyle.cpp.

Referenced by QCleanlooksStyle::drawComplexControl().

◆ qt_spinbox_button_arrow_up

const char* const qt_spinbox_button_arrow_up[]
static
Initial value:
= {
"7 4 2 1",
" c None",
"* c #BFBFBF",
" * ",
" *** ",
" ***** ",
"*******"}

Definition at line 312 of file qcleanlooksstyle.cpp.

Referenced by QCleanlooksStyle::drawComplexControl().

◆ qt_titlebar_context_help

const char* const qt_titlebar_context_help[]
static
Initial value:
= {
"10 10 3 1",
" c None",
"# c #000000",
"+ c #444444",
" +####+ ",
" ### ### ",
" ## ## ",
" +##+ ",
" +## ",
" ## ",
" ## ",
" ",
" ## ",
" ## "}

Definition at line 183 of file qcleanlooksstyle.cpp.

Referenced by QCleanlooksStyle::drawComplexControl().

◆ windowsItemFrame

const int windowsItemFrame = 2
static

Definition at line 83 of file qcleanlooksstyle.cpp.

Referenced by QCleanlooksStyle::drawControl(), and QGtkStyle::drawControl().

◆ windowsItemHMargin

const int windowsItemHMargin = 3
static

Definition at line 84 of file qcleanlooksstyle.cpp.

Referenced by QCleanlooksStyle::drawControl(), and QGtkStyle::drawControl().

◆ windowsItemVMargin

const int windowsItemVMargin = 8
static

Definition at line 85 of file qcleanlooksstyle.cpp.

Referenced by QCleanlooksStyle::drawControl(), and QGtkStyle::drawControl().

◆ windowsRightBorder

const int windowsRightBorder = 15
static

Definition at line 86 of file qcleanlooksstyle.cpp.

Referenced by QCleanlooksStyle::drawControl(), and QGtkStyle::drawControl().

◆ workspace_minimize

const char* const workspace_minimize[]
static
Initial value:
= {
"11 13 7 1",
" c None",
". c #D5CFCB",
"+ c #8F8B88",
"@ c #6C6A67",
"# c #ABA6A3",
"$ c #B5B0AC",
"% c #A4A09D",
" ",
" +@@@@@@@+ ",
"+# #+",
"@ @",
"@ @",
"@ @",
"@ @@@@@@@ @",
"@ @@@@@@@ @",
"@ @",
"@ @",
"+% #+",
" +@@@@@@@+ ",
" "}

Definition at line 159 of file qcleanlooksstyle.cpp.

Referenced by QCleanlooksStyle::standardPixmap().