Kstars
thememanager.cpp
140 if (theme == "Macintosh" || theme == "White Balance" || theme == "High Key" || (theme == "Default"
190 action->setStyleSheet("QMenu::icon:checked {background: gray;border: 1px inset gray;position: absolute;"
314 KSharedConfigPtr config = KSharedConfig::openConfig(d->themeMap.value(currentDesktopdefaultTheme()));
342 p.fillRect(15, 1, 7, 7, group.readEntry(QLatin1String("activeBackground"), QColor(96, 148, 207)));
343 p.fillRect(16, 2, 5, 2, QBrush(group.readEntry(QLatin1String("activeForeground"), QColor(255, 255, 255)), b1));
353 p.fillRect(15, 8, 7, 7, group.readEntry(QLatin1String("inactiveBackground"), QColor(224, 223, 222)));
354 p.fillRect(16, 12, 5, 2, QBrush(group.readEntry(QLatin1String("inactiveForeground"), QColor(20, 19, 18)), b2));
381 qCWarning(KSTARS) << "Current icon theme is" << QIcon::themeName() << "(fallback" << QIcon::fallbackThemeName() << ")";
392 themeSearchPaths = themeSearchPaths << QDir(QCoreApplication::applicationDirPath() + "/../Resources/icons").absolutePath();
393 QString resourcePath = QDir(QCoreApplication::applicationDirPath() + "/../Resources/icons/" + rccFile).absolutePath();
396 themeSearchPaths = themeSearchPaths << QStandardPaths::locate(QStandardPaths::GenericDataLocation, "icons",
402 // On Linux on non-KDE Distros, find out if the themes are installed or not and perhaps warn the user
412 qCWarning(KSTARS) << "Warning: icon theme" << iconTheme << "not found, keeping original" << QIcon::themeName() << ".";
419 //Note: in order to get it to actually load breeze from resources on mac, we had to add the index.theme, and just one icon from breeze into the qrc. Not sure why this was needed, but it works.
Q_INVOKABLE QAction * action(const QString &name) const
QAction * addAction(const QString &name, const QObject *receiver=nullptr, const char *member=nullptr)
virtual KActionCollection * actionCollection() const
Primary class to handle all Ekos modules.
static QPalette createApplicationPalette(const KSharedConfigPtr &config)
Used to obtain the QPalette that will be used to set the application palette from KDE Platform theme.
Definition schememanager.cpp:1067
A QLineEdit which is capable of displaying and parsing angle values flexibly and robustly.
Definition dmsbox.h:34
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString name(GameStandardAction id)
KIOCORE_EXPORT QStringList list(const QString &fileClass)
void setCheckable(bool)
void setChecked(bool)
icon
text
QBitmap fromData(const QSize &size, const uchar *bits, QImage::Format monoFormat)
QString applicationDirPath()
QString absolutePath() const const
QChar separator()
QString fallbackThemeName()
void setThemeName(const QString &name)
void setThemeSearchPaths(const QStringList &paths)
QString themeName()
QStringList themeSearchPaths()
void append(QList< T > &&value)
const_reference at(qsizetype i) const const
qsizetype size() const const
void addItem(QListWidgetItem *item)
void clear()
void sortItems(Qt::SortOrder order)
void setIcon(const QIcon &icon)
void setText(const QString &text)
iterator insert(const Key &key, const T &value)
QList< Key > keys() const const
T value(const Key &key, const T &defaultValue) const const
Active
void clear()
bool registerResource(const QString &rccFileName, const QString &mapRoot)
LocateDirectory
GenericDataLocation
QString locate(StandardLocation type, const QString &fileName, LocateOptions options)
QStringList locateAll(StandardLocation type, const QString &fileName, LocateOptions options)
QString fromLatin1(QByteArrayView str)
void sort(Qt::CaseSensitivity cs)
QStyle * create(const QString &key)
black
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
void setPalette(const QPalette &)
void setStyleSheet(const QString &styleSheet)
windowTitle
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.