KWin
Loading...
Searching...
No Matches
Public Slots | Signals | Public Member Functions | Static Public Member Functions | Properties | List of all members
Aurorae::AuroraeTheme Class Reference

#include <auroraetheme.h>

Inheritance diagram for Aurorae::AuroraeTheme:

Public Slots

void loadTheme (const QString &name)
 

Signals

void themeChanged ()
 
void buttonSizesChanged ()
 
void borderSizesChanged ()
 

Public Member Functions

 AuroraeTheme (QObject *parent=nullptr)
 
 ~AuroraeTheme () override
 
void loadTheme (const QString &name, const KConfig &config)
 
bool isValid () const
 
const QString & themeName () const
 
int leftBorder () const
 
int rightBorder () const
 
int topBorder () const
 
int bottomBorder () const
 
int leftBorderMaximized () const
 
int rightBorderMaximized () const
 
int topBorderMaximized () const
 
int bottomBorderMaximized () const
 
int paddingLeft () const
 
int paddingRight () const
 
int paddingTop () const
 
int paddingBottom () const
 
int buttonWidth () const
 
int buttonWidthMinimize () const
 
int buttonWidthMaximizeRestore () const
 
int buttonWidthClose () const
 
int buttonWidthAllDesktops () const
 
int buttonWidthKeepAbove () const
 
int buttonWidthKeepBelow () const
 
int buttonWidthShade () const
 
int buttonWidthHelp () const
 
int buttonWidthMenu () const
 
int buttonWidthAppMenu () const
 
int buttonHeight () const
 
int buttonSpacing () const
 
int buttonMarginTop () const
 
int explicitButtonSpacer () const
 
int animationTime () const
 
int titleEdgeLeft () const
 
int titleEdgeRight () const
 
int titleEdgeTop () const
 
int titleEdgeLeftMaximized () const
 
int titleEdgeRightMaximized () const
 
int titleEdgeTopMaximized () const
 
int titleBorderLeft () const
 
int titleBorderRight () const
 
int titleHeight () const
 
QString decorationPath () const
 
QString minimizeButtonPath () const
 
QString maximizeButtonPath () const
 
QString restoreButtonPath () const
 
QString closeButtonPath () const
 
QString allDesktopsButtonPath () const
 
QString keepAboveButtonPath () const
 
QString keepBelowButtonPath () const
 
QString shadeButtonPath () const
 
QString helpButtonPath () const
 
QColor activeTextColor () const
 
QColor inactiveTextColor () const
 
Qt::Alignment alignment () const
 
Qt::Alignment verticalAlignment () const
 
void titleEdges (int &left, int &top, int &right, int &bottom, bool maximized) const
 
void setCompositingActive (bool active)
 
bool isCompositingActive () const
 
bool hasButton (AuroraeButtonType button) const
 
void setBorderSize (KDecoration2::BorderSize size)
 
void setButtonSize (KDecoration2::BorderSize size)
 
qreal buttonSizeFactor () const
 
DecorationPosition decorationPosition () const
 
void setTabDragMimeType (const QString &mime)
 
const QString & tabDragMimeType () const
 

Static Public Member Functions

static QLatin1String mapButtonToName (AuroraeButtonType type)
 

Properties

int borderLeft
 
int borderRight
 
int borderTop
 
int borderBottom
 
int borderLeftMaximized
 
int borderRightMaximized
 
int borderTopMaximized
 
int borderBottomMaximized
 
int paddingLeft
 
int paddingRight
 
int paddingTop
 
int paddingBottom
 
QString themeName
 
int buttonHeight
 
int buttonWidth
 
int buttonWidthMinimize
 
int buttonWidthMaximizeRestore
 
int buttonWidthClose
 
int buttonWidthAllDesktops
 
int buttonWidthKeepAbove
 
int buttonWidthKeepBelow
 
int buttonWidthShade
 
int buttonWidthHelp
 
int buttonWidthMenu
 
int buttonWidthAppMenu
 
int buttonSpacing
 
int buttonMarginTop
 
int explicitButtonSpacer
 
qreal buttonSizeFactor
 
int animationTime
 
int titleEdgeLeft
 
int titleEdgeRight
 
int titleEdgeTop
 
int titleEdgeLeftMaximized
 
int titleEdgeRightMaximized
 
int titleEdgeTopMaximized
 
int titleBorderRight
 
int titleBorderLeft
 
int titleHeight
 
QString decorationPath
 
QString minimizeButtonPath
 
QString maximizeButtonPath
 
QString restoreButtonPath
 
