@@ -103,20 +103,20 @@ impl App {
103
103
} ;
104
104
Paragraph :: new ( element. get_qrcode ( ) )
105
105
. block ( Block :: default ( ) . title ( title) . borders ( Borders :: ALL ) )
106
- . style ( Style :: default ( ) . fg ( Color :: White ) . bg ( Color :: Black ) )
106
+ . style ( Style :: default ( ) . fg ( Color :: White ) . bg ( Color :: Reset ) )
107
107
. alignment ( Alignment :: Center )
108
108
. wrap ( Wrap { trim : true } )
109
109
} else {
110
110
Paragraph :: new ( "No element is selected" )
111
111
. block ( Block :: default ( ) . title ( "Nope" ) . borders ( Borders :: ALL ) )
112
- . style ( Style :: default ( ) . fg ( Color :: White ) . bg ( Color :: Black ) )
112
+ . style ( Style :: default ( ) . fg ( Color :: White ) . bg ( Color :: Reset ) )
113
113
. alignment ( Alignment :: Center )
114
114
. wrap ( Wrap { trim : true } )
115
115
}
116
116
} else {
117
117
Paragraph :: new ( "No element is selected" )
118
118
. block ( Block :: default ( ) . title ( "Nope" ) . borders ( Borders :: ALL ) )
119
- . style ( Style :: default ( ) . fg ( Color :: White ) . bg ( Color :: Black ) )
119
+ . style ( Style :: default ( ) . fg ( Color :: White ) . bg ( Color :: Reset ) )
120
120
. alignment ( Alignment :: Center )
121
121
. wrap ( Wrap { trim : true } )
122
122
} ;
@@ -138,9 +138,9 @@ impl App {
138
138
. direction ( Direction :: Vertical )
139
139
. constraints (
140
140
[
141
- Constraint :: Length ( 3 ) , // Search bar
142
- Constraint :: Length ( height - 3 - 6 ) , // Table + Info Box
143
- Constraint :: Length ( 6 ) , // Progress bar
141
+ Constraint :: Length ( 3 ) , // Search bar
142
+ Constraint :: Length ( height - 8 ) , // Table + Info Box
143
+ Constraint :: Length ( 1 ) , // Progress bar
144
144
]
145
145
. as_ref ( ) ,
146
146
)
@@ -159,7 +159,7 @@ impl App {
159
159
Color :: White
160
160
} ) ) ,
161
161
)
162
- . style ( Style :: default ( ) . fg ( Color :: White ) . bg ( Color :: Black ) )
162
+ . style ( Style :: default ( ) . fg ( Color :: White ) . bg ( Color :: Reset ) )
163
163
. alignment ( Alignment :: Center )
164
164
. wrap ( Wrap { trim : true } ) ;
165
165
@@ -173,14 +173,13 @@ impl App {
173
173
. gauge_style (
174
174
Style :: default ( )
175
175
. bg ( Color :: White )
176
- . fg ( Color :: Black )
176
+ . fg ( Color :: DarkGray )
177
177
. add_modifier ( Modifier :: BOLD ) ,
178
178
)
179
179
. percent ( self . progress )
180
180
. label ( progress_label) ;
181
181
182
182
frame. render_widget ( search_bar, rects[ 0 ] ) ;
183
- //frame.render_stateful_widget(t, rects[1], &mut self.table.state);
184
183
self . render_table_box ( frame, rects[ 1 ] ) ;
185
184
frame. render_widget ( progress_bar, rects[ 2 ] ) ;
186
185
if self . focus == Focus :: Popup {
@@ -286,7 +285,7 @@ impl App {
286
285
) ;
287
286
let paragraph = Paragraph :: new ( text)
288
287
. block ( Block :: default ( ) . title ( "Code info" ) . borders ( Borders :: ALL ) )
289
- . style ( Style :: default ( ) . fg ( Color :: White ) . bg ( Color :: Black ) )
288
+ . style ( Style :: default ( ) . fg ( Color :: White ) . bg ( Color :: Reset ) )
290
289
. alignment ( Alignment :: Left )
291
290
. wrap ( Wrap { trim : true } ) ;
292
291
frame. render_stateful_widget ( t, chunks[ 0 ] , & mut self . table . state ) ;
0 commit comments