This file is indexed.

/usr/share/gnome-shell/extensions/TaskBar@zpydr/prefs.js is in gnome-shell-extension-taskbar 57.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
//  GNOME Shell Extension TaskBar
//  Copyright (C) 2013-2018 zpydr
//
//  Version 57
//
//  This program is free software: you can redistribute it and/or modify
//  it under the terms of the GNU General Public License as published by
//  the Free Software Foundation, either version 3 of the License, or
//  (at your option) any later version.
//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.
//
//  You should have received a copy of the GNU General Public License
//  along with this program.  If not, see <https://www.gnu.org/licenses/>.
//
//  zpydr@openmailbox.org

const Gio = imports.gi.Gio;
const GLib = imports.gi.GLib;
const Gdk = imports.gi.Gdk;
const GdkPixbuf = imports.gi.GdkPixbuf;
const GObject = imports.gi.GObject;
const Gtk = imports.gi.Gtk;
const Lang = imports.lang;

const Extension = imports.misc.extensionUtils.getCurrentExtension();
const Lib = Extension.imports.lib;

const Gettext = imports.gettext.domain('TaskBar');
const _ = Gettext.gettext;

const Config = imports.misc.config;
const ExtensionUtils = imports.misc.extensionUtils;
const ShellVersion = imports.misc.config.PACKAGE_VERSION.split(".").map(function(x) {
	return +x;
});

const schema = "org.gnome.shell.extensions.TaskBar";

const RESETCOLOR = 'rgba(0,0,0,0)';
const RESETCOLORBLACK = 'rgba(0,0,0,1.0)';
const RESETCOLORWHITE = 'rgba(255,255,255,1.0)';
const RESETCOLORRED = 'rgba(255,0,0,1.0)';

const DESKTOPICON = Extension.path + '/images/desktop-button-default.png';
const APPVIEWICON = Extension.path + '/images/appview-button-default.svg';
const TRAYICON = Extension.path + '/images/bottom-panel-tray-button.svg';
const HOMEICON = Extension.path + '/images/settings-home.png';
const MAILICON = Extension.path + '/images/settings-mail.png';
const GNOMEICON = Extension.path + '/images/settings-gnome.png';
const FSFICON = Extension.path + '/images/settings-fsf.png';
const GPLICON = Extension.path + '/images/settings-gpl.png';
const SPACERICON = Extension.path + '/images/settings-1px.png';

const pretty_names = {
	'key-previous-task': _('Focus previous Task (Scroll left)'),
	'key-next-task': _('Focus next Task (Scroll right)'),
	'key-toggle-desktop': _('Toggle Desktop View'),
}

function init() {
	initTranslations("TaskBar");
}

/**
 * initTranslations:
 * @domain: (optional): the gettext domain to use
 *
 * Initialize Gettext to load translations from extensionsdir/locale.
 * If @domain is not provided, it will be taken from metadata['gettext-domain']
 */
function initTranslations(domain) {
	let extension = ExtensionUtils.getCurrentExtension();

	domain = domain || extension.metadata['gettext-domain'];

	// check if this extension was built with "make zip-file", and thus
	// has the locale files in a subfolder
	// otherwise assume that extension has been installed in the
	// same prefix as gnome-shell
	let localeDir = extension.dir.get_child('locale');
	if (localeDir.query_exists(null))
		imports.gettext.bindtextdomain(domain, localeDir.get_path());
	else
		imports.gettext.bindtextdomain(domain, Config.LOCALEDIR);
}

function buildPrefsWidget() {
	let prefs = new Prefs(schema);
	return prefs.buildPrefsWidget();
}

function Prefs(schema) {
	this.init(schema);
}

Prefs.prototype = {
	settings: null,

	init: function(schema) {
		let settings = new Lib.Settings(schema);
		this.settings = settings.getSettings();
	},

	buildPrefsWidget: function() {
		let notebook = new Gtk.Notebook();
		notebook.set_scrollable(true);
		notebook.popup_enable;
		notebook.set_tab_pos(0);
		this.newValueAppearance = null;
		this.oldValueAppearance = null;

		this.gridTaskBar = new Gtk.Grid();
		this.gridTaskBar.margin = this.gridTaskBar.row_spacing = 10;
		this.gridTaskBar.column_spacing = 2;

		let scrollWindowTaskBar = this.gridTaskBar;

		scrollWindowTaskBar.show_all();
		let labelTaskBar = new Gtk.Label({
			label: _("About")
		});
		notebook.append_page(scrollWindowTaskBar, labelTaskBar);

		let linkImage1 = new Gtk.Image({
			file: HOMEICON
		});
		let linkImage2 = new Gtk.Image({
			file: HOMEICON
		});
		let linkImage3 = new Gtk.Image({
			file: MAILICON
		});
		let linkImage4 = new Gtk.Image({
			file: MAILICON
		});
		let linkImage5 = new Gtk.Image({
			file: DESKTOPICON
		});
		let linkImage6 = new Gtk.Image({
			file: GNOMEICON
		});
		let linkImage7 = new Gtk.Image({
			file: FSFICON
		});
		let linkImage8 = new Gtk.Image({
			file: SPACERICON
		});
		let linkImage9 = new Gtk.Image({
			file: HOMEICON
		});

		let labelVersion1 = new Gtk.Label({
			label: _("Version") + " 57"
		});
		this.gridTaskBar.attach(labelVersion1, 0, 1, 5, 1);
		let labelVersion2 = new Gtk.Label({
			label: _("GNOME Shell Version") + " 3." + ShellVersion[1]
		});
		this.gridTaskBar.attach(labelVersion2, 0, 2, 5, 1);
		let labelLink3 = new Gtk.LinkButton({
			image: linkImage8,
			label: "zpydr@openmailbox.org",
			uri: "mailto:zpydr@openmailbox.org"
		});
		labelLink3.set_always_show_image(true);
		this.gridTaskBar.attach(labelLink3, 1, 3, 3, 1);
		let labelLink1 = new Gtk.LinkButton({
			image: linkImage1,
			label: " extensions.gnome.org",
			uri: "https://extensions.gnome.org/extension/584/taskbar",
			xalign: 0
		});
		labelLink1.set_always_show_image(true);
		this.gridTaskBar.attach(labelLink1, 1, 4, 1, 1);
		let labelLink2 = new Gtk.LinkButton({
			image: linkImage2,
			label: " github.com",
			uri: "https://github.com/zpydr/gnome-shell-extension-taskbar",
			xalign: 0
		});
		labelLink2.set_always_show_image(true);
		this.gridTaskBar.attach(labelLink2, 1, 5, 1, 1);
		let labelLink7 = new Gtk.LinkButton({
			image: linkImage9,
			label: " TaskBar Wiki",
			uri: "https://github.com/zpydr/gnome-shell-extension-taskbar/wiki",
			xalign: 0
		});
		labelLink7.set_always_show_image(true);
		this.gridTaskBar.attach(labelLink7, 1, 6, 1, 1);
		let labelLink4 = new Gtk.LinkButton({
			image: linkImage5,
			label: " " + _("Donate for TaskBar"),
			uri: "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=U5LCPU7B3FB9S",
			xalign: 0
		});
		labelLink4.set_always_show_image(true);
		this.gridTaskBar.attach(labelLink4, 3, 4, 1, 1);
		let labelLink5 = new Gtk.LinkButton({
			image: linkImage6,
			label: " " + _("Become a Friend of GNOME"),
			uri: "https://www.gnome.org/friends/",
			xalign: 0
		});
		labelLink5.set_always_show_image(true);
		this.gridTaskBar.attach(labelLink5, 3, 5, 1, 1);
		let labelLink6 = new Gtk.LinkButton({
			image: linkImage7,
			label: " " + _("Free Software Foundation"),
			uri: "https://www.fsf.org/",
			xalign: 0
		});
		labelLink6.set_always_show_image(true);
		this.gridTaskBar.attach(labelLink6, 3, 6, 1, 1);
		let bugReport = new Gtk.LinkButton({
			image: linkImage4,
			label: _("Report a Bug"),
			uri: "mailto:zpydr@openmailbox.org?subject=TaskBar Bug Report&Body=TaskBar Bug Report%0D%0A%0D%0ATaskBar Version: 57%0D%0AGNOME Shell Version: %0D%0AOperating System: %0D%0AOS Version: %0D%0A%0D%0ABug Description: %0D%0A%0D%0A",
			xalign: 0
		});
		bugReport.set_always_show_image(true);
		this.gridTaskBar.attach(bugReport, 1, 7, 1, 1);

		let exportButton = new Gtk.Button({
			label: _("Export Settings")
		});
		exportButton.connect('clicked', Lang.bind(this, this.exportSettings));
		exportButton.set_tooltip_text(_("Export All TaskBar Settings. This will create a taskbar.dconf file in your home folder."));
		this.gridTaskBar.attach(exportButton, 1, 9, 1, 1);

		let importButton = new Gtk.Button({
			label: _("Import Settings")
		});
		importButton.connect('clicked', Lang.bind(this, this.importSettings));
		importButton.set_tooltip_text(_("Import All TaskBar Settings. This will import the taskbar.dconf file located in your home folder."));
		this.gridTaskBar.attach(importButton, 3, 9, 1, 1);

		let resetAllButton = new Gtk.Button({
			label: _("RESET ALL !")
		});
		resetAllButton.modify_fg(Gtk.StateType.NORMAL, new Gdk.Color({
			red: 65535,
			green: 0,
			blue: 0
		}));
		resetAllButton.connect('clicked', Lang.bind(this, this.resetAll));
		resetAllButton.set_tooltip_text(_("Reset All TaskBar Settings to the Original TaskBar Settings"));
		this.gridTaskBar.attach(resetAllButton, 1, 11, 1, 1);

		let labelSpaceTaskBar1 = new Gtk.Label({
			label: "\t",
			xalign: 0
		});
		this.gridTaskBar.attach(labelSpaceTaskBar1, 0, 12, 1, 1);
		let labelSpaceTaskBar2 = new Gtk.Label({
			label: "\t",
			xalign: 0,
			hexpand: true
		});
		this.gridTaskBar.attach(labelSpaceTaskBar2, 2, 10, 1, 1);
		let labelSpaceTaskBar3 = new Gtk.Label({
			label: "<b>" + _("TaskBar") + "</b>",
			hexpand: true
		});
		labelSpaceTaskBar3.set_use_markup(true);
		this.gridTaskBar.attach(labelSpaceTaskBar3, 0, 0, 5, 1);
		let labelSpaceTaskBar4 = new Gtk.Label({
			label: "\t",
			xalign: 0
		});
		this.gridTaskBar.attach(labelSpaceTaskBar4, 4, 8, 1, 1);

		this.gridComponents = new Gtk.Grid();
		this.gridComponents.margin = this.gridComponents.row_spacing = 10;
		this.gridComponents.column_spacing = 2;

		let scrollWindowComponents = this.gridComponents;

		scrollWindowComponents.show_all();
		let labelComponents = new Gtk.Label({
			label: _("Overview")
		});
		notebook.append_page(scrollWindowComponents, labelComponents);

		let labelDisplayTasks = new Gtk.Label({
			label: _("Tasks"),
			xalign: 0
		});
		this.gridComponents.attach(labelDisplayTasks, 1, 1, 1, 1);
		this.valueDisplayTasks = new Gtk.Switch({
			active: this.settings.get_boolean("display-tasks")
		});
		this.valueDisplayTasks.connect('notify::active', Lang.bind(this, this.changeDisplayTasks));
		this.gridComponents.attach(this.valueDisplayTasks, 3, 1, 2, 1);

		let labelDisplayDesktopButton = new Gtk.Label({
			label: _("Desktop Button"),
			xalign: 0
		});
		this.gridComponents.attach(labelDisplayDesktopButton, 1, 2, 1, 1);
		this.valueDisplayDesktopButton = new Gtk.Switch({
			active: this.settings.get_boolean("display-desktop-button")
		});
		this.valueDisplayDesktopButton.connect('notify::active', Lang.bind(this, this.changeDisplayDesktopButton));
		this.gridComponents.attach(this.valueDisplayDesktopButton, 3, 2, 2, 1);

		let labelDisplayWorkspaceButton = new Gtk.Label({
			label: _("Workspace Button"),
			xalign: 0
		});
		this.gridComponents.attach(labelDisplayWorkspaceButton, 1, 3, 1, 1);
		this.valueDisplayWorkspaceButton = new Gtk.Switch({
			active: this.settings.get_boolean("display-workspace-button")
		});
		this.valueDisplayWorkspaceButton.connect('notify::active', Lang.bind(this, this.changeDisplayWorkspaceButton));
		this.gridComponents.attach(this.valueDisplayWorkspaceButton, 3, 3, 2, 1);

		let labelDisplayShowAppsButton = new Gtk.Label({
			label: _("Appview Button"),
			xalign: 0
		});
		this.gridComponents.attach(labelDisplayShowAppsButton, 1, 4, 1, 1);
		this.valueDisplayShowAppsButton = new Gtk.Switch({
			active: this.settings.get_boolean("display-showapps-button")
		});
		this.valueDisplayShowAppsButton.connect('notify::active', Lang.bind(this, this.changeDisplayShowAppsButton));
		this.gridComponents.attach(this.valueDisplayShowAppsButton, 3, 4, 2, 1);

		let labelDisplayFavorites = new Gtk.Label({
			label: _("Favorites"),
			xalign: 0
		});
		this.gridComponents.attach(labelDisplayFavorites, 1, 5, 1, 1);
		this.valueDisplayFavorites = new Gtk.Switch({
			active: this.settings.get_boolean("display-favorites")
		});
		this.valueDisplayFavorites.connect('notify::active', Lang.bind(this, this.changeDisplayFavorites));
		this.gridComponents.attach(this.valueDisplayFavorites, 3, 5, 2, 1);

		let valueAppearanceBox = new Gtk.Box();
		let labelAppearanceBox = new Gtk.Label({
			label: _("Align") + ' ',
			xalign: 0
		});
		this.valueAppearance = new Gtk.ComboBoxText();
		this.valueAppearance.append_text(_("Tasks"));
		this.valueAppearance.append_text(_("Desktop Button"));
		this.valueAppearance.append_text(_("Workspace Button"));
		this.valueAppearance.append_text(_("Appview Button"));
		this.valueAppearance.append_text(_("Favorites"));
		this.valueAppearance.set_active(this.settings.get_enum("appearance-selection"));
		this.valueAppearance.connect('changed', Lang.bind(this, this.changeAppearanceSelection));
		valueAppearanceBox.add(labelAppearanceBox);
		valueAppearanceBox.add(this.valueAppearance);
		this.gridComponents.attach(valueAppearanceBox, 1, 6, 1, 1);
		let valueAppearanceName = new Gtk.Button({
			label: "<"
		});
		let value2AppearanceName = new Gtk.Button({
			label: ">"
		});
		valueAppearanceName.connect('clicked', Lang.bind(this, this.changeAppearanceLeft));
		value2AppearanceName.connect('clicked', Lang.bind(this, this.changeAppearanceRight));
		valueAppearanceName.connect('enter-notify-event', Lang.bind(this, this.onHoverEvent));
		valueAppearanceName.connect('leave-notify-event', Lang.bind(this, function() {
			this.settings.set_int("hover-event", 0);
		}));
		value2AppearanceName.connect('enter-notify-event', Lang.bind(this, this.onHoverEvent));
		value2AppearanceName.connect('leave-notify-event', Lang.bind(this, function() {
			this.settings.set_int("hover-event", 0);
		}));
		this.gridComponents.attach(valueAppearanceName, 3, 6, 1, 1);
		this.gridComponents.attach(value2AppearanceName, 4, 6, 1, 1);

		let labelTopPanel = new Gtk.Label({
			label: _("Top Panel"),
			xalign: 0
		});
		this.gridComponents.attach(labelTopPanel, 1, 7, 1, 1);
		this.valueTopPanel = new Gtk.Switch({
			active: this.settings.get_boolean("top-panel")
		});
		this.valueTopPanel.connect('notify::active', Lang.bind(this, this.changeTopPanel));
		this.gridComponents.attach(this.valueTopPanel, 3, 7, 2, 1);

		let labelBottomPanel = new Gtk.Label({
			label: _("Bottom Panel"),
			xalign: 0
		});
		this.gridComponents.attach(labelBottomPanel, 1, 8, 1, 1);
		this.valueBottomPanel = new Gtk.Switch({
			active: this.settings.get_boolean("bottom-panel")
		});
		this.valueBottomPanel.connect('notify::active', Lang.bind(this, this.changeBottomPanel));
		this.gridComponents.attach(this.valueBottomPanel, 3, 8, 2, 1);

		let resetComponentsButton = new Gtk.Button({
			label: _("Reset Overview Tab")
		});
		resetComponentsButton.modify_fg(Gtk.StateType.NORMAL, new Gdk.Color({
			red: 65535,
			green: 0,
			blue: 0
		}));
		resetComponentsButton.connect('clicked', Lang.bind(this, this.resetComponents));
		resetComponentsButton.set_tooltip_text(_("Reset the Overview Tab to the Original Overview Settings"));
		this.gridComponents.attach(resetComponentsButton, 1, 10, 1, 1);


		let labelSpaceComponents1 = new Gtk.Label({
			label: "\t",
			xalign: 0
		});
		this.gridComponents.attach(labelSpaceComponents1, 0, 11, 1, 1);
		let labelSpaceComponents2 = new Gtk.Label({
			label: "\t",
			xalign: 0,
			hexpand: true
		});
		this.gridComponents.attach(labelSpaceComponents2, 2, 9, 1, 1);
		let labelSpaceComponents3 = new Gtk.Label({
			label: "<b>" + _("Overview") + "</b>",
			hexpand: true
		});
		labelSpaceComponents3.set_use_markup(true);
		this.gridComponents.attach(labelSpaceComponents3, 0, 0, 6, 1);
		let labelSpaceComponents4 = new Gtk.Label({
			label: "\t",
			xalign: 0
		});
		this.gridComponents.attach(labelSpaceComponents4, 5, 1, 1, 1);

		this.gridSettings = new Gtk.Grid();
		this.gridSettings.margin = this.gridSettings.row_spacing = 10;
		this.gridSettings.column_spacing = 2;

		let scrollWindowSettings = this.gridSettings;

		scrollWindowSettings.show_all();
		let labelSettings = new Gtk.Label({
			label: _("Panels")
		});
		notebook.append_page(scrollWindowSettings, labelSettings);

		let labelPanel3 = new Gtk.Label({
			label: _("Top Panel")
		});
		this.gridSettings.attach(labelPanel3, 3, 1, 2, 1);
		let labelPanel4 = new Gtk.Label({
			label: _("Bottom Panel")
		});
		this.gridSettings.attach(labelPanel4, 6, 1, 2, 1);

		let labelPanelPosition = new Gtk.Label({
			label: _("Align TaskBar"),
			xalign: 0
		});
		this.gridSettings.attach(labelPanelPosition, 1, 2, 1, 1);
		let valuePanelPosition = new Gtk.Button({
			label: "<"
		});
		let value2PanelPosition = new Gtk.Button({
			label: ">"
		});
		valuePanelPosition.connect('clicked', Lang.bind(this, this.changePanelPositionLeft));
		value2PanelPosition.connect('clicked', Lang.bind(this, this.changePanelPositionRight));
		this.gridSettings.attach(valuePanelPosition, 3, 2, 1, 1);
		this.gridSettings.attach(value2PanelPosition, 4, 2, 1, 1);
		let valuePanelPositionBottom = new Gtk.Button({
			label: "<"
		});
		let value2PanelPositionBottom = new Gtk.Button({
			label: ">"
		});
		valuePanelPositionBottom.connect('clicked', Lang.bind(this, this.changePanelPositionBottomLeft));
		value2PanelPositionBottom.connect('clicked', Lang.bind(this, this.changePanelPositionBottomRight));
		this.gridSettings.attach(valuePanelPositionBottom, 6, 2, 1, 1);
		this.gridSettings.attach(value2PanelPositionBottom, 7, 2, 1, 1);

		let labelIconSize = new Gtk.Label({
			label: _("Panel Size") + " (27 px)",
			xalign: 0
		});
		this.gridSettings.attach(labelIconSize, 1, 3, 1, 1);
		this.valueIconSize = new Gtk.Adjustment({
			lower: 1,
			upper: 96,
			step_increment: 1
		});
		let value2IconSize = new Gtk.SpinButton({
			adjustment: this.valueIconSize,
			snap_to_ticks: true
		});
		value2IconSize.set_value(this.settings.get_int("panel-size"));
		value2IconSize.connect("value-changed", Lang.bind(this, this.changeIconSize));
		this.gridSettings.attach(value2IconSize, 3, 3, 2, 1);
		this.valueIconSizeBottom = new Gtk.Adjustment({
			lower: 1,
			upper: 96,
			step_increment: 1
		});
		let value2IconSizeBottom = new Gtk.SpinButton({
			adjustment: this.valueIconSizeBottom,
			snap_to_ticks: true
		});
		value2IconSizeBottom.set_value(this.settings.get_int("panel-size-bottom"));
		value2IconSizeBottom.connect("value-changed", Lang.bind(this, this.changeIconSizeBottom));
		this.gridSettings.attach(value2IconSizeBottom, 6, 3, 2, 1);

		let labelTBIconSize = new Gtk.Label({
			label: _("Adjust TaskBar Icon Size") + " (0 px)",
			xalign: 0
		});
		this.gridSettings.attach(labelTBIconSize, 1, 4, 1, 1);
		this.valueTBIconSize = new Gtk.Adjustment({
			lower: -96,
			upper: 96,
			step_increment: 1
		});
		let value2TBIconSize = new Gtk.SpinButton({
			adjustment: this.valueTBIconSize,
			snap_to_ticks: true
		});
		value2TBIconSize.set_value(this.settings.get_int("tb-icon-size"));
		value2TBIconSize.connect("value-changed", Lang.bind(this, this.changeTBIconSize));
		this.gridSettings.attach(value2TBIconSize, 3, 4, 2, 1);
		this.valueTBIconSizeBottom = new Gtk.Adjustment({
			lower: -96,
			upper: 96,
			step_increment: 1
		});
		let value2TBIconSizeBottom = new Gtk.SpinButton({
			adjustment: this.valueTBIconSizeBottom,
			snap_to_ticks: true
		});
		value2TBIconSizeBottom.set_value(this.settings.get_int("tb-icon-size-bottom"));
		value2TBIconSizeBottom.connect("value-changed", Lang.bind(this, this.changeTBIconSizeBottom));
		this.gridSettings.attach(value2TBIconSizeBottom, 6, 4, 2, 1);

		let labelTBLabelSize = new Gtk.Label({
			label: _("Adjust TaskBar Label Size") + " (0 px)",
			xalign: 0
		});
		this.gridSettings.attach(labelTBLabelSize, 1, 5, 1, 1);
		this.valueTBLabelSize = new Gtk.Adjustment({
			lower: -96,
			upper: 96,
			step_increment: 1
		});
		let value2TBLabelSize = new Gtk.SpinButton({
			adjustment: this.valueTBLabelSize,
			snap_to_ticks: true
		});
		value2TBLabelSize.set_value(this.settings.get_int("tb-label-size"));
		value2TBLabelSize.connect("value-changed", Lang.bind(this, this.changeTBLabelSize));
		this.gridSettings.attach(value2TBLabelSize, 3, 5, 2, 1);
		this.valueTBLabelSizeBottom = new Gtk.Adjustment({
			lower: -96,
			upper: 96,
			step_increment: 1
		});
		let value2TBLabelSizeBottom = new Gtk.SpinButton({
			adjustment: this.valueTBLabelSizeBottom,
			snap_to_ticks: true
		});
		value2TBLabelSizeBottom.set_value(this.settings.get_int("tb-label-size-bottom"));
		value2TBLabelSizeBottom.connect("value-changed", Lang.bind(this, this.changeTBLabelSizeBottom));
		this.gridSettings.attach(value2TBLabelSizeBottom, 6, 5, 2, 1);

		let labelOtherPanelContent = new Gtk.Label({
			label: _("Adjust Panel Content Size") + " (0 px)",
			xalign: 0
		});
		this.gridSettings.attach(labelOtherPanelContent, 1, 6, 1, 1);
		this.valueOtherPanelContent = new Gtk.Adjustment({
			lower: -96,
			upper: 96,
			step_increment: 1
		});
		let value2OtherPanelContent = new Gtk.SpinButton({
			adjustment: this.valueOtherPanelContent,
			snap_to_ticks: true
		});
		value2OtherPanelContent.set_value(this.settings.get_int("content-size"));
		value2OtherPanelContent.connect("value-changed", Lang.bind(this, this.changeOtherPanelContent));
		this.gridSettings.attach(value2OtherPanelContent, 3, 6, 2, 1);

		let labelBottomPanelVertical = new Gtk.Label({
			label: _("Anchor Point") + " (0 px)",
			xalign: 0
		});
		this.gridSettings.attach(labelBottomPanelVertical, 1, 7, 1, 1);
		this.valueBottomPanelVertical = new Gtk.Adjustment({
			lower: -100,
			upper: 100,
			step_increment: 1
		});
		this.value2BottomPanelVertical = new Gtk.SpinButton({
			adjustment: this.valueBottomPanelVertical,
			snap_to_ticks: true
		});
		this.value2BottomPanelVertical.set_value(this.settings.get_int("bottom-panel-vertical"));
		this.value2BottomPanelVertical.connect("value-changed", Lang.bind(this, this.changeBottomPanelVertical));
		this.gridSettings.attach(this.value2BottomPanelVertical, 6, 7, 2, 1);

		let labelPanelBackgroundColor = new Gtk.Label({
			label: _("Panel Background\nColor & Opacity"),
			xalign: 0
		});
		this.gridSettings.attach(labelPanelBackgroundColor, 1, 8, 1, 1);
		let colorTop = this.settings.get_string("top-panel-background-color");
		let colorTopOriginal = this.settings.get_string("top-panel-original-background-color");
		if (colorTop === 'unset')
			colorTop = colorTopOriginal;
		let rgbaTop = new Gdk.RGBA();
		rgbaTop.parse(colorTop);
		this.valueTopPanelBackgroundColor = new Gtk.ColorButton({
			title: "TaskBar - Set Top Panel Background Color"
		});
		this.valueTopPanelBackgroundColor.set_use_alpha(true);
		this.valueTopPanelBackgroundColor.set_rgba(rgbaTop);
		this.valueTopPanelBackgroundColor.connect('color-set', Lang.bind(this, this.changeTopPanelBackgroundColor));
		this.gridSettings.attach(this.valueTopPanelBackgroundColor, 3, 8, 2, 1);
		let colorBottom = this.settings.get_string("bottom-panel-background-color");
		let colorBottomOriginal = this.settings.get_string("bottom-panel-original-background-color");
		if (colorBottom === 'unset') {
			colorBottom = colorTopOriginal;
			if (colorBottomOriginal === 'unset')
				this.settings.set_string("bottom-panel-original-background-color", colorTopOriginal);
		}
		let rgbaBottom = new Gdk.RGBA();
		rgbaBottom.parse(colorBottom);
		this.valueBottomPanelBackgroundColor = new Gtk.ColorButton({
			title: "TaskBar - Set Bottom Panel Background Color"
		});
		this.valueBottomPanelBackgroundColor.set_use_alpha(true);
		this.valueBottomPanelBackgroundColor.set_rgba(rgbaBottom);
		this.valueBottomPanelBackgroundColor.connect('color-set', Lang.bind(this, this.changeBottomPanelBackgroundColor));
		this.gridSettings.attach(this.valueBottomPanelBackgroundColor, 6, 8, 2, 1);
		this.resetTopPanelBackgroundColorButton = new Gtk.Button({
			label: _("Reset Color")
		});
		this.resetTopPanelBackgroundColorButton.connect('clicked', Lang.bind(this, this.resetTopPanelBackgroundColor));
		this.gridSettings.attach(this.resetTopPanelBackgroundColorButton, 3, 9, 2, 1);
		this.resetBottomPanelBackgroundColorButton = new Gtk.Button({
			label: _("Reset Color")
		});
		this.resetBottomPanelBackgroundColorButton.connect('clicked', Lang.bind(this, this.resetBottomPanelBackgroundColor));
		this.gridSettings.attach(this.resetBottomPanelBackgroundColorButton, 6, 9, 2, 1);

		let resetSettingsButton = new Gtk.Button({
			label: _("Reset Panels Tab")
		});
		resetSettingsButton.modify_fg(Gtk.StateType.NORMAL, new Gdk.Color({
			red: 65535,
			green: 0,
			blue: 0
		}));
		resetSettingsButton.connect('clicked', Lang.bind(this, this.resetSettings));
		resetSettingsButton.set_tooltip_text(_("Reset the Panels Tab to the Original Panels Settings"));
		this.gridSettings.attach(resetSettingsButton, 1, 11, 1, 1);

		let labelSpaceSettings1 = new Gtk.Label({
			label: "\t",
			xalign: 0
		});
		this.gridSettings.attach(labelSpaceSettings1, 0, 12, 1, 1);
		let labelSpaceSettings2 = new Gtk.Label({
			label: "\t",
			xalign: 0,
			hexpand: true
		});
		this.gridSettings.attach(labelSpaceSettings2, 2, 2, 1, 1);
		let labelSpaceSettings3 = new Gtk.Label({
			label: "\t",
			xalign: 0
		});
		this.gridSettings.attach(labelSpaceSettings3, 5, 10, 1, 1);
		let labelSpaceSettings4 = new Gtk.Label({
			label: "<b>" + _("Panels") + "</b>",
			hexpand: true
		});
		labelSpaceSettings4.set_use_markup(true);
		this.gridSettings.attach(labelSpaceSettings4, 0, 0, 9, 1);
		let labelSpaceSettings5 = new Gtk.Label({
			label: "\t",
			xalign: 0
		});
		this.gridSettings.attach(labelSpaceSettings5, 8, 1, 1, 1);

		this.gridTasks = new Gtk.Grid();
		this.gridTasks.margin = this.gridTasks.row_spacing = 10;
		this.gridTasks.column_spacing = 2;

		let scrollWindowTasks = this.gridTasks;

		scrollWindowTasks.show_all();
		let labelTasks = new Gtk.Label({
			label: _("Tasks (I)")
		});
		notebook.append_page(scrollWindowTasks, labelTasks);

		let labelAllWorkspaces = new Gtk.Label({
			label: _("Tasks on All Workspaces"),
			xalign: 0
		});
		this.gridTasks.attach(labelAllWorkspaces, 1, 1, 1, 1);
		this.valueAllWorkspaces = new Gtk.Switch({
			active: this.settings.get_boolean("tasks-all-workspaces")
		});
		this.valueAllWorkspaces.connect('notify::active', Lang.bind(this, this.changeAllWorkspaces));
		this.gridTasks.attach(this.valueAllWorkspaces, 4, 1, 1, 1);

		let labelSortTasks = new Gtk.Label({
			label: _("Sort or Group Tasks by Application"),
			xalign: 0
		});
		this.gridTasks.attach(labelSortTasks, 1, 2, 1, 1);
		this.valueSortTasks = new Gtk.ComboBoxText();
		this.valueSortTasks.append_text(_("OFF"));
		this.valueSortTasks.append_text(_("Sort"));
		this.valueSortTasks.append_text(_("Sort Workspace"));
		this.valueSortTasks.append_text(_("Group"));
		this.valueSortTasks.append_text(_("Group Workspace"));
		this.valueSortTasks.set_active(this.settings.get_enum("sort-tasks"));
		this.valueSortTasks.connect('changed', Lang.bind(this, this.changeSortTasks));
		this.gridTasks.attach(this.valueSortTasks, 3, 2, 2, 1);

		let labelTasksLabel = new Gtk.Label({
			label: _("Tasks Label"),
			xalign: 0
		});
		this.gridTasks.attach(labelTasksLabel, 1, 3, 1, 1);
		this.valueTasksLabel = new Gtk.ComboBoxText();
		this.valueTasksLabel.append_text(_("OFF"));
		this.valueTasksLabel.append_text(_("Window Title"));
		this.valueTasksLabel.append_text(_("App Name"));
		this.valueTasksLabel.set_active(this.settings.get_enum("tasks-label"));
		this.valueTasksLabel.connect('changed', Lang.bind(this, this.changeTasksLabel));
		this.gridTasks.attach(this.valueTasksLabel, 3, 3, 2, 1);

		let labelTasksLabelWidth = new Gtk.Label({
			label: _("Tasks Label Width (150 px)"),
			xalign: 0
		});
		this.gridTasks.attach(labelTasksLabelWidth, 1, 4, 2, 1);
		this.valueTasksLabelWidth = new Gtk.Adjustment({
			lower: 0,
			upper: 1000,
			step_increment: 1
		});
		let value2TasksLabelWidth = new Gtk.SpinButton({
			adjustment: this.valueTasksLabelWidth,
			snap_to_ticks: true
		});
		value2TasksLabelWidth.set_value(this.settings.get_int("tasks-width"));
		value2TasksLabelWidth.connect("value-changed", Lang.bind(this, this.changeTasksLabelWidth));
		this.gridTasks.attach(value2TasksLabelWidth, 3, 4, 2, 1);

		let labelTasksContainerWidth = new Gtk.Label({
			label: _("Reserve Space on Panel (0 Tasks)"),
			xalign: 0
		});
		this.gridTasks.attach(labelTasksContainerWidth, 1, 5, 2, 1);
		this.valueTasksContainerWidth = new Gtk.Adjustment({
			lower: 0,
			upper: 100,
			step_increment: 1
		});
		let value2TasksContainerWidth = new Gtk.SpinButton({
			adjustment: this.valueTasksContainerWidth,
			snap_to_ticks: true
		});
		value2TasksContainerWidth.set_value(this.settings.get_int("tasks-container-width-new"));
		value2TasksContainerWidth.connect("value-changed", Lang.bind(this, this.changeTasksContainerWidth));
		this.gridTasks.attach(value2TasksContainerWidth, 3, 5, 2, 1);

		let labelTasksSpaces = new Gtk.Label({
			label: _("Space between Tasks (4 px)"),
			xalign: 0
		});
		this.gridTasks.attach(labelTasksSpaces, 1, 6, 2, 1);
		this.valueTasksSpaces = new Gtk.Adjustment({
			lower: 0,
			upper: 1000,
			step_increment: 1
		});
		let value2TasksSpaces = new Gtk.SpinButton({
			adjustment: this.valueTasksSpaces,
			snap_to_ticks: true
		});
		value2TasksSpaces.set_value(this.settings.get_int("tasks-spaces"));
		value2TasksSpaces.connect("value-changed", Lang.bind(this, this.changeTasksSpaces));
		this.gridTasks.attach(value2TasksSpaces, 3, 6, 2, 1);

		//Array of action strings
		let arrayTasksClickMenus = [
			"OFF",
			"Min/Max Task",
			"Open App Menu",
			"Close Task",
			"New Instance"
		];

		//Left Click actions menu
		let labelLeftClickMenu = new Gtk.Label({
			label: _("Left Click"),
			xalign: 0
		});
		this.gridTasks.attach(labelLeftClickMenu, 1, 7, 1, 1);
		this.valueTasksLeftClickMenu = new Gtk.ComboBoxText();
		arrayTasksClickMenus.forEach(string => {
			this.valueTasksLeftClickMenu.append_text(_(string));
		});
		this.valueTasksLeftClickMenu.set_active(this.settings.get_enum("tasks-left-click"));
		this.valueTasksLeftClickMenu.connect('changed', Lang.bind(this, this.changeTasksLeftClickMenu));
		this.gridTasks.attach(this.valueTasksLeftClickMenu, 3, 7, 2, 1);

		//Middle Click actions menu
		let labelMiddleClickMenu = new Gtk.Label({
			label: _("Middle Click"),
			xalign: 0
		});
		this.gridTasks.attach(labelMiddleClickMenu, 1, 8, 1, 1);
		this.valueTasksMiddleClickMenu = new Gtk.ComboBoxText();
		arrayTasksClickMenus.forEach(string => {
			this.valueTasksMiddleClickMenu.append_text(_(string));
		});
		this.valueTasksMiddleClickMenu.set_active(this.settings.get_enum("tasks-middle-click"));
		this.valueTasksMiddleClickMenu.connect('changed', Lang.bind(this, this.changeTasksMiddleClickMenu));
		this.gridTasks.attach(this.valueTasksMiddleClickMenu, 3, 8, 2, 1);

		//Right Click actions menu
		let labelRightClickMenu = new Gtk.Label({
			label: _("Right Click"),
			xalign: 0
		});
		this.gridTasks.attach(labelRightClickMenu, 1, 9, 1, 1);
		this.valueTasksRightClickMenu = new Gtk.ComboBoxText();
		arrayTasksClickMenus.forEach(string => {
			this.valueTasksRightClickMenu.append_text(_(string));
		});
		this.valueTasksRightClickMenu.set_active(this.settings.get_enum("tasks-right-click"));
		this.valueTasksRightClickMenu.connect('changed', Lang.bind(this, this.changeTasksRightClickMenu));
		this.gridTasks.attach(this.valueTasksRightClickMenu, 3, 9, 2, 1);

		let resetTasksButton = new Gtk.Button({
			label: _("Reset Tasks (I) Tab")
		});
		resetTasksButton.modify_fg(Gtk.StateType.NORMAL, new Gdk.Color({
			red: 65535,
			green: 0,
			blue: 0
		}));
		resetTasksButton.connect('clicked', Lang.bind(this, this.resetTasks));
		resetTasksButton.set_tooltip_text(_("Reset the Tasks (I) Tab to the Original Tasks Settings"));
		this.gridTasks.attach(resetTasksButton, 1, 11, 1, 1);

		let labelSpaceTasks1 = new Gtk.Label({
			label: "\t",
			xalign: 0
		});
		this.gridTasks.attach(labelSpaceTasks1, 0, 12, 1, 1);
		let labelSpaceTasks2 = new Gtk.Label({
			label: "\t",
			xalign: 0,
			hexpand: true
		});
		this.gridTasks.attach(labelSpaceTasks2, 2, 10, 1, 1);
		let labelSpaceTasks3 = new Gtk.Label({
			label: "\t\t",
			xalign: 0
		});
		this.gridTasks.attach(labelSpaceTasks3, 3, 0, 1, 1);
		let labelSpaceTasks4 = new Gtk.Label({
			label: "<b>" + _("Tasks (I)") + "</b>",
			hexpand: true
		});
		labelSpaceTasks4.set_use_markup(true);
		this.gridTasks.attach(labelSpaceTasks4, 0, 0, 6, 1);
		let labelSpaceTasks5 = new Gtk.Label({
			label: "\t",
			xalign: 0
		});
		this.gridTasks.attach(labelSpaceTasks5, 5, 1, 1, 1);

		this.gridTasks2 = new Gtk.Grid();
		this.gridTasks2.margin = this.gridTasks2.row_spacing = 10;
		this.gridTasks2.column_spacing = 2;

		let scrollWindowTasks2 = this.gridTasks2;

		scrollWindowTasks2.show_all();
		let labelTasks2 = new Gtk.Label({
			label: _("Tasks (II)")
		});
		notebook.append_page(scrollWindowTasks2, labelTasks2);

		let labelScrollTasks = new Gtk.Label({
			label: _("Scroll Tasks"),
			xalign: 0
		});
		this.gridTasks2.attach(labelScrollTasks, 1, 1, 1, 1);
		this.valueScrollTasks = new Gtk.ComboBoxText();
		this.valueScrollTasks.append_text(_("OFF"));
		this.valueScrollTasks.append_text(_("Standard"));
		this.valueScrollTasks.append_text(_("Invert"));
		this.valueScrollTasks.set_active(this.settings.get_enum("scroll-tasks"));
		this.valueScrollTasks.connect('changed', Lang.bind(this, this.changeScrollTasks));
		this.gridTasks2.attach(this.valueScrollTasks, 3, 1, 2, 1);

		let labelActiveTaskFrame = new Gtk.Label({
			label: _("Active Task Frame"),
			xalign: 0
		});
		this.gridTasks2.attach(labelActiveTaskFrame, 1, 2, 1, 1);
		this.valueActiveTaskFrame = new Gtk.Switch({
			active: this.settings.get_boolean("active-task-frame")
		});
		this.valueActiveTaskFrame.connect('notify::active', Lang.bind(this, this.changeActiveTaskFrame));
		this.gridTasks2.attach(this.valueActiveTaskFrame, 4, 2, 1, 1);

		let labelInactiveTaskFrame = new Gtk.Label({
			label: _("Inactive Task Frame"),
			xalign: 0
		});
		this.gridTasks2.attach(labelInactiveTaskFrame, 1, 3, 1, 1);
		this.valueInactiveTaskFrame = new Gtk.Switch({
			active: this.settings.get_boolean("inactive-task-frame")
		});
		this.valueInactiveTaskFrame.connect('notify::active', Lang.bind(this, this.changeInactiveTaskFrame));
		this.gridTasks2.attach(this.valueInactiveTaskFrame, 4, 3, 1, 1);

		let labelHoverSwitchTask = new Gtk.Label({
			label: _("Activate Tasks on Hover"),
			xalign: 0
		});
		this.gridTasks2.attach(labelHoverSwitchTask, 1, 4, 1, 1);
		this.valueHoverSwitchTask = new Gtk.Switch({
			active: this.settings.get_boolean("hover-switch-task")
		});
		this.valueHoverSwitchTask.connect('notify::active', Lang.bind(this, this.changeHoverSwitchTask));
		this.gridTasks2.attach(this.valueHoverSwitchTask, 4, 4, 1, 1);

		let labelHoverDelay = new Gtk.Label({
			label: _("Hover Delay") + " (350 ms)",
			xalign: 0
		});
		this.gridTasks2.attach(labelHoverDelay, 1, 5, 2, 1);
		this.valueHoverDelay = new Gtk.Adjustment({
			lower: 0,
			upper: 10000,
			step_increment: 1
		});
		let value2HoverDelay = new Gtk.SpinButton({
			adjustment: this.valueHoverDelay,
			snap_to_ticks: true
		});
		value2HoverDelay.set_value(this.settings.get_int("hover-delay"));
		value2HoverDelay.connect("value-changed", Lang.bind(this, this.changeHoverDelay));
		this.gridTasks2.attach(value2HoverDelay, 3, 5, 2, 1);

		let labelBlinkTasks = new Gtk.Label({
			label: _("Blink Tasks on Alert"),
			xalign: 0
		});
		this.gridTasks2.attach(labelBlinkTasks, 1, 6, 1, 1);
		this.valueBlinkTasks = new Gtk.Switch({
			active: this.settings.get_boolean("blink-tasks")
		});
		this.valueBlinkTasks.connect('notify::active', Lang.bind(this, this.changeBlinkTasks));
		this.gridTasks2.attach(this.valueBlinkTasks, 4, 6, 1, 1);

		let labelTasksBlinkRate = new Gtk.Label({
			label: _("Blink Rate") + " (750 ms)",
			xalign: 0
		});
		this.gridTasks2.attach(labelTasksBlinkRate, 1, 7, 2, 1);
		this.valueTasksBlinkRate = new Gtk.Adjustment({
			lower: 0,
			upper: 10000,
			step_increment: 1
		});
		let value2TasksBlinkRate = new Gtk.SpinButton({
			adjustment: this.valueTasksBlinkRate,
			snap_to_ticks: true
		});
		value2TasksBlinkRate.set_value(this.settings.get_int("blink-rate"));
		value2TasksBlinkRate.connect("value-changed", Lang.bind(this, this.changeTasksBlinkRate));
		this.gridTasks2.attach(value2TasksBlinkRate, 3, 7, 2, 1);

		let labelTasksBlinkAlertColor = new Gtk.Label({
			label: _("Blink Color"),
			xalign: 0
		});
		this.gridTasks2.attach(labelTasksBlinkAlertColor, 1, 8, 1, 1);
		let blinkColor = this.settings.get_string("blink-color");
		let rgbaBlink = new Gdk.RGBA();
		if (blinkColor === 'unset')
			blinkColor = RESETCOLORRED;
		rgbaBlink.parse(blinkColor);
		this.valueTasksBlinkAlertColor = new Gtk.ColorButton({
			title: "TaskBar - Set Blink Color"
		});
		this.valueTasksBlinkAlertColor.set_use_alpha(true);
		this.valueTasksBlinkAlertColor.set_rgba(rgbaBlink);
		this.valueTasksBlinkAlertColor.connect('color-set', Lang.bind(this, this.changeTasksBlinkAlertColor));
		this.gridTasks2.attach(this.valueTasksBlinkAlertColor, 4, 8, 1, 1);

		let resetTasks2Button = new Gtk.Button({
			label: _("Reset Tasks (II) Tab")
		});
		resetTasks2Button.modify_fg(Gtk.StateType.NORMAL, new Gdk.Color({
			red: 65535,
			green: 0,
			blue: 0
		}));
		resetTasks2Button.connect('clicked', Lang.bind(this, this.resetTasks2));
		resetTasks2Button.set_tooltip_text(_("Reset the Tasks II Tab to the Original Tasks II Settings"));
		this.gridTasks2.attach(resetTasks2Button, 1, 10, 1, 1);

		let labelSpaceTasks21 = new Gtk.Label({
			label: "\t",
			xalign: 0
		});
		this.gridTasks2.attach(labelSpaceTasks21, 0, 11, 1, 1);
		let labelSpaceTasks22 = new Gtk.Label({
			label: "\t",
			xalign: 0,
			hexpand: true
		});
		this.gridTasks2.attach(labelSpaceTasks22, 2, 9, 1, 1);
		let labelSpaceTasks23 = new Gtk.Label({
			label: "\t",
			xalign: 0
		});
		this.gridTasks2.attach(labelSpaceTasks23, 3, 0, 1, 1);
		let labelSpaceTasks24 = new Gtk.Label({
			label: "<b>" + _("Tasks (II)") + "</b>",
			hexpand: true
		});
		labelSpaceTasks24.set_use_markup(true);
		this.gridTasks2.attach(labelSpaceTasks24, 0, 0, 6, 1);
		let labelSpaceTasks25 = new Gtk.Label({
			label: "\t",
			xalign: 0
		});
		this.gridTasks2.attach(labelSpaceTasks25, 5, 1, 1, 1);

		this.gridTasks3 = new Gtk.Grid();
		this.gridTasks3.margin = this.gridTasks3.row_spacing = 10;
		this.gridTasks3.column_spacing = 2;

		let scrollWindowTasks3 = this.gridTasks3;

		scrollWindowTasks3.show_all();
		let labelTasks3 = new Gtk.Label({
			label: _("Tasks (III)")
		});
		notebook.append_page(scrollWindowTasks3, labelTasks3);

		let labelActiveTaskBackgroundColor = new Gtk.Label({
			label: _("Active Task Background\nColor & Opacity"),
			xalign: 0
		});
		let tooltipActiveTaskBackgroundColor = _("Active Task Background Color & Opacity\nClick the color button to set the color and opacity of the active task background. This opens a new window with a table of preset colors to choose from. Click the '+' button under 'Custom' to customize color and opacity. Clicking '+' changes the window. In the center is a color picker, the left slider changes color and the bottom slider changes opacity. At the top, a indicator and entry field displays hexadecimal values in the form: #RRGGBB, where RR (red), GG (green) and BB (blue) are values between 00 and FF. When selected, customized colors will be available in all color settings. Back on the 'Tasks (III)' tab, flip the switch next to the color button to activate/deactivate the background color.\nToggle tasks at the 'Overview' tab.");
		labelActiveTaskBackgroundColor.set_tooltip_text(tooltipActiveTaskBackgroundColor);
		this.gridTasks3.attach(labelActiveTaskBackgroundColor, 1, 1, 1, 1);
		let activeColor = this.settings.get_string("active-task-background-color");
		let rgbaActive = new Gdk.RGBA();
		rgbaActive.parse(activeColor);
		this.valueActiveTaskBackgroundColor = new Gtk.ColorButton({
			title: "TaskBar - Set Active Task Background Color"
		});
		this.valueActiveTaskBackgroundColor.set_tooltip_text(tooltipActiveTaskBackgroundColor);
		this.valueActiveTaskBackgroundColor.set_use_alpha(true);
		this.valueActiveTaskBackgroundColor.set_rgba(rgbaActive);
		this.valueActiveTaskBackgroundColor.connect('color-set', Lang.bind(this, this.changeActiveTaskBackgroundColor));
		this.gridTasks3.attach(this.valueActiveTaskBackgroundColor, 3, 1, 1, 1);
		this.value2ActiveTaskBackgroundColor = new Gtk.Switch({
			active: this.settings.get_boolean("active-task-background-color-set")
		});
		this.value2ActiveTaskBackgroundColor.set_tooltip_text(tooltipActiveTaskBackgroundColor);
		this.value2ActiveTaskBackgroundColor.connect('notify::active', Lang.bind(this, this.changeActiveTaskBackgroundColorSet));
		this.gridTasks3.attach(this.value2ActiveTaskBackgroundColor, 4, 1, 1, 1);

		let labelInactiveTaskBackgroundColor = new Gtk.Label({
			label: _("Inactive Tasks Background\nColor & Opacity"),
			xalign: 0
		});
		let tooltipInactiveTaskBackgroundColor = _("Inactive Tasks Background Color & Opacity\nClick the color button to set the color and opacity of inactive task backgrounds. This opens a new window with a table of preset colors to choose from. Click the '+' button under 'Custom' to customize color and opacity. Clicking '+' changes the window. In the center is a color picker, the left slider changes color and the bottom slider changes opacity. At the top, a indicator and entry field displays hexadecimal values in the form: #RRGGBB, where RR (red), GG (green) and BB (blue) are values between 00 and FF. When selected, customized colors will be available in all color settings. Back on the 'Tasks (III)' tab, flip the switch next to the color button to activate/deactivate the background color.\nToggle tasks at the 'Overview' tab.");
		labelInactiveTaskBackgroundColor.set_tooltip_text(tooltipInactiveTaskBackgroundColor);
		this.gridTasks3.attach(labelInactiveTaskBackgroundColor, 1, 2, 1, 1);
		let inactiveColor = this.settings.get_string("inactive-task-background-color");
		let rgbaInactive = new Gdk.RGBA();
		rgbaInactive.parse(inactiveColor);
		this.valueInactiveTaskBackgroundColor = new Gtk.ColorButton({
			title: "TaskBar - Set Inactive Tasks Background Color"
		});
		this.valueInactiveTaskBackgroundColor.set_tooltip_text(tooltipInactiveTaskBackgroundColor);
		this.valueInactiveTaskBackgroundColor.set_use_alpha(true);
		this.valueInactiveTaskBackgroundColor.set_rgba(rgbaInactive);
		this.valueInactiveTaskBackgroundColor.connect('color-set', Lang.bind(this, this.changeInactiveTaskBackgroundColor));
		this.gridTasks3.attach(this.valueInactiveTaskBackgroundColor, 3, 2, 1, 1);
		this.value2InactiveTaskBackgroundColor = new Gtk.Switch({
			active: this.settings.get_boolean("inactive-task-background-color-set")
		});
		this.value2InactiveTaskBackgroundColor.set_tooltip_text(tooltipInactiveTaskBackgroundColor);
		this.value2InactiveTaskBackgroundColor.connect('notify::active', Lang.bind(this, this.changeInactiveTaskBackgroundColorSet));
		this.gridTasks3.attach(this.value2InactiveTaskBackgroundColor, 4, 2, 1, 1);

		let labelTasksLabelColor = new Gtk.Label({
			label: _("Active Task Label Color"),
			xalign: 0
		});
		let tooltipTasksLabelColor = _("Active Task Label Color & Opacity\nClick the color button to set the color and opacity of the active task label. This opens a new window with a table of preset colors to choose from. Click the '+' button under 'Custom' to customize color and opacity. Clicking '+' changes the window. In the center is a color picker, the left slider changes color and the bottom slider changes opacity. At the top, a indicator and entry field displays hexadecimal values in the form: #RRGGBB, where RR (red), GG (green) and BB (blue) are values between 00 and FF. When selected, customized colors will be available in all color settings. Back on the 'Tasks (III)' tab, flip the switch next to the color button to activate/deactivate the label color.\nToggle task labels at the 'Tasks (I)' tab.\nToggle tasks at the 'Overview' tab.");
		labelTasksLabelColor.set_tooltip_text(tooltipTasksLabelColor);
		this.gridTasks3.attach(labelTasksLabelColor, 1, 3, 1, 1);
		let colorTLC = this.settings.get_string("tasks-label-color");
		let rgbaTLC = new Gdk.RGBA();
		rgbaTLC.parse(colorTLC);
		this.valueTasksLabelColor = new Gtk.ColorButton({
			title: "TaskBar - Set Active Task Label Color"
		});
		this.valueTasksLabelColor.set_tooltip_text(tooltipTasksLabelColor);
		this.valueTasksLabelColor.set_use_alpha(true);
		this.valueTasksLabelColor.set_rgba(rgbaTLC);
		this.valueTasksLabelColor.connect('color-set', Lang.bind(this, this.changeTasksLabelColor));
		this.gridTasks3.attach(this.valueTasksLabelColor, 3, 3, 1, 1);
		this.value2TasksLabelColor = new Gtk.Switch({
			active: this.settings.get_boolean("display-tasks-label-color")
		});
		this.value2TasksLabelColor.set_tooltip_text(tooltipTasksLabelColor);
		this.value2TasksLabelColor.connect('notify::active', Lang.bind(this, this.changeTasksLabelColorSet));
		this.gridTasks3.attach(this.value2TasksLabelColor, 4, 3, 1, 1);

		let labelInactiveTasksLabelColor = new Gtk.Label({
			label: _("Inactive Tasks Label Color"),
			xalign: 0
		});
		let tooltipInactiveTasksLabelColor = _("Inactive Tasks Label Color & Opacity\nClick the color button to set the color and opacity of inactive task labels. This opens a new window with a table of preset colors to choose from. Click the '+' button under 'Custom' to customize color and opacity. Clicking '+' changes the window. In the center is a color picker, the left slider changes color and the bottom slider changes opacity. At the top, a indicator and entry field displays hexadecimal values in the form: #RRGGBB, where RR (red), GG (green) and BB (blue) are values between 00 and FF. When selected, customized colors will be available in all color settings. Back on the 'Tasks (III)' tab, flip the switch next to the color button to activate/deactivate the label color.\nToggle task labels at the 'Tasks (I)' tab.\nToggle tasks at the 'Overview' tab.");
		labelInactiveTasksLabelColor.set_tooltip_text(tooltipInactiveTasksLabelColor);
		this.gridTasks3.attach(labelInactiveTasksLabelColor, 1, 4, 1, 1);
		let colorITLC = this.settings.get_string("inactive-tasks-label-color");
		let rgbaITLC = new Gdk.RGBA();
		rgbaITLC.parse(colorITLC);
		this.valueInactiveTasksLabelColor = new Gtk.ColorButton({
			title: "TaskBar - Set Inactive Tasks Label Color"
		});
		this.valueInactiveTasksLabelColor.set_tooltip_text(tooltipInactiveTasksLabelColor);
		this.valueInactiveTasksLabelColor.set_use_alpha(true);
		this.valueInactiveTasksLabelColor.set_rgba(rgbaITLC);
		this.valueInactiveTasksLabelColor.connect('color-set', Lang.bind(this, this.changeInactiveTasksLabelColor));
		this.gridTasks3.attach(this.valueInactiveTasksLabelColor, 3, 4, 1, 1);
		this.value2InactiveTasksLabelColor = new Gtk.Switch({
			active: this.settings.get_boolean("display-inactive-tasks-label-color")
		});
		this.value2InactiveTasksLabelColor.set_tooltip_text(tooltipInactiveTasksLabelColor);
		this.value2InactiveTasksLabelColor.connect('notify::active', Lang.bind(this, this.changeInactiveTasksLabelColorSet));
		this.gridTasks3.attach(this.value2InactiveTasksLabelColor, 4, 4, 1, 1);

		let labelTasksFrameColor = new Gtk.Label({
			label: _("Active Task Frame Color"),
			xalign: 0
		});
		let tooltipTasksFrameColor = _("Active Task Frame Color & Opacity\nClick the color button to set the color and opacity of the active task frame. This opens a new window with a table of preset colors to choose from. Click the '+' button under 'Custom' to customize color and opacity. Clicking '+' changes the window. In the center is a color picker, the left slider changes color and the bottom slider changes opacity. At the top, a indicator and entry field displays hexadecimal values in the form: #RRGGBB, where RR (red), GG (green) and BB (blue) are values between 00 and FF. When selected, customized colors will be available in all color settings. Back on the 'Tasks (III)' tab, flip the switch next to the color button to activate/deactivate the frame color.\nToggle the active task frame at the 'Tasks (II)' tab.\nToggle tasks at the 'Overview' tab.");
		labelTasksFrameColor.set_tooltip_text(tooltipTasksFrameColor);
		this.gridTasks3.attach(labelTasksFrameColor, 1, 5, 1, 1);
		let colorTFC = this.settings.get_string("tasks-frame-color");
		let rgbaTFC = new Gdk.RGBA();
		rgbaTFC.parse(colorTFC);
		this.valueTasksFrameColor = new Gtk.ColorButton({
			title: "TaskBar - Set Active Task Frame Color"
		});
		this.valueTasksFrameColor.set_tooltip_text(tooltipTasksFrameColor);
		this.valueTasksFrameColor.set_use_alpha(true);
		this.valueTasksFrameColor.set_rgba(rgbaTFC);
		this.valueTasksFrameColor.connect('color-set', Lang.bind(this, this.changeTasksFrameColor));
		this.gridTasks3.attach(this.valueTasksFrameColor, 3, 5, 1, 1);
		this.value2TasksFrameColor = new Gtk.Switch({
			active: this.settings.get_boolean("display-tasks-frame-color")
		});
		this.value2TasksFrameColor.set_tooltip_text(tooltipTasksFrameColor);
		this.value2TasksFrameColor.connect('notify::active', Lang.bind(this, this.changeTasksFrameColorSet));
		this.gridTasks3.attach(this.value2TasksFrameColor, 4, 5, 1, 1);

		let labelInactiveTasksFrameColor = new Gtk.Label({
			label: _("Inactive Tasks Frame Color"),
			xalign: 0
		});
		let tooltipInactiveTasksFrameColor = _("Inactive Tasks Frame Color & Opacity\nClick the color button to set the color and opacity of inactive task frames. This opens a new window with a table of preset colors to choose from. Click the '+' button under 'Custom' to customize color and opacity. Clicking '+' changes the window. In the center is a color picker, the left slider changes color and the bottom slider changes opacity. At the top, a indicator and entry field displays hexadecimal values in the form: #RRGGBB, where RR (red), GG (green) and BB (blue) are values between 00 and FF. When selected, customized colors will be available in all color settings. Back on the 'Tasks (III)' tab, flip the switch next to the color button to activate/deactivate the frame color.\nToggle inactive task frames at the 'Tasks (II)' tab.\nToggle tasks at the 'Overview' tab.");
		labelInactiveTasksFrameColor.set_tooltip_text(tooltipInactiveTasksFrameColor);
		this.gridTasks3.attach(labelInactiveTasksFrameColor, 1, 6, 1, 1);
		let colorITFC = this.settings.get_string("inactive-tasks-frame-color");
		let rgbaITFC = new Gdk.RGBA();
		rgbaITFC.parse(colorITFC);
		this.valueInactiveTasksFrameColor = new Gtk.ColorButton({
			title: "TaskBar - Set Inactive Tasks Frame Color"
		});
		this.valueInactiveTasksFrameColor.set_tooltip_text(tooltipInactiveTasksFrameColor);
		this.valueInactiveTasksFrameColor.set_use_alpha(true);
		this.valueInactiveTasksFrameColor.set_rgba(rgbaITFC);
		this.valueInactiveTasksFrameColor.connect('color-set', Lang.bind(this, this.changeInactiveTasksFrameColor));
		this.gridTasks3.attach(this.valueInactiveTasksFrameColor, 3, 6, 1, 1);
		this.value2InactiveTasksFrameColor = new Gtk.Switch({
			active: this.settings.get_boolean("display-inactive-tasks-frame-color")
		});
		this.value2InactiveTasksFrameColor.set_tooltip_text(tooltipInactiveTasksFrameColor);
		this.value2InactiveTasksFrameColor.connect('notify::active', Lang.bind(this, this.changeInactiveTasksFrameColorSet));
		this.gridTasks3.attach(this.value2InactiveTasksFrameColor, 4, 6, 1, 1);

		let labelBlacklistTask = new Gtk.Label({
			label: _("Blacklist Apps"),
			xalign: 0
		});
		let tooltipBlacklistTask = _("Blacklist Apps\nFind app names by navigating to the 'Preview' tab and setting 'Tasks Label' to 'App Name'. Then hover the task you would like to blacklist. App names are case-sensitive. If you intend to blacklist more than one app, separate app names by comma and space:\nTerminal, gedit, Tweak Tool, GNU Image Manipulation Program, Files\nFlip the switch next to the entry field to activate/deactivate the blacklist.\nToggle tasks at the 'Overview' tab.");
		labelBlacklistTask.set_tooltip_text(tooltipBlacklistTask);
		this.gridTasks3.attach(labelBlacklistTask, 1, 7, 1, 1);
		this.valueBlacklistTask = new Gtk.Entry();
		this.valueBlacklistTask.set_tooltip_text(tooltipBlacklistTask);
		let blacklisttext = "";
		let blacklistlength = this.settings.get_strv("blacklist").length;
		if (blacklistlength > 0) {
			for (let k = 0; k < blacklistlength; k++) {
				let blacklistapps = this.settings.get_strv("blacklist")[k];
				blacklisttext += blacklistapps;
				if (k < blacklistlength - 1)
					blacklisttext += ", ";
			}
		}
		this.valueBlacklistTask.set_text(blacklisttext);
		this.valueBlacklistTask.connect('changed', Lang.bind(this, this.changeBlacklistTask));
		this.gridTasks3.attach(this.valueBlacklistTask, 2, 7, 2, 1);
		this.value2BlacklistTask = new Gtk.Switch({
			active: this.settings.get_boolean("blacklist-set")
		});
		this.value2BlacklistTask.set_tooltip_text(tooltipBlacklistTask);
		this.value2BlacklistTask.connect('notify::active', Lang.bind(this, this.changeBlacklist));
		this.gridTasks3.attach(this.value2BlacklistTask, 4, 7, 1, 1);

		let resetTasks3Button = new Gtk.Button({
			label: _("Reset Tasks (III) Tab")
		});
		resetTasks3Button.modify_fg(Gtk.StateType.NORMAL, new Gdk.Color({
			red: 65535,
			green: 0,
			blue: 0
		}));
		resetTasks3Button.connect('clicked', Lang.bind(this, this.resetTasks3));
		resetTasks3Button.set_tooltip_text(_("Reset All Settings on this Tab"));
		this.gridTasks3.attach(resetTasks3Button, 1, 10, 1, 1);

		let labelSpaceTasks31 = new Gtk.Label({
			label: "\t",
			xalign: 0
		});
		this.gridTasks3.attach(labelSpaceTasks31, 0, 11, 1, 1);
		let labelSpaceTasks32 = new Gtk.Label({
			label: "\t",
			xalign: 0,
			hexpand: true
		});
		this.gridTasks3.attach(labelSpaceTasks32, 2, 9, 1, 1);
		let labelSpaceTasks33 = new Gtk.Label({
			label: "\t",
			xalign: 0
		});
		this.gridTasks3.attach(labelSpaceTasks33, 3, 0, 1, 1);
		let labelSpaceTasks34 = new Gtk.Label({
			label: "<b>" + _("Tasks (III)") + "</b>",
			hexpand: true
		});
		labelSpaceTasks34.set_use_markup(true);
		this.gridTasks3.attach(labelSpaceTasks34, 0, 0, 6, 1);
		let labelSpaceTasks35 = new Gtk.Label({
			label: "\t",
			xalign: 0
		});
		this.gridTasks3.attach(labelSpaceTasks35, 5, 1, 1, 1);

		this.gridButtons = new Gtk.Grid();
		this.gridButtons.margin = this.gridButtons.row_spacing = 10;
		this.gridButtons.column_spacing = 2;

		let scrollWindowButtons = this.gridButtons;

		scrollWindowButtons.show_all();
		let labelButtons = new Gtk.Label({
			label: _("Buttons")
		});
		notebook.append_page(scrollWindowButtons, labelButtons);

		let labelDesktopButtonRightClick = new Gtk.Label({
			label: _("Desktop Button Right Click\nopens Preferences (this)"),
			xalign: 0
		});
		this.gridButtons.attach(labelDesktopButtonRightClick, 1, 1, 1, 1);
		this.valueDesktopButtonRightClick = new Gtk.Switch({
			active: this.settings.get_boolean("desktop-button-right-click")
		});
		this.valueDesktopButtonRightClick.connect('notify::active', Lang.bind(this, this.changeDesktopButtonRightClick));
		this.gridButtons.attach(this.valueDesktopButtonRightClick, 4, 1, 1, 1);

		let labelDesktopButtonIcon = new Gtk.Label({
			label: _("Desktop Button Icon"),
			xalign: 0
		});
		this.gridButtons.attach(labelDesktopButtonIcon, 1, 2, 1, 1);
		this.desktopIconFilename = this.settings.get_string("desktop-button-icon");
		if (this.desktopIconFilename === 'unset')
			this.desktopIconFilename = DESKTOPICON;
		this.valueDesktopButtonIcon = new Gtk.Image();
		this.loadDesktopIcon();
		this.valueDesktopButtonIcon2 = new Gtk.Button({
			image: this.valueDesktopButtonIcon
		});
		this.valueDesktopButtonIcon2.connect('clicked', Lang.bind(this, this.changeDesktopButtonIcon));
		this.gridButtons.attach(this.valueDesktopButtonIcon2, 4, 2, 1, 1);

		let labelWorkspaceButtonIndex = new Gtk.Label({
			label: _("Workspace Button Index"),
			xalign: 0
		});
		this.gridButtons.attach(labelWorkspaceButtonIndex, 1, 3, 1, 1);
		this.valueWorkspaceButtonIndex = new Gtk.ComboBoxText();
		this.valueWorkspaceButtonIndex.append_text(_("Index"));
		this.valueWorkspaceButtonIndex.append_text(_("Index/Total"));
		this.valueWorkspaceButtonIndex.set_active(this.settings.get_enum("workspace-button-index"));
		this.valueWorkspaceButtonIndex.connect('changed', Lang.bind(this, this.changeWorkspaceButtonIndex));
		this.gridButtons.attach(this.valueWorkspaceButtonIndex, 3, 3, 2, 1);

		let labelScrollWorkspaces = new Gtk.Label({
			label: _("Scroll Workspaces"),
			xalign: 0
		});
		this.gridButtons.attach(labelScrollWorkspaces, 1, 4, 1, 1);
		this.valueScrollWorkspaces = new Gtk.ComboBoxText();
		this.valueScrollWorkspaces.append_text(_("OFF"));
		this.valueScrollWorkspaces.append_text(_("Standard"));
		this.valueScrollWorkspaces.append_text(_("Invert"));
		this.valueScrollWorkspaces.set_active(this.settings.get_enum("scroll-workspaces"));
		this.valueScrollWorkspaces.connect('changed', Lang.bind(this, this.changeScrollWorkspaces));
		this.gridButtons.attach(this.valueScrollWorkspaces, 3, 4, 2, 1);

		let labelDisplayWorkspaceButtonColor = new Gtk.Label({
			label: _("Workspace Button Color"),
			xalign: 0
		});
		this.gridButtons.attach(labelDisplayWorkspaceButtonColor, 1, 5, 1, 1);
		let colorWorkspaceButton = this.settings.get_string("workspace-button-color");
		this.valueWorkspaceButtonColor = new Gtk.ColorButton({
			title: "TaskBar - Set Workspace Button Color"
		});
		this.valueWorkspaceButtonColor.set_use_alpha(true);
		let rgbaWorkspaceButton = new Gdk.RGBA();
		if (colorWorkspaceButton === 'unset')
			colorWorkspaceButton = RESETCOLORWHITE;
		rgbaWorkspaceButton.parse(colorWorkspaceButton);
		this.valueWorkspaceButtonColor.set_rgba(rgbaWorkspaceButton);
		this.valueWorkspaceButtonColor.connect('color-set', Lang.bind(this, this.changeWorkspaceButtonColor));
		this.gridButtons.attach(this.valueWorkspaceButtonColor, 3, 5, 1, 1);
		this.valueDisplayWorkspaceButtonColor = new Gtk.Switch({
			active: this.settings.get_boolean("display-workspace-button-color")
		});
		this.valueDisplayWorkspaceButtonColor.connect('notify::active', Lang.bind(this, this.displayWorkspaceButtonColor));
		this.gridButtons.attach(this.valueDisplayWorkspaceButtonColor, 4, 5, 1, 1);

		let labelWorkspaceButtonWidth = new Gtk.Label({
			label: _("Adjust Workspace Button Width") + " (0 px)",
			xalign: 0
		});
		this.gridButtons.attach(labelWorkspaceButtonWidth, 1, 6, 2, 1);
		this.valueWorkspaceButtonWidth = new Gtk.Adjustment({
			lower: -96,
			upper: 96,
			step_increment: 1
		});
		let value2WorkspaceButtonWidth = new Gtk.SpinButton({
			adjustment: this.valueWorkspaceButtonWidth,
			snap_to_ticks: true
		});
		value2WorkspaceButtonWidth.set_value(this.settings.get_int("workspace-button-width"));
		value2WorkspaceButtonWidth.connect("value-changed", Lang.bind(this, this.changeWorkspaceButtonWidth));
		this.gridButtons.attach(value2WorkspaceButtonWidth, 3, 6, 2, 1);

		let labelShowAppsButtonToggle = new Gtk.Label({
			label: _("Appview Button\nLeft & Right Click Toggle"),
			xalign: 0
		});
		this.gridButtons.attach(labelShowAppsButtonToggle, 1, 7, 1, 1);
		this.valueShowAppsButtonToggle = new Gtk.ComboBoxText();
		this.valueShowAppsButtonToggle.append_text(_("L Appview\nR Overview"));
		this.valueShowAppsButtonToggle.append_text(_("L Overview\nR Appview"));
		this.valueShowAppsButtonToggle.set_active(this.settings.get_enum("showapps-button-toggle"));
		this.valueShowAppsButtonToggle.connect('changed', Lang.bind(this, this.changeShowAppsButtonToggle));
		this.gridButtons.attach(this.valueShowAppsButtonToggle, 3, 7, 2, 1);

		let labelAppviewButtonIcon = new Gtk.Label({
			label: _("Appview Button Icon"),
			xalign: 0
		});
		this.gridButtons.attach(labelAppviewButtonIcon, 1, 8, 1, 1);
		this.appviewIconFilename = this.settings.get_string("appview-button-icon");
		if (this.appviewIconFilename === 'unset')
			this.appviewIconFilename = APPVIEWICON;
		this.valueAppviewButtonIcon = new Gtk.Image();
		this.loadAppviewIcon();
		this.valueAppviewButtonIcon2 = new Gtk.Button({
			image: this.valueAppviewButtonIcon
		});
		this.valueAppviewButtonIcon2.connect('clicked', Lang.bind(this, this.changeAppviewButtonIcon));
		this.gridButtons.attach(this.valueAppviewButtonIcon2, 4, 8, 1, 1);

		let resetButtonsButton = new Gtk.Button({
			label: _("Reset Buttons Tab")
		});
		resetButtonsButton.modify_fg(Gtk.StateType.NORMAL, new Gdk.Color({
			red: 65535,
			green: 0,
			blue: 0
		}));
		resetButtonsButton.connect('clicked', Lang.bind(this, this.resetButtons));
		resetButtonsButton.set_tooltip_text(_("Reset the Buttons Tab except the Icons to the Original Buttons Settings.\nThe Icons can be Reset within their own Settings."));
		this.gridButtons.attach(resetButtonsButton, 1, 13, 1, 1);

		let labelSpaceButtons1 = new Gtk.Label({
			label: "\t",
			xalign: 0
		});
		this.gridButtons.attach(labelSpaceButtons1, 0, 14, 1, 1);
		let labelSpaceButtons2 = new Gtk.Label({
			label: "\t",
			xalign: 0,
			hexpand: true
		});
		this.gridButtons.attach(labelSpaceButtons2, 2, 1, 1, 1);
		let labelSpaceButtons3 = new Gtk.Label({
			label: "\t",
			xalign: 0
		});
		this.gridButtons.attach(labelSpaceButtons3, 3, 12, 1, 1);
		let labelSpaceButtons4 = new Gtk.Label({
			label: "<b>" + _("Buttons") + "</b>",
			hexpand: true
		});
		labelSpaceButtons4.set_use_markup(true);
		this.gridButtons.attach(labelSpaceButtons4, 0, 0, 7, 1);
		let labelSpaceButtons5 = new Gtk.Label({
			label: "\t",
			xalign: 0
		});
		this.gridButtons.attach(labelSpaceButtons5, 6, 1, 1, 1);

		this.gridTrayButton = new Gtk.Grid();
		this.gridTrayButton.margin = this.gridTrayButton.row_spacing = 10;
		this.gridTrayButton.column_spacing = 2;

		let scrollWindowTrayButton = this.gridTrayButton;

		scrollWindowTrayButton.show_all();
		let labelTrayButton = new Gtk.Label({
			label: _("Tray Button")
		});

		if (ShellVersion[1] <= 14)
			notebook.append_page(scrollWindowTrayButton, labelTrayButton);

		let labelBottomTrayButton = new Gtk.Label({
			label: _("Bottom Panel Tray Button"),
			xalign: 0
		});
		this.gridTrayButton.attach(labelBottomTrayButton, 1, 1, 1, 1);
		this.valueTrayButton = new Gtk.ComboBoxText();
		this.valueTrayButton.append_text(_("OFF"));
		this.valueTrayButton.append_text(_("Icon"));
		this.valueTrayButton.append_text(_("Index"));
		this.valueTrayButton.set_active(this.settings.get_enum("tray-button"));
		this.valueTrayButton.connect('changed', Lang.bind(this, this.changeDisplayTrayButton));
		this.gridTrayButton.attach(this.valueTrayButton, 3, 1, 2, 1);

		let labelTrayButtonEmpty = new Gtk.Label({
			label: _("When Tray is Empty"),
			xalign: 0
		});
		this.gridTrayButton.attach(labelTrayButtonEmpty, 1, 2, 1, 1);
		this.valueTrayButtonEmpty = new Gtk.ComboBoxText();
		this.valueTrayButtonEmpty.append_text(_("Show Icon"));
		this.valueTrayButtonEmpty.append_text(_("Show 0"));
		this.valueTrayButtonEmpty.append_text(_("Hide"));
		this.valueTrayButtonEmpty.set_active(this.settings.get_enum("tray-button-empty"));
		this.valueTrayButtonEmpty.connect('changed', Lang.bind(this, this.changeDisplayTrayButtonEmpty));
		this.gridTrayButton.attach(this.valueTrayButtonEmpty, 3, 2, 2, 1);

		let labelTrayButtonIcon = new Gtk.Label({
			label: _("Tray Button Icon"),
			xalign: 0
		});
		this.gridTrayButton.attach(labelTrayButtonIcon, 1, 3, 1, 1);
		this.trayIconFilename = this.settings.get_string("tray-button-icon");
		if (this.trayIconFilename === 'unset')
			this.trayIconFilename = TRAYICON;
		this.valueTrayButtonIcon = new Gtk.Image();
		this.loadTrayIcon();
		this.valueTrayButtonIcon2 = new Gtk.Button({
			image: this.valueTrayButtonIcon
		});
		this.valueTrayButtonIcon2.connect('clicked', Lang.bind(this, this.changeTrayButtonIcon));
		this.gridTrayButton.attach(this.valueTrayButtonIcon2, 4, 3, 1, 1);

		let labelHoverTrayButton = new Gtk.Label({
			label: _("Activate Tray on Hover"),
			xalign: 0
		});
		this.gridTrayButton.attach(labelHoverTrayButton, 1, 4, 1, 1);
		this.valueHoverTrayButton = new Gtk.Switch({
			active: this.settings.get_boolean("hover-tray-button")
		});
		this.valueHoverTrayButton.connect('notify::active', Lang.bind(this, this.changeHoverTrayButton));
		this.gridTrayButton.attach(this.valueHoverTrayButton, 4, 4, 1, 1);

		let resetTrayButtonButton = new Gtk.Button({
			label: _("Reset Tray Button Tab")
		});
		resetTrayButtonButton.modify_fg(Gtk.StateType.NORMAL, new Gdk.Color({
			red: 65535,
			green: 0,
			blue: 0
		}));
		resetTrayButtonButton.connect('clicked', Lang.bind(this, this.resetTrayButton));
		resetTrayButtonButton.set_tooltip_text(_("Reset the Tray Button Tab except the Icon to the Original Tray Button Settings.\nThe Icon can be Reset within its own Settings."));
		this.gridTrayButton.attach(resetTrayButtonButton, 1, 6, 1, 1);

		let labelSpaceTrayButton1 = new Gtk.Label({
			label: "\t",
			xalign: 0
		});
		this.gridTrayButton.attach(labelSpaceTrayButton1, 0, 7, 1, 1);
		let labelSpaceTrayButton2 = new Gtk.Label({
			label: "\t",
			xalign: 0,
			hexpand: true
		});
		this.gridTrayButton.attach(labelSpaceTrayButton2, 2, 1, 1, 1);
		let labelSpaceTrayButton3 = new Gtk.Label({
			label: "\t",
			xalign: 0
		});
		this.gridTrayButton.attach(labelSpaceTrayButton3, 3, 5, 1, 1);
		let labelSpaceTrayButton4 = new Gtk.Label({
			label: "<b>" + _("Tray Button") + "</b>",
			hexpand: true
		});
		labelSpaceTrayButton4.set_use_markup(true);
		this.gridTrayButton.attach(labelSpaceTrayButton4, 0, 0, 7, 1);
		let labelSpaceTrayButton5 = new Gtk.Label({
			label: "\t",
			xalign: 0
		});
		this.gridTrayButton.attach(labelSpaceTrayButton5, 6, 1, 1, 1);

		this.gridSeparator = new Gtk.Grid();
		this.gridSeparator.margin = this.gridSeparator.row_spacing = 10;
		this.gridSeparator.column_spacing = 2;

		let scrollWindowSeparator = this.gridSeparator;

		scrollWindowSeparator.show_all();
		let labelSeparator = new Gtk.Label({
			label: _("Separators")
		});
		notebook.append_page(scrollWindowSeparator, labelSeparator);

		let labelPanel5 = new Gtk.Label({
			label: _("Left (px)")
		});
		this.gridSeparator.attach(labelPanel5, 3, 1, 2, 1);
		let labelPanel6 = new Gtk.Label({
			label: _("Right (px)")
		});
		this.gridSeparator.attach(labelPanel6, 6, 1, 2, 1);

		let labelSeparatorBoxMain = new Gtk.Label({
			label: _("TaskBar"),
			xalign: 0
		});
		this.gridSeparator.attach(labelSeparatorBoxMain, 1, 2, 1, 1);
		this.valueSeparatorLeftBoxMain = new Gtk.Adjustment({
			lower: 0,
			upper: 1000,
			step_increment: 1
		});
		let value2SeparatorLeftBoxMain = new Gtk.SpinButton({
			adjustment: this.valueSeparatorLeftBoxMain,
			snap_to_ticks: true
		});
		value2SeparatorLeftBoxMain.set_value(this.settings.get_int("separator-left-box-main"));
		value2SeparatorLeftBoxMain.connect("value-changed", Lang.bind(this, this.changeSeparatorLeftBoxMain));
		this.gridSeparator.attach(value2SeparatorLeftBoxMain, 3, 2, 2, 1);
		this.valueSeparatorRightBoxMain = new Gtk.Adjustment({
			lower: 0,
			upper: 1000,
			step_increment: 1
		});
		let value2SeparatorRightBoxMain = new Gtk.SpinButton({
			adjustment: this.valueSeparatorRightBoxMain,
			snap_to_ticks: true
		});
		value2SeparatorRightBoxMain.set_value(this.settings.get_int("separator-right-box-main"));
		value2SeparatorRightBoxMain.connect("value-changed", Lang.bind(this, this.changeSeparatorRightBoxMain));
		this.gridSeparator.attach(value2SeparatorRightBoxMain, 6, 2, 2, 1);

		let labelSeparatorTasks = new Gtk.Label({
			label: _("Tasks Container"),
			xalign: 0
		});
		this.gridSeparator.attach(labelSeparatorTasks, 1, 3, 1, 1);
		this.valueSeparatorLeftTasks = new Gtk.Adjustment({
			lower: 0,
			upper: 1000,
			step_increment: 1
		});
		let value2SeparatorLeftTasks = new Gtk.SpinButton({
			adjustment: this.valueSeparatorLeftTasks,
			snap_to_ticks: true
		});
		value2SeparatorLeftTasks.set_value(this.settings.get_int("separator-left-tasks"));
		value2SeparatorLeftTasks.connect("value-changed", Lang.bind(this, this.changeSeparatorLeftTasks));
		this.gridSeparator.attach(value2SeparatorLeftTasks, 3, 3, 2, 1);
		this.valueSeparatorRightTasks = new Gtk.Adjustment({
			lower: 0,
			upper: 1000,
			step_increment: 1
		});
		let value2SeparatorRightTasks = new Gtk.SpinButton({
			adjustment: this.valueSeparatorRightTasks,
			snap_to_ticks: true
		});
		value2SeparatorRightTasks.set_value(this.settings.get_int("separator-right-tasks"));
		value2SeparatorRightTasks.connect("value-changed", Lang.bind(this, this.changeSeparatorRightTasks));
		this.gridSeparator.attach(value2SeparatorRightTasks, 6, 3, 2, 1);

		let labelSeparatorDesktop = new Gtk.Label({
			label: _("Desktop Button"),
			xalign: 0
		});
		this.gridSeparator.attach(labelSeparatorDesktop, 1, 4, 1, 1);
		this.valueSeparatorLeftDesktop = new Gtk.Adjustment({
			lower: 0,
			upper: 1000,
			step_increment: 1
		});
		let value2SeparatorLeftDesktop = new Gtk.SpinButton({
			adjustment: this.valueSeparatorLeftDesktop,
			snap_to_ticks: true
		});
		value2SeparatorLeftDesktop.set_value(this.settings.get_int("separator-left-desktop"));
		value2SeparatorLeftDesktop.connect("value-changed", Lang.bind(this, this.changeSeparatorLeftDesktop));
		this.gridSeparator.attach(value2SeparatorLeftDesktop, 3, 4, 2, 1);
		this.valueSeparatorRightDesktop = new Gtk.Adjustment({
			lower: 0,
			upper: 1000,
			step_increment: 1
		});
		let value2SeparatorRightDesktop = new Gtk.SpinButton({
			adjustment: this.valueSeparatorRightDesktop,
			snap_to_ticks: true
		});
		value2SeparatorRightDesktop.set_value(this.settings.get_int("separator-right-desktop"));
		value2SeparatorRightDesktop.connect("value-changed", Lang.bind(this, this.changeSeparatorRightDesktop));
		this.gridSeparator.attach(value2SeparatorRightDesktop, 6, 4, 2, 1);

		let labelSeparatorWorkspaces = new Gtk.Label({
			label: _("Workspace Button"),
			xalign: 0
		});
		this.gridSeparator.attach(labelSeparatorWorkspaces, 1, 5, 1, 1);
		this.valueSeparatorLeftWorkspaces = new Gtk.Adjustment({
			lower: 0,
			upper: 1000,
			step_increment: 1
		});
		let value2SeparatorLeftWorkspaces = new Gtk.SpinButton({
			adjustment: this.valueSeparatorLeftWorkspaces,
			snap_to_ticks: true
		});
		value2SeparatorLeftWorkspaces.set_value(this.settings.get_int("separator-left-workspaces"));
		value2SeparatorLeftWorkspaces.connect("value-changed", Lang.bind(this, this.changeSeparatorLeftWorkspaces));
		this.gridSeparator.attach(value2SeparatorLeftWorkspaces, 3, 5, 2, 1);
		this.valueSeparatorRightWorkspaces = new Gtk.Adjustment({
			lower: 0,
			upper: 1000,
			step_increment: 1
		});
		let value2SeparatorRightWorkspaces = new Gtk.SpinButton({
			adjustment: this.valueSeparatorRightWorkspaces,
			snap_to_ticks: true
		});
		value2SeparatorRightWorkspaces.set_value(this.settings.get_int("separator-right-workspaces"));
		value2SeparatorRightWorkspaces.connect("value-changed", Lang.bind(this, this.changeSeparatorRightWorkspaces));
		this.gridSeparator.attach(value2SeparatorRightWorkspaces, 6, 5, 2, 1);

		let labelSeparatorAppview = new Gtk.Label({
			label: _("Appview Button"),
			xalign: 0
		});
		this.gridSeparator.attach(labelSeparatorAppview, 1, 6, 1, 1);
		this.valueSeparatorLeftAppview = new Gtk.Adjustment({
			lower: 0,
			upper: 1000,
			step_increment: 1
		});
		let value2SeparatorLeftAppview = new Gtk.SpinButton({
			adjustment: this.valueSeparatorLeftAppview,
			snap_to_ticks: true
		});
		value2SeparatorLeftAppview.set_value(this.settings.get_int("separator-left-appview"));
		value2SeparatorLeftAppview.connect("value-changed", Lang.bind(this, this.changeSeparatorLeftAppview));
		this.gridSeparator.attach(value2SeparatorLeftAppview, 3, 6, 2, 1);
		this.valueSeparatorRightAppview = new Gtk.Adjustment({
			lower: 0,
			upper: 1000,
			step_increment: 1
		});
		let value2SeparatorRightAppview = new Gtk.SpinButton({
			adjustment: this.valueSeparatorRightAppview,
			snap_to_ticks: true
		});
		value2SeparatorRightAppview.set_value(this.settings.get_int("separator-right-appview"));
		value2SeparatorRightAppview.connect("value-changed", Lang.bind(this, this.changeSeparatorRightAppview));
		this.gridSeparator.attach(value2SeparatorRightAppview, 6, 6, 2, 1);

		let labelSeparatorFavorites = new Gtk.Label({
			label: _("Favorites"),
			xalign: 0
		});
		this.gridSeparator.attach(labelSeparatorFavorites, 1, 7, 1, 1);
		this.valueSeparatorLeftFavorites = new Gtk.Adjustment({
			lower: 0,
			upper: 1000,
			step_increment: 1
		});
		let value2SeparatorLeftFavorites = new Gtk.SpinButton({
			adjustment: this.valueSeparatorLeftFavorites,
			snap_to_ticks: true
		});
		value2SeparatorLeftFavorites.set_value(this.settings.get_int("separator-left-favorites"));
		value2SeparatorLeftFavorites.connect("value-changed", Lang.bind(this, this.changeSeparatorLeftFavorites));
		this.gridSeparator.attach(value2SeparatorLeftFavorites, 3, 7, 2, 1);
		this.valueSeparatorRightFavorites = new Gtk.Adjustment({
			lower: 0,
			upper: 1000,
			step_increment: 1
		});
		let value2SeparatorRightFavorites = new Gtk.SpinButton({
			adjustment: this.valueSeparatorRightFavorites,
			snap_to_ticks: true
		});
		value2SeparatorRightFavorites.set_value(this.settings.get_int("separator-right-favorites"));
		value2SeparatorRightFavorites.connect("value-changed", Lang.bind(this, this.changeSeparatorRightFavorites));
		this.gridSeparator.attach(value2SeparatorRightFavorites, 6, 7, 2, 1);

		let resetSeparatorButton = new Gtk.Button({
			label: _("Reset Separators Tab")
		});
		resetSeparatorButton.modify_fg(Gtk.StateType.NORMAL, new Gdk.Color({
			red: 65535,
			green: 0,
			blue: 0
		}));
		resetSeparatorButton.connect('clicked', Lang.bind(this, this.resetSeparators));
		resetSeparatorButton.set_tooltip_text(_("Reset the Separators Tab to the Original Separators Settings"));
		this.gridSeparator.attach(resetSeparatorButton, 1, 9, 1, 1);

		let labelSpaceSeparator1 = new Gtk.Label({
			label: "\t",
			xalign: 0
		});
		this.gridSeparator.attach(labelSpaceSeparator1, 0, 10, 1, 1);
		let labelSpaceSeparator2 = new Gtk.Label({
			label: "\t",
			xalign: 0,
			hexpand: true
		});
		this.gridSeparator.attach(labelSpaceSeparator2, 2, 0, 1, 1);
		let labelSpaceSeparator3 = new Gtk.Label({
			label: "\t",
			xalign: 0
		});
		this.gridSeparator.attach(labelSpaceSeparator3, 3, 0, 1, 1);
		let labelSpaceSeparator4 = new Gtk.Label({
			label: "\t",
			xalign: 0
		});
		this.gridSeparator.attach(labelSpaceSeparator4, 5, 8, 1, 1);
		let labelSpaceSeparator5 = new Gtk.Label({
			label: "\t",
			xalign: 0
		});
		this.gridSeparator.attach(labelSpaceSeparator5, 6, 0, 1, 1);
		let labelSpaceSeparator6 = new Gtk.Label({
			label: "<b>" + _("Separators") + "</b>",
			hexpand: true
		});
		labelSpaceSeparator6.set_use_markup(true);
		this.gridSeparator.attach(labelSpaceSeparator6, 0, 0, 9, 1);
		let labelSpaceSeparator7 = new Gtk.Label({
			label: "\t",
			xalign: 0
		});
		this.gridSeparator.attach(labelSpaceSeparator7, 8, 1, 1, 1);

		this.gridPreview = new Gtk.Grid();
		this.gridPreview.margin = this.gridPreview.row_spacing = 10;
		this.gridPreview.column_spacing = 2;

		let scrollWindowPreview = this.gridPreview;

		scrollWindowPreview.show_all();
		let labelPreview = new Gtk.Label({
			label: _("Preview")
		});
		notebook.append_page(scrollWindowPreview, labelPreview);

		let labelDisplayLabel = new Gtk.Label({
			label: _("Tasks Label Preview"),
			xalign: 0
		});
		this.gridPreview.attach(labelDisplayLabel, 1, 1, 1, 1);
		this.valueDisplayLabel = new Gtk.ComboBoxText();
		this.valueDisplayLabel.append_text(_("OFF"));
		this.valueDisplayLabel.append_text(_("App Name"));
		this.valueDisplayLabel.append_text(_("Window Title"));
		this.valueDisplayLabel.append_text(_("App Name &\nWindow Title"));
		this.valueDisplayLabel.set_active(this.settings.get_enum("display-label"));
		this.valueDisplayLabel.connect('changed', Lang.bind(this, this.changeDisplayLabel));
		this.gridPreview.attach(this.valueDisplayLabel, 3, 1, 2, 1);

		let labelDisplayThumbnail = new Gtk.Label({
			label: _("Tasks Thumbnail Preview"),
			xalign: 0
		});
		this.gridPreview.attach(labelDisplayThumbnail, 1, 2, 1, 1);
		this.valueDisplayThumbnail = new Gtk.Switch({
			active: this.settings.get_boolean("display-thumbnail")
		});
		this.valueDisplayThumbnail.connect('notify::active', Lang.bind(this, this.changeDisplayThumbnail));
		this.gridPreview.attach(this.valueDisplayThumbnail, 4, 2, 1, 1);

		let labelDisplayFavoritesLabel = new Gtk.Label({
			label: _("Favorites Label Preview"),
			xalign: 0
		});
		this.gridPreview.attach(labelDisplayFavoritesLabel, 1, 3, 1, 1);
		this.valueDisplayFavoritesLabel = new Gtk.ComboBoxText();
		this.valueDisplayFavoritesLabel.append_text(_("OFF"));
		this.valueDisplayFavoritesLabel.append_text(_("App Name"));
		this.valueDisplayFavoritesLabel.append_text(_("Description"));
		this.valueDisplayFavoritesLabel.append_text(_("App Name &\nDescription"));
		this.valueDisplayFavoritesLabel.set_active(this.settings.get_enum("display-favorites-label"));
		this.valueDisplayFavoritesLabel.connect('changed', Lang.bind(this, this.changeDisplayFavoritesLabel));
		this.gridPreview.attach(this.valueDisplayFavoritesLabel, 3, 3, 2, 1);

		let labelPreviewSize = new Gtk.Label({
			label: _("Thumbnail Preview Size") + " (350 px)",
			xalign: 0
		});
		this.gridPreview.attach(labelPreviewSize, 1, 4, 1, 1);
		this.valuePreviewSize = new Gtk.Adjustment({
			lower: 100,
			upper: 1000,
			step_increment: 1
		});
		let value2PreviewSize = new Gtk.SpinButton({
			adjustment: this.valuePreviewSize,
			snap_to_ticks: true
		});
		value2PreviewSize.set_value(this.settings.get_int("preview-size"));
		value2PreviewSize.connect("value-changed", Lang.bind(this, this.changePreviewSize));
		this.gridPreview.attach(value2PreviewSize, 3, 4, 2, 1);

		let labelPreviewDelay = new Gtk.Label({
			label: _("Preview Delay") + " (500 ms)",
			xalign: 0
		});
		this.gridPreview.attach(labelPreviewDelay, 1, 5, 2, 1);
		this.valuePreviewDelay = new Gtk.Adjustment({
			lower: 0,
			upper: 10000,
			step_increment: 1
		});
		let value2PreviewDelay = new Gtk.SpinButton({
			adjustment: this.valuePreviewDelay,
			snap_to_ticks: true
		});
		value2PreviewDelay.set_value(this.settings.get_int("preview-delay"));
		value2PreviewDelay.connect("value-changed", Lang.bind(this, this.changePreviewDelay));
		this.gridPreview.attach(value2PreviewDelay, 3, 5, 2, 1);

		let labelDisplayPreviewBackgroundColor = new Gtk.Label({
			label: _("Preview Background Color"),
			xalign: 0
		});
		this.gridPreview.attach(labelDisplayPreviewBackgroundColor, 1, 6, 1, 1);
		let colorPreviewBackground = this.settings.get_string("preview-background-color");
		this.valuePreviewBackgroundColor = new Gtk.ColorButton({
			title: "TaskBar - Set Preview Background Color"
		});
		this.valuePreviewBackgroundColor.set_use_alpha(true);
		let rgbaPreviewBackground = new Gdk.RGBA();
		if (colorPreviewBackground === 'unset')
			colorPreviewBackground = RESETCOLORBLACK;
		rgbaPreviewBackground.parse(colorPreviewBackground);
		this.valuePreviewBackgroundColor.set_rgba(rgbaPreviewBackground);
		this.valuePreviewBackgroundColor.connect('color-set', Lang.bind(this, this.changePreviewBackgroundColor));
		this.gridPreview.attach(this.valuePreviewBackgroundColor, 3, 6, 1, 1);
		this.valueDisplayPreviewBackgroundColor = new Gtk.Switch({
			active: this.settings.get_boolean("display-preview-background-color")
		});
		this.valueDisplayPreviewBackgroundColor.connect('notify::active', Lang.bind(this, this.displayPreviewBackgroundColor));
		this.gridPreview.attach(this.valueDisplayPreviewBackgroundColor, 4, 6, 1, 1);

		let labelDisplayPreviewLabelColor = new Gtk.Label({
			label: _("Preview Label Color"),
			xalign: 0
		});
		this.gridPreview.attach(labelDisplayPreviewLabelColor, 1, 7, 1, 1);
		let colorPreviewLabel = this.settings.get_string("preview-label-color");
		this.valuePreviewLabelColor = new Gtk.ColorButton({
			title: "TaskBar - Set Preview Label Color"
		});
		this.valuePreviewLabelColor.set_use_alpha(true);
		let rgbaPreviewLabel = new Gdk.RGBA();
		if (colorPreviewLabel === 'unset')
			colorPreviewLabel = RESETCOLORWHITE;
		rgbaPreviewLabel.parse(colorPreviewLabel);
		this.valuePreviewLabelColor.set_rgba(rgbaPreviewLabel);
		this.valuePreviewLabelColor.connect('color-set', Lang.bind(this, this.changePreviewLabelColor));
		this.gridPreview.attach(this.valuePreviewLabelColor, 3, 7, 1, 1);
		this.valueDisplayPreviewLabelColor = new Gtk.Switch({
			active: this.settings.get_boolean("display-preview-label-color")
		});
		this.valueDisplayPreviewLabelColor.connect('notify::active', Lang.bind(this, this.displayPreviewLabelColor));
		this.gridPreview.attach(this.valueDisplayPreviewLabelColor, 4, 7, 1, 1);

		let labelPreviewFontSize = new Gtk.Label({
			label: _("Preview Font Size") + " (9 pt)",
			xalign: 0
		});
		this.gridPreview.attach(labelPreviewFontSize, 1, 8, 2, 1);
		this.valuePreviewFontSize = new Gtk.Adjustment({
			lower: 1,
			upper: 96,
			step_increment: 1
		});
		let value2PreviewFontSize = new Gtk.SpinButton({
			adjustment: this.valuePreviewFontSize,
			snap_to_ticks: true
		});
		value2PreviewFontSize.set_value(this.settings.get_int("preview-font-size"));
		value2PreviewFontSize.connect("value-changed", Lang.bind(this, this.changePreviewFontSize));
		this.gridPreview.attach(value2PreviewFontSize, 3, 8, 2, 1);

		let resetPreviewButton = new Gtk.Button({
			label: _("Reset Preview Tab")
		});
		resetPreviewButton.modify_fg(Gtk.StateType.NORMAL, new Gdk.Color({
			red: 65535,
			green: 0,
			blue: 0
		}));
		resetPreviewButton.connect('clicked', Lang.bind(this, this.resetPreview));
		resetPreviewButton.set_tooltip_text(_("Reset the Preview Tab to the Original Preview Settings"));
		this.gridPreview.attach(resetPreviewButton, 1, 10, 1, 1);

		let labelSpacePreview1 = new Gtk.Label({
			label: "\t",
			xalign: 0
		});
		this.gridPreview.attach(labelSpacePreview1, 0, 11, 1, 1);
		let labelSpacePreview2 = new Gtk.Label({
			label: "\t",
			xalign: 0,
			hexpand: true
		});
		this.gridPreview.attach(labelSpacePreview2, 2, 1, 1, 1);
		let labelSpacePreview3 = new Gtk.Label({
			label: "\t",
			xalign: 0
		});
		this.gridPreview.attach(labelSpacePreview3, 3, 9, 1, 1);
		let labelSpacePreview4 = new Gtk.Label({
			label: "<b>" + _("Preview") + "</b>",
			hexpand: true
		});
		labelSpacePreview4.set_use_markup(true);
		this.gridPreview.attach(labelSpacePreview4, 0, 0, 6, 1);
		let labelSpacePreview5 = new Gtk.Label({
			label: "\t",
			xalign: 0
		});
		this.gridPreview.attach(labelSpacePreview5, 5, 1, 1, 1);

		this.gridKeybindings = new Gtk.Grid();
		this.gridKeybindings.margin = this.gridKeybindings.row_spacing = 10;
		this.gridKeybindings.column_spacing = 2;

		let scrollWindowKeybindings = this.gridKeybindings;

		scrollWindowKeybindings.show_all();
		let labelKeybindings = new Gtk.Label({
			label: _("Keybindings")
		});
		notebook.append_page(scrollWindowKeybindings, labelKeybindings);

		let model = new Gtk.ListStore();
		model.set_column_types([
			GObject.TYPE_STRING,
			GObject.TYPE_STRING,
			GObject.TYPE_INT,
			GObject.TYPE_INT
		]);
		let key;
		let settings = this.settings;
		for (key in pretty_names) {
			this.append_hotkey(model, settings, key, pretty_names[key]);
		}
		let treeview = new Gtk.TreeView({
			'expand': true,
			'model': model
		});
		let col;
		let cellrend;
		cellrend = new Gtk.CellRendererText();
		col = new Gtk.TreeViewColumn({
			'title': 'Keybinding',
			'expand': true
		});
		col.pack_start(cellrend, true);
		col.add_attribute(cellrend, 'text', 1);
		treeview.append_column(col);
		cellrend = new Gtk.CellRendererAccel({
			'editable': true,
			'accel-mode': Gtk.CellRendererAccelMode.GTK
		});
		cellrend.connect('accel-edited', function(rend, iter, key, mods) {
			let value = Gtk.accelerator_name(key, mods);
			let success = false;
			[success, iter] = model.get_iter_from_string(iter);
			if (!success) {
				throw new Error("Something be broken, yo.");
			}
			let name = model.get_value(iter, 0);
			model.set(iter, [2, 3], [mods, key]);
			settings.set_strv(name, [value]);
		});
		cellrend.connect('accel-cleared', function(rend, iter, key, mods) {
			let success = false;
			[success, iter] = model.get_iter_from_string(iter);
			if (!success) {
				throw new Error("Error clearing keybinding");
			}
			let name = model.get_value(iter, 0);
			model.set(iter, [2, 3], [0, 0]);
			settings.set_strv(name, ['']);
		});
		col = new Gtk.TreeViewColumn({
			'title': 'Accel'
		});
		col.pack_end(cellrend, false);
		col.add_attribute(cellrend, 'accel-mods', 2);
		col.add_attribute(cellrend, 'accel-key', 3);
		treeview.append_column(col);
		this.gridKeybindings.attach(treeview, 1, 1, 5, 1);

		let labelBackspace = new Gtk.Label({
			label: _("Backspace to disable Keybindings"),
			xalign: 0
		});
		this.gridKeybindings.attach(labelBackspace, 1, 2, 5, 1);

		let labelSpaceKeybindings1 = new Gtk.Label({
			label: "\t",
			xalign: 0
		});
		this.gridKeybindings.attach(labelSpaceKeybindings1, 2, 3, 1, 1);
		let labelSpaceKeybindings2 = new Gtk.Label({
			label: "<b>" + _("Keybindings") + "</b>",
			hexpand: true
		});
		labelSpaceKeybindings2.set_use_markup(true);
		this.gridKeybindings.attach(labelSpaceKeybindings2, 0, 0, 7, 1);

		this.gridMisc = new Gtk.Grid();
		this.gridMisc.margin = this.gridMisc.row_spacing = 10;
		this.gridMisc.column_spacing = 2;

		let scrollWindowMisc = this.gridMisc;

		scrollWindowMisc.show_all();
		let labelMisc = new Gtk.Label({
			label: _("Misc")
		});
		notebook.append_page(scrollWindowMisc, labelMisc);

		let labelColor = new Gtk.Label({
			label: _("Color & Opacity")
		});
		this.gridMisc.attach(labelColor, 5, 1, 2, 1);

		let labelDisplayActivitiesButton = new Gtk.Label({
			label: _("Activities Button"),
			xalign: 0
		});
		this.gridMisc.attach(labelDisplayActivitiesButton, 1, 2, 1, 1);
		this.valueDisplayActivitiesButton = new Gtk.Switch({
			active: this.settings.get_boolean("activities-button")
		});
		this.valueDisplayActivitiesButton.connect('notify::active', Lang.bind(this, this.changeDisplayActivitiesButton));
		this.gridMisc.attach(this.valueDisplayActivitiesButton, 3, 2, 1, 1);
		let colorActivities = this.settings.get_string("activities-button-color");
		this.valueActivitiesColor = new Gtk.ColorButton({
			title: "TaskBar - Set Activities Button Color"
		});
		this.valueActivitiesColor.set_use_alpha(true);
		let rgbaActivities = new Gdk.RGBA();
		if (colorActivities === 'unset')
			colorActivities = RESETCOLOR;
		rgbaActivities.parse(colorActivities);
		this.valueActivitiesColor.set_rgba(rgbaActivities);
		this.valueActivitiesColor.connect('color-set', Lang.bind(this, this.changeActivitiesColor));
		this.gridMisc.attach(this.valueActivitiesColor, 5, 2, 1, 1);
		this.resetActivitiesColorButton = new Gtk.Button({
			label: _("Reset")
		});
		this.resetActivitiesColorButton.connect('clicked', Lang.bind(this, this.resetActivitiesColor));
		this.gridMisc.attach(this.resetActivitiesColorButton, 6, 2, 1, 1);

		let labelDisplayApplicationMenu = new Gtk.Label({
			label: _("Application Menu"),
			xalign: 0
		});
		this.gridMisc.attach(labelDisplayApplicationMenu, 1, 3, 1, 1);
		this.valueDisplayApplicationMenu = new Gtk.Switch({
			active: this.settings.get_boolean("application-menu")
		});
		this.valueDisplayApplicationMenu.connect('notify::active', Lang.bind(this, this.changeDisplayApplicationMenu));
		this.gridMisc.attach(this.valueDisplayApplicationMenu, 3, 3, 1, 1);
		let colorApplicationMenu = this.settings.get_string("application-menu-color");
		this.valueApplicationMenuColor = new Gtk.ColorButton({
			title: "TaskBar - Set Application Menu Color"
		});
		this.valueApplicationMenuColor.set_use_alpha(true);
		let rgbaApplicationMenu = new Gdk.RGBA();
		if (colorApplicationMenu === 'unset')
			colorApplicationMenu = RESETCOLOR;
		rgbaApplicationMenu.parse(colorApplicationMenu);
		this.valueApplicationMenuColor.set_rgba(rgbaApplicationMenu);
		this.valueApplicationMenuColor.connect('color-set', Lang.bind(this, this.changeApplicationMenuColor));
		this.gridMisc.attach(this.valueApplicationMenuColor, 5, 3, 1, 1);
		this.resetApplicationMenuColorButton = new Gtk.Button({
			label: _("Reset")
		});
		this.resetApplicationMenuColorButton.connect('clicked', Lang.bind(this, this.resetApplicationMenuColor));
		this.gridMisc.attach(this.resetApplicationMenuColorButton, 6, 3, 1, 1);

		let labelDisplayDateMenu = new Gtk.Label({
			label: _("Date Menu"),
			xalign: 0
		});
		this.gridMisc.attach(labelDisplayDateMenu, 1, 4, 1, 1);
		this.valueDisplayDateMenu = new Gtk.Switch({
			active: this.settings.get_boolean("date-menu")
		});
		this.valueDisplayDateMenu.connect('notify::active', Lang.bind(this, this.changeDisplayDateMenu));
		this.gridMisc.attach(this.valueDisplayDateMenu, 3, 4, 1, 1);
		let colorDateMenu = this.settings.get_string("date-menu-color");
		this.valueDateMenuColor = new Gtk.ColorButton({
			title: "TaskBar - Set Date Menu Color"
		});
		this.valueDateMenuColor.set_use_alpha(true);
		let rgbaDateMenu = new Gdk.RGBA();
		if (colorDateMenu === 'unset')
			colorDateMenu = RESETCOLOR;
		rgbaDateMenu.parse(colorDateMenu);
		this.valueDateMenuColor.set_rgba(rgbaDateMenu);
		this.valueDateMenuColor.connect('color-set', Lang.bind(this, this.changeDateMenuColor));
		this.gridMisc.attach(this.valueDateMenuColor, 5, 4, 1, 1);
		this.resetDateMenuColorButton = new Gtk.Button({
			label: _("Reset")
		});
		this.resetDateMenuColorButton.connect('clicked', Lang.bind(this, this.resetDateMenuColor));
		this.gridMisc.attach(this.resetDateMenuColorButton, 6, 4, 1, 1);

		let labelDisplaySystemMenu = new Gtk.Label({
			label: _("System Menu"),
			xalign: 0
		});
		this.gridMisc.attach(labelDisplaySystemMenu, 1, 5, 1, 1);
		this.valueDisplaySystemMenu = new Gtk.Switch({
			active: this.settings.get_boolean("system-menu")
		});
		this.valueDisplaySystemMenu.connect('notify::active', Lang.bind(this, this.changeDisplaySystemMenu));
		this.gridMisc.attach(this.valueDisplaySystemMenu, 3, 5, 1, 1);
		let colorSystemMenu = this.settings.get_string("system-menu-color");
		this.valueSystemMenuColor = new Gtk.ColorButton({
			title: "TaskBar - Set System Menu Color"
		});
		this.valueSystemMenuColor.set_use_alpha(true);
		let rgbaSystemMenu = new Gdk.RGBA();
		if (colorSystemMenu === 'unset')
			colorSystemMenu = RESETCOLOR;
		rgbaSystemMenu.parse(colorSystemMenu);
		this.valueSystemMenuColor.set_rgba(rgbaSystemMenu);
		this.valueSystemMenuColor.connect('color-set', Lang.bind(this, this.changeSystemMenuColor));
		this.gridMisc.attach(this.valueSystemMenuColor, 5, 5, 1, 1);
		this.resetSystemMenuColorButton = new Gtk.Button({
			label: _("Reset")
		});
		this.resetSystemMenuColorButton.connect('clicked', Lang.bind(this, this.resetSystemMenuColor));
		this.gridMisc.attach(this.resetSystemMenuColorButton, 6, 5, 1, 1);
        if (ShellVersion[1] < 26) {
		    let labelEnableHotCorner = new Gtk.Label({
			    label: _("Hot Corner"),
			    xalign: 0
		    });
		    this.gridMisc.attach(labelEnableHotCorner, 1, 6, 1, 1);
		    this.valueEnableHotCorner = new Gtk.Switch({
			    active: this.settings.get_boolean("hot-corner")
		    });
		this.valueEnableHotCorner.connect('notify::active', Lang.bind(this, this.changeEnableHotCorner));
		this.gridMisc.attach(this.valueEnableHotCorner, 3, 6, 1, 1);
        }
		let labelDisplayDash = new Gtk.Label({
			label: _("Dash (Activities Overview)"),
			xalign: 0
		});
		this.gridMisc.attach(labelDisplayDash, 1, 7, 1, 1);
		this.valueDisplayDash = new Gtk.Switch({
			active: this.settings.get_boolean("dash")
		});
		this.valueDisplayDash.connect('notify::active', Lang.bind(this, this.changeDisplayDash));
		this.gridMisc.attach(this.valueDisplayDash, 3, 7, 1, 1);

		let labelDisplayWorkspaceSelector = new Gtk.Label({
			label: _("Workspace Selector (Activities Overview)"),
			xalign: 0
		});
		this.gridMisc.attach(labelDisplayWorkspaceSelector, 1, 8, 1, 1);
		this.valueDisplayWorkspaceSelector = new Gtk.Switch({
			active: this.settings.get_boolean("workspace-selector")
		});
		this.valueDisplayWorkspaceSelector.connect('notify::active', Lang.bind(this, this.changeDisplayWorkspaceSelector));
		this.gridMisc.attach(this.valueDisplayWorkspaceSelector, 3, 8, 1, 1);

		let labelOverview = new Gtk.Label({
			label: _("TaskBar (Activities Overview)"),
			xalign: 0
		});
		this.gridMisc.attach(labelOverview, 1, 9, 1, 1);
		this.valueOverview = new Gtk.Switch({
			active: this.settings.get_boolean("overview")
		});
		this.valueOverview.connect('notify::active', Lang.bind(this, this.changeOverview));
		this.gridMisc.attach(this.valueOverview, 3, 9, 1, 1);

		let resetMiscButton = new Gtk.Button({
			label: _("Reset Misc Tab")
		});
		resetMiscButton.modify_fg(Gtk.StateType.NORMAL, new Gdk.Color({
			red: 65535,
			green: 0,
			blue: 0
		}));
		resetMiscButton.connect('clicked', Lang.bind(this, this.resetMisc));
		resetMiscButton.set_tooltip_text(_("Reset the Misc Tab to the Original Misc Settings"));
		this.gridMisc.attach(resetMiscButton, 1, 11, 1, 1);

		let labelSpaceMisc1 = new Gtk.Label({
			label: "\t",
			xalign: 0
		});
		this.gridMisc.attach(labelSpaceMisc1, 0, 12, 1, 1);
		let labelSpaceMisc2 = new Gtk.Label({
			label: "\t",
			xalign: 0,
			hexpand: true
		});
		this.gridMisc.attach(labelSpaceMisc2, 2, 1, 1, 1);
		let labelSpaceMisc3 = new Gtk.Label({
			label: "<b>" + _("Misc") + "</b>",
			hexpand: true
		});
		labelSpaceMisc3.set_use_markup(true);
		this.gridMisc.attach(labelSpaceMisc3, 0, 0, 8, 1);
		let labelSpaceMisc4 = new Gtk.Label({
			label: "\t",
			xalign: 0
		});
		this.gridMisc.attach(labelSpaceMisc4, 4, 10, 1, 1);
		let labelSpaceMisc5 = new Gtk.Label({
			label: "\t",
			xalign: 0
		});
		this.gridMisc.attach(labelSpaceMisc5, 7, 10, 1, 1);

		this.gridGPL = new Gtk.Grid();
		this.gridGPL.margin = this.gridGPL.row_spacing = 10;
		this.gridGPL.column_spacing = 2;

		let scrollWindowGPL = this.gridGPL;

		scrollWindowGPL.show_all();
		let labelTitleGPL = new Gtk.Label({
			label: _("GNU GPL")
		});
		notebook.append_page(scrollWindowGPL, labelTitleGPL);

		let gplImage = new Gtk.Image({
			file: GPLICON,
			xalign: 1
		});
		let gplSpacer = new Gtk.Image({
			file: SPACERICON
		});

		let labelGPL = new Gtk.Label({
			label: "GNOME Shell Extension TaskBar\nCopyright (C) 2013-2018 zpydr\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program. If not, see",
			xalign: 0
		});
		let labelLinkGPL = new Gtk.LinkButton({
			image: gplSpacer,
			label: "https://www.gnu.org/licenses/",
			uri: "https://www.gnu.org/licenses/",
			xalign: 0
		});
		let labelEmailLinkGPL = new Gtk.LinkButton({
			image: gplSpacer,
			label: "zpydr@openmailbox.org",
			uri: "mailto:zpydr@openmailbox.org",
			xalign: 0
		});
		this.gridGPL.attach(labelGPL, 1, 1, 2, 1);
		this.gridGPL.attach(labelLinkGPL, 1, 2, 1, 1);
		this.gridGPL.attach(labelEmailLinkGPL, 1, 3, 1, 1);
		this.gridGPL.attach(gplImage, 2, 3, 1, 1);

		let labelSpaceGPL1 = new Gtk.Label({
			label: "\t",
			xalign: 0
		});
		this.gridGPL.attach(labelSpaceGPL1, 0, 1, 1, 1);
		let labelSpaceGPL2 = new Gtk.Label({
			label: "\t",
			xalign: 0,
			hexpand: true
		});
		this.gridGPL.attach(labelSpaceGPL2, 2, 1, 1, 1);
		let labelSpaceGPL3 = new Gtk.Label({
			label: "<b>" + _("GNU General Public License") + "</b>",
			hexpand: true
		});
		labelSpaceGPL3.set_use_markup(true);
		this.gridGPL.attach(labelSpaceGPL3, 0, 0, 4, 1);
		let labelSpaceGPL4 = new Gtk.Label({
			label: "\t",
			xalign: 0
		});
		this.gridGPL.attach(labelSpaceGPL4, 3, 4, 1, 1);

		notebook.set_current_page(1);
		notebook.show_all();
		return notebook;
	},

	changeDisplayTasks: function(object, pspec) {
		this.settings.set_boolean("display-tasks", object.active);
	},

	changeDisplayDesktopButton: function(object, pspec) {
		this.settings.set_boolean("display-desktop-button", object.active);
	},

	changeDisplayWorkspaceButton: function(object, pspec) {
		this.settings.set_boolean("display-workspace-button", object.active);
	},

	changeDisplayShowAppsButton: function(object, pspec) {
		this.settings.set_boolean("display-showapps-button", object.active);
	},

	changeDisplayFavorites: function(object, pspec) {
		this.settings.set_boolean("display-favorites", object.active);
	},

	changeAppearanceSelection: function(object) {
		this.settings.set_enum("appearance-selection", this.valueAppearance.get_active());
	},

	onHoverEvent: function(object) {
		this.hoverComponent = this.settings.get_enum("appearance-selection");
		this.settings.set_int("hover-event", this.hoverComponent + 1);
	},

	changePanelPositionLeft: function() {
		if (!this.settings.get_boolean("bottom-panel")) {
			this.panelPosition = this.settings.get_int("panel-position");
			this.panelBox = this.settings.get_int("panel-box");
			this.positionMaxRight = this.settings.get_int("position-max-right");
			if (this.panelPosition === 0) {
				if (this.panelBox > 1) {
					this.signalMax = this.settings.connect("changed::position-max-right", Lang.bind(this, function() {
							this.settings.disconnect(this.signalMax);
							this.panelPosition = this.settings.get_int("position-max-right");
							this.settings.set_int("panel-position", this.panelPosition);
						})),
						this.settings.set_int("panel-box", this.panelBox - 1);
				}
			} else
				this.settings.set_int("panel-position", this.panelPosition - 1);
		}
	},

	changePanelPositionRight: function() {
		if (!this.settings.get_boolean("bottom-panel")) {
			this.panelPosition = this.settings.get_int("panel-position");
			this.panelBox = this.settings.get_int("panel-box");
			this.positionMaxRight = this.settings.get_int("position-max-right");
			if (this.panelPosition >= this.positionMaxRight) {
				if (this.panelBox < 3) {
					this.settings.set_int("panel-box", this.panelBox + 1);
					this.settings.set_int("panel-position", 0);
				} else
					this.settings.set_int("panel-position", this.positionMaxRight);
			} else
				this.settings.set_int("panel-position", this.panelPosition + 1);
		}
	},

	changePanelPositionBottomLeft: function() {
		if (this.settings.get_boolean("bottom-panel")) {
			this.panelPositionBottom = this.settings.get_int("position-bottom-box");
			if (this.panelPositionBottom === 1)
				this.settings.set_int("position-bottom-box", 0);
			if (this.panelPositionBottom === 2)
				this.settings.set_int("position-bottom-box", 1);
		}
	},

	changePanelPositionBottomRight: function() {
		if (this.settings.get_boolean("bottom-panel")) {
			this.panelPositionBottom = this.settings.get_int("position-bottom-box");
			if (this.panelPositionBottom === 0)
				this.settings.set_int("position-bottom-box", 1);
			if (this.panelPositionBottom === 1)
				this.settings.set_int("position-bottom-box", 2);
		}
	},

	changeTopPanel: function(object, pspec) {
		this.settings.set_boolean("top-panel", object.active);
	},

	changeBottomPanel: function(object, pspec) {
		this.settings.set_boolean("bottom-panel", object.active);
	},

	changeOverview: function(object, pspec) {
		this.settings.set_boolean("overview", object.active);
	},

	changeBottomPanelVertical: function(object) {
		if (!this.settings.get_boolean("bottom-panel"))
			this.value2BottomPanelVertical.set_value(this.settings.get_int("bottom-panel-vertical"));
		else
			this.settings.set_int("bottom-panel-vertical", this.valueBottomPanelVertical.get_value());
	},

	changeIconSize: function(object) {
		this.settings.set_int("panel-size", this.valueIconSize.get_value());
	},

	changeIconSizeBottom: function(object) {
		if (!this.settings.get_boolean("bottom-panel"))
			this.valueIconSizeBottom.set_value(this.settings.get_int("panel-size-bottom"));
		else
			this.settings.set_int("panel-size-bottom", this.valueIconSizeBottom.get_value());
	},

	changeTBIconSize: function(object) {
		this.settings.set_int("tb-icon-size", this.valueTBIconSize.get_value());
	},

	changeTBIconSizeBottom: function(object) {
		if (!this.settings.get_boolean("bottom-panel"))
			this.valueTBIconSizeBottom.set_value(this.settings.get_int("tb-icon-size-bottom"));
		else
			this.settings.set_int("tb-icon-size-bottom", this.valueTBIconSizeBottom.get_value());
	},

	changeTBLabelSize: function(object) {
		this.settings.set_int("tb-label-size", this.valueTBLabelSize.get_value());
	},

	changeTBLabelSizeBottom: function(object) {
		if (!this.settings.get_boolean("bottom-panel"))
			this.valueTBLabelSizeBottom.set_value(this.settings.get_int("tb-label-size-bottom"));
		else
			this.settings.set_int("tb-label-size-bottom", this.valueTBLabelSizeBottom.get_value());
	},

	changeOtherPanelContent: function(object) {
		this.settings.set_int("content-size", this.valueOtherPanelContent.get_value());
	},

	changeFontSize: function(object) {

	},

	changeFontSizeBottom: function(object) {
		if (!this.settings.get_boolean("bottom-panel"))
			this.valueFontSizeBottom.set_value(this.settings.get_int("font-size-bottom"));
		else
			this.settings.set_int("font-size-bottom", this.valueFontSizeBottom.get_value());
	},

	changeAllWorkspaces: function(object) {
		this.settings.set_boolean("tasks-all-workspaces", object.active);
	},

	changeSortTasks: function(object) {
		this.settings.set_enum("sort-tasks", this.valueSortTasks.get_active());
	},

	changeTasksLabel: function(object) {
		this.settings.set_enum("tasks-label", this.valueTasksLabel.get_active());
	},

	changeTasksLabelWidth: function(object) {
		this.settings.set_int("tasks-width", this.valueTasksLabelWidth.get_value());
	},

	changeTasksLabelColor: function() {
		this.tasksLabelColor = this.valueTasksLabelColor.get_rgba().to_string();
		this.settings.set_string("tasks-label-color", this.tasksLabelColor);
	},

	changeTasksLabelColorSet: function(object) {
		this.settings.set_boolean("display-tasks-label-color", object.active);
	},

	changeInactiveTasksLabelColor: function() {
		this.inactiveTasksLabelColor = this.valueInactiveTasksLabelColor.get_rgba().to_string();
		this.settings.set_string("inactive-tasks-label-color", this.inactiveTasksLabelColor);
	},

	changeInactiveTasksLabelColorSet: function(object) {
		this.settings.set_boolean("display-inactive-tasks-label-color", object.active);
	},

	changeTasksFrameColor: function() {
		this.tasksFrameColor = this.valueTasksFrameColor.get_rgba().to_string();
		this.settings.set_string("tasks-frame-color", this.tasksFrameColor);
	},

	changeTasksFrameColorSet: function(object) {
		this.settings.set_boolean("display-tasks-frame-color", object.active);
	},

	changeInactiveTasksFrameColor: function() {
		this.inactiveTasksFrameColor = this.valueInactiveTasksFrameColor.get_rgba().to_string();
		this.settings.set_string("inactive-tasks-frame-color", this.inactiveTasksFrameColor);
	},

	changeInactiveTasksFrameColorSet: function(object) {
		this.settings.set_boolean("display-inactive-tasks-frame-color", object.active);
	},

	changeTasksLeftClickMenu: function(object) {
		this.settings.set_enum("tasks-left-click", this.valueTasksLeftClickMenu.get_active());
	},

	changeTasksMiddleClickMenu: function(object) {
		this.settings.set_enum("tasks-middle-click", this.valueTasksMiddleClickMenu.get_active());
	},

	changeTasksRightClickMenu: function(object) {
		this.settings.set_enum("tasks-right-click", this.valueTasksRightClickMenu.get_active());
	},

	changeTasksContainerWidth: function(object) {
		this.settings.set_int("tasks-container-width-new", this.valueTasksContainerWidth.get_value());
	},

	changeTasksSpaces: function(object) {
		this.settings.set_int("tasks-spaces", this.valueTasksSpaces.get_value());
	},

	changeScrollTasks: function(object) {
		this.settings.set_enum("scroll-tasks", this.valueScrollTasks.get_active());
	},

	changeActiveTaskFrame: function(object) {
		this.settings.set_boolean("active-task-frame", object.active);
	},

	changeInactiveTaskFrame: function(object) {
		this.settings.set_boolean("inactive-task-frame", object.active);
	},

	changeActiveTaskBackgroundColor: function() {
		this.backgroundColor = this.valueActiveTaskBackgroundColor.get_rgba().to_string();
		this.settings.set_string("active-task-background-color", this.backgroundColor);
	},

	changeActiveTaskBackgroundColorSet: function(object) {
		this.settings.set_boolean("active-task-background-color-set", object.active);
	},

	changeInactiveTaskBackgroundColor: function() {
		this.inactiveBackgroundColor = this.valueInactiveTaskBackgroundColor.get_rgba().to_string();
		this.settings.set_string("inactive-task-background-color", this.inactiveBackgroundColor);
	},

	changeInactiveTaskBackgroundColorSet: function(object) {
		this.settings.set_boolean("inactive-task-background-color-set", object.active);
	},

	changeTopPanelBackgroundColor: function() {
		this.topPanelBackgroundColor = this.valueTopPanelBackgroundColor.get_rgba().to_string();
		this.alpha = this.valueTopPanelBackgroundColor.get_alpha();
		if (this.alpha < 65535)
			this.settings.set_boolean("top-panel-background-alpha", true);
		else
			this.settings.set_boolean("top-panel-background-alpha", false);
		this.settings.set_string("top-panel-background-color", this.topPanelBackgroundColor);
	},

	changeBottomPanelBackgroundColor: function() {
		this.bottomPanelBackgroundColor = this.valueBottomPanelBackgroundColor.get_rgba().to_string();
		this.settings.set_string("bottom-panel-background-color", this.bottomPanelBackgroundColor);
	},

	resetTopPanelBackgroundColor: function() {
		this.settings.set_string("top-panel-background-color", "unset");
		let topPanelOriginalBackgroundColor = this.settings.get_string("top-panel-original-background-color");
		let rgbaTopColor = new Gdk.RGBA();
		rgbaTopColor.parse(topPanelOriginalBackgroundColor);
		this.valueTopPanelBackgroundColor.set_rgba(rgbaTopColor);
	},

	resetBottomPanelBackgroundColor: function() {
		this.settings.set_string("bottom-panel-background-color", "unset");
		let bottomPanelOriginalBackgroundColor = this.settings.get_string("bottom-panel-original-background-color");
		let rgbaBottomColor = new Gdk.RGBA();
		rgbaBottomColor.parse(bottomPanelOriginalBackgroundColor);
		this.valueBottomPanelBackgroundColor.set_rgba(rgbaBottomColor);
	},

	changeHoverSwitchTask: function(object) {
		this.settings.set_boolean("hover-switch-task", object.active);
	},

	changeHoverDelay: function(object) {
		this.settings.set_int("hover-delay", this.valueHoverDelay.get_value());
	},

	changeBlinkTasks: function(object) {
		this.settings.set_boolean("blink-tasks", object.active);
	},

	changeTasksBlinkRate: function(object) {
		this.settings.set_int("blink-rate", this.valueTasksBlinkRate.get_value());
	},

	changeTasksBlinkAlertColor: function() {
		this.tasksBlinkAlertColor = this.valueTasksBlinkAlertColor.get_rgba().to_string();
		this.settings.set_string("blink-color", this.tasksBlinkAlertColor);
	},

	changeBlacklistTask: function() {
		let blacklist = [];
		let blacklisttext = this.valueBlacklistTask.get_text();
		let blacklistapps = blacklisttext.split(", ");
		for (let i = 0; i < blacklistapps.length; i++) {
			if (blacklistapps[i].length > 1)
				blacklist.push(blacklistapps[i]);
		}
		this.settings.set_strv("blacklist", blacklist);
	},

	changeBlacklist: function(object) {
		this.settings.set_boolean("blacklist-set", object.active);
	},

	findAppNames: function() {
		this.settings.set_boolean("find-apps", true);
	},

	changeDesktopButtonIcon: function() {
		let iconPath = this.settings.get_string("desktop-button-icon");
		this.dialogDesktopIcon = new Gtk.FileChooserDialog({
			title: _("TaskBar - Set Desktop Button Icon"),
			action: Gtk.FileChooserAction.OPEN
		});
		this.dialogDesktopIcon.add_button(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL);
		this.dialogDesktopIcon.add_button(Gtk.STOCK_OPEN, Gtk.ResponseType.ACCEPT);
		this.dialogDesktopIcon.add_button("RESET", Gtk.ResponseType.NONE);
		this.dialogDesktopIcon.set_filename(iconPath);
		this.preview = new Gtk.Image();
		this.dialogDesktopIcon.set_preview_widget(this.preview);
		this.dialogDesktopIcon.set_use_preview_label(false);
		this.initDesktopIconPath = iconPath;
		this.loadDesktopIconPreview();
		this.initDesktopIconPath = null;
		this.updatePreview = this.dialogDesktopIcon.connect("update-preview", Lang.bind(this, this.loadDesktopIconPreview));
		let filter = new Gtk.FileFilter();
		filter.set_name(_("Images"));
		filter.add_pattern("*.png");
		filter.add_pattern("*.jpg");
		filter.add_pattern("*.gif");
		filter.add_pattern("*.svg");
		filter.add_pattern("*.ico");
		this.dialogDesktopIcon.add_filter(filter);
		let response = this.dialogDesktopIcon.run();
		if (response === -3) //Open
		{
			this.desktopIconFilename = this.dialogDesktopIcon.get_filename();
			if (this.desktopIconFilename !== iconPath) {
				iconPath = this.desktopIconFilename;
				this.loadDesktopIcon();
			}
		}
		if (response === -1) //Reset
		{
			this.desktopIconFilename = DESKTOPICON;
			this.loadDesktopIcon();
		}
		this.dialogDesktopIcon.disconnect(this.updatePreview);
		this.dialogDesktopIcon.destroy();
	},

	loadDesktopIcon: function() {
		let pixbuf;
		try {
			pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(this.desktopIconFilename, 24, 24, null);
		} catch (e) {
			pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(DESKTOPICON, 24, 24, null);
			this.desktopIconFilename = DESKTOPICON;
		}
		this.valueDesktopButtonIcon.set_from_pixbuf(pixbuf);
		let settings = this.settings.get_string("desktop-button-icon");
		if (this.desktopIconFilename !== settings)
			this.settings.set_string("desktop-button-icon", this.desktopIconFilename);
	},

	loadDesktopIconPreview: function() {
		let pixbuf;
		if (this.initDesktopIconPath !== null)
			this.previewFilename = this.initDesktopIconPath;
		else
			this.previewFilename = this.dialogDesktopIcon.get_preview_filename();
		try {
			pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(this.previewFilename, 48, 48, null);
			this.preview.set_from_pixbuf(pixbuf);
			have_preview = true;
		} catch (e) {
			have_preview = false;
		}
		this.dialogDesktopIcon.set_preview_widget_active(have_preview);
	},

	changeDesktopButtonRightClick: function(object, pspec) {
		this.settings.set_boolean("desktop-button-right-click", object.active);
	},

	changeWorkspaceButtonIndex: function(object) {
		this.settings.set_enum("workspace-button-index", this.valueWorkspaceButtonIndex.get_active());
	},

	changeScrollWorkspaces: function(object) {
		this.settings.set_enum("scroll-workspaces", object.active);
	},

	changeWorkspaceButtonColor: function() {
		this.workspaceButtonColor = this.valueWorkspaceButtonColor.get_rgba().to_string();
		this.settings.set_string("workspace-button-color", this.workspaceButtonColor);
	},

	displayWorkspaceButtonColor: function(object, pspec) {
		this.settings.set_boolean("display-workspace-button-color", object.active);
	},

	changeWorkspaceButtonWidth: function(object) {
		this.settings.set_int("workspace-button-width", this.valueWorkspaceButtonWidth.get_value());
	},

	changeShowAppsButtonToggle: function(object) {
		this.settings.set_enum("showapps-button-toggle", this.valueShowAppsButtonToggle.get_active());
	},

	changeAppviewButtonIcon: function() {
		let iconPath = this.settings.get_string("appview-button-icon");
		this.dialogAppviewIcon = new Gtk.FileChooserDialog({
			title: _("TaskBar - Set Appview Button Icon"),
			action: Gtk.FileChooserAction.OPEN
		});
		this.dialogAppviewIcon.add_button(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL);
		this.dialogAppviewIcon.add_button(Gtk.STOCK_OPEN, Gtk.ResponseType.ACCEPT);
		this.dialogAppviewIcon.add_button("RESET", Gtk.ResponseType.NONE);
		this.dialogAppviewIcon.set_filename(iconPath);
		this.preview = new Gtk.Image();
		this.dialogAppviewIcon.set_preview_widget(this.preview);
		this.dialogAppviewIcon.set_use_preview_label(false);
		this.initAppviewIconPath = iconPath;
		this.loadAppviewIconPreview();
		this.initAppviewIconPath = null;
		this.updatePreview = this.dialogAppviewIcon.connect("update-preview", Lang.bind(this, this.loadAppviewIconPreview));
		let filter = new Gtk.FileFilter();
		filter.set_name(_("Images"));
		filter.add_pattern("*.png");
		filter.add_pattern("*.jpg");
		filter.add_pattern("*.gif");
		filter.add_pattern("*.svg");
		filter.add_pattern("*.ico");
		this.dialogAppviewIcon.add_filter(filter);
		let response = this.dialogAppviewIcon.run();
		if (response === -3) {
			this.appviewIconFilename = this.dialogAppviewIcon.get_filename();
			if (this.appviewIconFilename !== iconPath) {
				iconPath = this.appviewIconFilename;
				this.loadAppviewIcon();
			}
		}
		if (response === -1) {
			this.appviewIconFilename = APPVIEWICON;
			this.loadAppviewIcon();
		}
		this.dialogAppviewIcon.disconnect(this.updatePreview);
		this.dialogAppviewIcon.destroy();
	},

	loadAppviewIcon: function() {
		let pixbuf;
		try {
			pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(this.appviewIconFilename, 24, 24, null);
		} catch (e) {
			pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(APPVIEWICON, 24, 24, null);
			this.appviewIconFilename = APPVIEWICON;
		}
		this.valueAppviewButtonIcon.set_from_pixbuf(pixbuf);
		let settings = this.settings.get_string("appview-button-icon");
		if (this.appviewIconFilename !== settings)
			this.settings.set_string("appview-button-icon", this.appviewIconFilename);
	},

	loadAppviewIconPreview: function() {
		let pixbuf;
		if (this.initAppviewIconPath !== null)
			this.previewFilename = this.initAppviewIconPath;
		else
			this.previewFilename = this.dialogAppviewIcon.get_preview_filename();
		try {
			pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(this.previewFilename, 48, 48, null);
			this.preview.set_from_pixbuf(pixbuf);
			have_preview = true;
		} catch (e) {
			have_preview = false;
		}
		this.dialogAppviewIcon.set_preview_widget_active(have_preview);
	},

	changeDisplayTrayButton: function(object) {
		this.settings.set_enum("tray-button", this.valueTrayButton.get_active());
	},

	changeDisplayTrayButtonEmpty: function(object) {
		this.settings.set_enum("tray-button-empty", this.valueTrayButtonEmpty.get_active());
	},

	changeTrayButtonIcon: function() {
		let iconPath = this.settings.get_string("tray-button-icon");
		this.dialogTrayIcon = new Gtk.FileChooserDialog({
			title: _("TaskBar - Set Tray Button Icon"),
			action: Gtk.FileChooserAction.OPEN
		});
		this.dialogTrayIcon.add_button(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL);
		this.dialogTrayIcon.add_button(Gtk.STOCK_OPEN, Gtk.ResponseType.ACCEPT);
		this.dialogTrayIcon.add_button("RESET", Gtk.ResponseType.NONE);
		this.dialogTrayIcon.set_filename(iconPath);
		this.preview = new Gtk.Image();
		this.dialogTrayIcon.set_preview_widget(this.preview);
		this.dialogTrayIcon.set_use_preview_label(false);
		this.initTrayIconPath = iconPath;
		this.loadTrayIconPreview();
		this.initTrayIconPath = null;
		this.updatePreview = this.dialogTrayIcon.connect("update-preview", Lang.bind(this, this.loadTrayIconPreview));
		let filter = new Gtk.FileFilter();
		filter.set_name(_("Images"));
		filter.add_pattern("*.png");
		filter.add_pattern("*.jpg");
		filter.add_pattern("*.gif");
		filter.add_pattern("*.svg");
		filter.add_pattern("*.ico");
		this.dialogTrayIcon.add_filter(filter);
		let response = this.dialogTrayIcon.run();
		if (response === -3) {
			this.trayIconFilename = this.dialogTrayIcon.get_filename();
			if (this.trayIconFilename !== iconPath) {
				iconPath = this.trayIconFilename;
				this.loadTrayIcon();
			}
		}
		if (response === -1) {
			this.trayIconFilename = TRAYICON;
			this.loadTrayIcon();
		}
		this.dialogTrayIcon.disconnect(this.updatePreview);
		this.dialogTrayIcon.destroy();
	},

	loadTrayIcon: function() {
		let pixbuf;
		try {
			pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(this.trayIconFilename, 24, 24, null);
		} catch (e) {
			pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(TRAYICON, 24, 24, null);
			this.trayIconFilename = TRAYICON;
		}
		this.valueTrayButtonIcon.set_from_pixbuf(pixbuf);
		let settings = this.settings.get_string("tray-button-icon");
		if (this.trayIconFilename !== settings)
			this.settings.set_string("tray-button-icon", this.trayIconFilename);
	},

	loadTrayIconPreview: function() {
		let pixbuf;
		if (this.initTrayIconPath !== null)
			this.previewFilename = this.initTrayIconPath;
		else
			this.previewFilename = this.dialogTrayIcon.get_preview_filename();
		try {
			pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(this.previewFilename, 48, 48, null);
			this.preview.set_from_pixbuf(pixbuf);
			have_preview = true;
		} catch (e) {
			have_preview = false;
		}
		this.dialogTrayIcon.set_preview_widget_active(have_preview);
	},

	changeHoverTrayButton: function(object, pspec) {
		this.settings.set_boolean("hover-tray-button", object.active);
	},

	changeSeparatorLeftBoxMain: function(object) {
		this.settings.set_int("separator-left-box-main", this.valueSeparatorLeftBoxMain.get_value());
	},

	changeSeparatorRightBoxMain: function(object) {
		this.settings.set_int("separator-right-box-main", this.valueSeparatorRightBoxMain.get_value());
	},

	changeSeparatorLeftTasks: function(object) {
		this.settings.set_int("separator-left-tasks", this.valueSeparatorLeftTasks.get_value());
	},

	changeSeparatorRightTasks: function(object) {
		this.settings.set_int("separator-right-tasks", this.valueSeparatorRightTasks.get_value());
	},

	changeSeparatorLeftDesktop: function(object) {
		this.settings.set_int("separator-left-desktop", this.valueSeparatorLeftDesktop.get_value());
	},

	changeSeparatorRightDesktop: function(object) {
		this.settings.set_int("separator-right-desktop", this.valueSeparatorRightDesktop.get_value());
	},

	changeSeparatorLeftWorkspaces: function(object) {
		this.settings.set_int("separator-left-workspaces", this.valueSeparatorLeftWorkspaces.get_value());
	},

	changeSeparatorRightWorkspaces: function(object) {
		this.settings.set_int("separator-right-workspaces", this.valueSeparatorRightWorkspaces.get_value());
	},

	changeSeparatorLeftAppview: function(object) {
		this.settings.set_int("separator-left-appview", this.valueSeparatorLeftAppview.get_value());
	},

	changeSeparatorRightAppview: function(object) {
		this.settings.set_int("separator-right-appview", this.valueSeparatorRightAppview.get_value());
	},

	changeSeparatorLeftFavorites: function(object) {
		this.settings.set_int("separator-left-favorites", this.valueSeparatorLeftFavorites.get_value());
	},

	changeSeparatorRightFavorites: function(object) {
		this.settings.set_int("separator-right-favorites", this.valueSeparatorRightFavorites.get_value());
	},

	changeDisplayActivitiesButton: function(object, pspec) {
		this.settings.set_boolean("activities-button", object.active);
	},

	changeActivitiesColor: function() {
		this.activitiesColor = this.valueActivitiesColor.get_rgba().to_string();
		this.settings.set_string("activities-button-color", this.activitiesColor);
	},

	resetActivitiesColor: function() {
		let color = RESETCOLOR;
		let rgba = new Gdk.RGBA();
		rgba.parse(color);
		this.valueActivitiesColor.set_rgba(rgba);
		this.settings.set_string("activities-button-color", "unset");
	},

	append_hotkey: function(model, settings, name, pretty_name) {
		let [key, mods] = Gtk.accelerator_parse(settings.get_strv(name)[0]);
		let row = model.insert(10);
		model.set(row, [0, 1, 2, 3], [name, pretty_name, mods, key]);
	},

	changeEnableHotCorner: function(object, pspec) {
		this.settings.set_boolean("hot-corner", object.active);
	},

	changeDisplayApplicationMenu: function(object, pspec) {
		this.settings.set_boolean("application-menu", object.active);
	},

	changeApplicationMenuColor: function() {
		this.appMenuColor = this.valueApplicationMenuColor.get_rgba().to_string();
		this.settings.set_string("application-menu-color", this.appMenuColor);
	},

	resetApplicationMenuColor: function() {
		let color = RESETCOLOR;
		let rgba = new Gdk.RGBA();
		rgba.parse(color);
		this.valueApplicationMenuColor.set_rgba(rgba);
		this.settings.set_string("application-menu-color", "unset");
	},

	changeDisplayDateMenu: function(object, pspec) {
		this.settings.set_boolean("date-menu", object.active);
	},

	changeDateMenuColor: function() {
		this.dateMenuColor = this.valueDateMenuColor.get_rgba().to_string();
		this.settings.set_string("date-menu-color", this.dateMenuColor);
	},

	resetDateMenuColor: function() {
		let color = RESETCOLOR;
		let rgba = new Gdk.RGBA();
		rgba.parse(color);
		this.valueDateMenuColor.set_rgba(rgba);
		this.settings.set_string("date-menu-color", "unset");
	},

	changeDisplaySystemMenu: function(object, pspec) {
		this.settings.set_boolean("system-menu", object.active);
	},

	changeSystemMenuColor: function() {
		this.systemMenuColor = this.valueSystemMenuColor.get_rgba().to_string();
		this.settings.set_string("system-menu-color", this.systemMenuColor);
	},

	resetSystemMenuColor: function() {
		let color = RESETCOLOR;
		let rgba = new Gdk.RGBA();
		rgba.parse(color);
		this.valueSystemMenuColor.set_rgba(rgba);
		this.settings.set_string("system-menu-color", "unset");
	},

	changeDisplayDash: function(object, pspec) {
		this.settings.set_boolean("dash", object.active);
	},

	changeDisplayWorkspaceSelector: function(object, pspec) {
		this.settings.set_boolean("workspace-selector", object.active);
	},

	changeDisplayLabel: function(object) {
		this.settings.set_enum("display-label", this.valueDisplayLabel.get_active());
	},

	changeDisplayThumbnail: function(object, pspec) {
		this.settings.set_boolean("display-thumbnail", object.active);
	},

	changeDisplayFavoritesLabel: function(object) {
		this.settings.set_enum("display-favorites-label", this.valueDisplayFavoritesLabel.get_active());
	},

	changePreviewSize: function(object) {
		this.settings.set_int("preview-size", this.valuePreviewSize.get_value());
	},

	changePreviewDelay: function(object) {
		this.settings.set_int("preview-delay", this.valuePreviewDelay.get_value());
	},

	changePreviewBackgroundColor: function() {
		this.previewBackgroundColor = this.valuePreviewBackgroundColor.get_rgba().to_string();
		this.settings.set_string("preview-background-color", this.previewBackgroundColor);
	},

	displayPreviewBackgroundColor: function(object, pspec) {
		this.settings.set_boolean("display-preview-background-color", object.active);
	},

	changePreviewLabelColor: function() {
		this.previewLabelColor = this.valuePreviewLabelColor.get_rgba().to_string();
		this.settings.set_string("preview-label-color", this.previewLabelColor);
	},

	displayPreviewLabelColor: function(object, pspec) {
		this.settings.set_boolean("display-preview-label-color", object.active);
	},

	changePreviewFontSize: function(object) {
		this.settings.set_int("preview-font-size", this.valuePreviewFontSize.get_value());
	},

	changeAppearanceLeft: function() {
		this.appearanceSelection = this.settings.get_enum("appearance-selection");
		if (this.appearanceSelection === 0) {
			if (!this.settings.get_boolean("display-tasks"))
				return;
			this.appearanceName = "position-tasks";
		}
		if (this.appearanceSelection === 1) {
			if (!this.settings.get_boolean("display-desktop-button"))
				return;
			this.appearanceName = "position-desktop-button";
		}
		if (this.appearanceSelection === 2) {
			if (!this.settings.get_boolean("display-workspace-button"))
				return;
			this.appearanceName = "position-workspace-button";
		}
		if (this.appearanceSelection === 3) {
			if (!this.settings.get_boolean("display-showapps-button"))
				return;
			this.appearanceName = "position-appview-button";
		}
		if (this.appearanceSelection === 4) {
			if (!this.settings.get_boolean("display-favorites"))
				return;
			this.appearanceName = "position-favorites";
		}
		this.oldValueAppearance = this.settings.get_int(this.appearanceName);
		if (this.oldValueAppearance === 0)
			return;
		else
			this.newValueAppearance = this.oldValueAppearance - 1;
		this.setAppearance();
	},

	changeAppearanceRight: function() {
		this.appearanceSelection = this.settings.get_enum("appearance-selection");
		if (this.appearanceSelection === 0) {
			if (!this.settings.get_boolean("display-tasks"))
				return;
			this.appearanceName = "position-tasks";
		}
		if (this.appearanceSelection === 1) {
			if (!this.settings.get_boolean("display-desktop-button"))
				return;
			this.appearanceName = "position-desktop-button";
		}
		if (this.appearanceSelection === 2) {
			if (!this.settings.get_boolean("display-workspace-button"))
				return;
			this.appearanceName = "position-workspace-button";
		}
		if (this.appearanceSelection === 3) {
			if (!this.settings.get_boolean("display-showapps-button"))
				return;
			this.appearanceName = "position-appview-button";
		}
		if (this.appearanceSelection === 4) {
			if (!this.settings.get_boolean("display-favorites"))
				return;
			this.appearanceName = "position-favorites";
		}
		this.oldValueAppearance = this.settings.get_int(this.appearanceName);
		if (this.oldValueAppearance === 4)
			return;
		else
			this.newValueAppearance = this.oldValueAppearance + 1;
		this.setAppearance();
	},

	setAppearance: function() {
		this.appearances = [
			("position-tasks"),
			("position-desktop-button"),
			("position-workspace-button"),
			("position-appview-button"),
			("position-favorites")
		];
		this.appearances.forEach(
			function(appearance) {
				this.intAppearance = this.settings.get_int(appearance);
				if (this.intAppearance === this.newValueAppearance)
					this.resetAppearance = appearance;
			},
			this
		);
		this.settings.set_int(this.appearanceName, this.newValueAppearance);
		this.settings.set_int(this.resetAppearance, this.oldValueAppearance);
		this.settings.set_boolean("position-changed", true);
	},

	exportSettings: function() {
		this.settings.set_boolean("export-settings", true);
	},

	importSettings: function() {
		this.settings.set_boolean("import-settings", true);
	},

	resetComponents: function() {
		this.settings.set_boolean("reset-flag", true);
		this.valueDisplayTasks.set_active(true);
		this.valueDisplayDesktopButton.set_active(true);
		this.valueDisplayWorkspaceButton.set_active(true);
		this.valueDisplayShowAppsButton.set_active(true);
		this.valueDisplayFavorites.set_active(false);
		this.settings.set_int("hover-event", 0);
		this.valueAppearance.set_active(0);
		this.settings.set_int("position-tasks", 4);
		this.settings.set_int("position-desktop-button", 3);
		this.settings.set_int("position-workspace-button", 2);
		this.settings.set_int("position-appview-button", 1);
		this.settings.set_int("position-favorites", 0);
		this.valueTopPanel.set_active(true);
		this.valueBottomPanel.set_active(false);
		this.settings.set_boolean("position-changed", true);
		this.settings.set_boolean("reset-flag", false);
	},

	resetSettings: function() {
		this.settings.set_boolean("reset-flag", true);
		this.settings.set_int("panel-position", 1);
		this.settings.set_int("panel-box", 1);
		this.settings.set_int("position-max-right", 9);
		this.settings.set_int("bottom-panel-vertical", 0);
		this.valueBottomPanelVertical.set_value(0);
		this.settings.set_int("position-bottom-box", 0);
		this.settings.set_int("panel-size", 27);
		this.valueIconSize.set_value(27);
		this.settings.set_int("panel-size-bottom", 27);
		this.valueIconSizeBottom.set_value(27);
		this.settings.set_int("tb-icon-size", 0);
		this.valueTBIconSize.set_value(0);
		this.settings.set_int("tb-icon-size-bottom", 0);
		this.valueTBIconSizeBottom.set_value(0);
		this.settings.set_int("tb-label-size", 0);
		this.valueTBLabelSize.set_value(0);
		this.settings.set_int("tb-label-size-bottom", 0);
		this.valueTBLabelSizeBottom.set_value(0);
		this.settings.set_int("content-size", 0);
		this.valueOtherPanelContent.set_value(0);
		this.settings.set_string("top-panel-background-color", "unset");
		this.settings.set_string("bottom-panel-background-color", "unset");
		let topPanelOriginalBackgroundColor = this.settings.get_string("top-panel-original-background-color");
		let rgba2 = new Gdk.RGBA();
		rgba2.parse(topPanelOriginalBackgroundColor);
		this.valueTopPanelBackgroundColor.set_rgba(rgba2);
		this.valueBottomPanelBackgroundColor.set_rgba(rgba2);
		this.settings.set_boolean("reset-flag", false);
	},

	resetTasks: function() {
		this.settings.set_boolean("reset-flag", true);
		this.valueAllWorkspaces.set_active(false);
		this.valueSortTasks.set_active(0);
		this.valueTasksLabel.set_active(0);
		this.valueTasksLabelWidth.set_value(150);
		this.valueTasksContainerWidth.set_value(0);
		this.valueTasksSpaces.set_value(4);
		this.valueTasksLeftClickMenu.set_active(1);
		this.valueTasksMiddleClickMenu.set_active(0);
		this.valueTasksRightClickMenu.set_active(2);
		this.settings.set_boolean("reset-flag", false);
	},

	resetTasks2: function() {
		this.settings.set_boolean("reset-flag", true);
		this.valueScrollTasks.set_active(0);
		this.valueActiveTaskFrame.set_active(true);
		this.valueInactiveTaskFrame.set_active(false);
		this.valueHoverSwitchTask.set_active(false);
		this.valueHoverDelay.set_value(350);
		this.valueBlinkTasks.set_active(false);
		this.valueTasksBlinkRate.set_value(750);
		let color = RESETCOLORRED;
		let rgba = new Gdk.RGBA();
		rgba.parse(color);
		this.valueTasksBlinkAlertColor.set_rgba(rgba);
		this.settings.set_string("blink-color", "unset");
		this.settings.set_boolean("reset-flag", false);
	},

	resetTasks3: function() {
		this.settings.set_boolean("reset-flag", true);
		let color = RESETCOLOR;
		let rgba = new Gdk.RGBA();
		rgba.parse(color);
		this.valueActiveTaskBackgroundColor.set_rgba(rgba);
		this.settings.set_string("active-task-background-color", "unset");
		this.value2ActiveTaskBackgroundColor.set_active(false);
		this.valueInactiveTaskBackgroundColor.set_rgba(rgba);
		this.settings.set_string("inactive-task-background-color", "unset");
		this.value2InactiveTaskBackgroundColor.set_active(false);
		this.valueTasksLabelColor.set_rgba(rgba);
		this.settings.set_string("tasks-label-color", "unset");
		this.value2TasksLabelColor.set_active(false);
		this.valueInactiveTasksLabelColor.set_rgba(rgba);
		this.settings.set_string("inactive-tasks-label-color", "unset");
		this.value2InactiveTasksLabelColor.set_active(false);
		this.valueTasksFrameColor.set_rgba(rgba);
		this.settings.set_string("tasks-frame-color", "unset");
		this.value2TasksFrameColor.set_active(false);
		this.valueInactiveTasksFrameColor.set_rgba(rgba);
		this.settings.set_string("inactive-tasks-frame-color", "unset");
		this.value2InactiveTasksFrameColor.set_active(false);
		this.value2BlacklistTask.set_active(false);
		this.valueBlacklistTask.set_text("");
		this.settings.set_strv("blacklist", []);
		this.settings.set_boolean("reset-flag", false);
	},

	resetButtons: function() {
		this.valueDesktopButtonRightClick.set_active(true);
		this.valueWorkspaceButtonIndex.set_active(0);
		this.valueScrollWorkspaces.set_active(0);
		let color = RESETCOLORWHITE;
		let rgba = new Gdk.RGBA();
		rgba.parse(color);
		this.valueWorkspaceButtonColor.set_rgba(rgba);
		this.settings.set_string("workspace-button-color", "unset");
		this.valueDisplayWorkspaceButtonColor.set_active(false);
		this.valueWorkspaceButtonWidth.set_value(0);
		this.valueShowAppsButtonToggle.set_active(0);
	},

	resetTrayButton: function() {
		this.settings.set_boolean("reset-flag", true);
		this.valueTrayButton.set_active(0);
		this.valueTrayButtonEmpty.set_active(0);
		this.valueHoverTrayButton.set_active(false);
		this.settings.set_boolean("reset-flag", false);
	},

	resetSeparators: function() {
		this.settings.set_boolean("reset-flag", true);
		this.valueSeparatorLeftBoxMain.set_value(0);
		this.valueSeparatorRightBoxMain.set_value(0);
		this.valueSeparatorLeftTasks.set_value(0);
		this.valueSeparatorRightTasks.set_value(0);
		this.valueSeparatorLeftDesktop.set_value(0);
		this.valueSeparatorRightDesktop.set_value(0);
		this.valueSeparatorLeftWorkspaces.set_value(0);
		this.valueSeparatorRightWorkspaces.set_value(0);
		this.valueSeparatorLeftAppview.set_value(0);
		this.valueSeparatorRightAppview.set_value(0);
		this.valueSeparatorLeftFavorites.set_value(0);
		this.valueSeparatorRightFavorites.set_value(0);
		this.settings.set_boolean("reset-flag", false);
	},

	resetPreview: function() {
		this.settings.set_boolean("reset-flag", true);
		this.valueDisplayLabel.set_active(3);
		this.valueDisplayThumbnail.set_active(true);
		this.valueDisplayFavoritesLabel.set_active(3);
		this.valuePreviewSize.set_value(350);
		this.valuePreviewDelay.set_value(500);
		this.valuePreviewFontSize.set_value(9);
		let color = RESETCOLORBLACK;
		let rgba = new Gdk.RGBA();
		rgba.parse(color);
		this.valuePreviewBackgroundColor.set_rgba(rgba);
		this.settings.set_string("preview-background-color", "unset");
		this.valueDisplayPreviewBackgroundColor.set_active(false);
		let color2 = RESETCOLORWHITE;
		let rgba2 = new Gdk.RGBA();
		rgba2.parse(color2);
		this.valuePreviewLabelColor.set_rgba(rgba2);
		this.settings.set_string("preview-label-color", "unset");
		this.valueDisplayPreviewLabelColor.set_active(false);
		this.settings.set_boolean("reset-flag", false);
	},

	resetMisc: function() {
		this.settings.set_boolean("reset-flag", true);
		this.valueDisplayActivitiesButton.set_active(true);
		let color = RESETCOLOR;
		let rgba = new Gdk.RGBA();
		rgba.parse(color);
		this.valueActivitiesColor.set_rgba(rgba);
		this.settings.set_string("activities-button-color", "unset");
        if (ShellVersion[1] < 26) {
		    this.valueEnableHotCorner.set_active(true);
        }
		this.valueDisplayApplicationMenu.set_active(true);
		this.valueApplicationMenuColor.set_rgba(rgba);
		this.settings.set_string("application-menu-color", "unset");
		this.valueDisplayDateMenu.set_active(true);
		this.valueDateMenuColor.set_rgba(rgba);
		this.settings.set_string("date-menu-color", "unset");
		this.valueDisplaySystemMenu.set_active(true);
		this.valueSystemMenuColor.set_rgba(rgba);
		this.settings.set_string("system-menu-color", "unset");
		this.valueDisplayDash.set_active(true);
		this.valueDisplayWorkspaceSelector.set_active(true);
		this.valueOverview.set_active(true);
		this.settings.set_boolean("reset-flag", false);
	},

	resetAll: function() {
		this.resetMisc();
		this.settings.set_boolean("reset-flag", true);
		this.settings.set_boolean("reset-all", true);
	}
}