Skip to content

Commit

Permalink
fix: update network error icon
Browse files Browse the repository at this point in the history
Add a common icon to indicate that there is an unknown error or there
is no cable.

Log: update network error icon
Issue: linuxdeepin/developer-center#4479
  • Loading branch information
asterwyx committed Jan 19, 2024
1 parent 53a985a commit 6f086c2
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 14 deletions.
2 changes: 1 addition & 1 deletion common-plugin/networkpluginhelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ QString NetworkPluginHelper::iconPath(int colorType) const
}
case PluginState::Unknown:
case PluginState::Nocable: {
stateString = "error"; // 待图标 暂用错误图标
stateString = "error";
iconString = QString("network-%1-symbolic").arg(stateString);
break;
}
Expand Down
14 changes: 8 additions & 6 deletions common-plugin/resources/dark/network-error-symbolic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 8 additions & 6 deletions common-plugin/resources/light/network-error-symbolic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion dock-network-plugin/networkplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ void NetworkPlugin::updateQuickPanel()
m_quickPanel->setDescription(description());
m_quickPanel->setActive(false);
m_quickPanel->setUserData(NetworkPluginHelper::MenuSettings);
m_quickPanel->setIcon(QIcon::fromTheme(ThemeManager::ref().getIcon("wireless-disconnect")));
m_quickPanel->setIcon(QIcon::fromTheme(ThemeManager::ref().getIcon("network-error-symbolic")));
}
}

Expand Down

0 comments on commit 6f086c2

Please sign in to comment.