@@ -122,6 +122,7 @@ export class SettingsSection extends PluginSettingTab
122
122
{
123
123
super ( app , plugin )
124
124
125
+ this . app = app
125
126
this . plugin = plugin
126
127
this . Hide_Global = true
127
128
this . Hide_Github = true
@@ -148,9 +149,9 @@ export class SettingsSection extends PluginSettingTab
148
149
associated to hovering color picker, not color element
149
150
*/
150
151
151
- new_ColorPicker ( plugin : GistrPlugin , el : HTMLElement , setting : Setting , id : keyof ColorPickrOpts , bHidden ?: ( ) => boolean )
152
+ new_ColorPicker ( app : App , plugin : GistrPlugin , el : HTMLElement , setting : Setting , id : keyof ColorPickrOpts , bHidden ?: ( ) => boolean )
152
153
{
153
- const pickr : ColorPicker = new ColorPicker ( plugin , el , setting )
154
+ const pickr : ColorPicker = new ColorPicker ( app , plugin , el , setting )
154
155
155
156
pickr
156
157
. on ( "init" , ( color : Pickr . HSVaColor , instance : Pickr ) =>
@@ -591,7 +592,7 @@ export class SettingsSection extends PluginSettingTab
591
592
. setDesc ( cfg_tab_og_cb_light_desc )
592
593
. then ( ( setting ) => { this . new_ColorPicker
593
594
(
594
- this . plugin , elm , setting ,
595
+ this . app , this . plugin , elm , setting ,
595
596
"og_clr_bg_light" ,
596
597
) } )
597
598
@@ -611,7 +612,7 @@ export class SettingsSection extends PluginSettingTab
611
612
. setDesc ( cfg_tab_og_cb_dark_desc )
612
613
. then ( ( setting ) => { this . new_ColorPicker
613
614
(
614
- this . plugin , elm , setting ,
615
+ this . app , this . plugin , elm , setting ,
615
616
"og_clr_bg_dark" ,
616
617
) } )
617
618
@@ -631,7 +632,7 @@ export class SettingsSection extends PluginSettingTab
631
632
. setDesc ( cfg_tab_og_tx_light_desc )
632
633
. then ( ( setting ) => { this . new_ColorPicker
633
634
(
634
- this . plugin , elm , setting ,
635
+ this . app , this . plugin , elm , setting ,
635
636
"og_clr_tx_light" ,
636
637
) } )
637
638
@@ -649,10 +650,10 @@ export class SettingsSection extends PluginSettingTab
649
650
new Setting ( elm )
650
651
. setName ( lng ( "cfg_tab_og_tx_dark_name" ) )
651
652
. setDesc ( cfg_tab_og_tx_dark_desc )
652
- . then ( ( setting ) => { this . new_ColorPicker
653
- (
654
- this . plugin , elm , setting ,
655
- "og_clr_tx_dark" ,
653
+ . then ( ( setting ) => { this . new_ColorPicker
654
+ (
655
+ this . app , this . plugin , elm , setting ,
656
+ "og_clr_tx_dark" ,
656
657
) } )
657
658
658
659
/*
@@ -669,10 +670,10 @@ export class SettingsSection extends PluginSettingTab
669
670
new Setting ( elm )
670
671
. setName ( lng ( "cfg_tab_og_sb_light_name" ) )
671
672
. setDesc ( cfg_tab_og_sb_light_desc )
672
- . then ( ( setting ) => { this . new_ColorPicker
673
- (
674
- this . plugin , elm , setting ,
675
- "og_clr_sb_light" ,
673
+ . then ( ( setting ) => { this . new_ColorPicker
674
+ (
675
+ this . app , this . plugin , elm , setting ,
676
+ "og_clr_sb_light" ,
676
677
) } )
677
678
678
679
/*
@@ -689,10 +690,10 @@ export class SettingsSection extends PluginSettingTab
689
690
new Setting ( elm )
690
691
. setName ( lng ( "cfg_tab_og_sb_dark_name" ) )
691
692
. setDesc ( cfg_tab_og_sb_dark_desc )
692
- . then ( ( setting ) => { this . new_ColorPicker
693
- (
694
- this . plugin , elm , setting ,
695
- "og_clr_sb_dark" ,
693
+ . then ( ( setting ) => { this . new_ColorPicker
694
+ (
695
+ this . app , this . plugin , elm , setting ,
696
+ "og_clr_sb_dark" ,
696
697
) } )
697
698
698
699
/*
@@ -1272,7 +1273,7 @@ export class SettingsSection extends PluginSettingTab
1272
1273
. setDesc ( cfg_tab_gh_cb_light_desc )
1273
1274
. then ( ( setting ) => { this . new_ColorPicker
1274
1275
(
1275
- this . plugin , elm , setting ,
1276
+ this . app , this . plugin , elm , setting ,
1276
1277
"gh_clr_bg_light" ,
1277
1278
) } )
1278
1279
@@ -1290,10 +1291,10 @@ export class SettingsSection extends PluginSettingTab
1290
1291
new Setting ( elm )
1291
1292
. setName ( lng ( "cfg_tab_gh_cb_dark_name" ) )
1292
1293
. setDesc ( cfg_tab_gh_cb_dark_desc )
1293
- . then ( ( setting ) => { this . new_ColorPicker
1294
- (
1295
- this . plugin , elm , setting ,
1296
- "gh_clr_bg_dark" ,
1294
+ . then ( ( setting ) => { this . new_ColorPicker
1295
+ (
1296
+ this . app , this . plugin , elm , setting ,
1297
+ "gh_clr_bg_dark" ,
1297
1298
) } )
1298
1299
1299
1300
/*
@@ -1312,7 +1313,7 @@ export class SettingsSection extends PluginSettingTab
1312
1313
. setDesc ( cfg_tab_gh_tx_light_desc )
1313
1314
. then ( ( setting ) => { this . new_ColorPicker
1314
1315
(
1315
- this . plugin , elm , setting ,
1316
+ this . app , this . plugin , elm , setting ,
1316
1317
"gh_clr_tx_light" ,
1317
1318
) } )
1318
1319
@@ -1330,10 +1331,10 @@ export class SettingsSection extends PluginSettingTab
1330
1331
new Setting ( elm )
1331
1332
. setName ( lng ( "cfg_tab_gh_tx_dark_name" ) )
1332
1333
. setDesc ( cfg_tab_gh_tx_dark_desc )
1333
- . then ( ( setting ) => { this . new_ColorPicker
1334
- (
1335
- this . plugin , elm , setting ,
1336
- "gh_clr_tx_dark" ,
1334
+ . then ( ( setting ) => { this . new_ColorPicker
1335
+ (
1336
+ this . app , this . plugin , elm , setting ,
1337
+ "gh_clr_tx_dark" ,
1337
1338
) } )
1338
1339
1339
1340
@@ -1351,10 +1352,10 @@ export class SettingsSection extends PluginSettingTab
1351
1352
new Setting ( elm )
1352
1353
. setName ( lng ( "cfg_tab_gh_sb_light_name" ) )
1353
1354
. setDesc ( cfg_tab_gh_sb_light_name )
1354
- . then ( ( setting ) => { this . new_ColorPicker
1355
- (
1356
- this . plugin , elm , setting ,
1357
- "gh_clr_sb_light" ,
1355
+ . then ( ( setting ) => { this . new_ColorPicker
1356
+ (
1357
+ this . app , this . plugin , elm , setting ,
1358
+ "gh_clr_sb_light" ,
1358
1359
) } )
1359
1360
1360
1361
/*
@@ -1371,10 +1372,10 @@ export class SettingsSection extends PluginSettingTab
1371
1372
new Setting ( elm )
1372
1373
. setName ( lng ( "cfg_tab_gh_sb_dark_name" ) )
1373
1374
. setDesc ( cfg_tab_gh_sb_dark_desc )
1374
- . then ( ( setting ) => { this . new_ColorPicker
1375
- (
1376
- this . plugin , elm , setting ,
1377
- "gh_clr_sb_dark" ,
1375
+ . then ( ( setting ) => { this . new_ColorPicker
1376
+ (
1377
+ this . app , this . plugin , elm , setting ,
1378
+ "gh_clr_sb_dark" ,
1378
1379
) } )
1379
1380
1380
1381
/*
@@ -1852,10 +1853,10 @@ export class SettingsSection extends PluginSettingTab
1852
1853
new Setting ( elm )
1853
1854
. setName ( lng ( "cfg_tab_sy_list_icon_name" ) )
1854
1855
. setDesc ( cfg_tab_sy_list_icon_desc )
1855
- . then ( ( setting ) => { this . new_ColorPicker
1856
- (
1857
- this . plugin , elm , setting ,
1858
- "sy_clr_lst_icon" ,
1856
+ . then ( ( setting ) => { this . new_ColorPicker
1857
+ (
1858
+ this . app , this . plugin , elm , setting ,
1859
+ "sy_clr_lst_icon" ,
1859
1860
) } )
1860
1861
1861
1862
/*
0 commit comments