| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -176,6 +176,7 @@ WifiUI::WifiUI(QWidget *parent, WifiManager* wifi) : QWidget(parent), wifi(wifi) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  } | 
					 | 
					 | 
					 | 
					  } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  lock = QPixmap(ASSET_PATH + "offroad/icon_lock_closed.svg").scaledToWidth(49, Qt::SmoothTransformation); | 
					 | 
					 | 
					 | 
					  lock = QPixmap(ASSET_PATH + "offroad/icon_lock_closed.svg").scaledToWidth(49, Qt::SmoothTransformation); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  checkmark = QPixmap(ASSET_PATH + "offroad/icon_checkmark.svg").scaledToWidth(49, Qt::SmoothTransformation); | 
					 | 
					 | 
					 | 
					  checkmark = QPixmap(ASSET_PATH + "offroad/icon_checkmark.svg").scaledToWidth(49, Qt::SmoothTransformation); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					  circled_slash = QPixmap(ASSET_PATH + "img_circled_slash.svg").scaledToWidth(49, Qt::SmoothTransformation); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  QLabel *scanning = new QLabel("Scanning for networks..."); | 
					 | 
					 | 
					 | 
					  QLabel *scanning = new QLabel("Scanning for networks..."); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  scanning->setStyleSheet("font-size: 65px;"); | 
					 | 
					 | 
					 | 
					  scanning->setStyleSheet("font-size: 65px;"); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -219,6 +220,9 @@ WifiUI::WifiUI(QWidget *parent, WifiManager* wifi) : QWidget(parent), wifi(wifi) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    #ssidLabel[disconnected=false] { | 
					 | 
					 | 
					 | 
					    #ssidLabel[disconnected=false] { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      font-weight: 500; | 
					 | 
					 | 
					 | 
					      font-weight: 500; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    } | 
					 | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    #ssidLabel:disabled { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      color: #696969; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  )"); | 
					 | 
					 | 
					 | 
					  )"); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					} | 
					 | 
					 | 
					 | 
					} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -245,10 +249,11 @@ void WifiUI::refresh() { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    // Clickable SSID label
 | 
					 | 
					 | 
					 | 
					    // Clickable SSID label
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    QPushButton *ssidLabel = new QPushButton(network.ssid); | 
					 | 
					 | 
					 | 
					    QPushButton *ssidLabel = new QPushButton(network.ssid); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    ssidLabel->setObjectName("ssidLabel"); | 
					 | 
					 | 
					 | 
					    ssidLabel->setObjectName("ssidLabel"); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    ssidLabel->setEnabled(network.connected == ConnectedType::DISCONNECTED && | 
					 | 
					 | 
					 | 
					    ssidLabel->setEnabled(network.security_type != SecurityType::UNSUPPORTED); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                          network.security_type != SecurityType::UNSUPPORTED); | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    ssidLabel->setProperty("disconnected", network.connected == ConnectedType::DISCONNECTED); | 
					 | 
					 | 
					 | 
					    ssidLabel->setProperty("disconnected", network.connected == ConnectedType::DISCONNECTED); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    QObject::connect(ssidLabel, &QPushButton::clicked, this, [=]() { emit connectToNetwork(network); }); | 
					 | 
					 | 
					 | 
					    if (network.connected == ConnectedType::DISCONNECTED) { | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      QObject::connect(ssidLabel, &QPushButton::clicked, this, [=]() { emit connectToNetwork(network); }); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    hlayout->addWidget(ssidLabel, network.connected == ConnectedType::CONNECTING ? 0 : 1); | 
					 | 
					 | 
					 | 
					    hlayout->addWidget(ssidLabel, network.connected == ConnectedType::CONNECTING ? 0 : 1); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    if (network.connected == ConnectedType::CONNECTING) { | 
					 | 
					 | 
					 | 
					    if (network.connected == ConnectedType::CONNECTING) { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -274,6 +279,10 @@ void WifiUI::refresh() { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      QLabel *connectIcon = new QLabel(); | 
					 | 
					 | 
					 | 
					      QLabel *connectIcon = new QLabel(); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      connectIcon->setPixmap(checkmark); | 
					 | 
					 | 
					 | 
					      connectIcon->setPixmap(checkmark); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      hlayout->addWidget(connectIcon, 0, Qt::AlignRight); | 
					 | 
					 | 
					 | 
					      hlayout->addWidget(connectIcon, 0, Qt::AlignRight); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    } else if (network.security_type == SecurityType::UNSUPPORTED) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      QLabel *unsupportedIcon = new QLabel(); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      unsupportedIcon->setPixmap(circled_slash); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      hlayout->addWidget(unsupportedIcon, 0, Qt::AlignRight); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    } else if (network.security_type == SecurityType::WPA) { | 
					 | 
					 | 
					 | 
					    } else if (network.security_type == SecurityType::WPA) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      QLabel *lockIcon = new QLabel(); | 
					 | 
					 | 
					 | 
					      QLabel *lockIcon = new QLabel(); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      lockIcon->setPixmap(lock); | 
					 | 
					 | 
					 | 
					      lockIcon->setPixmap(lock); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |