feat: enable show or hide traffic graph

This commit is contained in:
GyDi
2022-02-19 18:14:40 +08:00
parent 051b529c11
commit 5b5a299b55
8 changed files with 51 additions and 41 deletions

View File

@@ -13,6 +13,9 @@ pub struct VergeConfig {
/// maybe be able to set the alpha
pub theme_blur: Option<bool>,
/// enable traffic graph default is true
pub traffic_graph: Option<bool>,
/// can the app auto startup
pub enable_auto_launch: Option<bool>,
@@ -195,6 +198,9 @@ impl Verge {
if patch.theme_blur.is_some() {
self.config.theme_blur = patch.theme_blur;
}
if patch.traffic_graph.is_some() {
self.config.traffic_graph = patch.traffic_graph;
}
// should update system startup
if patch.enable_auto_launch.is_some() {

View File

@@ -22,6 +22,8 @@ items: ~
pub const VERGE_CONFIG: &[u8] = b"# Defaulf Config For Clash Verge
theme_mode: light
theme_blur: false
traffic_graph: true
enable_self_startup: false
enable_system_proxy: false
system_proxy_bypass: localhost;127.*;10.*;192.168.*;<local>