QString closeButtonPath
 
QString allDesktopsButtonPath
 
QString keepAboveButtonPath
 
QString keepBelowButtonPath
 
QString shadeButtonPath
 
QString helpButtonPath
 
QColor activeTextColor
 
QColor inactiveTextColor
 
Qt::Alignment horizontalAlignment
 
Qt::Alignment verticalAlignment
 

Detailed Description

Definition at line 49 of file auroraetheme.h.

Constructor & Destructor Documentation

◆ AuroraeTheme()

Aurorae::AuroraeTheme::AuroraeTheme ( QObject * parent = nullptr)
explicit

Definition at line 73 of file auroraetheme.cpp.

◆ ~AuroraeTheme()

Aurorae::AuroraeTheme::~AuroraeTheme ( )
overridedefault

Member Function Documentation

◆ activeTextColor()

QColor Aurorae::AuroraeTheme::activeTextColor ( ) const

◆ alignment()

Qt::Alignment Aurorae::AuroraeTheme::alignment ( ) const

◆ allDesktopsButtonPath()

QString Aurorae::AuroraeTheme::allDesktopsButtonPath ( ) const

◆ animationTime()

int Aurorae::AuroraeTheme::animationTime ( ) const

◆ borderSizesChanged

void Aurorae::AuroraeTheme::borderSizesChanged ( )
signal

◆ bottomBorder()

int Aurorae::AuroraeTheme::bottomBorder ( ) const

Definition at line 267 of file auroraetheme.cpp.

◆ bottomBorderMaximized()

int Aurorae::AuroraeTheme::bottomBorderMaximized ( ) const

Definition at line 299 of file auroraetheme.cpp.

◆ buttonHeight()

int Aurorae::AuroraeTheme::buttonHeight ( ) const

◆ buttonMarginTop()

int Aurorae::AuroraeTheme::buttonMarginTop ( ) const

◆ buttonSizeFactor()

qreal Aurorae::AuroraeTheme::buttonSizeFactor ( ) const

Definition at line 470 of file auroraetheme.cpp.

◆ buttonSizesChanged

void Aurorae::AuroraeTheme::buttonSizesChanged ( )
signal

◆ buttonSpacing()

int Aurorae::AuroraeTheme::buttonSpacing ( ) const

◆ buttonWidth()

int Aurorae::AuroraeTheme::buttonWidth ( ) const

◆ buttonWidthAllDesktops()

int Aurorae::AuroraeTheme::buttonWidthAllDesktops ( ) const

◆ buttonWidthAppMenu()

int Aurorae::AuroraeTheme::buttonWidthAppMenu ( ) const

◆ buttonWidthClose()

int Aurorae::AuroraeTheme::buttonWidthClose ( ) const

◆ buttonWidthHelp()

int Aurorae::AuroraeTheme::buttonWidthHelp ( ) const

◆ buttonWidthKeepAbove()

int Aurorae::AuroraeTheme::buttonWidthKeepAbove ( ) const

◆ buttonWidthKeepBelow()

int Aurorae::AuroraeTheme::buttonWidthKeepBelow ( ) const

◆ buttonWidthMaximizeRestore()

int Aurorae::AuroraeTheme::buttonWidthMaximizeRestore ( ) const

◆ buttonWidthMenu()

int Aurorae::AuroraeTheme::buttonWidthMenu ( ) const

◆ buttonWidthMinimize()

int Aurorae::AuroraeTheme::buttonWidthMinimize ( ) const

◆ buttonWidthShade()

int Aurorae::AuroraeTheme::buttonWidthShade ( ) const

◆ closeButtonPath()

QString Aurorae::AuroraeTheme::closeButtonPath ( ) const

◆ decorationPath()

QString Aurorae::AuroraeTheme::decorationPath ( ) const

Definition at line 390 of file auroraetheme.cpp.

◆ decorationPosition()

DecorationPosition Aurorae::AuroraeTheme::decorationPosition ( ) const

Definition at line 491 of file auroraetheme.cpp.

◆ explicitButtonSpacer()

int Aurorae::AuroraeTheme::explicitButtonSpacer ( ) const

◆ hasButton()

bool Aurorae::AuroraeTheme::hasButton ( AuroraeButtonType button) const
Returns
true if the theme contains a FrameSvg for specified button.

Definition at line 128 of file auroraetheme.cpp.

◆ helpButtonPath()

QString Aurorae::AuroraeTheme::helpButtonPath ( ) const

◆ inactiveTextColor()

QColor Aurorae::AuroraeTheme::inactiveTextColor ( ) const

