mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Neutral folder state icons
Signed-off-by: Rello <Rello@users.noreply.github.com>
This commit is contained in:
parent
6f451e8aeb
commit
952c9ecfb8
@ -684,7 +684,6 @@ QIcon Theme::syncStateIcon(SyncResult::Status status, bool sysTray) const
|
||||
break;
|
||||
case SyncResult::Error:
|
||||
case SyncResult::SetupError:
|
||||
// FIXME: Use state-problem once we have an icon.
|
||||
default:
|
||||
statusIcon = QLatin1String("state-error");
|
||||
}
|
||||
@ -692,6 +691,40 @@ QIcon Theme::syncStateIcon(SyncResult::Status status, bool sysTray) const
|
||||
return themeIcon(statusIcon, sysTray);
|
||||
}
|
||||
|
||||
QIcon Theme::folderStateIcon(SyncResult::Status status) const
|
||||
{
|
||||
// FIXME: Mind the size!
|
||||
QString statusIcon;
|
||||
|
||||
switch (status) {
|
||||
case SyncResult::Undefined:
|
||||
// this can happen if no sync connections are configured.
|
||||
statusIcon = QLatin1String("warning");
|
||||
break;
|
||||
case SyncResult::NotYetStarted:
|
||||
case SyncResult::SyncRunning:
|
||||
statusIcon = QLatin1String("sync");
|
||||
break;
|
||||
case SyncResult::SyncAbortRequested:
|
||||
case SyncResult::Paused:
|
||||
statusIcon = QLatin1String("pause");
|
||||
break;
|
||||
case SyncResult::SyncPrepare:
|
||||
case SyncResult::Success:
|
||||
statusIcon = QLatin1String("ok");
|
||||
break;
|
||||
case SyncResult::Problem:
|
||||
statusIcon = QLatin1String("warning");
|
||||
break;
|
||||
case SyncResult::Error:
|
||||
case SyncResult::SetupError:
|
||||
default:
|
||||
statusIcon = QLatin1String("error");
|
||||
}
|
||||
|
||||
return themeIcon(statusIcon, false);
|
||||
}
|
||||
|
||||
QIcon Theme::folderDisabledIcon() const
|
||||
{
|
||||
return themeIcon(QLatin1String("state-pause"));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user