From 007210ed43f7470bca24a3217426a345ba091852 Mon Sep 17 00:00:00 2001 From: chenjiahe01 Date: Fri, 14 Apr 2023 16:54:41 +0800 Subject: [PATCH] fix: add backgroundcolor to the line proxy type Problem: the line 'proxy type' of the page 'system proxy' doesn't have grey backgroundcolor like other lines. Solution: I used addBackground() to make this line the same like others Issue: #141 Log: add grey backgroundcolor to the line proxy type of page system proxy. --- dcc-network-plugin/window/sysproxymodule.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/dcc-network-plugin/window/sysproxymodule.cpp b/dcc-network-plugin/window/sysproxymodule.cpp index fba14594..926eaaeb 100644 --- a/dcc-network-plugin/window/sysproxymodule.cpp +++ b/dcc-network-plugin/window/sysproxymodule.cpp @@ -68,6 +68,7 @@ SysProxyModule::SysProxyModule(QObject *parent) m_modules.append(new WidgetModule("system_proxy_box", tr("System Proxy"), [this](ComboxWidget *proxyTypeBox) { m_proxyTypeBox = proxyTypeBox; proxyTypeBox->setTitle(tr("Proxy Type")); + proxyTypeBox->addBackground(); proxyTypeBox->comboBox()->addItems(m_ProxyMethodList); auto updateBox = [proxyTypeBox]() { ProxyMethod method = NetworkController::instance()->proxyController()->proxyMethod();