Falkon Develop
Cross-platform Qt-based web browser
Utils::StyleHelper Class Reference

#include <stylehelper.h>

Static Public Member Functions

static qreal sidebarFontSize ()
 
static QColor requestedBaseColor ()
 
static QColor baseColor (bool lightColored=false)
 
static QColor panelTextColor (bool lightColored=false)
 
static QColor highlightColor (bool lightColored=false)
 
static QColor shadowColor (bool lightColored=false)
 
static QColor borderColor (bool lightColored=false)
 
static QColor sidebarHighlight ()
 
static QColor sidebarShadow ()
 
static void setBaseColor (const QColor &color)
 
static void verticalGradient (QPainter *painter, const QRect &spanRect, const QRect &clipRect, bool lightColored=false)
 
static bool usePixmapCache ()
 
static void drawIconWithShadow (const QIcon &icon, const QRect &rect, QPainter *p, QIcon::Mode iconMode, int radius=3, const QColor &color=QColor(0, 0, 0, 130), const QPoint &offset=QPoint(1, -2))
 

Static Public Attributes

static const unsigned int DEFAULT_BASE_COLOR = 0x666666
 

Detailed Description

Definition at line 51 of file stylehelper.h.

Member Function Documentation

◆ baseColor()

QColor Utils::StyleHelper::baseColor ( bool  lightColored = false)
static

Definition at line 74 of file stylehelper.cpp.

◆ borderColor()

QColor Utils::StyleHelper::borderColor ( bool  lightColored = false)
static

Definition at line 107 of file stylehelper.cpp.

◆ drawIconWithShadow()

void Utils::StyleHelper::drawIconWithShadow ( const QIcon &  icon,
const QRect &  rect,
QPainter *  p,
QIcon::Mode  iconMode,
int  radius = 3,
const QColor &  color = QColor(0, 0, 0, 130),
const QPoint &  offset = QPoint(1, -2) 
)
static

Definition at line 182 of file stylehelper.cpp.

◆ highlightColor()

QColor Utils::StyleHelper::highlightColor ( bool  lightColored = false)
static

Definition at line 84 of file stylehelper.cpp.

◆ panelTextColor()

QColor Utils::StyleHelper::panelTextColor ( bool  lightColored = false)
static

Definition at line 60 of file stylehelper.cpp.

◆ requestedBaseColor()

static QColor Utils::StyleHelper::requestedBaseColor ( )
inlinestatic

Definition at line 60 of file stylehelper.h.

◆ setBaseColor()

void Utils::StyleHelper::setBaseColor ( const QColor &  color)
static

Definition at line 119 of file stylehelper.cpp.

◆ shadowColor()

QColor Utils::StyleHelper::shadowColor ( bool  lightColored = false)
static

Definition at line 98 of file stylehelper.cpp.

◆ sidebarFontSize()

qreal Utils::StyleHelper::sidebarFontSize ( )
static

Definition at line 51 of file stylehelper.cpp.

◆ sidebarHighlight()

static QColor Utils::StyleHelper::sidebarHighlight ( )
inlinestatic

Definition at line 67 of file stylehelper.h.

◆ sidebarShadow()

static QColor Utils::StyleHelper::sidebarShadow ( )
inlinestatic

Definition at line 68 of file stylehelper.h.

◆ usePixmapCache()

static bool Utils::StyleHelper::usePixmapCache ( )
inlinestatic

Definition at line 75 of file stylehelper.h.

◆ verticalGradient()

void Utils::StyleHelper::verticalGradient ( QPainter *  painter,
const QRect &  spanRect,
const QRect &  clipRect,
bool  lightColored = false 
)
static

Definition at line 155 of file stylehelper.cpp.

Member Data Documentation

◆ DEFAULT_BASE_COLOR

const unsigned int Utils::StyleHelper::DEFAULT_BASE_COLOR = 0x666666
static

Definition at line 54 of file stylehelper.h.


The documentation for this class was generated from the following files: