MauiMan::ThemeManager

Search for usage in LXR

MauiMan::ThemeManager Class Reference

#include <thememanager.h>

Inheritance diagram for MauiMan::ThemeManager:

Classes

struct  DefaultValues
 

Properties

QString accentColor
 
uint borderRadius
 
QString customColorScheme
 
QString defaultFont
 
bool enableCSD
 
bool enableEffects
 
uint iconSize
 
QString iconTheme
 
uint marginSize
 
QString monospacedFont
 
uint paddingSize
 
QString smallFont
 
uint spacingSize
 
int styleType
 
QString windowControlsTheme
 
- Properties inherited from QObject
 objectName
 

Signals

void accentColorChanged (QString accentColor)
 
void borderRadiusChanged (uint radius)
 
void customColorSchemeChanged (QString customColorScheme)
 
void defaultFontChanged (QString defaultFont)
 
void enableCSDChanged (bool enableCSD)
 
void enableEffectsChanged (bool enableEffects)
 
void iconSizeChanged (uint size)
 
void iconThemeChanged (QString iconTheme)
 
void marginSizeChanged (uint marginSize)
 
void monospacedFontChanged (QString monospacedFont)
 
void paddingSizeChanged (uint paddingSize)
 
void smallFontChanged (QString smallFont)
 
void spacingSizeChanged (uint spacingSize)
 
void styleTypeChanged (int styleType)
 
void windowControlsThemeChanged (QString windowControlsTheme)
 

Public Member Functions

 ThemeManager (QObject *parent=nullptr)
 
const QStringaccentColor () const
 
uint borderRadius () const
 
QString customColorScheme () const
 
QString defaultFont () const
 
bool enableCSD () const
 
bool enableEffects () const
 
uint iconSize () const
 
const QStringiconTheme () const
 
uint marginSize () const
 
QString monospacedFont () const
 
uint paddingSize () const
 
void resetAccentColor ()
 
void resetBorderRadius ()
 
void resetDefaultFont ()
 
void resetIconSize ()
 
void resetMarginSize ()
 
void resetMonospacedFont ()
 
void resetPaddingSize ()
 
void resetSmallFont ()
 
void resetSPacingSize ()
 
void setAccentColor (const QString &newAccentColor)
 
void setBorderRadius (uint newBorderRadius)
 
void setCustomColorScheme (const QString &customColorScheme)
 
void setDefaultFont (const QString &defaultFont)
 
void setEnableCSD (bool enableCSD)
 
void setEnableEffects (bool enableEffects)
 
void setIconSize (uint newIconSize)
 
void setIconTheme (const QString &newIconTheme)
 
void setMarginSize (uint marginSize)
 
void setMonospacedFont (const QString &monospacedFont)
 
void setPaddingSize (uint paddingSize)
 
void setSmallFont (const QString &smallFont)
 
void setSpacingSize (uint spacingSize)
 
void setStyleType (int newStyleType)
 
void setWindowControlsTheme (const QString &newWindowControlsTheme)
 
QString smallFont () const
 
uint spacingSize () const
 
int styleType () const
 
const QStringwindowControlsTheme () const
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
QBindable< QStringbindableObjectName ()
 
bool blockSignals (bool block)
 
const QObjectListchildren () const const
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const const
 
bool disconnect (const QObject *receiver, const char *method) const const
 
void dumpObjectInfo () const const
 
void dumpObjectTree () const const
 
QList< QByteArraydynamicPropertyNames () const const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
findChild (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (Qt::FindChildOptions options) const const
 
bool inherits (const char *className) const const
 
void installEventFilter (QObject *filterObj)
 
bool isQuickItemType () const const
 
bool isWidgetType () const const
 
bool isWindowType () const const
 
void killTimer (int id)
 
virtual const QMetaObjectmetaObject () const const
 
void moveToThread (QThread *targetThread)
 
QString objectName () const const
 
void objectNameChanged (const QString &objectName)
 
QObjectparent () const const
 
QVariant property (const char *name) const const
 
 Q_CLASSINFO (Name, Value)
 
 Q_EMIT Q_EMIT
 
 Q_ENUM (...)
 
 Q_ENUM_NS (...)
 
 Q_ENUMS (...)
 
 Q_FLAG (...)
 
 Q_FLAG_NS (...)
 
 Q_FLAGS (...)
 
 Q_GADGET Q_GADGET
 
 Q_GADGET_EXPORT (EXPORT_MACRO)
 
 Q_INTERFACES (...)
 
 Q_INVOKABLE Q_INVOKABLE
 
 Q_MOC_INCLUDE Q_MOC_INCLUDE
 
 Q_NAMESPACE Q_NAMESPACE
 
 Q_NAMESPACE_EXPORT (EXPORT_MACRO)
 
 Q_OBJECT Q_OBJECT
 
 Q_PROPERTY (...)
 
 Q_REVISION Q_REVISION
 
 Q_SET_OBJECT_NAME (Object)
 
 Q_SIGNAL Q_SIGNAL
 
 Q_SIGNALS Q_SIGNALS
 
 Q_SLOT Q_SLOT
 
 Q_SLOTS Q_SLOTS
 
qobject_cast (const QObject *object)
 
qobject_cast (QObject *object)
 
 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
 
void removeEventFilter (QObject *obj)
 
void setObjectName (const QString &name)
 
void setObjectName (QAnyStringView name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool setProperty (const char *name, QVariant &&value)
 
bool signalsBlocked () const const
 
int startTimer (int interval, Qt::TimerType timerType)
 
int startTimer (std::chrono::milliseconds interval, Qt::TimerType timerType)
 
QThreadthread () const const
 

Additional Inherited Members

- Static Public Member Functions inherited from QObject
QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
 
bool disconnect (const QMetaObject::Connection &connection)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
- Public Attributes inherited from QObject
typedef QObjectList
 
- Protected Member Functions inherited from QObject
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
bool isSignalConnected (const QMetaMethod &signal) const const
 
int receivers (const char *signal) const const
 
QObjectsender () const const
 
int senderSignalIndex () const const
 
virtual void timerEvent (QTimerEvent *event)
 

Detailed Description

The ThemeManager class Helpful for third parties to connect to property changes from the Theme module setting changes.

Note
Note that the properties can be reset back to their default values by using the undefined value from QML, or using the reset methods accordingly.

The preferences have a set of default values, however the values used will be the ones present in the conf file. When a property is reset, then the default value will be written to the conf file.

Definition at line 31 of file thememanager.h.

Property Documentation

◆ accentColor

QString MauiMan::ThemeManager::accentColor
readwrite

The preferred accent color used for the highlighted and checked states.

Definition at line 48 of file thememanager.h.

◆ borderRadius

uint MauiMan::ThemeManager::borderRadius
readwrite

The corner border radius of the UI elements, also affects the radius of the CSD window corners.

Definition at line 69 of file thememanager.h.

◆ customColorScheme

QString MauiMan::ThemeManager::customColorScheme
readwrite

The preferred color scheme to be used when the styleType is set to Custom.

Definition at line 114 of file thememanager.h.

◆ defaultFont

QString MauiMan::ThemeManager::defaultFont
readwrite

The preferred default font, for most part of the UI.

Definition at line 99 of file thememanager.h.

◆ enableCSD

bool MauiMan::ThemeManager::enableCSD
readwrite

Whether to use client side decorations (CSD) for the applications.

By default this is set to true

Definition at line 64 of file thememanager.h.

◆ enableEffects

bool MauiMan::ThemeManager::enableEffects
readwrite

Whether the user prefers for the system to have visual effects, such as animations, blur, etc.

Definition at line 94 of file thememanager.h.

◆ iconSize

uint MauiMan::ThemeManager::iconSize
readwrite

The preferred size of the icons in the buttons, menu entries and other elements.

Definition at line 74 of file thememanager.h.

◆ iconTheme

QString MauiMan::ThemeManager::iconTheme
readwrite

The preferred icon theme.

This preference is only valid when using the Maui Shell session.

Definition at line 53 of file thememanager.h.

◆ marginSize

uint MauiMan::ThemeManager::marginSize
readwrite

The preferred margin size around views.

Definition at line 84 of file thememanager.h.

◆ monospacedFont

QString MauiMan::ThemeManager::monospacedFont
readwrite

The preferred mono spaced font, for example the one used in console terminals, or in text editors.

Definition at line 109 of file thememanager.h.

◆ paddingSize

uint MauiMan::ThemeManager::paddingSize
readwrite

The preferred padding size for the UI elements, such as buttons, tool bars, menu entries, etc.

Definition at line 79 of file thememanager.h.

◆ smallFont

QString MauiMan::ThemeManager::smallFont
readwrite

The preferred small font, for details.

Definition at line 104 of file thememanager.h.

◆ spacingSize

uint MauiMan::ThemeManager::spacingSize
readwrite

The preferred spacing size between elements in a row or column, such as lists or browsing elements.

Definition at line 89 of file thememanager.h.

◆ styleType

int MauiMan::ThemeManager::styleType
readwrite

The style type for the color scheme.

The possible values are:

  • 0 Light
  • 1 Dark
  • 2 Adaptive
  • 3 Custom (from the plasma color-scheme file preferences)
  • 4 True Black
  • 5 Inverted (True White)

Definition at line 43 of file thememanager.h.

◆ windowControlsTheme

QString MauiMan::ThemeManager::windowControlsTheme
readwrite

The preferred theme for the CSD window control buttons.

The list of available options depends on the installed themes. For more information on this refer to the MauiKit CSDControls documentation.

Definition at line 58 of file thememanager.h.

Constructor & Destructor Documentation

◆ ThemeManager()

ThemeManager::ThemeManager ( QObject * parent = nullptr)
explicit

Definition at line 11 of file thememanager.cpp.

Member Function Documentation

◆ accentColor()

const QString & ThemeManager::accentColor ( ) const

Definition at line 150 of file thememanager.cpp.

◆ borderRadius()

uint ThemeManager::borderRadius ( ) const

Definition at line 355 of file thememanager.cpp.

◆ customColorScheme()

QString ThemeManager::customColorScheme ( ) const

Definition at line 532 of file thememanager.cpp.

◆ defaultFont()

QString ThemeManager::defaultFont ( ) const

Definition at line 469 of file thememanager.cpp.

◆ enableCSD()

bool ThemeManager::enableCSD ( ) const

Definition at line 205 of file thememanager.cpp.

◆ enableEffects()

bool ThemeManager::enableEffects ( ) const

Definition at line 390 of file thememanager.cpp.

◆ iconSize()

uint ThemeManager::iconSize ( ) const

Definition at line 375 of file thememanager.cpp.

◆ iconTheme()

const QString & ThemeManager::iconTheme ( ) const

Definition at line 173 of file thememanager.cpp.

◆ marginSize()

uint ThemeManager::marginSize ( ) const

Definition at line 411 of file thememanager.cpp.

◆ monospacedFont()

QString ThemeManager::monospacedFont ( ) const

Definition at line 479 of file thememanager.cpp.

◆ paddingSize()

uint ThemeManager::paddingSize ( ) const

Definition at line 406 of file thememanager.cpp.

◆ resetAccentColor()

void ThemeManager::resetAccentColor ( )

Definition at line 168 of file thememanager.cpp.

◆ resetBorderRadius()

void ThemeManager::resetBorderRadius ( )

Definition at line 370 of file thememanager.cpp.

◆ resetDefaultFont()

void ThemeManager::resetDefaultFont ( )

Definition at line 495 of file thememanager.cpp.

◆ resetIconSize()

void MauiMan::ThemeManager::resetIconSize ( )

Definition at line 548 of file thememanager.cpp.

◆ resetMarginSize()

void ThemeManager::resetMarginSize ( )

Definition at line 443 of file thememanager.cpp.

◆ resetMonospacedFont()

void ThemeManager::resetMonospacedFont ( )

Definition at line 527 of file thememanager.cpp.

◆ resetPaddingSize()

void ThemeManager::resetPaddingSize ( )

Definition at line 427 of file thememanager.cpp.

◆ resetSmallFont()

void ThemeManager::resetSmallFont ( )

Definition at line 511 of file thememanager.cpp.

◆ resetSPacingSize()

void ThemeManager::resetSPacingSize ( )

Definition at line 464 of file thememanager.cpp.

◆ setAccentColor()

void ThemeManager::setAccentColor ( const QString & newAccentColor)

Definition at line 155 of file thememanager.cpp.

◆ setBorderRadius()

void ThemeManager::setBorderRadius ( uint newBorderRadius)

Definition at line 360 of file thememanager.cpp.

◆ setCustomColorScheme()

void ThemeManager::setCustomColorScheme ( const QString & customColorScheme)

Definition at line 537 of file thememanager.cpp.

◆ setDefaultFont()

void ThemeManager::setDefaultFont ( const QString & defaultFont)

Definition at line 484 of file thememanager.cpp.

◆ setEnableCSD()

void ThemeManager::setEnableCSD ( bool enableCSD)

Definition at line 210 of file thememanager.cpp.

◆ setEnableEffects()

void ThemeManager::setEnableEffects ( bool enableEffects)

Definition at line 395 of file thememanager.cpp.

◆ setIconSize()

void ThemeManager::setIconSize ( uint newIconSize)

Definition at line 380 of file thememanager.cpp.

◆ setIconTheme()

void ThemeManager::setIconTheme ( const QString & newIconTheme)

Definition at line 178 of file thememanager.cpp.

◆ setMarginSize()

void ThemeManager::setMarginSize ( uint marginSize)

Definition at line 432 of file thememanager.cpp.

◆ setMonospacedFont()

void ThemeManager::setMonospacedFont ( const QString & monospacedFont)

Definition at line 516 of file thememanager.cpp.

◆ setPaddingSize()

void ThemeManager::setPaddingSize ( uint paddingSize)

Definition at line 416 of file thememanager.cpp.

◆ setSmallFont()

void ThemeManager::setSmallFont ( const QString & smallFont)

Definition at line 500 of file thememanager.cpp.

◆ setSpacingSize()

void ThemeManager::setSpacingSize ( uint spacingSize)

Definition at line 453 of file thememanager.cpp.

◆ setStyleType()

void ThemeManager::setStyleType ( int newStyleType)

Definition at line 139 of file thememanager.cpp.

◆ setWindowControlsTheme()

void ThemeManager::setWindowControlsTheme ( const QString & newWindowControlsTheme)

Definition at line 194 of file thememanager.cpp.

◆ smallFont()

QString ThemeManager::smallFont ( ) const

Definition at line 474 of file thememanager.cpp.

◆ spacingSize()

uint ThemeManager::spacingSize ( ) const

Definition at line 448 of file thememanager.cpp.

◆ styleType()

int ThemeManager::styleType ( ) const

Definition at line 134 of file thememanager.cpp.

◆ windowControlsTheme()

const QString & ThemeManager::windowControlsTheme ( ) const

Definition at line 189 of file thememanager.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:49:41 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.