@@ -52,11 +52,11 @@ const { Workspace } = imports.ui.workspace;
52
52
const { WorkspaceThumbnail } = imports . ui . workspaceThumbnail ;
53
53
const Tags = Me . imports . tags ;
54
54
55
- const STYLESHEET_PATHS = [ 'light' , 'dark' ] . map ( stylesheet_path ) ;
55
+ const STYLESHEET_PATHS = [ 'light' , 'dark' , 'highcontrast' ] . map ( stylesheet_path ) ;
56
56
const STYLESHEETS = STYLESHEET_PATHS . map ( ( path ) => Gio . File . new_for_path ( path ) ) ;
57
57
const GNOME_VERSION = imports . misc . config . PACKAGE_VERSION ;
58
58
59
- enum Style { Light , Dark }
59
+ enum Style { Light , Dark , HighContrast }
60
60
61
61
interface Display {
62
62
area : Rectangle ;
@@ -108,7 +108,7 @@ export class Ext extends Ecs.System<ExtEvent> {
108
108
column_size : number = 32 ;
109
109
110
110
/** The currently-loaded theme variant */
111
- current_style : Style = this . settings . is_dark_shell ( ) ? Style . Dark : Style . Light ;
111
+ current_style : Style = Style . Dark ;
112
112
113
113
/** Set when the display configuration has been triggered for execution */
114
114
displays_updating : SignalID | null = null ;
@@ -215,6 +215,7 @@ export class Ext extends Ecs.System<ExtEvent> {
215
215
super ( new Executor . GLibExecutor ( ) ) ;
216
216
217
217
this . load_settings ( ) ;
218
+ this . reload_theme ( )
218
219
219
220
this . register_fn ( ( ) => load_theme ( this . current_style ) ) ;
220
221
@@ -249,8 +250,8 @@ export class Ext extends Ecs.System<ExtEvent> {
249
250
for ( const window of this . tab_list ( Meta . TabList . NORMAL , null ) ) {
250
251
wins . push ( [
251
252
window . entity ,
252
- window . meta . get_title ( ) ,
253
- window . name ( this ) ,
253
+ window . title ( ) ,
254
+ window . name ( this )
254
255
] )
255
256
}
256
257
@@ -500,7 +501,7 @@ export class Ext extends Ecs.System<ExtEvent> {
500
501
let wmclass = win . meta . get_wm_class ( ) ;
501
502
if ( wmclass ) this . conf . add_window_exception (
502
503
wmclass ,
503
- win . meta . get_title ( )
504
+ win . title ( )
504
505
) ;
505
506
this . exception_dialog ( )
506
507
} ,
@@ -1379,11 +1380,19 @@ export class Ext extends Ecs.System<ExtEvent> {
1379
1380
}
1380
1381
1381
1382
on_gtk_shell_changed ( ) {
1382
- load_theme ( this . settings . is_dark_shell ( ) ? Style . Dark : Style . Light ) ;
1383
+ this . reload_theme ( ) ;
1384
+ load_theme ( this . current_style )
1383
1385
}
1384
1386
1385
1387
on_gtk_theme_change ( ) {
1386
- load_theme ( this . settings . is_dark_shell ( ) ? Style . Dark : Style . Light ) ;
1388
+ this . reload_theme ( )
1389
+ load_theme ( this . current_style )
1390
+ }
1391
+
1392
+ reload_theme ( ) {
1393
+ this . current_style = this . settings . is_dark ( )
1394
+ ? Style . Dark
1395
+ : this . settings . is_high_contrast ( ) ? Style . HighContrast : Style . Light
1387
1396
}
1388
1397
1389
1398
/** Handle window maximization notifications */
@@ -2048,7 +2057,7 @@ export class Ext extends Ecs.System<ExtEvent> {
2048
2057
let actor = window . meta . get_compositor_private ( ) ;
2049
2058
if ( actor ) {
2050
2059
if ( ! window . meta . minimized ) {
2051
- tiler . auto_tile ( this , window , true ) ;
2060
+ tiler . auto_tile ( this , window , false ) ;
2052
2061
}
2053
2062
}
2054
2063
}
0 commit comments