◆ isCompositingActive()

bool Aurorae::AuroraeTheme::isCompositingActive ( ) const

Definition at line 432 of file auroraetheme.cpp.

◆ isValid()

bool Aurorae::AuroraeTheme::isValid ( ) const

Definition at line 83 of file auroraetheme.cpp.

◆ keepAboveButtonPath()

QString Aurorae::AuroraeTheme::keepAboveButtonPath ( ) const

◆ keepBelowButtonPath()

QString Aurorae::AuroraeTheme::keepBelowButtonPath ( ) const

◆ leftBorder()

int Aurorae::AuroraeTheme::leftBorder ( ) const

Definition at line 275 of file auroraetheme.cpp.

◆ leftBorderMaximized()

int Aurorae::AuroraeTheme::leftBorderMaximized ( ) const

Definition at line 307 of file auroraetheme.cpp.

◆ loadTheme [1/2]

void Aurorae::AuroraeTheme::loadTheme ( const QString & name)
slot

Definition at line 88 of file auroraetheme.cpp.

◆ loadTheme() [2/2]

void Aurorae::AuroraeTheme::loadTheme ( const QString & name,
const KConfig & config )

Definition at line 97 of file auroraetheme.cpp.

◆ mapButtonToName()

QLatin1String Aurorae::AuroraeTheme::mapButtonToName ( AuroraeButtonType type)
static

Definition at line 133 of file auroraetheme.cpp.

◆ maximizeButtonPath()

QString Aurorae::AuroraeTheme::maximizeButtonPath ( ) const

◆ minimizeButtonPath()

QString Aurorae::AuroraeTheme::minimizeButtonPath ( ) const

◆ paddingBottom()

int Aurorae::AuroraeTheme::paddingBottom ( ) const

◆ paddingLeft()

int Aurorae::AuroraeTheme::paddingLeft ( ) const

◆ paddingRight()

int Aurorae::AuroraeTheme::paddingRight ( ) const

◆ paddingTop()

int Aurorae::AuroraeTheme::paddingTop ( ) const

◆ restoreButtonPath()

QString Aurorae::AuroraeTheme::restoreButtonPath ( ) const

◆ rightBorder()

int Aurorae::AuroraeTheme::rightBorder ( ) const

Definition at line 283 of file auroraetheme.cpp.

◆ rightBorderMaximized()

int Aurorae::AuroraeTheme::rightBorderMaximized ( ) const

Definition at line 315 of file auroraetheme.cpp.

◆ setBorderSize()

void Aurorae::AuroraeTheme::setBorderSize ( KDecoration2::BorderSize size)

Definition at line 442 of file auroraetheme.cpp.

◆ setButtonSize()

void Aurorae::AuroraeTheme::setButtonSize ( KDecoration2::BorderSize size)

Sets the size of the buttons. The available sizes are identical to border sizes, therefore BorderSize is used.

Parameters
sizeThe buttons size

Definition at line 451 of file auroraetheme.cpp.

◆ setCompositingActive()

void Aurorae::AuroraeTheme::setCompositingActive ( bool active)

Definition at line 437 of file auroraetheme.cpp.

◆ setTabDragMimeType()

void Aurorae::AuroraeTheme::setTabDragMimeType ( const QString & mime)

Definition at line 460 of file auroraetheme.cpp.

◆ shadeButtonPath()

QString Aurorae::AuroraeTheme::shadeButtonPath ( ) const

◆ tabDragMimeType()

const QString & Aurorae::AuroraeTheme::tabDragMimeType ( ) const

Definition at line 465 of file auroraetheme.cpp.

◆ themeChanged

void Aurorae::AuroraeTheme::themeChanged ( )
signal

◆ themeName()

const QString & Aurorae::AuroraeTheme::themeName ( ) const

Definition at line 163 of file auroraetheme.cpp.

◆ titleBorderLeft()

int Aurorae::AuroraeTheme::titleBorderLeft ( ) const

◆ titleBorderRight()

int Aurorae::AuroraeTheme::titleBorderRight ( ) const

◆ titleEdgeLeft()

int Aurorae::AuroraeTheme::titleEdgeLeft ( ) const

◆ titleEdgeLeftMaximized()

int Aurorae::AuroraeTheme::titleEdgeLeftMaximized ( ) const

◆ titleEdgeRight()

int Aurorae::AuroraeTheme::titleEdgeRight ( ) const

◆ titleEdgeRightMaximized()

int Aurorae::AuroraeTheme::titleEdgeRightMaximized ( ) const

◆ titleEdges()

void Aurorae::AuroraeTheme::titleEdges ( int & left,
int & top,
int & right,
int & bottom,
bool maximized ) const

Sets the title edges according to maximized state. Title edges are global to all windows.

Definition at line 417 of file auroraetheme.cpp.

◆ titleEdgeTop()

int Aurorae::AuroraeTheme::titleEdgeTop ( ) const

◆ titleEdgeTopMaximized()

int Aurorae::AuroraeTheme::titleEdgeTopMaximized ( ) const

◆ titleHeight()

int Aurorae::AuroraeTheme::titleHeight ( ) const

◆ topBorder()

int Aurorae::AuroraeTheme::topBorder ( ) const

Definition at line 291 of file auroraetheme.cpp.

◆ topBorderMaximized()

int Aurorae::AuroraeTheme::topBorderMaximized ( ) const

Definition at line 323 of file auroraetheme.cpp.

◆ verticalAlignment()

Qt::Alignment Aurorae::AuroraeTheme::verticalAlignment ( ) const

Property Documentation

◆ activeTextColor

QColor Aurorae::AuroraeTheme::activeTextColor
read

Definition at line 101 of file auroraetheme.h.

◆ allDesktopsButtonPath

QString Aurorae::AuroraeTheme::allDesktopsButtonPath
read

Definition at line 96 of file auroraetheme.h.

◆ animationTime

int Aurorae::AuroraeTheme::animationTime
read

Definition at line 81 of file auroraetheme.h.

◆ borderBottom

int Aurorae::AuroraeTheme::borderBottom
read

Definition at line 55 of file auroraetheme.h.

◆ borderBottomMaximized

int Aurorae::AuroraeTheme::borderBottomMaximized
read

Definition at line 59 of file auroraetheme.h.

◆ borderLeft

int Aurorae::AuroraeTheme::borderLeft
read

Definition at line 52 of file auroraetheme.h.

◆ borderLeftMaximized

int Aurorae::AuroraeTheme::borderLeftMaximized
read

Definition at line 56 of file auroraetheme.h.

◆ borderRight

int Aurorae::AuroraeTheme::borderRight
read

Definition at line 53 of file auroraetheme.h.

◆ borderRightMaximized

int Aurorae::AuroraeTheme::borderRightMaximized
read

Definition at line 57 of file auroraetheme.h.

◆ borderTop

int Aurorae::AuroraeTheme::borderTop
read

Definition at line 54 of file auroraetheme.h.

◆ borderTopMaximized

int Aurorae::AuroraeTheme::borderTopMaximized
read

Definition at line 58 of file auroraetheme.h.

◆ buttonHeight

int Aurorae::AuroraeTheme::buttonHeight
read

Definition at line 65 of file auroraetheme.h.

◆ buttonMarginTop

int Aurorae::AuroraeTheme::buttonMarginTop
read

Definition at line 78 of file auroraetheme.h.

◆ buttonSizeFactor

qreal Aurorae::AuroraeTheme::buttonSizeFactor
read

Definition at line 80 of file auroraetheme.h.

◆ buttonSpacing

int Aurorae::AuroraeTheme::buttonSpacing
read

Definition at line 77 of file auroraetheme.h.

◆ buttonWidth

int Aurorae::AuroraeTheme::buttonWidth
read

Definition at line 66 of file auroraetheme.h.

◆ buttonWidthAllDesktops

int Aurorae::AuroraeTheme::buttonWidthAllDesktops
read

Definition at line 70 of file auroraetheme.h.

◆ buttonWidthAppMenu

int Aurorae::AuroraeTheme::buttonWidthAppMenu
read

Definition at line 76 of file auroraetheme.h.

◆ buttonWidthClose

int Aurorae::AuroraeTheme::buttonWidthClose
read

Definition at line 69 of file auroraetheme.h.

◆ buttonWidthHelp

int Aurorae::AuroraeTheme::buttonWidthHelp
read

Definition at line 74 of file auroraetheme.h.

◆ buttonWidthKeepAbove

int Aurorae::AuroraeTheme::buttonWidthKeepAbove
read

Definition at line 71 of file auroraetheme.h.

◆ buttonWidthKeepBelow

int Aurorae::AuroraeTheme::buttonWidthKeepBelow
read

Definition at line 72 of file auroraetheme.h.

◆ buttonWidthMaximizeRestore

int Aurorae::AuroraeTheme::buttonWidthMaximizeRestore
read

Definition at line 68 of file auroraetheme.h.

