@@ -46,15 +46,15 @@ class FSWidgets {
4646 constructor ( mount : string ) {
4747 this . mount = new St . Label ( {
4848 text : mount ,
49- style_class : 'menu-label' ,
49+ style_class : 'tophat- menu-label' ,
5050 } ) ;
5151 this . usage = new St . Label ( {
52- style_class : 'menu-value' ,
52+ style_class : 'tophat- menu-value' ,
5353 x_expand : true ,
5454 } ) ;
5555 this . capacity = new CapacityBar ( ) ;
5656 this . size = new St . Label ( {
57- style_class : 'menu-details align-right menu-section-end' ,
57+ style_class : 'tophat- menu-details align-right tophat- menu-section-end' ,
5858 } ) ;
5959 }
6060}
@@ -164,45 +164,47 @@ export const DiskMonitor = GObject.registerClass(
164164
165165 let label = new St . Label ( {
166166 text : _ ( 'Disk activity' ) ,
167- style_class : 'menu-header' ,
167+ style_class : 'tophat- menu-header' ,
168168 } ) ;
169169 this . addMenuRow ( label , 0 , 3 , 1 ) ;
170170
171171 label = new St . Label ( {
172172 text : _ ( 'Reading:' ) ,
173- style_class : 'menu-label' ,
173+ style_class : 'tophat- menu-label' ,
174174 } ) ;
175175 this . addMenuRow ( label , 0 , 2 , 1 ) ;
176176 this . menuDiskReads . text = MeterNoVal ;
177- this . menuDiskReads . add_style_class_name ( 'menu-value' ) ;
177+ this . menuDiskReads . add_style_class_name ( 'tophat- menu-value' ) ;
178178 this . addMenuRow ( this . menuDiskReads , 2 , 1 , 1 ) ;
179179
180180 label = new St . Label ( {
181181 text : _ ( 'Writing:' ) ,
182- style_class : 'menu-label' ,
182+ style_class : 'tophat- menu-label' ,
183183 } ) ;
184184 this . addMenuRow ( label , 0 , 2 , 1 ) ;
185185 this . menuDiskWrites . text = MeterNoVal ;
186- this . menuDiskWrites . add_style_class_name ( 'menu-value menu-section-end' ) ;
186+ this . menuDiskWrites . add_style_class_name (
187+ 'tophat-menu-value tophat-menu-section-end'
188+ ) ;
187189 this . addMenuRow ( this . menuDiskWrites , 2 , 1 , 1 ) ;
188190
189191 label = new St . Label ( {
190192 text : _ ( 'Total read:' ) ,
191- style_class : 'menu-label' ,
193+ style_class : 'tophat- menu-label' ,
192194 } ) ;
193195 this . addMenuRow ( label , 0 , 2 , 1 ) ;
194196 this . menuDiskReadsTotal . text = MeterNoVal ;
195- this . menuDiskReadsTotal . add_style_class_name ( 'menu-value' ) ;
197+ this . menuDiskReadsTotal . add_style_class_name ( 'tophat- menu-value' ) ;
196198 this . addMenuRow ( this . menuDiskReadsTotal , 2 , 1 , 1 ) ;
197199
198200 label = new St . Label ( {
199201 text : _ ( 'Total written:' ) ,
200- style_class : 'menu-label' ,
202+ style_class : 'tophat- menu-label' ,
201203 } ) ;
202204 this . addMenuRow ( label , 0 , 2 , 1 ) ;
203205 this . menuDiskWritesTotal . text = MeterNoVal ;
204206 this . menuDiskWritesTotal . add_style_class_name (
205- 'menu-value menu-section-end'
207+ 'tophat- menu-value tophat- menu-section-end'
206208 ) ;
207209 this . addMenuRow ( this . menuDiskWritesTotal , 2 , 1 , 1 ) ;
208210
@@ -212,38 +214,38 @@ export const DiskMonitor = GObject.registerClass(
212214
213215 label = new St . Label ( {
214216 text : _ ( 'Top processes' ) ,
215- style_class : 'menu-header' ,
217+ style_class : 'tophat- menu-header' ,
216218 } ) ;
217219 this . addMenuRow ( label , 0 , 3 , 1 ) ;
218220
219221 label = new St . Label ( { text : '' } ) ;
220222 this . addMenuRow ( label , 0 , 1 , 1 ) ;
221223 label = new St . Label ( {
222224 text : _ ( 'Writing' ) ,
223- style_class : 'menu-subheader' ,
225+ style_class : 'tophat- menu-subheader' ,
224226 } ) ;
225227 this . addMenuRow ( label , 1 , 1 , 1 ) ;
226228 label = new St . Label ( {
227229 text : _ ( 'Reading' ) ,
228- style_class : 'menu-subheader' ,
230+ style_class : 'tophat- menu-subheader' ,
229231 } ) ;
230232 this . addMenuRow ( label , 2 , 1 , 1 ) ;
231233 for ( let i = 0 ; i < NumTopProcs ; i ++ ) {
232- this . topProcs [ i ] . cmd . set_style_class_name ( 'menu-cmd-name' ) ;
234+ this . topProcs [ i ] . cmd . set_style_class_name ( 'tophat- menu-cmd-name' ) ;
233235 this . addMenuRow ( this . topProcs [ i ] . cmd , 0 , 1 , 1 ) ;
234236 this . topProcs [ i ] . setTooltip ( ) ;
235- this . topProcs [ i ] . in . set_style_class_name ( 'menu-cmd-activity' ) ;
237+ this . topProcs [ i ] . in . set_style_class_name ( 'tophat- menu-cmd-activity' ) ;
236238 this . addMenuRow ( this . topProcs [ i ] . in , 1 , 1 , 1 ) ;
237- this . topProcs [ i ] . out . set_style_class_name ( 'menu-cmd-activity' ) ;
239+ this . topProcs [ i ] . out . set_style_class_name ( 'tophat- menu-cmd-activity' ) ;
238240 if ( i === NumTopProcs - 1 ) {
239- this . topProcs [ i ] . out . add_style_class_name ( 'menu-section-end' ) ;
241+ this . topProcs [ i ] . out . add_style_class_name ( 'tophat- menu-section-end' ) ;
240242 }
241243 this . addMenuRow ( this . topProcs [ i ] . out , 2 , 1 , 1 ) ;
242244 }
243245
244246 label = new St . Label ( {
245247 text : _ ( 'Filesystem usage' ) ,
246- style_class : 'menu-header' ,
248+ style_class : 'tophat- menu-header' ,
247249 } ) ;
248250 this . addMenuRow ( label , 0 , 3 , 1 ) ;
249251
0 commit comments