Skip to content

Commit

Permalink
fix: The icon of importing proxy isnt clear enough
Browse files Browse the repository at this point in the history
replace the icon of the button

Issue: linuxdeepin/developer-center#6576
  • Loading branch information
FeiWang1119 committed Dec 26, 2023
1 parent a61fc64 commit 516b346
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions dcc-network-plugin/icons/dcc-network-plugin.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<file>actions/dcc_system_agent_32px.svg</file>
<file>actions/dcc_vpn_32px.svg</file>
<file>actions/dcc_wifi_32px.svg</file>
<file>texts/dcc_vpn_import_20px.svg</file>
<file>texts/dcc_wireless-0_16px.svg</file>
<file>texts/dcc_wireless-2_16px.svg</file>
<file>texts/dcc_wireless-4_16px.svg</file>
Expand Down
18 changes: 18 additions & 0 deletions dcc-network-plugin/icons/texts/dcc_vpn_import_20px.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 dcc-network-plugin/window/vpnmodule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ VPNModule::VPNModule(QObject *parent)
extraCreate->setExtra();
m_modules.append(extraCreate);
ModuleObject *extraImport = new WidgetModule<FloatingButton>("addWired", tr("Add Network Connection"), [this](FloatingButton *importVpnBtn) {
importVpnBtn->QAbstractButton::setText("\342\206\223");
importVpnBtn->setIcon(QIcon::fromTheme("dcc_vpn_import"));
importVpnBtn->setToolTip(tr("Import VPN"));
importVpnBtn->setAccessibleName(tr("Import VPN"));
connect(importVpnBtn, &DFloatingButton::clicked, this, &VPNModule::importVPN);
Expand Down

0 comments on commit 516b346

Please sign in to comment.