setQuitOnLastWindowClosed(false);
- _theme->setSystrayUseMonoIcons(cfg.monoIcons());
- connect(_theme, &Theme::systrayUseMonoIconsChanged, this, &Application::slotUseMonoIconsChanged);
-
// Setting up the gui class will allow tray notifications for the
// setup that follows, like folder setup
_gui = new ownCloudGui(this);
qCInfo(lcApplication) << "Arguments:" << qApp->arguments();
}
-void Application::slotUseMonoIconsChanged(bool)
-{
- _gui->slotComputeOverallSyncStatus();
-}
-
void Application::slotParseMessage(const QString &msg, QObject *)
{
if (msg.startsWith(QLatin1String("MSG_PARSEOPTIONS:"))) {
protected slots:
void slotParseMessage(const QString &, QObject *);
void slotCheckConnection();
- void slotUseMonoIconsChanged(bool);
void slotCleanup();
void slotAccountStateAdded(OCC::AccountState *accountState);
void slotAccountStateRemoved(OCC::AccountState *accountState);
return flavor;
}
-void Theme::setSystrayUseMonoIcons(bool mono)
-{
- _mono = mono;
- emit systrayUseMonoIconsChanged(mono);
-}
-
-bool Theme::systrayUseMonoIcons() const
-{
- return _mono;
-}
-
-bool Theme::monoIconsAvailable() const
-{
- QString themeDir = QString(Theme::themePrefix) + QString::fromLatin1("%1/").arg(Theme::instance()->systrayIconFlavor(true));
- return QDir(themeDir).exists();
-}
-
QString Theme::updateCheckUrl() const
{
return APPLICATION_UPDATE_URL;
*/
virtual QString aboutDetails() const;
- /**
- * Define if the systray icons should be using mono design
- */
- void setSystrayUseMonoIcons(bool mono);
-
- /**
- * Retrieve wether to use mono icons for systray
- */
- bool systrayUseMonoIcons() const;
-
- /**
- * Check if mono icons are available
- */
- bool monoIconsAvailable() const;
-
/**
* @brief Where to check for new Updates.
*/
Theme();
signals:
- void systrayUseMonoIconsChanged(bool);
void systemPaletteChanged(const QPalette &palette);
void darkModeChanged();
void overrideServerUrlChanged();