◆ buttonWidthMenu

int Aurorae::AuroraeTheme::buttonWidthMenu
read

Definition at line 75 of file auroraetheme.h.

◆ buttonWidthMinimize

int Aurorae::AuroraeTheme::buttonWidthMinimize
read

Definition at line 67 of file auroraetheme.h.

◆ buttonWidthShade

int Aurorae::AuroraeTheme::buttonWidthShade
read

Definition at line 73 of file auroraetheme.h.

◆ closeButtonPath

QString Aurorae::AuroraeTheme::closeButtonPath
read

Definition at line 95 of file auroraetheme.h.

◆ decorationPath

QString Aurorae::AuroraeTheme::decorationPath
read

Definition at line 91 of file auroraetheme.h.

◆ explicitButtonSpacer

int Aurorae::AuroraeTheme::explicitButtonSpacer
read

Definition at line 79 of file auroraetheme.h.

◆ helpButtonPath

QString Aurorae::AuroraeTheme::helpButtonPath
read

Definition at line 100 of file auroraetheme.h.

◆ horizontalAlignment

Qt::Alignment Aurorae::AuroraeTheme::horizontalAlignment
read

Definition at line 103 of file auroraetheme.h.

◆ inactiveTextColor

QColor Aurorae::AuroraeTheme::inactiveTextColor
read

Definition at line 102 of file auroraetheme.h.

◆ keepAboveButtonPath

QString Aurorae::AuroraeTheme::keepAboveButtonPath
read

Definition at line 97 of file auroraetheme.h.

◆ keepBelowButtonPath

QString Aurorae::AuroraeTheme::keepBelowButtonPath
read

Definition at line 98 of file auroraetheme.h.

◆ maximizeButtonPath

QString Aurorae::AuroraeTheme::maximizeButtonPath
read

Definition at line 93 of file auroraetheme.h.

◆ minimizeButtonPath

QString Aurorae::AuroraeTheme::minimizeButtonPath
read

Definition at line 92 of file auroraetheme.h.

◆ paddingBottom

int Aurorae::AuroraeTheme::paddingBottom
read

Definition at line 63 of file auroraetheme.h.

◆ paddingLeft

int Aurorae::AuroraeTheme::paddingLeft
read

Definition at line 60 of file auroraetheme.h.

◆ paddingRight

int Aurorae::AuroraeTheme::paddingRight
read

Definition at line 61 of file auroraetheme.h.

◆ paddingTop

int Aurorae::AuroraeTheme::paddingTop
read

Definition at line 62 of file auroraetheme.h.

◆ restoreButtonPath

QString Aurorae::AuroraeTheme::restoreButtonPath
read

Definition at line 94 of file auroraetheme.h.

◆ shadeButtonPath

QString Aurorae::AuroraeTheme::shadeButtonPath
read

Definition at line 99 of file auroraetheme.h.

◆ themeName

QString Aurorae::AuroraeTheme::themeName
read

Definition at line 64 of file auroraetheme.h.

◆ titleBorderLeft

int Aurorae::AuroraeTheme::titleBorderLeft
read

Definition at line 89 of file auroraetheme.h.

◆ titleBorderRight

int Aurorae::AuroraeTheme::titleBorderRight
read

Definition at line 88 of file auroraetheme.h.

◆ titleEdgeLeft

int Aurorae::AuroraeTheme::titleEdgeLeft
read

Definition at line 82 of file auroraetheme.h.

◆ titleEdgeLeftMaximized

int Aurorae::AuroraeTheme::titleEdgeLeftMaximized
read

Definition at line 85 of file auroraetheme.h.

◆ titleEdgeRight

int Aurorae::AuroraeTheme::titleEdgeRight
read

Definition at line 83 of file auroraetheme.h.

◆ titleEdgeRightMaximized

int Aurorae::AuroraeTheme::titleEdgeRightMaximized
read

Definition at line 86 of file auroraetheme.h.

◆ titleEdgeTop

int Aurorae::AuroraeTheme::titleEdgeTop
read

Definition at line 84 of file auroraetheme.h.

◆ titleEdgeTopMaximized

int Aurorae::AuroraeTheme::titleEdgeTopMaximized
read

Definition at line 87 of file auroraetheme.h.

◆ titleHeight

int Aurorae::AuroraeTheme::titleHeight
read

Definition at line 90 of file auroraetheme.h.

◆ verticalAlignment

Qt::Alignment Aurorae::AuroraeTheme::verticalAlignment
read

Definition at line 104 of file auroraetheme.h.


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