File tree Expand file tree Collapse file tree 3 files changed +15
-16
lines changed
crates/wsrx-desktop-gpui/src/views Expand file tree Collapse file tree 3 files changed +15
-16
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ impl Render for NetworkLogsView {
160160 use chrono:: Local ;
161161 this. logs . push_back ( LogEntry {
162162 timestamp : Local :: now ( ) . format ( "%Y-%m-%d %H:%M:%S" ) . to_string ( ) ,
163- level : LogLevel :: Info ,
163+ level : "INFO" . to_string ( ) ,
164164 target : "wsrx::test" . to_string ( ) ,
165165 message : format ! ( "Sample log entry #{}" , this. logs. len( ) + 1 ) ,
166166 } ) ;
Original file line number Diff line number Diff line change @@ -69,16 +69,8 @@ impl Render for SettingsView {
6969 . flex_col ( )
7070 . child ( self . render_section_title ( "Application" ) )
7171 . child ( self . render_setting_row (
72- "Auto-start Daemon" ,
73- if self . settings . daemon_auto_start {
74- "Enabled"
75- } else {
76- "Disabled"
77- } ,
78- ) )
79- . child ( self . render_setting_row (
80- "Show Network Logs" ,
81- if self . settings . show_network_logs {
72+ "Running in Tray" ,
73+ if self . settings . running_in_tray {
8274 "Enabled"
8375 } else {
8476 "Disabled"
@@ -97,15 +89,22 @@ impl Render for SettingsView {
9789 Theme :: Dark => "Dark" ,
9890 Theme :: Auto => "Auto" ,
9991 } ,
92+ ) )
93+ . child ( self . render_setting_row (
94+ "Language" ,
95+ & self . settings . language ,
10096 ) ) ,
10197 )
10298 . child (
10399 div ( )
104100 . flex ( )
105101 . flex_col ( )
106- . child ( self . render_section_title ( "Logging" ) )
102+ . child ( self . render_section_title ( "Daemon" ) )
103+ . child (
104+ self . render_setting_row ( "API Port" , & self . settings . api_port . to_string ( ) ) ,
105+ )
107106 . child (
108- self . render_setting_row ( "Log Level " , & self . settings . logging_level ) ,
107+ self . render_setting_row ( "Status " , if self . settings . online { "Online" } else { "Offline" } ) ,
109108 ) ,
110109 )
111110 . child (
Original file line number Diff line number Diff line change @@ -109,12 +109,12 @@ impl Render for SidebarView {
109109 . bg ( colors:: layer_1 ( ) )
110110 . border_r_1 ( )
111111 . border_color ( colors:: element_border ( ) )
112- . child ( self . render_tab ( "home" , t ! ( "get_started" ) , "icons/home.svg" , cx) )
113- . child ( self . render_tab ( "logs" , t ! ( "network_logs" ) , "icons/code.svg" , cx) )
112+ . child ( self . render_tab ( "home" , & t ! ( "get_started" ) , "icons/home.svg" , cx) )
113+ . child ( self . render_tab ( "logs" , & t ! ( "network_logs" ) , "icons/code.svg" , cx) )
114114 . child (
115115 // Spacer
116116 div ( ) . flex_1 ( ) ,
117117 )
118- . child ( self . render_tab ( "settings" , t ! ( "settings" ) , "icons/settings.svg" , cx) )
118+ . child ( self . render_tab ( "settings" , & t ! ( "settings" ) , "icons/settings.svg" , cx) )
119119 }
120120}
You can’t perform that action at this time.
0 commit comments