summaryrefslogtreecommitdiff
path: root/.local/share/Anki2/addons21/advanced_review/Settings.py
blob: 4c279c395d3a30c3687a5a823d8a2f7bdf6ddc73 (about) (plain)
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
#// auth_ Mohamad Janati
#// Copyright (c) 2019-2022 Mohamad Janati (freaking stupid, right? :|)

from os.path import  join, dirname
from datetime import datetime
from aqt import mw
from aqt.qt import *
from aqt.utils import tooltip, showInfo, askUser, getText
import random
import os
import json
import subprocess


def refreshConfig():
    #// Makes the information that it gets fron "config" global so I can use them for loading the current settings in "loadCurrent(self)" function
    global C_style_mainScreenButtons, C_button_style, C_hover_effect, C_active_indicator, C_bottombarButtons_style, C_cursor_style, C_interval_style, C_showAnswerBorderColor_style, C_buttonTransition_time, C_buttonBorderRadius, C_reviewTooltip, C_reviewTooltip_timer, C_reviewTooltipText_color, C_reviewTooltip_style, C_reviewTooltip_position, C_info, C_skip, C_showSkipped, C_undo, C_hideHard, C_hideGood, C_hideEasy, C_right_info, C_middleRight_info, C_middleLeft_info, C_left_info, C_right_skip, C_middleRight_skip, C_middleLeft_skip, C_left_skip, C_right_showSkipped, C_middleRight_showSkipped, C_middleLeft_showSkipped, C_left_showSkipped, C_right_undo, C_middleRight_undo, C_middleLeft_undo, C_left_undo, C_skip_shortcut, C_showSkipped_shortcut, C_info_shortcut, C_undo_shortcut, C_custom_sizes, C_text_size, C_buttons_height, C_reviewButtons_width, C_edit_width, C_answer_width, C_more_width, C_info_width, C_skip_width, C_showSkipped_width, C_undo_width, C_buttonLabel_studyNow, C_buttonLabel_edit, C_buttonLabel_showAnswer, C_buttonLabel_more, C_buttonLabel_info, C_buttonLabel_skip, C_buttonLabel_showSkipped, C_buttonLabel_undo, C_buttonLabel_again, C_buttonLabel_hard, C_buttonLabel_good, C_buttonLabel_easy, C_sidebar_position, C_sidebar_theme, C_sidebar_font, C_sidebar_PreviousCards, C_sidebar_reviewsToShow, C_sidebar_currentReviewCount, C_sidebar_reviewsToShow, C_sidebar_dateCreated, C_sidebar_dateEdited, C_sidebar_firstReview, C_sidebar_latestReview, C_sidebar_due, C_sidebar_interval, C_sidebar_ease, C_sidebar_numberOfReviews, C_sidebar_lapses, C_infobar_correctPercent, C_infobar_fastestReview, C_infobar_slowestReview, C_sidebar_averageTime, C_sidebar_totalTime, C_sidebar_cardType, C_sidebar_noteType, C_sidebar_deck, C_sidebar_tags, C_infobar_noteID, C_infobar_cardID, C_sidebar_sortField, C_sidebar_autoOpen, C_sidebar_warningNote, C_custom_reviewButtonColors, C_custom_reviewButtonTextColor, C_custom_activeIndicatorColor, C_custom_bottombarButtonTextColor, C_custom_bottombarButtonBorderColor, C_reviewButtonText_color, C_activeIndicator_color, C_bottombarButtonText_color, C_bottombarButtonBorder_color, C_again_color, C_againHover_color, C_hard_color, C_hardHover_color, C_good_color, C_goodHover_color, C_easy_color, C_easyHover_color, C_button_colors, C_showAnswerEase1, C_showAnswerEase2, C_showAnswerEase3, C_showAnswerEase4, C_showAnswerEase1_color, C_showAnswerEase2_color, C_showAnswerEase3_color, C_showAnswerEase4_color, C_speedFocus, C_configEdit, C_overViewStats, C_settingsMenu_palce, C_skipMethod

    config = mw.addonManager.getConfig(__name__)

    #// Gets the information from the config and assigns them to the "C_" variables so I can make them global | "C_" is added to the name of the parts of the settings variables to avoid confusion :D
    #// Just delete the "C_" from the name to find related parts of the settings (C_style_mainScreenButtons -> style_mainScreenButtons)
    C_style_mainScreenButtons = config['  Style Main Screen Buttons']

    C_button_style = config[' Review_ Buttons Style']
    C_hover_effect = config[' Review_ Hover Effect']
    C_active_indicator = config[' Review_ Active Button Indicator']
    C_bottombarButtons_style = config[' Review_ Bottombar Buttons Style']
    C_cursor_style = config[' Review_ Cursor Style']
    C_interval_style = config[' Review_ Interval Style']
    C_buttonTransition_time = config[' Review_ Button Transition Time']
    # Button Border Radius is used for all buttons, not just the review buttons
    C_buttonBorderRadius = config[' Review_ Button Border Radius']

    C_reviewTooltip = config['Tooltip']
    C_reviewTooltip_timer = config['Tooltip Timer']
    C_reviewTooltipText_color = config['Tooltip Text Color']
    C_reviewTooltip_style = config['Tooltip Style']
    C_reviewTooltip_position = config['Tooltip Position']

    C_info = config['Button_   Info Button']
    C_skip = config['Button_   Skip Button']
    C_showSkipped = config['Button_   Show Skipped Button']
    C_undo = config['Button_   Undo Button']
    C_hideHard = config['Button_   Hide Hard']
    C_hideGood = config['Button_   Hide Good']
    C_hideEasy = config['Button_   Hide Easy']
    C_info_position = config['Button_ Position_ Info Button']
    C_skip_position = config['Button_ Position_ Skip Button']
    C_showSkipped_position = config['Button_ Position_ Show Skipped Button']
    C_undo_position = config['Button_ Position_ Undo Button']
    C_skip_shortcut = config ['Button_ Shortcut_ Skip Button']
    C_showSkipped_shortcut = config ['Button_ Shortcut_ Show Skipped Button']
    C_info_shortcut = config['Button_ Shortcut_ Info Button']
    C_undo_shortcut = config['Button_ Shortcut_ Undo Button']

    C_custom_sizes = config ['Button_  Custom Button Sizes']
    C_text_size = config['Button_ Text Size']
    C_buttons_height = config['Button_ Height_ All Bottombar Buttons']
    C_reviewButtons_width = config['Button_ Width_ Review Buttons']
    C_edit_width = config['Button_ Width_ Edit Button']
    C_answer_width = config['Button_ Width_ Show Answer Button']
    C_more_width = config['Button_ Width_ More Button']
    C_info_width = config['Button_ Width_ Info Button']
    C_skip_width = config['Button_ Width_ Skip Button']
    C_showSkipped_width = config['Button_ Width_ Show Skipped Button']
    C_undo_width = config['Button_ Width_ Undo Button']

    C_buttonLabel_studyNow = config['Button Label_ Study Now']
    C_buttonLabel_edit = config['Button Label_ Edit']
    C_buttonLabel_showAnswer = config['Button Label_ Show Answer']
    C_buttonLabel_more = config['Button Label_ More']
    C_buttonLabel_info = config['Button Label_ Info']
    C_buttonLabel_skip = config['Button Label_ Skip']
    C_buttonLabel_showSkipped = config['Button Label_ Show Skipped']
    C_buttonLabel_undo = config['Button Label_ Undo']
    C_buttonLabel_again = config['Button Label_ Again']
    C_buttonLabel_hard = config['Button Label_ Hard']
    C_buttonLabel_good = config['Button Label_ Good']
    C_buttonLabel_easy = config['Button Label_ Easy']

    C_sidebar_position = config['Card Info sidebar_ Default Position']
    C_sidebar_theme = config['Card Info sidebar_ theme']
    C_sidebar_font = config['Card Info sidebar_ Font']
    C_sidebar_PreviousCards = config['Card Info sidebar_ Number of previous cards to show']
    C_sidebar_reviewsToShow = config['Card Info sidebar_ number of reviews to show for a card']
    C_sidebar_currentReviewCount = config['Card Info sidebar_ Current Review Count']
    C_sidebar_dateCreated = config['Card Info sidebar_ Created']
    C_sidebar_dateEdited = config['Card Info sidebar_ Edited']
    C_sidebar_firstReview = config['Card Info sidebar_ First Review']
    C_sidebar_latestReview = config['Card Info sidebar_ Latest Review']
    C_sidebar_due = config['Card Info sidebar_ Due']
    C_sidebar_interval = config['Card Info sidebar_ Interval']
    C_sidebar_ease = config['Card Info sidebar_ Ease']
    C_sidebar_numberOfReviews = config['Card Info sidebar_ Reviews']
    C_sidebar_lapses = config['Card Info sidebar_ Lapses']
    C_infobar_correctPercent = config['Card Info Sidebar_ Correct Percent']
    C_infobar_fastestReview = config['Card Info Sidebar_ Fastest Review']
    C_infobar_slowestReview = config['Card Info Sidebar_ Slowest Review']
    C_sidebar_averageTime = config['Card Info sidebar_ Average Time']
    C_sidebar_totalTime = config['Card Info sidebar_ Total Time']
    C_sidebar_cardType = config['Card Info sidebar_ Card Type']
    C_sidebar_noteType = config['Card Info sidebar_ Note Type']
    C_sidebar_deck = config['Card Info sidebar_ Deck']
    C_sidebar_tags = config['Card Info sidebar_ Tags']
    C_infobar_noteID = config['Card Info Sidebar_ Note ID']
    C_infobar_cardID = config['Card Info Sidebar_ Card ID']
    C_sidebar_sortField = config['Card Info sidebar_ Sort Field']
    C_sidebar_autoOpen = config['Card Info sidebar_ Auto Open']
    C_sidebar_warningNote = config['Card Info sidebar_ warning note']

    C_custom_reviewButtonColors = config[' Review_ Custom Colors']
    C_custom_reviewButtonTextColor = config[' Review_ Custom Review Button Text Color']
    C_custom_activeIndicatorColor = config[' Review_ Custom Active Indicator Color']
    C_custom_bottombarButtonTextColor = config['Color_ Custom Bottombar Button Text Color']
    C_custom_bottombarButtonBorderColor = config['Color_ Custom Bottombar Button Border Color']
    C_reviewButtonText_color = config['Color_  General Text Color']
    C_activeIndicator_color = config['Color_ Active Button Indicator']
    C_bottombarButtonText_color = config['Color_ Bottombar Button Text Color']
    C_bottombarButtonBorder_color = config['Color_ Bottombar Button Border Color']
    C_again_color = config['Color_ Again']
    C_againHover_color = config['Color_ Again on hover']
    C_hard_color = config['Color_ Hard']
    C_hardHover_color = config['Color_ Hard on hover']
    C_good_color = config['Color_ Good']
    C_goodHover_color = config['Color_ Good on hover']
    C_easy_color = config['Color_ Easy']
    C_easyHover_color = config['Color_ Easy on hover']

    C_showAnswerBorderColor_style = config['ShowAnswer_ Border Color Style']
    C_showAnswerEase1 = config['ShowAnswer_ Ease1']
    C_showAnswerEase2 = config['ShowAnswer_ Ease2']
    C_showAnswerEase3 = config['ShowAnswer_ Ease3']
    C_showAnswerEase4 = config['ShowAnswer_ Ease4']
    C_showAnswerEase1_color = config['ShowAnswer_ Ease1 Color']
    C_showAnswerEase2_color = config['ShowAnswer_ Ease2 Color']
    C_showAnswerEase3_color = config['ShowAnswer_ Ease3 Color']
    C_showAnswerEase4_color = config['ShowAnswer_ Ease4 Color']

    C_button_colors = config['  Button Colors']
    C_speedFocus = config['  Speed Focus Add-on']
    C_configEdit = config['  Direct Config Edit']
    C_overViewStats = config['  More Overview Stats']
    C_settingsMenu_palce = config['  Settings Menu Place']
    C_skipMethod = config['  Skip Method']

    #// it's easier to store extra button positions as text in config | but here in the settings, I hate to turn it into true/false as each checkbox is diabled/enabled like that :|
    #// Every checkbox is disabled by default
    C_right_info = False
    C_middleRight_info = False
    C_middleLeft_info = False
    C_left_info = False
    C_right_skip = False
    C_middleRight_skip = False
    C_middleLeft_skip = False
    C_left_showSkipped = False
    C_right_showSkipped = False
    C_middleRight_showSkipped = False
    C_middleLeft_showSkipped = False
    C_left_showSkipped = False
    C_right_undo = False
    C_middleRight_undo = False
    C_middleLeft_undo = False
    C_left_undo = False

    #// here we enable (make it "True") the correct checkbox based on the config value
    #// All of this is for loading the current settings in "loadCurrent(self)" function
    if C_info_position == "right":
        C_right_info = True
    elif C_info_position == "middle right":
        C_middleRight_info = True
    elif C_info_position == "middle left":
        C_middleLeft_info = True
    else:
        C_left_info = True
    if C_skip_position == "right":
        C_right_skip = True
    elif C_skip_position == "middle right":
        C_middleRight_skip = True
    elif C_skip_position == "middle left":
        C_middleLeft_skip = True
    else:
        C_left_skip = True
    if C_showSkipped_position == "right":
        C_right_showSkipped = True
    elif C_showSkipped_position == "middle right":
        C_middleRight_showSkipped = True
    elif C_showSkipped_position == "middle left":
        C_middleLeft_showSkipped = True
    else:
        C_left_showSkipped = True
    if C_undo_position == "right":
        C_right_undo = True
    elif C_undo_position == "middle right":
        C_middleRight_undo = True
    elif C_undo_position == "middle left":
        C_middleLeft_undo = True
    else:
        C_left_undo = True

class GetShortcut(QDialog):
    def __init__(self, parent, button_variable):
        QDialog.__init__(self, parent=parent)
        self.parent = parent
        self.button_variable = button_variable
        #// when recording a shortcut, there is 0 active (pushed) key at first | by pressing each key, this increases by +1
        self.active = 0
        #// and the state of all the accepted keys on the keyboard is "False" | by pressing each key, the state for that button changes to "True"
        self.ctrl = False
        self.alt = False
        self.shift = False
        self.f1 = False
        self.f2 = False
        self.f3 = False
        self.f4 = False
        self.f5 = False
        self.f3 = False
        self.f6 = False
        self.f7 = False
        self.f8 = False
        self.f9 = False
        self.f10 = False
        self.f11 = False
        self.f12 = False
        self.extra = None
        self.getShortcutWindow()

    def getShortcutWindow(self):
        #// Sets up the screen that asks you to press the shortcut you want to assign
        text = QLabel('<div style="font-size: 15px">Press the new shortcut key...</div>')
        mainLayout = QVBoxLayout()
        mainLayout.addWidget(text)
        self.setLayout(mainLayout)
        self.setWindowTitle('Set Shortcut')

    def keyPressEvent(self, evt):
        #// increases the active keys count upon pressing each key
        self.active += 1
        #// limits the allowed keys to keyboard keys
        if evt.key() > 30 and evt.key() < 127:
            self.extra = chr(evt.key())
        #// stores the pressed key in a variable so we could later add it in a list and use it as a key combination
        elif evt.key() == Qt.Key_Control:
            self.ctrl = True
        elif evt.key() == Qt.Key_Alt:
            self.alt = True
        elif evt.key() == Qt.Key_Shift:
            self.shift = True
        elif evt.key() == Qt.Key_F1:
            self.f1 = True
        elif evt.key() == Qt.Key_F2:
            self.f2 = True
        elif evt.key() == Qt.Key_F3:
            self.f3 = True
        elif evt.key() == Qt.Key_F4:
            self.f4 = True
        elif evt.key() == Qt.Key_F5:
            self.f5 = True
        elif evt.key() == Qt.Key_F6:
            self.f6 = True
        elif evt.key() == Qt.Key_F7:
            self.f7 = True
        elif evt.key() == Qt.Key_F8:
            self.f8 = True
        elif evt.key() == Qt.Key_F9:
            self.f9 = True
        elif evt.key() == Qt.Key_F10:
            self.f10 = True
        elif evt.key() == Qt.Key_F11:
            self.f11 = True
        elif evt.key() == Qt.Key_F12:
            self.f12 = True

    def keyReleaseEvent(self, evt):
        #// reduces the number of held keys upon releasing each key
        self.active -= 1
        #// I was having fun -_- don't blame me
        shiftList = ["Who uses \"Shift\" alone as a shortcut key?", "You wanna use \"Shift\" without any other key as your shortcut??\n\n SERIOUSLY?!?!", "You must have forgotten to press another key...\n\n I don't wanna believe that there is someone who uses \"Shift\" without another key as a shortcut", "Dude, you can't just use \"Shift\"\n\n You should combine it with another key", "Are you really trying to use \"Shift\" as your shortcut?!!\n\n C'mon...", "What's so special about \"Shift\" that you wanna use it alone as a shortcut??", "\"Shift\" is scared of being used alone, you should use it with another key :)"]
        if os.name == "nt":
            altList = ["Who uses \"Alt\" alone as a shortcut key?", "You wanna use \"Alt\" without any other key as your shortcut??\n\n SERIOUSLY?!?!", "You must have forgotten to press another key...\n\n I don't wanna believe that there is someone who uses \"Alt\" without another key as a shortcut", "Dude, you can't just use \"Alt\"\n\n You should combine it with another key", "Are you really trying to use \"Alt\" as your shortcut?!!\n\n C'mon...", "What's so special about \"Alt\" that you wanna use it alone as a shortcut??", "\"Alt\" is scared of being used alone, you should use it with another key :)"]
            ctrlList = ["Who uses \"Ctrl\" alone as a shortcut key?", "You wanna use \"Ctrl\" without any other key as your shortcut??\n\n SERIOUSLY?!?!", "You must have forgotten to press another key...\n\n I don't wanna believe that there is someone who uses \"Ctrl\" without another key as a shortcut", "Dude, you can't just use \"Ctrl\"\n\n You should combine it with another key", "Are you really trying to use \"Ctrl\" as your shortcut?!!\n\n C'mon...", "What's so special about \"Ctrl\" that you wanna use it alone as a shortcut??", "\"Ctrl\" is scared of being used alone, you should use it with another key :)"]
        else:
            altList = ["Who uses \"Option\" alone as a shortcut key?", "You wanna use \"Option\" without any other key as your shortcut??\n\n SERIOUSLY?!?!", "You must have forgotten to press another key...\n\n I don't wanna believe that there is someone who uses \"Option\" without another key as a shortcut", "Dude, you can't just use \"Option\"\n\n You should combine it with another key", "Are you really trying to use \"Option\" as your shortcut?!!\n\n C'mon...", "What's so special about \"Option\" that you wanna use it alone as a shortcut??", "\"Option\" is scared of being used alone, you should use it with another key :)"]
            ctrlList = ["Who uses \"Command\" alone as a shortcut key?", "You wanna use \"Command\" without any other key as your shortcut??\n\n SERIOUSLY?!?!", "You must have forgotten to press another key...\n\n I don't wanna believe that there is someone who uses \"Command\" without another key as a shortcut", "Dude, you can't just use \"Command\"\n\n You should combine it with another key", "Are you really trying to use \"Command\" as your shortcut?!!\n\n C'mon...", "What's so special about \"Command\" that you wanna use it alone as a shortcut??", "\"Command\" is scared of being used alone, you should use it with another key :)"]
        shiftAlone = random.choice(shiftList)
        altAlone = random.choice(altList)
        ctrlAlone = random.choice(ctrlList)
        if not (self.f1 or self.f2 or self.f3 or self.f4 or self.f5 or self.f6 or self.f7 or self.f8 or self.f9 or self.f10 or self.f11 or self.f12):
            if not self.extra:
                #// special treats for buttons that everyone knows can't be used as a shortcut on their own -_-
                if self.alt:
                    showInfo("{}".format(altAlone), title="Advanced Review Bottombar")
                elif self.shift:
                    showInfo("{}".format(shiftAlone), title="Advanced Review Bottombar")
                elif self.ctrl:
                    showInfo("{}".format(ctrlAlone), title="Advanced Review Bottombar")
                #// lets the users that the pressed key is not allowed to be used in a shortcut
                elif evt.key() == Qt.Key_Escape:
                    showInfo("You can't use \"Escape\" as shortcut, try something else", title="Advanced Review Bottombar")
                elif evt.key() == Qt.Key_Tab:
                    showInfo("Don't you know \"Tab\" Always does something? Why do you even try to set it as your shortcut?", title="Advanced Review Bottombar")
                elif evt.key() == Qt.Key_Backspace:
                    showInfo("Are you really trying to set \"Backspace\" as your shortcut? Seriously?", title="Advanced Review Bottombar")
                elif evt.key() == Qt.Key_Enter:
                    showInfo("Have you ever seen anyone using \"Enter\" as a shortcut??\n\nWhy are you even trying to set it as your shortcut?", title="Advanced Review Bottombar")
                elif evt.key() == Qt.Key_Return:
                    showInfo("Have you ever seen anyone using \"Enter\" as a shortcut??\n\nWhy are you even trying to set it as your shortcut?", title="Advanced Review Bottombar")
                elif evt.key() == Qt.Key_Insert:
                    showInfo("You can't use \"Insert\" as shortcut, try something else", title="Advanced Review Bottombar")
                elif evt.key() == Qt.Key_Delete:
                    showInfo("Who even thinks about using \"Delete\" as shortcut?? WTF man, SERIOUSLY????", title="Advanced Review Bottombar")
                elif evt.key() == Qt.Key_Pause:
                    showInfo("You can't use \"Pause/Break\" as shortcut, try something else", title="Advanced Review Bottombar")
                elif evt.key() == Qt.Key_Home:
                    showInfo("Do you really think \"Home Key\" is a good key a a shortcut??!", title="Advanced Review Bottombar")
                elif evt.key() == Qt.Key_Left:
                    showInfo("You can't use \"Left\" as shortcut, try something else", title="Advanced Review Bottombar")
                elif evt.key() == Qt.Key_Up:
                    showInfo("You can't use \"Up\" as shortcut, try something else", title="Advanced Review Bottombar")
                elif evt.key() == Qt.Key_Right:
                    showInfo("You can't use \"Right\" as shortcut, try something else", title="Advanced Review Bottombar")
                elif evt.key() == Qt.Key_Down:
                    showInfo("You can't use \"Down\" as shortcut, try something else", title="Advanced Review Bottombar")
                elif evt.key() == Qt.Key_PageUp:
                    showInfo("You can't use \"Page Up\" as shortcut, try something else.\n\nEven if you could, would it really be a SHORTcut?? I mean look at you keyboard...", title="Advanced Review Bottombar")
                elif evt.key() == Qt.Key_PageDown:
                    showInfo("You can't use \"Page Down\" as shortcut, try something else.\n\nEven if you could, would it really be a SHORTcut?? I mean look at you keyboard...", title="Advanced Review Bottombar")
                elif evt.key() == Qt.Key_CapsLock:
                    showInfo("wHO THINKS IT'S A GOOD IDEA TO USE \"cAPs LoCk\" AS A SHORTCUT???", title="Advanced Review Bottombar")
                elif evt.key() == Qt.Key_NumLock:
                    showInfo("Why \"Num Lock\"???\n\n It's THE MOST remote key on keyboard, it can't be a SHORTcut man...", title="Advanced Review Bottombar")
                else:
                    showInfo("You can't use that as shortcut, try something else.", title="Advanced Review Bottombar")
                self.alt = False
                self.shift = False
                self.ctrl = False
                self.extra = None
                self.active = 0
                evt = False
                combination = []
                return

        #// the (empty) list for storing keys and then turning them into a shortcut
        combination = []
        if self.ctrl:
            combination.append("Ctrl")
        if self.shift:
            combination.append("Shift")
        if self.alt:
            combination.append("Alt")
        if self.f1:
            combination.append("F1")
        if self.f2:
            combination.append("F2")
        if self.f3:
            combination.append("F3")
        if self.f4:
            combination.append("F4")
        if self.f5:
            combination.append("F5")
        if self.f6:
            combination.append("F6")
        if self.f7:
            combination.append("F7")
        if self.f8:
            combination.append("F8")
        if self.f9:
            combination.append("F9")
        if self.f10:
            combination.append("F10")
        if self.f11:
            combination.append("F11")
        if self.f12:
            combination.append("F12")
        if self.extra:
            combination.append(self.extra)
        combination = "+".join(combination)
        #// preventing users from assigning a defauls Anki shortcut to something else | to avoid conflicts and stuff :|
        if combination in ["E", " ", "F5", "Ctrl+1", "Ctrl+2", "Ctrl+3", "Ctrl+4", "Shift+*", "=", "-", "Shift+!", "Shift+@", "Ctrl+Delete", "V", "Shift+V", "O", "1", "2", "3", "4", "5", "6", "7", "T", "Y", "A", "S", "D", "F", "B", "I", "/", "F1", "Ctrl+Q", "Ctrl+E", "Ctrl+P", "Ctrl+Shift+I", "Ctrl+Shift+P", "Ctrl+Shift+A", "Ctrl+Shift+:", "Ctrl+Shif+N", "Ctrl+Z"]:
            if combination == "E":
                showInfo("\"E\" is default Anki shortcut for \"Edit Current Card\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == " ":
                showInfo("\"Space Bar\" is default Anki shortcut for \"Show Answer\" or \"Default Review Button\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "F5":
                showInfo("\"F5\" is default Anki shortcut for \"Replay Audio\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "Ctrl+1":
                showInfo("\"Ctrl+1\" is default Anki shortcut for \"Set Red Flag\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "Ctrl+2":
                showInfo("\"Ctrl+2\" is default Anki shortcut for \"Set Orange Flag\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "Ctrl+3":
                showInfo("\"Ctrl+3\" is default Anki shortcut for \"Set Green Flag\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "Ctrl+4":
                showInfo("\"Ctrl+4\" is default Anki shortcut for \"Set Blue Flag\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "Shift+*":
                showInfo("\"*\" is default Anki shortcut for \"Mark Current Card\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "=":
                showInfo("\"=\" is default Anki shortcut for \"Bury Note\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "-":
                showInfo("\"-\" is default Anki shortcut for \"Bury Current Card\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "Shift+!":
                showInfo("\"!\" is default Anki shortcut for \"Suspend Note\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "Shift+@":
                showInfo("\"@\" is default Anki shortcut for \"Suspend Current Card\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "Ctrl+Delete":
                showInfo("\"Ctrl+Delete\" is default Anki shortcut for \"Delete Note\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "V":
                showInfo("\"V\" is default Anki shortcut for \"Replay Audio\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "Shift+V":
                showInfo("\"Shift+V\" is default Anki shortcut for \"Record Voice\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "O":
                showInfo("\"O\" is default Anki shortcut for \"Options\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "1":
                showInfo("\"1\" is default Anki shortcut for \"Answer with ease 1 (Again)\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "2":
                showInfo("\"2\" is default Anki shortcut for \"Answer with ease 2 (usually Hard)\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "3":
                showInfo("\"3\" is default Anki shortcut for \"Answer with ease 3 (usually Good)\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "4":
                showInfo("\"4\" is default Anki shortcut for \"Answer with ease 4 (Easy)\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "5":
                showInfo("\"5\" is default Anki shortcut for \"Puase Audio\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "6":
                showInfo("\"6\" is default Anki shortcut for \"Seek Backward\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "7":
                showInfo("\"7\" is default Anki shortcut for \"Seek Forward\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "T":
                showInfo("\"T\" is default Anki shortcut for \"Stats\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "Y":
                showInfo("\"Y\" is default Anki shortcut for \"Sync\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "A":
                showInfo("\"A\" is default Anki shortcut for \"Add Cards\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "S":
                showInfo("\"S\" is default Anki shortcut for \"Toggle Study Current Deck\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "D":
                showInfo("\"D\" is default Anki shortcut for \"Decks View\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "F":
                showInfo("\"F\" is default Anki shortcut for \"Create Filtered Deck\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "B":
                showInfo("\"B\" is default Anki shortcut for \"Browse\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "I":
                showInfo("\"I\" is default Anki shortcut for \"Card Info Window\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "/":
                showInfo("\"/\" is default Anki shortcut for \"Study Deck\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "F1":
                showInfo("\"F1\" is default Anki shortcut for \"Open Guide (Anki Manual)\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "Ctrl+Q":
                showInfo("\"Ctrl+Q\" is default Anki shortcut for \"Exit\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "Ctrl+E":
                showInfo("\"Ctrl+E\" is default Anki shortcut for \"Export\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "Ctrl+P":
                showInfo("\"Ctrl+P\" is default Anki shortcut for \"Preferences\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "Ctrl+Shift+I":
                showInfo("\"Ctrl+Shift+I\" is default Anki shortcut for \"Import\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "Ctrl+Shift+P":
                showInfo("\"Ctrl+Shift+P\" is default Anki shortcut for \"Swith Profile\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "Ctrl+Shift+A":
                showInfo("\"Ctrl+Shift+A\" is default Anki shortcut for \"Add-ons\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "Ctrl+Shift+:":
                showInfo("\"Ctrl+Shift+:\" is default Anki shortcut for \"Debug Console\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "Ctrl+Shift+N":
                showInfo("\"Ctrl+Shift+N\" is default Anki shortcut for \"Manage Note Types\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            if combination == "Ctrl+Shift+Z":
                showInfo("\"Ctrl+Shift+Z\" is default Anki shortcut for \"Undo\" You can't use this shortcut.", type="warning", title="Advanced Review Bottombar")
            self.ctrl = False
            self.alt = False
            self.shift = False
            self.extra = None
            self.f1 = False
            self.f5 = False
            self.active = 0
            combination = []
            return
        self.parent.updateShortcut(self.button_variable, combination)
        self.close()

class SettingsMenu(QDialog):
    refreshConfig()
    addon_path = dirname(__file__)
    images = join(addon_path, 'images')
    begin = "<div style='font-size: 14px'>"
    end = "</div>"
    info_shortcut = C_info_shortcut
    skip_shortcut = C_skip_shortcut
    showSkipped_shortcut = C_showSkipped_shortcut
    undo_shortcut = C_undo_shortcut
    def __init__(self, parent=None):
        super(SettingsMenu, self).__init__(parent)
        self.mainWindow()
        self.reviewButtonText_color = C_reviewButtonText_color
        self.activeIndicator_color = C_activeIndicator_color
        self.bottombarButtonText_color = C_bottombarButtonText_color
        self.bottombarButtonBorder_color = C_bottombarButtonBorder_color
        self.reviewTooltipText_color = C_reviewTooltipText_color
        self.again_color = C_again_color
        self.againHover_color = C_againHover_color
        self.hard_color = C_hard_color
        self.hardHover_color = C_hardHover_color
        self.good_color = C_good_color
        self.goodHover_color = C_goodHover_color
        self.easy_color = C_easy_color
        self.easyHover_color = C_easyHover_color
        self.showAnswerEase1_color = C_showAnswerEase1_color
        self.showAnswerEase2_color = C_showAnswerEase2_color
        self.showAnswerEase3_color = C_showAnswerEase3_color
        self.showAnswerEase4_color = C_showAnswerEase4_color
    def mainWindow(self):
        images = self.images
        self.createFirstTab()
        self.createSecondTab()
        self.createThirdTab()
        self.createFourthTab()
        self.createFifthTab()
        self.createSixthTab()
        self.createSeventhTab()
        self.createEighthTab()
        self.createNinthTab()
        self.loadCurrent()

        #// Create the bottom row of settings menu
        loadSettingsButton = QPushButton("&Load Settings")
        loadSettingsButton.clicked.connect(self.onLoadSettings)
        saveSettingsButton = QPushButton("&Backup Settings")
        saveSettingsButton.clicked.connect(self.onSaveSettings)
        acceptButton = QPushButton("&Apply")
        acceptButton.clicked.connect(self.onApply)
        rejectButton = QPushButton("&Discard")
        rejectButton.clicked.connect(self.reject)
        rejectButton.clicked.connect(lambda: tooltip("Changes Discarded."))
        buttonbox = QHBoxLayout()
        buttonbox.addWidget(loadSettingsButton)
        buttonbox.addWidget(saveSettingsButton)
        buttonbox.addStretch()
        buttonbox.addWidget(acceptButton)
        buttonbox.addWidget(rejectButton)

        #// create tabs widget and adds each tab
        tabs = QTabWidget()
        tabs.addTab(self.tab1, "Styles")
        tabs.addTab(self.tab2, "Answer Tooltip")
        tabs.addTab(self.tab3, "Bottombar Buttons")
        tabs.addTab(self.tab4, "Button Sizes")
        tabs.addTab(self.tab5, "Button Labels")
        tabs.addTab(self.tab6, "Sidebar")
        tabs.addTab(self.tab7, "Colors")
        tabs.addTab(self.tab8, "Misc")
        tabs.addTab(self.tab9, "About")

        vbox = QVBoxLayout()
        vbox.addWidget(tabs)
        vbox.addLayout(buttonbox)

        self.setLayout(vbox)
        self.setWindowTitle("Advanced Review Bottombar Settings Menu")
        self.setWindowIcon(QIcon(images + "/icon.png"))

    def createFirstTab(self):
        begin = self.begin
        end = self.end
        images = self.images
        buttonStyle_label = QLabel("Button Style:")
        buttonStyle_label.setToolTip("{0} Changes the way review buttons look.{1}".format(begin, end))
        buttonStyle_label.setFixedWidth(180)
        self.button_style = QComboBox()
        self.button_style.addItems(["Default + Text Color", "Default + Background Color", "Wide + Text Color", "Wide + Background Color", "Neon 1", "Neon 2", "Fill 1", "Fill 2"])
        self.button_style.setToolTip("{0}To see designs please go to about tab.{1}".format(begin, end))
        self.button_style.setMinimumWidth(180)
        reviewButtonDesigns_button = QPushButton("Show Designs")
        reviewButtonDesigns_button.setFixedWidth(180)
        reviewButtonDesigns_text = "{0}Default + Text Color <br> <img src='{2}/buttonStyle_defaultText.png'><hr> Default\
        + Bakground Color<br> <img src='{2}/buttonStyle_defaultBackground.png'><hr>\
        Wide + Text Color<br> <img src='{2}/buttonStyle_wideText.png'><hr>Wide +\
        Background Color<br> <img src='{2}/buttonStyle_wideBackground.png'><hr>Neon1 (Easy is hovered over)<br>\
        <img src='{2}/buttonStyle_neon1.png'><hr>Neon2 (Easy is hovered over)<br>\
        <img src='{2}/buttonStyle_neon2.png'><hr> Fill1 (Easy is hovered over)<br><img src='{2}/buttonStyle_fill1.png'><hr>\
        Fill2 (Easy is hovered over)<br><img src='{2}/buttonStyle_fill2.png'>{1}".format(begin, end, images)
        reviewButton_designs = QLabel()
        reviewButton_designs.setText(reviewButtonDesigns_text)
        reviewButtonDesigns_scroll = QScrollArea()
        reviewButtonDesigns_scroll.setWidget(reviewButton_designs)
        reviewButtonDesigns_layout = QVBoxLayout()
        reviewButtonDesigns_layout.addWidget(reviewButtonDesigns_scroll)
        reviewButtonDesigns_window = QDialog()
        reviewButtonDesigns_window.setWindowTitle("Advanced Review Bottombar [Review Button Designs]")
        reviewButtonDesigns_window.setWindowIcon(QIcon(images + "/icon.png"))
        reviewButtonDesigns_window.setLayout(reviewButtonDesigns_layout)
        reviewButtonDesigns_button.clicked.connect(lambda: reviewButtonDesigns_window.exec_())
        buttonStyle_holder = QHBoxLayout()
        buttonStyle_holder.addWidget(buttonStyle_label)
        buttonStyle_holder.addWidget(self.button_style)
        buttonStyle_holder.addWidget(reviewButtonDesigns_button)
        buttonStyle_holder.addStretch()
        bottombaButtonsStyle_label = QLabel("General Buttons Style:")
        bottombaButtonsStyle_label.setToolTip("{0} Changes The way general buttons (main screen bottombar, deck overview, show answer, edit, etc.) look. {1}".format(begin, end))
        bottombaButtonsStyle_label.setFixedWidth(180)
        self.bottombarButtons_style = QComboBox()
        self.bottombarButtons_style.addItems(["Default", "Neon 1", "Neon 2", "Fill1", "Fill 2"])
        self.bottombarButtons_style.setToolTip("{0}To see what every design looks like, please go to about tab{1}".format(begin, end))
        self.bottombarButtons_style.setMinimumWidth(180)
        otherBottombarButtonDesigns_button = QPushButton("Show Designs")
        otherBottombarButtonDesigns_button.setFixedWidth(180)
        otherBottombarButtonDesigns_text = "{0} Default<br><img src='{2}/bottombarButtonsStyle_default.png'><hr>\
        Neon1 (Show answer is hovered over)<br> <img src='{2}/bottombarButtonsStyle_neon1.png'>\
        <hr>Neon2 (Show answer is hovered over)<br> <img src='{2}/bottombarButtonsStyle_neon2.png'><hr>Fill1 (Show answer is hovered over)<br>\
        <img src='{2}/bottombarButtonsStyle_fill1.png'><hr>Fill2 (Show answer is hovered over)<br>\
        <img src='{2}/bottombarButtonsStyle_fill2.png'>{1}".format(begin, end, images)
        otherBottombarButton_designs = QLabel()
        otherBottombarButton_designs.setText(otherBottombarButtonDesigns_text)
        otherBottombarButtonDesigns_scroll = QScrollArea()
        otherBottombarButtonDesigns_scroll.setWidget(otherBottombarButton_designs)
        otherBottombarButtonDesigns_layout = QVBoxLayout()
        otherBottombarButtonDesigns_layout.addWidget(otherBottombarButtonDesigns_scroll)
        otherBottombarButtonDesigns_window = QDialog()
        otherBottombarButtonDesigns_window.setWindowTitle("Advanced Review Bottombar [Other Bottombar Buttons Designs]")
        otherBottombarButtonDesigns_window.setWindowIcon(QIcon(images + "/icon.png"))
        otherBottombarButtonDesigns_window.setLayout(otherBottombarButtonDesigns_layout)
        otherBottombarButtonDesigns_button.clicked.connect(lambda: otherBottombarButtonDesigns_window.exec_())
        bottombarButtonsStyle_holder = QHBoxLayout()
        bottombarButtonsStyle_holder.addWidget(bottombaButtonsStyle_label)
        bottombarButtonsStyle_holder.addWidget(self.bottombarButtons_style)
        bottombarButtonsStyle_holder.addWidget(otherBottombarButtonDesigns_button)
        bottombarButtonsStyle_holder.addStretch()
        hoverEffect_label = QLabel("Hover Effect:")
        hoverEffect_label.setToolTip("{0} Changes the way review buttons look when you hover over them.\
        <hr> This option does not change hover effect for neon buttons.<hr> If you use\
        custom colors for review buttons, brighten and glow colors will be the color\
        you have set for each buttons hover color.{1}".format(begin, end))
        hoverEffect_label.setFixedWidth(180)
        self.hover_effect = QComboBox()
        self.hover_effect.addItems(["Disable", "Brighten", "Glow", "Brighten + Glow"])
        self.hover_effect.setToolTip("{0} Disable -> Buttons won't change as you hover\
        over them.<hr> Brighten -> The text or the background color will get brightened\
        as you hover over them.<br><img src='{2}/hoverEffect_brighten.png'><hr> Glow ->\
        There will be a shadow around the button as you hover them.<br><img src='{2}/hoverEffect_glow.png'><hr>\
        Glow + Brighten -> Combines both glow and brighten effects.<br> <img src='{2}/hoverEffect_glowBrighten.png'>{1}".format(begin, end, images))
        self.hover_effect.setMinimumWidth(180)
        hoverEffect_holder = QHBoxLayout()
        hoverEffect_holder.addWidget(hoverEffect_label)
        hoverEffect_holder.addWidget(self.hover_effect)
        hoverEffect_holder.addStretch()
        activeIndicator_label = QLabel("Active Indicator:")
        activeIndicator_label.setToolTip("{0} Changes the way active review button looks. active button\
        is the button that is clicked if you press spacebar or enter.<hr> This option can not change active\
        indicator for neon and fill buttons as it's disabled on those designs. {1}".format(begin, end))
        activeIndicator_label.setFixedWidth(180)
        self.active_indicator = QComboBox()
        self.active_indicator.addItems(["Disable", "Border", "Glow"])
        self.active_indicator.setToolTip("{0} Indicator is turned off and all review buttons are the\
        same.<br> {1} <img src='{2}/activeIndicator_none.png'>{0}<hr> Indicator is\
        set on border and there is a thin border around active button.<br>\
        {1} <img src='{2}/activeIndicator_border.png'>{0}<hr> Indicator is set on\
        glow and active button is glowing. <br> {1}\
        <img src='{2}/activeIndicator_glow.png'>".format(begin, end, images))
        self.active_indicator.setMinimumWidth(180)
        activeIndicator_holder = QHBoxLayout()
        activeIndicator_holder.addWidget(activeIndicator_label)
        activeIndicator_holder.addWidget(self.active_indicator)
        activeIndicator_holder.addStretch()
        cursorStyle_label = QLabel("Cursor Style:")
        cursorStyle_label.setToolTip("{0}Changes the cursor style when hovered over buttons.{1}".format(begin, end))
        cursorStyle_label.setFixedWidth(180)
        self.cursor_style = QComboBox()
        self.cursor_style.addItems(["Normal", "Pointer"])
        self.cursor_style.setFixedWidth(180)
        cursorStyle_holder = QHBoxLayout()
        cursorStyle_holder.addWidget(cursorStyle_label)
        cursorStyle_holder.addWidget(self.cursor_style)
        cursorStyle_holder.addStretch()
        showAnswerBorderType_label = QLabel("Show Answer Border Color Style:")
        showAnswerBorderType_label.setToolTip("{0}Changes how show answer border color behaves.<hr>\
        if set on \"Fixed\" it's border color will be the same as other bottombar buttons.<br>\
        if set on \"Bases on Card Ease\" it's color will change based on card ease.\
        <hr> you can change it's color for each ease range in colors tab.{1}".format(begin, end))
        showAnswerBorderType_label.setFixedWidth(180)
        self.showAnswerBorderColor_style = QComboBox()
        self.showAnswerBorderColor_style.addItems(["Fixed", "Show Based on Card Ease"])
        self.showAnswerBorderColor_style.setFixedWidth(180)
        showAnswerBorderType_holder = QHBoxLayout()
        showAnswerBorderType_holder.addWidget(showAnswerBorderType_label)
        showAnswerBorderType_holder.addWidget(self.showAnswerBorderColor_style)
        showAnswerBorderType_holder.addStretch()
        intervalStyle_label = QLabel("Button Interval Style:")
        intervalStyle_label.setToolTip("{0}Changes the style of button intervals.{1}".format(begin, end))
        intervalStyle_label.setFixedWidth(180)
        self.interval_style = QComboBox()
        self.interval_style.addItems(["Stock", "Colored Stock", "Inside the Buttons"])
        self.interval_style.setFixedWidth(180)
        intervalStyle_holder = QHBoxLayout()
        intervalStyle_holder.addWidget(intervalStyle_label)
        intervalStyle_holder.addWidget(self.interval_style)
        intervalStyle_holder.addStretch()
        buttonTransitionTime_label = QLabel("Button Transition Time:")
        buttonTransitionTime_label.setToolTip("{0}Changes button animation time for fill and neon styles.{1}".format(begin, end))
        buttonTransitionTime_label.setFixedWidth(180)
        self.buttonTransition_time = QSpinBox()
        self.buttonTransition_time.setMinimum(0)
        self.buttonTransition_time.setMaximum(10000)
        self.buttonTransition_time.setSingleStep(20)
        self.buttonTransition_time.setFixedWidth(180)
        buttonTransitionTime_ms = QLabel("ms")
        buttonTransitionTime_holder = QHBoxLayout()
        buttonTransitionTime_holder.addWidget(buttonTransitionTime_label)
        buttonTransitionTime_holder.addWidget(self.buttonTransition_time)
        buttonTransitionTime_holder.addWidget(buttonTransitionTime_ms)
        buttonTransitionTime_holder.addStretch()
        buttonBorderRadius_label = QLabel("Button Border Radius:")
        buttonBorderRadius_label.setToolTip("{0}Changer the roundness of the buttons.{1}".format(begin, end))
        buttonBorderRadius_label.setFixedWidth(180)
        self.buttonBorderRadius = QSpinBox()
        self.buttonBorderRadius.setMinimum(0)
        self.buttonBorderRadius.setMaximum(50)
        self.buttonBorderRadius.setSingleStep(1)
        self.buttonBorderRadius.setFixedWidth(180)
        buttonBorderRadius_px = QLabel("px")
        buttonBorderRadius_holder = QHBoxLayout()
        buttonBorderRadius_holder.addWidget(buttonBorderRadius_label)
        buttonBorderRadius_holder.addWidget(self.buttonBorderRadius)
        buttonBorderRadius_holder.addWidget(buttonBorderRadius_px)
        def buttonStyle_signal():
            buttonStyle_index = self.button_style.currentIndex()
            self.hover_effect.setDisabled(True)
            if buttonStyle_index in [0, 1, 2, 3]:
                self.hover_effect.setEnabled(True)
            self.active_indicator.setDisabled(True)
            if buttonStyle_index in [0, 1, 2, 3]:
                self.active_indicator.setEnabled(True)
            # self.cursor_style.setDisabled(True)
            self.buttonTransition_time.setDisabled(True)
            if buttonStyle_index in [4, 5, 6, 7]:
                # self.cursor_style.setEnabled(True)
                self.buttonTransition_time.setEnabled(True)
        buttonStyle_signal()
        self.button_style.currentIndexChanged.connect(buttonStyle_signal)
        self.style_mainScreenButtons = QCheckBox("Style Main Screen Buttons")
        self.style_mainScreenButtons.setToolTip("{0}Changes style of main screen and deck overview buttons if enabled.<hr>\
        <img src='{2}/changeMainScreenButtons.png'><br>\
        <img src='{2}/changeMainScreenButtons2.png'><br>\
        <img src='{2}/changeMainScreenButtons3.png'>{1}".format(begin, end, images))
        self.style_mainScreenButtons.setFixedWidth(180)
        tab1line5 = QHBoxLayout()
        tab1line5.addWidget(self.style_mainScreenButtons)
        tab1line5.addStretch()
        layout = QVBoxLayout()
        layout.addLayout(buttonStyle_holder)
        layout.addLayout(bottombarButtonsStyle_holder)
        layout.addLayout(hoverEffect_holder)
        layout.addLayout(activeIndicator_holder)
        layout.addLayout(cursorStyle_holder)
        layout.addLayout(showAnswerBorderType_holder)
        layout.addLayout(intervalStyle_holder)
        layout.addLayout(buttonTransitionTime_holder)
        layout.addLayout(buttonBorderRadius_holder)
        layout.addLayout(tab1line5)
        layout.addStretch()
        layout_holder = QWidget()
        layout_holder.setLayout(layout)
        self.tab1 = QScrollArea()
        self.tab1.setFixedWidth(640)
        self.tab1.setAlignment(Qt.AlignHCenter)
        self.tab1.setWidgetResizable(True)
        self.tab1.setWidget(layout_holder)

    def createSecondTab(self):
        begin = self.begin
        end = self.end
        images = self.images
        reviewTooltip_label = QLabel("Review Confirmation Tooltip:")
        reviewTooltip_label.setToolTip("{0}Shows a tooltip when you press any of\
        review buttons, showing you what button you have pressed.{1}".format(begin, end))
        reviewTooltip_label.setFixedWidth(180)
        self.reviewTooltip_on = QRadioButton("On")
        self.reviewTooltip_on.setFixedWidth(90)
        self.reviewTooltip_off = QRadioButton("off")
        self.reviewTooltip_off.setFixedWidth(90)
        reviewTooltip_holder = QHBoxLayout()
        reviewTooltip_holder.addWidget(reviewTooltip_label)
        reviewTooltip_holder.addWidget(self.reviewTooltip_on)
        reviewTooltip_holder.addWidget(self.reviewTooltip_off)
        reviewTooltip_holder.addStretch()
        tab2box1 = QGroupBox()
        tab2box1.setLayout(reviewTooltip_holder)
        reviewTooltipStyle_label = QLabel("Tooltip Position:")
        reviewTooltipStyle_label.setToolTip("{0}Changes the position of answer tooltip.{1}".format(begin, end))
        reviewTooltipStyle_label.setFixedWidth(180)
        self.reviewTooltip_style = QComboBox()
        self.reviewTooltip_style.addItems(["On Buttons", "Fixed Position"])
        self.reviewTooltip_style.setToolTip("{0}On buttons -> Shows the tooltip on the button that you have pressed<hr>\
        Fixed Position -> Shows all the tooltips in a position that you have chosen in review toolip position box.{1}".format(begin, end))
        self.reviewTooltip_style.setFixedWidth(180)
        reviewTooltipStyle_holder = QHBoxLayout()
        reviewTooltipStyle_holder.addWidget(reviewTooltipStyle_label)
        reviewTooltipStyle_holder.addWidget(self.reviewTooltip_style)
        reviewTooltipStyle_holder.addStretch()
        reviewTooltipTimer_label = QLabel("Tooltip Show Duration:")
        reviewTooltipTimer_label.setToolTip("{0}Changes lenghth of the period that tooltip is shown.<hr>the unit is millisecond, 1000ms = 1s{1} (I know everybody knows this, put it here just in case :|)".format(begin, end))
        reviewTooltipTimer_label.setFixedWidth(180)
        self.reviewTooltip_timer = QSpinBox()
        self.reviewTooltip_timer.setFixedWidth(180)
        self.reviewTooltip_timer.setMinimum(100)
        self.reviewTooltip_timer.setMaximum(10000)
        reviewerTooltipTimer_ms = QLabel("ms")
        reviewTooltipTimer_holder = QHBoxLayout()
        reviewTooltipTimer_holder.addWidget(reviewTooltipTimer_label)
        reviewTooltipTimer_holder.addWidget(self.reviewTooltip_timer)
        reviewTooltipTimer_holder.addWidget(reviewerTooltipTimer_ms)
        reviewTooltipTimer_holder.addStretch()
        reviewTooltipTextColor_label = QLabel("Tooltip Text Color:")
        reviewTooltipTextColor_label.setToolTip("{0}Changes color of the text inside tooltips.{1}".format(begin, end))
        reviewTooltipTextColor_label.setFixedWidth(180)
        self.reviewTooltipTextColor_button = QPushButton()
        self.reviewTooltipTextColor_button.setFixedWidth(180)
        self.reviewTooltipTextColor_button.clicked.connect(lambda: self.getNewColor("reviewTooltipText_color", self.reviewTooltipTextColor_button))
        reviewTooltipTextColor_holder = QHBoxLayout()
        reviewTooltipTextColor_holder.addWidget(reviewTooltipTextColor_label)
        reviewTooltipTextColor_holder.addWidget(self.reviewTooltipTextColor_button)
        reviewTooltipTextColor_holder.addStretch()
        tab2line2 = QVBoxLayout()
        tab2line2.addLayout(reviewTooltipStyle_holder)
        tab2line2.addLayout(reviewTooltipTimer_holder)
        tab2line2.addLayout(reviewTooltipTextColor_holder)
        tab2box2 = QGroupBox()
        tab2box2.setLayout(tab2line2)
        self.reviewTooltipPositionX = QSlider(Qt.Horizontal)
        self.reviewTooltipPositionX.setFixedWidth(200)
        self.reviewTooltipPositionX.setMinimum(0)
        self.reviewTooltipPositionX.setMaximum(1850)
        self.reviewTooltipPositionX.setPageStep(100)
        self.reviewTooltipPositionX.setSliderPosition(0)
        reviewerTooltipPosition_holder = QHBoxLayout()
        self.reviewTooltipPositionY = QSlider(Qt.Vertical)
        self.reviewTooltipPositionY.setFixedHeight(200)
        self.reviewTooltipPositionY.setMinimum(-950)
        self.reviewTooltipPositionY.setMaximum(0)
        self.reviewTooltipPositionY.setPageStep(100)
        self.reviewTooltipPositionY.setSliderPosition(0)
        reviewerTooltipPosition_holder = QHBoxLayout()
        reviewerTooltipPosition_holder.addWidget(self.reviewTooltipPositionX)
        reviewerTooltipPosition_holder.addWidget(self.reviewTooltipPositionY)
        reviewerTooltipPosition_holder.addStretch()
        tab2line3 = QVBoxLayout()
        tab2line3.addLayout(reviewerTooltipPosition_holder)
        tab2box3 = QGroupBox("Tooltip Position")
        tab2box3.setToolTip("{0}Changes position of the fixed tooltip.<hr>\
        (<font color=red># NOTE:</font> If your resulotion is not 1920 x 1080, it's not accurate, but you\
        can find the place that you wanna put the tooltip on, by toying with the sliders\
        and restarting anki till you get the desired result.<br>\
        <font color=red># NOTE:</font> If your resulotion is 1920 x 1080 the sliders are accurate for\
        maximized anki window.<br> <font color=red># NOTE:</font> If you set the position for a window that\
        it's size is for example 500 x 500, the position will not be accurate when you\
        change anki's window size to any other size. and if you decide to resize anki's\
        window, you should set the positions again in order for the tooltip to be in the\
        position you want.){1}".format(begin, end))
        tab2box3.setLayout(tab2line3)
        tab2box3.setDisabled(True)
        if self.reviewTooltip_style.currentIndex() == 1:
            tab2box3.setEnabled(True)
        self.reviewTooltip_off.toggled.connect(tab2box3.setDisabled)
        self.reviewTooltip_style.currentIndexChanged.connect(tab2box3.setEnabled)
        tab2box2.setDisabled(True)
        if self.reviewTooltip_on.isChecked():
            tab2box2.setEnabled(True)
        self.reviewTooltip_on.toggled.connect(tab2box2.setEnabled)
        layout = QVBoxLayout()
        layout.addWidget(tab2box1)
        layout.addWidget(tab2box2)
        layout.addWidget(tab2box3)
        layout.addStretch()
        layout_holder = QWidget()
        layout_holder.setLayout(layout)
        self.tab2 = QScrollArea()
        self.tab2.setFixedWidth(640)
        self.tab2.setAlignment(Qt.AlignHCenter)
        self.tab2.setWidgetResizable(True)
        self.tab2.setWidget(layout_holder)

    def createThirdTab(self):
        begin = self.begin
        end = self.end
        images = self.images
        self.info = QCheckBox("Info")
        self.info.setToolTip("{0} If enabled adds info button to review bottombar. {1}".format(begin, end))
        self.skip = QCheckBox("Skip")
        self.skip.setToolTip("{0} If enabled adds skip card button to review bottombar. {1}".format(begin, end))
        self.showSkipped = QCheckBox("Show Skipped")
        self.showSkipped.setToolTip("{0} If enabled adds show skipped button to review bottombar. {1}".format(begin, end))
        self.undo = QCheckBox("Undo")
        self.undo.setToolTip("{0} If enabled adds undo review button to review bottombar. {1}".format(begin, end))
        extraButtonsPart = QHBoxLayout()
        extraButtonsPart.addWidget(self.info)
        extraButtonsPart.addWidget(self.skip)
        extraButtonsPart.addWidget(self.showSkipped)
        extraButtonsPart.addWidget(self.undo)
        extraButtonsBox = QGroupBox("Extra Buttons")
        extraButtonsBox.setLayout(extraButtonsPart)
        self.hideHard = QCheckBox("Hide Hard")
        self.hideHard.setToolTip("{0}Hides the Hard button.{1}".format(begin, end))
        self.hideGood = QCheckBox("Hide Good")
        self.hideGood.setToolTip("{0}Hides the Good button.{1}".format(begin, end))
        self.hideEasy = QCheckBox("Hide Easy")
        self.hideEasy.setToolTip("{0}Hides the Easy button.{1}".format(begin, end))
        hideButtonsPart = QHBoxLayout()
        hideButtonsPart.addWidget(self.hideHard)
        hideButtonsPart.addWidget(self.hideGood)
        hideButtonsPart.addWidget(self.hideEasy)
        hideButtonsPart.addWidget(QLabel(""))
        hideButtonsBox = QGroupBox("Hide Buttons")
        hideButtonsBox.setLayout(hideButtonsPart)
        infoPosition_label = QLabel("Info:")
        infoPosition_label.setToolTip("{0} Changes info button position in bottombar. {1}".format(begin, end))
        self.left_info = QRadioButton("Left")
        self.middleLeft_info = QRadioButton("Middle left")
        self.middleRight_info = QRadioButton("Middle right")
        self.right_info = QRadioButton("Right")
        infoPosition_holder = QHBoxLayout()
        infoPosition_holder.addWidget(infoPosition_label)
        infoPosition_holder.addWidget(self.left_info)
        infoPosition_holder.addWidget(self.middleLeft_info)
        infoPosition_holder.addWidget(self.middleRight_info)
        infoPosition_holder.addWidget(self.right_info)
        infoButtonPositionBox = QGroupBox()
        infoButtonPositionBox.setDisabled(True)
        if self.info.isChecked():
            self.infoButtonPositionBox.setEnabled(True)
        self.info.toggled.connect(infoButtonPositionBox.setEnabled)
        infoButtonPositionBox.setLayout(infoPosition_holder)
        skipPosition_label = QLabel("Skip:")
        skipPosition_label.setToolTip("{0} Changes skip button position in bottombar. {1}".format(begin, end))
        self.left_skip = QRadioButton("Left")
        self.middleLeft_skip = QRadioButton("Middle left")
        self.middleRight_skip = QRadioButton("Middle right")
        self.right_skip = QRadioButton("Right")
        skipPosition_holder = QHBoxLayout()
        skipPosition_holder.addWidget(skipPosition_label)
        skipPosition_holder.addWidget(self.left_skip)
        skipPosition_holder.addWidget(self.middleLeft_skip)
        skipPosition_holder.addWidget(self.middleRight_skip)
        skipPosition_holder.addWidget(self.right_skip)
        skipButtonPositionBox = QGroupBox()
        skipButtonPositionBox.setDisabled(True)
        if self.skip.isChecked():
            skipButtonPositionBox.setEnabled(True)
        self.skip.toggled.connect(skipButtonPositionBox.setEnabled)
        skipButtonPositionBox.setLayout(skipPosition_holder)
        showSkippedPosition_label = QLabel("Show Skipped:")
        showSkippedPosition_label.setToolTip("{0} Changes show skipped button position in bottombar. {1}".format(begin, end))
        self.left_showSkipped = QRadioButton("Left")
        self.middleLeft_showSkipped = QRadioButton("Middle left")
        self.middleRight_showSkipped = QRadioButton("Middle right")
        self.right_showSkipped = QRadioButton("Right")
        showSkippedPosition_holder = QHBoxLayout()
        showSkippedPosition_holder.addWidget(showSkippedPosition_label)
        showSkippedPosition_holder.addWidget(self.left_showSkipped)
        showSkippedPosition_holder.addWidget(self.middleLeft_showSkipped)
        showSkippedPosition_holder.addWidget(self.middleRight_showSkipped)
        showSkippedPosition_holder.addWidget(self.right_showSkipped)
        showSkippedButtonPositionBox = QGroupBox()
        showSkippedButtonPositionBox.setDisabled(True)
        if self.showSkipped.isChecked():
            showSkippedButtonPositionBox.setEnabled(True)
        self.showSkipped.toggled.connect(showSkippedButtonPositionBox.setEnabled)
        showSkippedButtonPositionBox.setLayout(showSkippedPosition_holder)
        undoPosition_label = QLabel("Undo:")
        undoPosition_label.setToolTip("{0} Changes undo review button position in bottombar. {1}".format(begin, end))
        self.left_undo = QRadioButton("Left")
        self.middleLeft_undo = QRadioButton("Middle left")
        self.middleRight_undo = QRadioButton("Middle right")
        self.right_undo = QRadioButton("Right")
        undoPosition_holder = QHBoxLayout()
        undoPosition_holder.addWidget(undoPosition_label)
        undoPosition_holder.addWidget(self.left_undo)
        undoPosition_holder.addWidget(self.middleLeft_undo)
        undoPosition_holder.addWidget(self.middleRight_undo)
        undoPosition_holder.addWidget(self.right_undo)
        undoButtonPositionBox = QGroupBox()
        undoButtonPositionBox.setDisabled(True)
        if self.undo.isChecked():
            undoButtonPositionBox.setEnabled(True)
        self.undo.toggled.connect(undoButtonPositionBox.setEnabled)
        undoButtonPositionBox.setLayout(undoPosition_holder)
        buttonPositionsPart = QVBoxLayout()
        buttonPositionsPart.addWidget(infoButtonPositionBox)
        buttonPositionsPart.addWidget(skipButtonPositionBox)
        buttonPositionsPart.addWidget(showSkippedButtonPositionBox)
        buttonPositionsPart.addWidget(undoButtonPositionBox)
        buttonPositionsBox = QGroupBox("Button Positions")
        buttonPositionsBox.setLayout(buttonPositionsPart)
        infoShortcut_label = QLabel("Info:")
        infoShortcut_label.setToolTip("{0} Changes show card info shortcut.<hr> Shortcut will work even if\
        you disable the Info button.<hr> Info button can be a sngle key\
        like \"i\" or \"f4\" or a combination of keys like \"ctrl+i\" or \"alt+i\".<hr>\
        <font color=red>NOTE: </font>Make sure the shortcut you want to set for the\
        button isn't already in use by anki itself or another add-on. {1}".format(begin, end))
        infoShortcut_label.setFixedWidth(125)
        self.infoShortcut_button = QPushButton(self)
        self.infoShortcut_button.setFixedWidth(300)
        self.infoShortcut_button.clicked.connect(lambda: self.showGetShortcut("info_shortcut"))
        infoShortcut_holder = QHBoxLayout()
        infoShortcut_holder.addWidget(infoShortcut_label)
        infoShortcut_holder.addStretch()
        infoShortcut_holder.addWidget(self.infoShortcut_button)
        skipShortcut_label = QLabel("Skip:")
        skipShortcut_label.setToolTip("{0} Changes skip card shortcut.<hr> Shortcut will work even if\
        you disable the skip button.<hr> skip button can be a sngle key\
        like \"s\" or \"f6\" or a combination of keys like \"ctrl+s\" or \"alt+s\".<hr>\
        <font color=red>NOTE: </font>Make sure the shortcut you want to set for the\
        button isn't already in use by anki itself or another add-on. {1}".format(begin, end))
        skipShortcut_label.setFixedWidth(125)
        self.skipShortcut_button = QPushButton()
        self.skipShortcut_button.setFixedWidth(300)
        self.skipShortcut_button.clicked.connect(lambda: self.showGetShortcut("skip_shortcut"))
        skipShortcut_holder = QHBoxLayout()
        skipShortcut_holder.addWidget(skipShortcut_label)
        skipShortcut_holder.addStretch()
        skipShortcut_holder.addWidget(self.skipShortcut_button)
        showSkippedShortcut_label = QLabel("Show Skipped:")
        showSkippedShortcut_label.setToolTip("{0} Changes Show Skipped cards shortcut.<hr> Shortcut will work even if\
        you disable the Show Skipped Cards button.<hr> Show Skipped cards button shortcut can be a sngle key\
        like \"s\" or \"f6\" or a combination of keys like \"ctrl+s\" or \"alt+s\".<hr>\
        <font color=red>NOTE: </font>Make sure the shortcut you want to set for the\
        button isn't already in use by anki itself or another add-on. {1}".format(begin, end))
        showSkippedShortcut_label.setFixedWidth(125)
        self.showSkippedShortcut_button = QPushButton()
        self.showSkippedShortcut_button.setFixedWidth(300)
        self.showSkippedShortcut_button.clicked.connect(lambda: self.showGetShortcut("showSkipped_shortcut"))
        showSkippedShortcut_holder = QHBoxLayout()
        showSkippedShortcut_holder.addWidget(showSkippedShortcut_label)
        showSkippedShortcut_holder.addStretch()
        showSkippedShortcut_holder.addWidget(self.showSkippedShortcut_button)
        undoShortcut_label = QLabel("Undo:")
        undoShortcut_label.setToolTip("{0} Changes undo review shortcut.<hr> Shortcut will work even if\
        you disable the undo button.<hr> undo button shortcut can be a sngle key\
        like \"z\" or \"f1\" or a combination of keys like \"ctrl+z\" or \"alt+z\".<hr>\
        <font color=red>NOTE: </font>Make sure the shortcut you want to set for the button isn't already\
        in use by anki itself or another add-on.<hr> the default shortcut for this\
        action is (Ctrl+Z), by changing th shortcut here, the default shortcut\
        will still wok, in other words, if you set a shortcut for undo review\
        here, you will have two shortcuts for it, one is the default (Ctrl+Z)\
        and the other is the shortcut that you have set. {1}".format(begin, end))
        undoShortcut_label.setFixedWidth(125)
        self.undoShortcut_button = QPushButton()
        self.undoShortcut_button.setFixedWidth(300)
        self.undoShortcut_button.clicked.connect(lambda: self.showGetShortcut("undo_shortcut"))
        undoShortcut_holder = QHBoxLayout()
        undoShortcut_holder.addWidget(undoShortcut_label)
        undoShortcut_holder.addStretch()
        undoShortcut_holder.addWidget(self.undoShortcut_button)
        buttonShortcutsPart = QVBoxLayout()
        buttonShortcutsPart.addLayout(infoShortcut_holder)
        buttonShortcutsPart.addLayout(skipShortcut_holder)
        buttonShortcutsPart.addLayout(showSkippedShortcut_holder)
        buttonShortcutsPart.addLayout(undoShortcut_holder)
        buttonShortcutsBox = QGroupBox("Button Shortcuts")
        buttonShortcutsBox.setLayout(buttonShortcutsPart)
        layout = QVBoxLayout()
        layout.addWidget(extraButtonsBox)
        layout.addWidget(hideButtonsBox)
        layout.addWidget(buttonPositionsBox)
        layout.addWidget(buttonShortcutsBox)
        layout.addStretch()
        layout_holder = QWidget()
        layout_holder.setLayout(layout)
        self.tab3 = QScrollArea()
        self.tab3.setFixedWidth(640)
        self.tab3.setAlignment(Qt.AlignHCenter)
        self.tab3.setWidgetResizable(True)
        self.tab3.setWidget(layout_holder)

    def createFourthTab(self):
        begin = self.begin
        end = self.end
        images = self.images
        customSizes_label = QLabel('Custom Sizes:')
        customSizes_label.setToolTip("{0} Enables and disables custom button sizes.<hr> If Enabled\
        button sizes will change according to the sizes you set for each button.<hr>\
        If disabled button sizes will be set on default size.<hr> <font color=red>NOTE: </font>If you use\
        wide buttons, you won't be able to change review buttons width and even when\
        you disable custom button sizes, review buttons will be wide. {1}".format(begin, end))
        customSizes_label.setFixedWidth(180)
        self.customSizes_on = QRadioButton("On")
        self.customSizes_on.setToolTip("{0} Button sizes is disabled and buttons height and width\
        is set to height and width that we have set.<hr> {1} <img src='{2}/buttonSizes_on.png'>\
        <br><img src='{2}/buttonSizes_on2.png'>".format(begin, end, images))
        self.customSizes_on.setFixedWidth(90)
        self.customSizes_off = QRadioButton("Off")
        self.customSizes_off.setToolTip("{0} Button sizes is disabled and all buttons are in default size.<hr>\
        {1} <img src='{2}/buttonSizes_off.png'><img src='{2}/buttonSizes_off2.png'>".format(begin, end, images))
        self.customSizes_off.setFixedWidth(90)
        tab4line1 = QHBoxLayout()
        tab4line1.addWidget(customSizes_label)
        tab4line1.addWidget(self.customSizes_on)
        tab4line1.addWidget(self.customSizes_off)
        tab4line1.addStretch()
        tab4box1 = QGroupBox()
        tab4box1.setLayout(tab4line1)
        textSize_label = QLabel("Buttons Text Size:")
        textSize_label.setToolTip("{0}Sets the text size for all bottombar buttons.\
        It only works on review screen buttons and it will not affect main screen\
         and study screen buttons{1}".format(begin, end))
        textSize_label.setFixedWidth(180)
        self.text_size = QSpinBox()
        self.text_size.setFixedWidth(120)
        self.text_size.setMinimum(0)
        self.text_size.setMaximum(200)
        textSize_px = QLabel("px")
        textSize_holder = QHBoxLayout()
        textSize_holder.addWidget(textSize_label)
        textSize_holder.addWidget(self.text_size)
        textSize_holder.addWidget(textSize_px)
        buttonsHeight_label = QLabel("Bottombar Buttons Height:")
        buttonsHeight_label.setToolTip("{0} Sets height for all bottombar buttons including edit, info,\
        ski, show answer, undo review, more and review buttons.".format(begin, end))
        buttonsHeight_label.setFixedWidth(180)
        self.buttons_height = QSpinBox()
        self.buttons_height.setFixedWidth(120)
        self.buttons_height.setMinimum(0)
        self.buttons_height.setMaximum(200)
        buttonsHeight_px = QLabel("px")
        buttonsHeight_holder = QHBoxLayout()
        buttonsHeight_holder.addWidget(buttonsHeight_label)
        buttonsHeight_holder.addWidget(self.buttons_height)
        buttonsHeight_holder.addWidget(buttonsHeight_px)
        reviewButtonsWidth_label = QLabel("Review Buttons Width:")
        reviewButtonsWidth_label.setToolTip("{0} Sets width for review buttons\
        (again, hard, good and easy buttons).{1}".format(begin, end))
        reviewButtonsWidth_label.setFixedWidth(180)
        self.reviewButtons_width = QSpinBox()
        self.reviewButtons_width.setFixedWidth(120)
        self.reviewButtons_width.setMinimum(0)
        self.reviewButtons_width.setMaximum(400)
        reviewButtonsWidth_px = QLabel("px")
        reviewButtonsWidth_holder = QHBoxLayout()
        reviewButtonsWidth_holder.addWidget(reviewButtonsWidth_label)
        reviewButtonsWidth_holder.addWidget(self.reviewButtons_width)
        reviewButtonsWidth_holder.addWidget(reviewButtonsWidth_px)
        editWidth_label = QLabel("Edit Width:")
        editWidth_label.setToolTip("{0} Sets width for edit button.{1}".format(begin, end))
        editWidth_label.setFixedWidth(180)
        self.edit_width = QSpinBox()
        self.edit_width.setFixedWidth(120)
        self.edit_width.setMinimum(0)
        self.edit_width.setMaximum(400)
        editWidth_px = QLabel("px")
        editWidth_holder = QHBoxLayout()
        editWidth_holder.addWidget(editWidth_label)
        editWidth_holder.addWidget(self.edit_width)
        editWidth_holder.addWidget(editWidth_px)
        answerWidth_label = QLabel("Show Answer Width:")
        answerWidth_label.setToolTip("{0} Sets width for show answer button.{1}".format(begin, end))
        answerWidth_label.setFixedWidth(180)
        self.answer_width = QSpinBox()
        self.answer_width.setFixedWidth(120)
        self.answer_width.setMinimum(0)
        self.answer_width.setMaximum(400)
        answerWidth_px = QLabel("px")
        answerWidth_holder = QHBoxLayout()
        answerWidth_holder.addWidget(answerWidth_label)
        answerWidth_holder.addWidget(self.answer_width)
        answerWidth_holder.addWidget(answerWidth_px)
        moreWidth_label = QLabel("More Width:")
        moreWidth_label.setToolTip("{0} Sets width for more button.{1}".format(begin, end))
        moreWidth_label.setFixedWidth(180)
        self.more_width = QSpinBox()
        self.more_width.setFixedWidth(120)
        self.more_width.setMinimum(0)
        self.more_width.setMaximum(400)
        moreWidth_px = QLabel("px")
        moreWidth_holder = QHBoxLayout()
        moreWidth_holder.addWidget(moreWidth_label)
        moreWidth_holder.addWidget(self.more_width)
        moreWidth_holder.addWidget(moreWidth_px)
        infoWidth_label = QLabel("Info Width:")
        infoWidth_label.setToolTip("{0} Sets width for info button.{1}".format(begin, end))
        infoWidth_label.setFixedWidth(180)
        self.info_width = QSpinBox()
        self.info_width.setFixedWidth(120)
        self.info_width.setMinimum(0)
        self.info_width.setMaximum(400)
        infoWidth_px = QLabel("px")
        infoWidth_holder = QHBoxLayout()
        infoWidth_holder.addWidget(infoWidth_label)
        infoWidth_holder.addWidget(self.info_width)
        infoWidth_holder.addWidget(infoWidth_px)
        skipWidth_label = QLabel("Skip Width:")
        skipWidth_label.setToolTip("{0} Sets width for skip button.{1}".format(begin, end))
        skipWidth_label.setFixedWidth(180)
        self.skip_width = QSpinBox()
        self.skip_width.setFixedWidth(120)
        self.skip_width.setMinimum(0)
        self.skip_width.setMaximum(400)
        skipWidth_px = QLabel("px")
        skipWidth_holder = QHBoxLayout()
        skipWidth_holder.addWidget(skipWidth_label)
        skipWidth_holder.addWidget(self.skip_width)
        skipWidth_holder.addWidget(skipWidth_px)
        showSkippedWidth_label = QLabel("Show Skipped Width:")
        showSkippedWidth_label.setToolTip("{0} Sets width for Show Skipped button.{1}".format(begin, end))
        showSkippedWidth_label.setFixedWidth(180)
        self.showSkipped_width = QSpinBox()
        self.showSkipped_width.setFixedWidth(120)
        self.showSkipped_width.setMinimum(0)
        self.showSkipped_width.setMaximum(400)
        showSkippedWidth_px = QLabel("px")
        showSkippedWidth_holder = QHBoxLayout()
        showSkippedWidth_holder.addWidget(showSkippedWidth_label)
        showSkippedWidth_holder.addWidget(self.showSkipped_width)
        showSkippedWidth_holder.addWidget(showSkippedWidth_px)
        undoWidth_label = QLabel("Undo Width:")
        undoWidth_label.setToolTip("{0} Sets width for undo button.{1}".format(begin, end))
        undoWidth_label.setFixedWidth(180)
        self.undo_width = QSpinBox()
        self.undo_width.setFixedWidth(120)
        self.undo_width.setMinimum(0)
        self.undo_width.setMaximum(400)
        undoWidth_px = QLabel("px")
        undoWidth_holder = QHBoxLayout()
        undoWidth_holder.addWidget(undoWidth_label)
        undoWidth_holder.addWidget(self.undo_width)
        undoWidth_holder.addWidget(undoWidth_px)
        tab4line2 = QVBoxLayout()
        tab4line2.addLayout(textSize_holder)
        tab4line2.addLayout(buttonsHeight_holder)
        tab4line2.addLayout(reviewButtonsWidth_holder)
        tab4line2.addLayout(editWidth_holder)
        tab4line2.addLayout(answerWidth_holder)
        tab4line2.addLayout(moreWidth_holder)
        tab4line2.addLayout(infoWidth_holder)
        tab4line2.addLayout(skipWidth_holder)
        tab4line2.addLayout(showSkippedWidth_holder)
        tab4line2.addLayout(undoWidth_holder)
        tab4box2 = QGroupBox()
        tab4box2.setDisabled(True)
        if self.customSizes_on.isChecked():
            tab4box2.setEnabled(True)
        self.customSizes_on.toggled.connect(tab4box2.setEnabled)
        tab4box2.setLayout(tab4line2)
        layout = QVBoxLayout()
        layout.addWidget(tab4box1)
        layout.addWidget(tab4box2)
        layout.addStretch()
        layout_holder = QWidget()
        layout_holder.setLayout(layout)
        self.tab4 = QScrollArea()
        self.tab4.setFixedWidth(640)
        self.tab4.setAlignment(Qt.AlignHCenter)
        self.tab4.setWidgetResizable(True)
        self.tab4.setWidget(layout_holder)

    def createFifthTab(self):
        begin = self.begin
        end = self.end
        images = self.images
        buttonLabel_studyNow_label = QLabel("Study Now:")
        buttonLabel_studyNow_label.setToolTip("{0}Replaces the text for \"Study Now\" Button with your custom text.{1}".format(begin, end))
        buttonLabel_studyNow_label.setFixedWidth(90)
        self.buttonLabel_studyNow = QLineEdit()
        buttonlabel_studyNow_holder = QHBoxLayout()
        buttonlabel_studyNow_holder.addWidget(buttonLabel_studyNow_label)
        buttonlabel_studyNow_holder.addWidget(self.buttonLabel_studyNow)
        buttonLabel_studyNow_box = QGroupBox()
        buttonLabel_studyNow_box.setLayout(buttonlabel_studyNow_holder)
        buttonLabel_edit_label = QLabel("Edit:")
        buttonLabel_edit_label.setToolTip("{0}Replaces the text for \"Edit\" Button with your custom text.{1}".format(begin, end))
        buttonLabel_edit_label.setFixedWidth(90)
        self.buttonLabel_edit = QLineEdit()
        buttonlabel_edit_holder = QHBoxLayout()
        buttonlabel_edit_holder.addWidget(buttonLabel_edit_label)
        buttonlabel_edit_holder.addWidget(self.buttonLabel_edit)
        buttonLabel_edit_box = QGroupBox()
        buttonLabel_edit_box.setLayout(buttonlabel_edit_holder)
        firstLine = QHBoxLayout()
        firstLine.addWidget(buttonLabel_studyNow_box)
        firstLine.addWidget(buttonLabel_edit_box)
        buttonLabel_showAnswer_label = QLabel("Show Answer:")
        buttonLabel_showAnswer_label.setToolTip("{0}Replaces the text for \"Show Answer\" Button with your custom text.{1}".format(begin, end))
        buttonLabel_showAnswer_label.setFixedWidth(90)
        self.buttonLabel_showAnswer = QLineEdit()
        buttonlabel_showAnswer_holder = QHBoxLayout()
        buttonlabel_showAnswer_holder.addWidget(buttonLabel_showAnswer_label)
        buttonlabel_showAnswer_holder.addWidget(self.buttonLabel_showAnswer)
        buttonLabel_showAnswer_box = QGroupBox()
        buttonLabel_showAnswer_box.setLayout(buttonlabel_showAnswer_holder)
        buttonLabel_more_label = QLabel("More:")
        buttonLabel_more_label.setToolTip("{0}Replaces the text for \"More\" Button with your custom text.{1}".format(begin, end))
        buttonLabel_more_label.setFixedWidth(90)
        self.buttonLabel_more = QLineEdit()
        buttonlabel_more_holder = QHBoxLayout()
        buttonlabel_more_holder.addWidget(buttonLabel_more_label)
        buttonlabel_more_holder.addWidget(self.buttonLabel_more)
        buttonLabel_more_box = QGroupBox()
        buttonLabel_more_box.setLayout(buttonlabel_more_holder)
        secondLine = QHBoxLayout()
        secondLine.addWidget(buttonLabel_showAnswer_box)
        secondLine.addWidget(buttonLabel_more_box)
        buttonLabel_info_label = QLabel("Info:")
        buttonLabel_info_label.setToolTip("{0}Replaces the text for \"Info\" Button with your custom text.{1}".format(begin, end))
        buttonLabel_info_label.setFixedWidth(90)
        self.buttonLabel_info = QLineEdit()
        buttonlabel_info_holder = QHBoxLayout()
        buttonlabel_info_holder.addWidget(buttonLabel_info_label)
        buttonlabel_info_holder.addWidget(self.buttonLabel_info)
        buttonLabel_info_box = QGroupBox()
        buttonLabel_info_box.setLayout(buttonlabel_info_holder)
        buttonLabel_skip_label = QLabel("Skip:")
        buttonLabel_skip_label.setToolTip("{0}Replaces the text for \"Skip\" Button with your custom text.{1}".format(begin, end))
        buttonLabel_skip_label.setFixedWidth(90)
        self.buttonLabel_skip = QLineEdit()
        buttonlabel_skip_holder = QHBoxLayout()
        buttonlabel_skip_holder.addWidget(buttonLabel_skip_label)
        buttonlabel_skip_holder.addWidget(self.buttonLabel_skip)
        buttonLabel_skip_box = QGroupBox()
        buttonLabel_skip_box.setLayout(buttonlabel_skip_holder)
        thirdLine = QHBoxLayout()
        thirdLine.addWidget(buttonLabel_info_box)
        thirdLine.addWidget(buttonLabel_skip_box)
        buttonLabel_undo_label = QLabel("Undo:")
        buttonLabel_undo_label.setToolTip("{0}Replaces the text for \"Undo\" Button with your custom text.{1}".format(begin, end))
        buttonLabel_undo_label.setFixedWidth(90)
        self.buttonLabel_undo = QLineEdit()
        buttonlabel_undo_holder = QHBoxLayout()
        buttonlabel_undo_holder.addWidget(buttonLabel_undo_label)
        buttonlabel_undo_holder.addWidget(self.buttonLabel_undo)
        buttonLabel_undo_box = QGroupBox()
        buttonLabel_undo_box.setLayout(buttonlabel_undo_holder)
        buttonLabel_showSkipped_label = QLabel("Show Skipped:")
        buttonLabel_showSkipped_label.setToolTip("{0}Replaces the text for \"Show Skipped\" Button with your custom text.{1}".format(begin, end))
        buttonLabel_showSkipped_label.setFixedWidth(90)
        self.buttonLabel_showSkipped = QLineEdit()
        buttonlabel_showSkipped_holder = QHBoxLayout()
        buttonlabel_showSkipped_holder.addWidget(buttonLabel_showSkipped_label)
        buttonlabel_showSkipped_holder.addWidget(self.buttonLabel_showSkipped)
        buttonLabel_showSkipped_box = QGroupBox()
        buttonLabel_showSkipped_box.setLayout(buttonlabel_showSkipped_holder)
        fourthLine = QHBoxLayout()
        fourthLine.addWidget(buttonLabel_undo_box)
        fourthLine.addWidget(buttonLabel_showSkipped_box)
        buttonLabel_again_label = QLabel("Again:")
        buttonLabel_again_label.setToolTip("{0}Replaces the text for \"Again\" Button with your custom text.{1}".format(begin, end))
        buttonLabel_again_label.setFixedWidth(90)
        self.buttonLabel_again = QLineEdit()
        buttonlabel_again_holder = QHBoxLayout()
        buttonlabel_again_holder.addWidget(buttonLabel_again_label)
        buttonlabel_again_holder.addWidget(self.buttonLabel_again)
        buttonLabel_again_box = QGroupBox()
        buttonLabel_again_box.setLayout(buttonlabel_again_holder)
        buttonLabel_hard_label = QLabel("Hard:")
        buttonLabel_hard_label.setToolTip("{0}Replaces the text for \"Hard\" Button with your custom text.{1}".format(begin, end))
        buttonLabel_hard_label.setFixedWidth(90)
        self.buttonLabel_hard = QLineEdit()
        buttonlabel_hard_holder = QHBoxLayout()
        buttonlabel_hard_holder.addWidget(buttonLabel_hard_label)
        buttonlabel_hard_holder.addWidget(self.buttonLabel_hard)
        buttonLabel_hard_box = QGroupBox()
        buttonLabel_hard_box.setLayout(buttonlabel_hard_holder)
        fifthLine = QHBoxLayout()
        fifthLine.addWidget(buttonLabel_again_box)
        fifthLine.addWidget(buttonLabel_hard_box)
        buttonLabel_good_label = QLabel("Good:")
        buttonLabel_good_label.setToolTip("{0}Replaces the text for \"Good\" Button with your custom text.{1}".format(begin, end))
        buttonLabel_good_label.setFixedWidth(90)
        self.buttonLabel_good = QLineEdit()
        buttonlabel_good_holder = QHBoxLayout()
        buttonlabel_good_holder.addWidget(buttonLabel_good_label)
        buttonlabel_good_holder.addWidget(self.buttonLabel_good)
        buttonLabel_good_box = QGroupBox()
        buttonLabel_good_box.setLayout(buttonlabel_good_holder)
        buttonLabel_easy_label = QLabel("Easy:")
        buttonLabel_easy_label.setToolTip("{0}Replaces the text for \"Easy\" Button with your custom text.{1}".format(begin, end))
        buttonLabel_easy_label.setFixedWidth(90)
        self.buttonLabel_easy = QLineEdit()
        buttonlabel_easy_holder = QHBoxLayout()
        buttonlabel_easy_holder.addWidget(buttonLabel_easy_label)
        buttonlabel_easy_holder.addWidget(self.buttonLabel_easy)
        buttonLabel_easy_box = QGroupBox()
        buttonLabel_easy_box.setLayout(buttonlabel_easy_holder)
        sixthLine = QHBoxLayout()
        sixthLine.addWidget(buttonLabel_good_box)
        sixthLine.addWidget(buttonLabel_easy_box)
        layout = QVBoxLayout()
        layout.addLayout(firstLine)
        layout.addLayout(secondLine)
        layout.addLayout(thirdLine)
        layout.addLayout(fourthLine)
        layout.addLayout(fifthLine)
        layout.addLayout(sixthLine)
        layout.addStretch()
        layout_holder = QWidget()
        layout_holder.setLayout(layout)
        self.tab5 = QScrollArea()
        self.tab5.setFixedWidth(640)
        self.tab5.setAlignment(Qt.AlignHCenter)
        self.tab5.setWidgetResizable(True)
        self.tab5.setWidget(layout_holder)

    def createSixthTab(self):
        begin = self.begin
        end = self.end
        images = self.images
        sidebarPosition_label = QLabel("Card Info Sidebar Default Position:")
        sidebarPosition_label.setToolTip("{0}Chanes the default position of the sidebar (duh!){1}".format(begin, end))
        sidebarPosition_label.setFixedWidth(195)
        self.sidebar_position = QComboBox()
        self.sidebar_position.addItems(["Right", "Left"])
        self.sidebar_position.setMinimumWidth(200)
        sidebarPosition_holder = QHBoxLayout()
        sidebarPosition_holder.addWidget(sidebarPosition_label)
        sidebarPosition_holder.addWidget(self.sidebar_position)
        sidebarPosition_holder.addStretch()
        sidebarTheme_label = QLabel("Card Info Sidebar Theme:")
        sidebarTheme_label.setToolTip("{0} Changes sidebar theme. {1}".format(begin, end))
        sidebarTheme_label.setFixedWidth(195)
        self.sidebar_theme = QComboBox()
        self.sidebar_theme.addItems(["Auto", "Day/Light", "Night/Dark"])
        self.sidebar_theme.setToolTip("{0} Auto: Chooses the sidebar theme based on your anki theme.<br>\
        <font color=red>NOTE: </font>This option only supports anki's native night\
        mode and does not work with night mode add-on.<hr> Day: Forces sidebar to use light theme whether your anki is\
        in night mode or not.<hr> Night: Forces sidebar to use dark theme whether your anki is\
        in night mode or not. {1}".format(begin, end))
        self.sidebar_theme.setMinimumWidth(200)
        sideBarTheme_holder = QHBoxLayout()
        sideBarTheme_holder.addWidget(sidebarTheme_label)
        sideBarTheme_holder.addWidget(self.sidebar_theme)
        sideBarTheme_holder.addStretch()
        sidebarFont_label = QLabel("Card Info Sidebar Font:")
        sidebarFont_label.setToolTip("{0} Changes card info sidebar font. {1}".format(begin, end))
        sidebarFont_label.setFixedWidth(195)
        self.sidebar_font = QFontComboBox()
        self.sidebar_font.setMinimumWidth(200)
        sidebarFont_holder = QHBoxLayout()
        sidebarFont_holder.addWidget(sidebarFont_label)
        sidebarFont_holder.addWidget(self.sidebar_font)
        sidebarFont_holder.addStretch()
        sidebarPreviousCards_label = QLabel("Number of Previous Cards To Show:")
        sidebarPreviousCards_label.setToolTip("{0} Changes number of previous cards that show on the card\
        info sidebar.</font> {1}".format(begin, end))
        sidebarPreviousCards_label.setFixedWidth(195)
        self.sidebar_PreviousCards = QSpinBox()
        self.sidebar_PreviousCards.setMinimumWidth(200)
        self.sidebar_PreviousCards.setMaximum(4)
        sidebarPreviousCards_holder = QHBoxLayout()
        sidebarPreviousCards_holder.addWidget(sidebarPreviousCards_label)
        sidebarPreviousCards_holder.addWidget(self.sidebar_PreviousCards)
        sidebarPreviousCards_holder.addStretch()
        sidebarReviewsToShow_label = QLabel("Card Previous Reviews To Show:")
        sidebarReviewsToShow_label.setToolTip("{0} Changes number of previous reviews for a card to show on\
        the card info sidebar.<hr><font color=red> If you want it to show all reviews for a card, set it on 0.{1}".format(begin, end))
        sidebarReviewsToShow_label.setFixedWidth(195)
        self.sidebar_reviewsToShow = QSpinBox()
        self.sidebar_reviewsToShow.setMinimumWidth(200)
        self.sidebar_reviewsToShow.setMaximum(500)
        sidebarReviewsToShow_holder = QHBoxLayout()
        sidebarReviewsToShow_holder.addWidget(sidebarReviewsToShow_label)
        sidebarReviewsToShow_holder.addWidget(self.sidebar_reviewsToShow)
        sidebarReviewsToShow_holder.addStretch()
        tab5line1 = QVBoxLayout()
        tab5line1.addLayout(sidebarPosition_holder)
        tab5line1.addLayout(sideBarTheme_holder)
        tab5line1.addLayout(sidebarFont_holder)
        tab5line1.addLayout(sidebarPreviousCards_holder)
        tab5line1.addLayout(sidebarReviewsToShow_holder)
        tab5box1 = QGroupBox()
        tab5box1.setLayout(tab5line1)
        self.sidebar_currentReviewCount = QCheckBox("Current Review Count")
        self.sidebar_currentReviewCount.setFixedWidth(140)
        self.sidebar_dateCreated = QCheckBox('Date Created')
        self.sidebar_dateCreated.setFixedWidth(140)
        self.sidebar_dateEdited = QCheckBox('Dated Edited')
        self.sidebar_dateEdited.setFixedWidth(140)
        tab5subline1 = QHBoxLayout()
        tab5subline1.addWidget(self.sidebar_currentReviewCount)
        tab5subline1.addWidget(self.sidebar_dateCreated)
        tab5subline1.addWidget(self.sidebar_dateEdited)
        tab5subline1.addStretch()
        self.sidebar_firstReview = QCheckBox('First Review')
        self.sidebar_firstReview.setFixedWidth(140)
        self.sidebar_latestReview = QCheckBox('Latest Review')
        self.sidebar_latestReview.setFixedWidth(140)
        self.sidebar_due = QCheckBox('Due')
        self.sidebar_due.setFixedWidth(140)
        tab5subline2 = QHBoxLayout()
        tab5subline2.addWidget(self.sidebar_firstReview)
        tab5subline2.addWidget(self.sidebar_latestReview)
        tab5subline2.addWidget(self.sidebar_due)
        tab5subline2.addStretch()
        self.sidebar_interval = QCheckBox('Interval')
        self.sidebar_interval.setFixedWidth(140)
        self.sidebar_ease = QCheckBox('Ease')
        self.sidebar_ease.setFixedWidth(140)
        self.sidebar_numberOfReviews = QCheckBox('Number of Reviews')
        self.sidebar_numberOfReviews.setFixedWidth(140)
        tab5subline3 = QHBoxLayout()
        tab5subline3.addWidget(self.sidebar_interval)
        tab5subline3.addWidget(self.sidebar_ease)
        tab5subline3.addWidget(self.sidebar_numberOfReviews)
        tab5subline3.addStretch()
        self.sidebar_lapses = QCheckBox('Lapses')
        self.sidebar_lapses.setFixedWidth(140)
        self.sidebar_averageTime = QCheckBox('Average Time')
        self.sidebar_averageTime.setFixedWidth(140)
        self.sidebar_totalTime = QCheckBox('Total Time')
        self.sidebar_totalTime.setFixedWidth(140)
        tab5subline4 = QHBoxLayout()
        tab5subline4.addWidget(self.sidebar_lapses)
        tab5subline4.addWidget(self.sidebar_averageTime)
        tab5subline4.addWidget(self.sidebar_totalTime)
        tab5subline4.addStretch()
        self.sidebar_cardType = QCheckBox('Card Type')
        self.sidebar_cardType.setFixedWidth(140)
        self.sidebar_noteType = QCheckBox('Note Type')
        self.sidebar_noteType.setFixedWidth(140)
        self.sidebar_deck = QCheckBox('Deck')
        self.sidebar_deck.setFixedWidth(140)
        tab5subline5 = QHBoxLayout()
        tab5subline5.addWidget(self.sidebar_cardType)
        tab5subline5.addWidget(self.sidebar_noteType)
        tab5subline5.addWidget(self.sidebar_deck)
        tab5subline5.addStretch()
        self.sidebar_tags = QCheckBox('Tags')
        self.sidebar_tags.setFixedWidth(140)
        self.sidebar_sortField = QCheckBox('Sort Field')
        self.sidebar_sortField.setFixedWidth(140)
        self.sidebar_warningNote = QCheckBox('Warning Note')
        self.sidebar_warningNote.setFixedWidth(140)
        tab5subline6 = QHBoxLayout()
        tab5subline6.addWidget(self.sidebar_tags)
        tab5subline6.addWidget(self.sidebar_sortField)
        tab5subline6.addWidget(self.sidebar_warningNote)
        tab5subline6.addStretch()
        self.sidebar_correctPercent = QCheckBox('Correct Percentage')
        self.sidebar_correctPercent.setFixedWidth(140)
        self.sidebar_fastestReview = QCheckBox('Fastest Review')
        self.sidebar_fastestReview.setFixedWidth(140)
        self.sidebar_slowestReview = QCheckBox('Slowest Review')
        self.sidebar_slowestReview.setFixedWidth(140)
        tab5subline7 = QHBoxLayout()
        tab5subline7.addWidget(self.sidebar_correctPercent)
        tab5subline7.addWidget(self.sidebar_fastestReview)
        tab5subline7.addWidget(self.sidebar_slowestReview)
        tab5subline7.addStretch()
        self.sidebar_noteID = QCheckBox('Note ID')
        self.sidebar_noteID.setFixedWidth(140)
        self.sidebar_cardID = QCheckBox('Card ID')
        self.sidebar_cardID.setFixedWidth(140)
        self.sidebar_autoOpen = QCheckBox('Auto Open')
        self.sidebar_autoOpen.setToolTip("Opens sidebar automatically when you review a card")
        self.sidebar_autoOpen.setFixedWidth(140)
        tab5subline8 = QHBoxLayout()
        tab5subline8.addWidget(self.sidebar_noteID)
        tab5subline8.addWidget(self.sidebar_cardID)
        tab5subline8.addWidget(self.sidebar_autoOpen)
        tab5subline8.addStretch()
        tab5line2 = QVBoxLayout()
        tab5line2.addLayout(tab5subline1)
        tab5line2.addLayout(tab5subline2)
        tab5line2.addLayout(tab5subline3)
        tab5line2.addLayout(tab5subline4)
        tab5line2.addLayout(tab5subline5)
        tab5line2.addLayout(tab5subline6)
        tab5line2.addLayout(tab5subline7)
        tab5line2.addLayout(tab5subline8)
        tab5box2 = QGroupBox()
        tab5box2.setLayout(tab5line2)
        layout = QVBoxLayout()
        layout.addWidget(tab5box1)
        layout.addWidget(tab5box2)
        layout.addStretch()
        layout_holder = QWidget()
        layout_holder.setLayout(layout)
        self.tab6 = QScrollArea()
        self.tab6.setFixedWidth(640)
        self.tab6.setAlignment(Qt.AlignHCenter)
        self.tab6.setWidgetResizable(True)
        self.tab6.setWidget(layout_holder)

    def createSeventhTab(self):
        begin = self.begin
        end = self.end
        images = self.images
        self.custom_reviewButtonColors = QGroupBox("Custom Review Button Colors")
        self.custom_reviewButtonColors.setToolTip("{0}Changes text or background color and hover colors for review buttons.<hr>\
        as the neon and fill buttons don't have a separate hover color, changing hover color will not affect those buttons.{1}".format(begin, end))
        self.custom_reviewButtonColors.setCheckable(True)
        self.custom_reviewButtonColors.setChecked(False)
        againColor_label = QLabel("Again:")
        againColor_label.setFixedWidth(140)
        self.againColor_button = QPushButton()
        self.againColor_button.clicked.connect(lambda: self.getNewColor("again_color", self.againColor_button))
        againColor_holder = QHBoxLayout()
        againColor_holder.addWidget(againColor_label)
        againColor_holder.addWidget(self.againColor_button)
        againColor_box = QGroupBox()
        againColor_box.setLayout(againColor_holder)
        againHoverColor_label = QLabel("Again on Hover:")
        againHoverColor_label.setFixedWidth(140)
        self.againHoverColor_button = QPushButton()
        self.againHoverColor_button.clicked.connect(lambda: self.getNewColor("againHover_color", self.againHoverColor_button))
        againHoverColor_holder = QHBoxLayout()
        againHoverColor_holder.addWidget(againHoverColor_label)
        againHoverColor_holder.addWidget(self.againHoverColor_button)
        againHover_box = QGroupBox()
        againHover_box.setLayout(againHoverColor_holder)
        again_line = QHBoxLayout()
        again_line.addWidget(againColor_box)
        again_line.addWidget(againHover_box)
        hardColor_label = QLabel("Hard:")
        hardColor_label.setFixedWidth(140)
        self.hardColor_button = QPushButton()
        self.hardColor_button.clicked.connect(lambda: self.getNewColor("hard_color", self.hardColor_button))
        hardColor_holder = QHBoxLayout()
        hardColor_holder.addWidget(hardColor_label)
        hardColor_holder.addWidget(self.hardColor_button)
        hardColor_box = QGroupBox()
        hardColor_box.setLayout(hardColor_holder)
        hardHoverColor_label = QLabel("Hard on Hover:")
        hardHoverColor_label.setFixedWidth(140)
        self.hardHoverColor_button = QPushButton()
        self.hardHoverColor_button.clicked.connect(lambda: self.getNewColor("hardHover_color", self.hardHoverColor_button))
        hardHoverColor_holder = QHBoxLayout()
        hardHoverColor_holder.addWidget(hardHoverColor_label)
        hardHoverColor_holder.addWidget(self.hardHoverColor_button)
        hardHover_box = QGroupBox()
        hardHover_box.setLayout(hardHoverColor_holder)
        hard_line = QHBoxLayout()
        hard_line.addWidget(hardColor_box)
        hard_line.addWidget(hardHover_box)
        goodColor_label = QLabel("Good:")
        goodColor_label.setFixedWidth(140)
        self.goodColor_button = QPushButton()
        self.goodColor_button.clicked.connect(lambda: self.getNewColor("good_color", self.goodColor_button))
        goodColor_holder = QHBoxLayout()
        goodColor_holder.addWidget(goodColor_label)
        goodColor_holder.addWidget(self.goodColor_button)
        goodColor_box = QGroupBox()
        goodColor_box.setLayout(goodColor_holder)
        goodHoverColor_label = QLabel("Good on Hover:")
        goodHoverColor_label.setFixedWidth(140)
        self.goodHoverColor_button = QPushButton()
        self.goodHoverColor_button.clicked.connect(lambda: self.getNewColor("goodHover_color", self.goodHoverColor_button))
        goodHoverColor_holder = QHBoxLayout()
        goodHoverColor_holder.addWidget(goodHoverColor_label)
        goodHoverColor_holder.addWidget(self.goodHoverColor_button)
        goodHover_box = QGroupBox()
        goodHover_box.setLayout(goodHoverColor_holder)
        good_line = QHBoxLayout()
        good_line.addWidget(goodColor_box)
        good_line.addWidget(goodHover_box)
        easyColor_label = QLabel("Easy:")
        easyColor_label.setFixedWidth(140)
        self.easyColor_button = QPushButton()
        self.easyColor_button.clicked.connect(lambda: self.getNewColor("easy_color", self.easyColor_button))
        easyColor_holder = QHBoxLayout()
        easyColor_holder.addWidget(easyColor_label)
        easyColor_holder.addWidget(self.easyColor_button)
        easyColor_box = QGroupBox()
        easyColor_box.setLayout(easyColor_holder)
        easyHoverColor_label = QLabel("Easy on Hover:")
        easyHoverColor_label.setFixedWidth(140)
        self.easyHoverColor_button = QPushButton()
        self.easyHoverColor_button.clicked.connect(lambda: self.getNewColor("easyHover_color", self.easyHoverColor_button))
        easyHoverColor_holder = QHBoxLayout()
        easyHoverColor_holder.addWidget(easyHoverColor_label)
        easyHoverColor_holder.addWidget(self.easyHoverColor_button)
        easyHover_box = QGroupBox()
        easyHover_box.setLayout(easyHoverColor_holder)
        easy_line = QHBoxLayout()
        easy_line.addWidget(easyColor_box)
        easy_line.addWidget(easyHover_box)
        reviewButtonColors_layout = QVBoxLayout()
        reviewButtonColors_layout.addLayout(again_line)
        reviewButtonColors_layout.addLayout(hard_line)
        reviewButtonColors_layout.addLayout(good_line)
        reviewButtonColors_layout.addLayout(easy_line)
        self.custom_reviewButtonColors.setLayout(reviewButtonColors_layout)
        self.custom_reviewButtonTextColor = QCheckBox("Review Button Text:")
        self.custom_reviewButtonTextColor.setToolTip("{0}Changes the color of general textcolor inside buttons.\
        <hr> This option does not work on Default + Text Color and Wide + Text Color Styles {1}".format(begin, end))
        self.custom_reviewButtonTextColor.setFixedWidth(140)
        self.reviewButtonTextColor_button = QPushButton()
        self.reviewButtonTextColor_button.clicked.connect(lambda: self.getNewColor("reviewButtonText_color", self.reviewButtonTextColor_button))
        reviewButtonTextColor_holder = QHBoxLayout()
        reviewButtonTextColor_holder.addWidget(self.custom_reviewButtonTextColor)
        reviewButtonTextColor_holder.addWidget(self.reviewButtonTextColor_button)
        reviewButtonTextColor_box = QGroupBox()
        reviewButtonTextColor_box.setLayout(reviewButtonTextColor_holder)
        self.reviewButtonTextColor_button.setDisabled(True)
        if self.custom_reviewButtonTextColor.isChecked():
            self.reviewButtonTextColor_button.setEnabled(True)
        self.custom_reviewButtonTextColor.toggled.connect(self.reviewButtonTextColor_button.setEnabled)
        self.custom_activeIndicatorColor = QCheckBox("Active Indicator:")
        self.custom_activeIndicatorColor.setToolTip("{0}Changes the active indicator color.<hr>\
        This option doesn not work on neon and fill buttons as they don't have active indicator for active buttons.{1}".format(begin, end))
        self.custom_activeIndicatorColor.setFixedWidth(140)
        self.activeIndicatorColor_button = QPushButton()
        self.activeIndicatorColor_button.clicked.connect(lambda: self.getNewColor("activeIndicator_color", self.activeIndicatorColor_button))
        activeIndicatorColor_holder = QHBoxLayout()
        activeIndicatorColor_holder.addWidget(self.custom_activeIndicatorColor)
        activeIndicatorColor_holder.addWidget(self.activeIndicatorColor_button)
        activeIndicatorColor_box = QGroupBox()
        activeIndicatorColor_box.setLayout(activeIndicatorColor_holder)
        self.activeIndicatorColor_button.setDisabled(True)
        if self.custom_activeIndicatorColor.isChecked():
            self.activeIndicatorColor_button.setEnabled(True)
        self.custom_activeIndicatorColor.toggled.connect(self.activeIndicatorColor_button.setEnabled)
        reviewButtonTextColor_activeIndicatorColor_line = QHBoxLayout()
        reviewButtonTextColor_activeIndicatorColor_line.addWidget(reviewButtonTextColor_box)
        reviewButtonTextColor_activeIndicatorColor_line.addWidget(activeIndicatorColor_box)
        self.custom_bottombarButtonTextColor = QCheckBox("General Button Text:")
        self.custom_bottombarButtonTextColor.setToolTip("{0}Changes color of text inside all buttons including bottombar buttons, deck overview buttons and main screen bottombar buttons.{1}".format(begin, end))
        self.custom_bottombarButtonTextColor.setFixedWidth(140)
        self.bottombarButtonTextColor_button = QPushButton()
        self.bottombarButtonTextColor_button.clicked.connect(lambda: self.getNewColor("bottombarButtonText_color", self.bottombarButtonTextColor_button))
        bottombarButtonTextColor_holder = QHBoxLayout()
        bottombarButtonTextColor_holder.addWidget(self.custom_bottombarButtonTextColor)
        bottombarButtonTextColor_holder.addWidget(self.bottombarButtonTextColor_button)
        bottombarButtonTextColor_box = QGroupBox()
        bottombarButtonTextColor_box.setLayout(bottombarButtonTextColor_holder)
        self.bottombarButtonTextColor_button.setDisabled(True)
        if self.custom_bottombarButtonTextColor.isChecked():
            self.bottombarButtonTextColor_button.setEnabled(True)
        self.custom_bottombarButtonTextColor.toggled.connect(self.bottombarButtonTextColor_button.setEnabled)
        self.custom_bottombarButtonBorderColor = QCheckBox("General Button Border:")
        self.custom_bottombarButtonBorderColor.setToolTip("{0}Changes border color for all buttons including bottombar buttons, deck overview buttons and main screen bottombar buttons.{1}".format(begin, end))
        self.custom_bottombarButtonBorderColor.setFixedWidth(140)
        self.bottombarButtonBorderColor_button = QPushButton()
        self.bottombarButtonBorderColor_button.clicked.connect(lambda: self.getNewColor("bottombarButtonBorder_color", self.bottombarButtonBorderColor_button))
        bottombarButtonBorderColor_holder = QHBoxLayout()
        bottombarButtonBorderColor_holder.addWidget(self.custom_bottombarButtonBorderColor)
        bottombarButtonBorderColor_holder.addWidget(self.bottombarButtonBorderColor_button)
        bottombarButtonBorderColor_box = QGroupBox()
        bottombarButtonBorderColor_box.setLayout(bottombarButtonBorderColor_holder)
        self.bottombarButtonBorderColor_button.setDisabled(True)
        if self.custom_bottombarButtonBorderColor.isChecked():
            self.bottombarButtonBorderColor_button.setEnabled(True)
        self.custom_bottombarButtonBorderColor.toggled.connect(self.bottombarButtonBorderColor_button.setEnabled)
        bottobarButtonTextColor_bottombarButtonBorderColor_line = QHBoxLayout()
        bottobarButtonTextColor_bottombarButtonBorderColor_line.addWidget(bottombarButtonTextColor_box)
        bottobarButtonTextColor_bottombarButtonBorderColor_line.addWidget(bottombarButtonBorderColor_box)
        showAnswerEase1_label = QLabel("Ease less than")
        showAnswerEase1_label.setFixedWidth(120)
        self.showAnswerEase1 = QSpinBox()
        self.showAnswerEase1.setFixedWidth(90)
        self.showAnswerEase1.setMinimum(130)
        self.showAnswerEase1.setMaximum(999999)
        self.showAnswerEase1_button = QPushButton()
        self.showAnswerEase1_button.setFixedWidth(210)
        self.showAnswerEase1_button.clicked.connect(lambda: self.getNewColor("showAnswerEase1", self.showAnswerEase1_button))
        showAnswerEase1_holder = QHBoxLayout()
        showAnswerEase1_holder.addWidget(showAnswerEase1_label)
        showAnswerEase1_holder.addWidget(self.showAnswerEase1)
        showAnswerEase1_holder.addStretch()
        showAnswerEase1_holder.addWidget(self.showAnswerEase1_button)
        showAnswerEase1_box = QGroupBox()
        showAnswerEase1_box.setLayout(showAnswerEase1_holder)
        showAnswerEase2_label = QLabel("Ease from {} to".format(C_showAnswerEase1))
        showAnswerEase2_label.setFixedWidth(120)
        self.showAnswerEase2 = QSpinBox()
        self.showAnswerEase2.setMinimum(130)
        self.showAnswerEase2.setMaximum(999999)
        self.showAnswerEase2.setFixedWidth(90)
        self.showAnswerEase2_button = QPushButton()
        self.showAnswerEase2_button.setFixedWidth(210)
        self.showAnswerEase2_button.clicked.connect(lambda: self.getNewColor("showAnswerEase2", self.showAnswerEase2_button))
        showAnswerEase2_holder = QHBoxLayout()
        showAnswerEase2_holder.addWidget(showAnswerEase2_label)
        showAnswerEase2_holder.addWidget(self.showAnswerEase2)
        showAnswerEase2_holder.addStretch()
        showAnswerEase2_holder.addWidget(self.showAnswerEase2_button)
        showAnswerEase2_box = QGroupBox()
        showAnswerEase2_box.setLayout(showAnswerEase2_holder)
        showAnswerEase3_label = QLabel("Ease from {} to".format(C_showAnswerEase2))
        showAnswerEase3_label.setFixedWidth(120)
        self.showAnswerEase3 = QSpinBox()
        self.showAnswerEase3.setMinimum(130)
        self.showAnswerEase3.setMaximum(999999)
        self.showAnswerEase3.setFixedWidth(90)
        self.showAnswerEase3_button = QPushButton()
        self.showAnswerEase3_button.setFixedWidth(210)
        self.showAnswerEase3_button.clicked.connect(lambda: self.getNewColor("showAnswerEase3", self.showAnswerEase3_button))
        showAnswerEase3_holder = QHBoxLayout()
        showAnswerEase3_holder.addWidget(showAnswerEase3_label)
        showAnswerEase3_holder.addWidget(self.showAnswerEase3)
        showAnswerEase3_holder.addStretch()
        showAnswerEase3_holder.addWidget(self.showAnswerEase3_button)
        showAnswerEase3_box = QGroupBox()
        showAnswerEase3_box.setLayout(showAnswerEase3_holder)
        showAnswerEase4_label = QLabel("Ease from {} to".format(C_showAnswerEase3))
        showAnswerEase4_label.setFixedWidth(120)
        self.showAnswerEase4 = QSpinBox()
        self.showAnswerEase4.setMinimum(130)
        self.showAnswerEase4.setMaximum(999999)
        self.showAnswerEase4.setFixedWidth(90)
        self.showAnswerEase4_button = QPushButton()
        self.showAnswerEase4_button.setFixedWidth(210)
        self.showAnswerEase4_button.clicked.connect(lambda: self.getNewColor("showAnswerEase4", self.showAnswerEase4_button))
        showAnswerEase4_holder = QHBoxLayout()
        showAnswerEase4_holder.addWidget(showAnswerEase4_label)
        showAnswerEase4_holder.addWidget(self.showAnswerEase4)
        showAnswerEase4_holder.addStretch()
        showAnswerEase4_holder.addWidget(self.showAnswerEase4_button)
        showAnswerEase4_box = QGroupBox()
        showAnswerEase4_box.setLayout(showAnswerEase4_holder)
        showAnswerColors_layout = QVBoxLayout()
        showAnswerColors_layout.addWidget(showAnswerEase1_box)
        showAnswerColors_layout.addWidget(showAnswerEase2_box)
        showAnswerColors_layout.addWidget(showAnswerEase3_box)
        showAnswerColors_layout.addWidget(showAnswerEase4_box)
        self.showAnswerColors_box = QGroupBox()
        self.showAnswerColors_box.setLayout(showAnswerColors_layout)
        def showAnswerType_signal():
            self.showAnswerColors_box.setEnabled(True)
            if self.showAnswerBorderColor_style.currentIndex() == 0:
                self.showAnswerColors_box.setDisabled(True)
        showAnswerType_signal()
        self.showAnswerBorderColor_style.currentIndexChanged.connect(showAnswerType_signal)
        layout = QVBoxLayout()
        layout.addWidget(self.custom_reviewButtonColors)
        layout.addLayout(reviewButtonTextColor_activeIndicatorColor_line)
        layout.addLayout(bottobarButtonTextColor_bottombarButtonBorderColor_line)
        layout.addWidget(self.showAnswerColors_box)
        layout.addStretch()
        layout_holder = QWidget()
        layout_holder.setLayout(layout)
        self.tab7 = QScrollArea()
        #// I use this part to control the initial settings menu width -_-
        self.tab7.setFixedWidth(645)
        self.tab7.setAlignment(Qt.AlignHCenter)
        self.tab7.setWidgetResizable(True)
        self.tab7.setWidget(layout_holder)

    def createEighthTab(self):
        begin = self.begin
        end = self.end
        images = self.images
        overViewStats_label = QLabel("More Overview Stats:")
        overViewStats_label.setToolTip("{0}Shows number of new, learn and review cards for today and\
        tomorrow and show total number of new, review, learn, buried and suspended cards on deck overview\
        if enabled.{1}".format(begin, end))
        overViewStats_label.setFixedWidth(180)
        self.overViewStats = QComboBox()
        self.overViewStats.addItems(["Stock", "Stock-ish", "Detailed"])
        self.overViewStats.setFixedWidth(150)
        overViewStats_holder = QHBoxLayout()
        overViewStats_holder.addWidget(overViewStats_label)
        overViewStats_holder.addWidget(self.overViewStats)
        overViewStats_holder.addStretch()
        settingsMenuPlace_label = QLabel("Settings Menu Placement:")
        settingsMenuPlace_label.setToolTip("{0}Changes the position of settings menu.{1}".format(begin, end))
        settingsMenuPlace_label.setFixedWidth(180)
        self.settingsMenu_place = QComboBox()
        self.settingsMenu_place.addItems(["Main Toolbar", "Tools Menu"])
        self.settingsMenu_place.setFixedWidth(150)
        settingsMenuPlace_holder = QHBoxLayout()
        settingsMenuPlace_holder.addWidget(settingsMenuPlace_label)
        settingsMenuPlace_holder.addWidget(self.settingsMenu_place)
        settingsMenuPlace_holder.addStretch()
        skipMethod_label = QLabel("Skip Method:")
        skipMethod_label.setToolTip("{0}Changes Skip method.\n\"Next Card\" just skips the card and the skipped cards will be shown again randomly\
        while \"Bury\" bureis the skipped cards and the skipped cards will get unburied when you finish reviewing normal cards. You\
        can manually unbury skipped cards by pressing the \"Show Skipped\" button or by pressing the shortcut key that you've chosen for the button.{1}".format(begin, end))
        skipMethod_label.setFixedWidth(180)
        self.skipMethod = QComboBox()
        self.skipMethod.addItems(["Next Card", "Bury"])
        self.skipMethod.setFixedWidth(150)
        skipMethod_holder = QHBoxLayout()
        skipMethod_holder.addWidget(skipMethod_label)
        skipMethod_holder.addWidget(self.skipMethod)
        skipMethod_holder.addStretch()
        skipMethod_box = QVBoxLayout()
        skipMethod_box.addLayout(overViewStats_holder)
        skipMethod_box.addLayout(settingsMenuPlace_holder)
        skipMethod_box.addLayout(skipMethod_holder)
        general_box = QGroupBox()
        general_box.setLayout(skipMethod_box)
        buttonColors_label = QLabel("Button Colors:")
        buttonColors_label.setToolTip("{0} Enables and disables change button color.<hr> If you use\
        any other add-on to change review button colors, turn this off and you can\
        use other functions of this add-on without using this add-on to change\
        review button colors.<hr> This should be enabled for options Review Button\
        Background Shadow, Button Style, Change Style, Review Active Button Indicator\
        and Review Buttons Width to work. {1}".format(begin, end, images))
        buttonColors_label.setFixedWidth(180)
        self.buttonColors_on = QRadioButton("On")
        self.buttonColors_on.setToolTip("{0} Enabled -> Buttons are styled by this\
        add-on. <br><img src='{2}/buttonColors_on.png'>{1}".format(begin, end, images))
        self.buttonColors_on.setFixedWidth(90)
        self.buttonColors_off = QRadioButton("Off")
        self.buttonColors_off.setToolTip("{0} Disabled ->  Buttons are\
        not styled by this add-on and since there is no other add-on styling them,\
        they are in default mode.<hr><img src='{2}/buttonColors_off.png'>{1}".format(begin, end, images))
        self.buttonColors_off.setFixedWidth(90)
        buttonColors_holder = QHBoxLayout()
        buttonColors_holder.addWidget(buttonColors_label)
        buttonColors_holder.addWidget(self.buttonColors_on)
        buttonColors_holder.addWidget(self.buttonColors_off)
        buttonColors_holder.addStretch()
        buttonColors_box = QGroupBox()
        buttonColors_box.setLayout(buttonColors_holder)
        speedFocus_label = QLabel("Speed Focus Add-on:")
        speedFocus_label.setToolTip("{0} Removes the conflict with speed focus add-on so you can\
        use this add-on on speed focus add-on at the same time without having issues.<hr>\
        Don't forget to disable this option when you don't want to use speed focus add-on,\
        otherwise this add-on will automatically reveal the answer after the time\
        you set on speed focus add-on is passed.<hr> DON'T ENABLE THIS IF YOU DON'T\
        HAVE SPEED FOCUS ADD-ON. {1}".format(begin, end))
        speedFocus_label.setFixedWidth(180)
        self.speedFocus_on = QRadioButton("On")
        self.speedFocus_on.setFixedWidth(90)
        self.speedFocus_off = QRadioButton("Off")
        self.speedFocus_off.setFixedWidth(90)
        speedFocus_holder = QHBoxLayout()
        speedFocus_holder.addWidget(speedFocus_label)
        speedFocus_holder.addWidget(self.speedFocus_on)
        speedFocus_holder.addWidget(self.speedFocus_off)
        speedFocus_holder.addStretch()
        speedFocus_box = QGroupBox()
        speedFocus_box.setLayout(speedFocus_holder)
        configEdit_label = QLabel("Direct Config Edit:")
        configEdit_label.setToolTip("{0} Enables direct config editor.\
        If you enable this option, clicking on \"Config\" in add-ons window\
        won't open ARBb settings window and will open the config editor instead.{1}".format(begin, end))
        configEdit_label.setFixedWidth(180)
        self.configEdit_on = QRadioButton("On")
        self.configEdit_on.setFixedWidth(90)
        self.configEdit_off = QRadioButton("Off")
        self.configEdit_off.setFixedWidth(90)
        configEdit_holder = QHBoxLayout()
        configEdit_holder.addWidget(configEdit_label)
        configEdit_holder.addWidget(self.configEdit_on)
        configEdit_holder.addWidget(self.configEdit_off)
        configEdit_holder.addStretch()
        configEdit_box = QGroupBox()
        configEdit_box.setLayout(configEdit_holder)
        layout = QVBoxLayout()
        layout.addWidget(general_box)
        layout.addWidget(buttonColors_box)
        layout.addWidget(speedFocus_box)
        layout.addWidget(configEdit_box)
        layout.addStretch()
        layout_holder = QWidget()
        layout_holder.setLayout(layout)
        self.tab8 = QScrollArea()
        self.tab8.setFixedWidth(640)
        self.tab8.setAlignment(Qt.AlignHCenter)
        self.tab8.setWidgetResizable(True)
        self.tab8.setWidget(layout_holder)
        self.tab1.setDisabled(True)
        if self.buttonColors_on.isChecked():
            self.tab1.setEnabled(True)
        self.buttonColors_on.toggled.connect(self.tab1.setEnabled)

    def createNinthTab(self):
        begin = self.begin
        end = self.end
        images = self.images
        about_text = """
        <div class="None">
          <font color="tomato">Don't know what each option does?<br></font>
          hover over the title and you'll see a brief description about that option <br><br>

          <font color="tomato">Wanna see what each design is like withot having to restart anki?<br></font>
          by hovering over options in front of titles, if the option is related to styling buttons<br>
          or changing how something looks like, you'll see pictures showing you what each option looks like<br>
          Hovering over them won't show you the animations, if the buttons are animated<br><br><br>

          <font color="tomato">Have an idea for a new feature?<br></font>
          Feel free to tell me in comment section on <a href="https://ankiweb.net/shared/info/1136455830">Add-on's Page</a> or <a href="mailto:[email protected]">Email me</a><br><br>

          <font color="tomato">Saw a cool button design somewhere?<br></font>
          senf me a link to where you saw that design, i'll try to replicate that design<br>
          and put it on the add-on as and option for you to choose<br>
          <a href="https://ankiweb.net/shared/info/1136455830">Add-on's Page</a> or <a href="mailto:[email protected]">my Email</a><br><br>

          <font color="tomato">Encountered a bug or some part is not acting how it's supposed to?<br></font>
          Tell me what your settings were on add-on, what's your anki version or if anki showed you an error log,<br>
          copy the error log and comment it on <a href="https://ankiweb.net/shared/info/1136455830">Add-on's Page</a> or or <a href="mailto:[email protected]">Email me</a> <br>
          (the more information you give me,<br>
          the sooner i find out what's causing the problem and i fix the bug)<br><br>

          <font color="tomato">Like the add-on?<br></font>
          Give it a like on <a href="https://ankiweb.net/shared/review/1136455830">Add-on's Page</a>
        </div>
        """
        about = QLabel()
        about.setText(about_text)
        about.setOpenExternalLinks(True)
        about_scroll = QScrollArea()
        about_scroll.setWidget(about)
        changeLog_window = QDialog()
        changeLog_window.setWindowFlags(Qt.WindowCloseButtonHint | Qt.WindowMaximizeButtonHint | Qt.WindowMinimizeButtonHint)
        changeLog_window.setWindowTitle("Changelog")
        changeLog_window.setWindowIcon(QIcon(images + "\icon.png"))
        changeLog_button = QPushButton("Show Changelog")
        self.changeLog_webView = QWebEngineView()
        self.loadChaneLog()
        changeLog_layout = QVBoxLayout()
        changeLog_layout.addWidget(self.changeLog_webView)
        changeLog_window.setLayout(changeLog_layout)
        changeLog_button.clicked.connect(lambda: changeLog_window.exec_())
        layout = QVBoxLayout()
        layout.addWidget(about_scroll)
        layout.addWidget(changeLog_button)
        layout_holder = QWidget()
        layout_holder.setLayout(layout)
        self.tab9 = QScrollArea()
        self.tab9.setAlignment(Qt.AlignHCenter)
        self.tab9.setWidgetResizable(True)
        self.tab9.setWidget(layout_holder)

    def loadChaneLog(self):
        #// For some weird reason, using dirname(__file__) inside the .format() thingy doesn't seem to be working on macOS
        #// Can't confirm tho -_- since I can't test my add-on on mac
        addon_path = dirname(__file__)
        file = "{}/changelog.html".format(addon_path)
        with open(file, 'r') as f:
            html = f.read()
            self.changeLog_webView.setHtml(html)

    def loadCurrent(self):
        self.button_style.setCurrentIndex(C_button_style)
        self.bottombarButtons_style.setCurrentIndex(C_bottombarButtons_style)
        self.hover_effect.setCurrentIndex(C_hover_effect)
        self.active_indicator.setCurrentIndex(C_active_indicator)
        self.cursor_style.setCurrentIndex(C_cursor_style)
        self.interval_style.setCurrentIndex(C_interval_style)
        self.showAnswerBorderColor_style.setCurrentIndex(C_showAnswerBorderColor_style)
        self.buttonTransition_time.setValue(int(C_buttonTransition_time))
        self.buttonBorderRadius.setValue(int(C_buttonBorderRadius))
        if C_style_mainScreenButtons:
            self.style_mainScreenButtons.setChecked(True)
        if C_reviewTooltip:
            self.reviewTooltip_on.setChecked(True)
        else:
            self.reviewTooltip_off.setChecked(True)
        self.reviewTooltip_style.setCurrentIndex(C_reviewTooltip_style)
        self.reviewTooltip_timer.setValue(int(C_reviewTooltip_timer))
        self.changeButtonColor(self.reviewTooltipTextColor_button, C_reviewTooltipText_color)
        self.reviewTooltipPositionX.setValue(int(C_reviewTooltip_position[0]))
        self.reviewTooltipPositionY.setValue(int(C_reviewTooltip_position[1]))
        if C_info:
            self.info.setChecked(True)
        if C_skip:
            self.skip.setChecked(True)
        if C_showSkipped:
            self.showSkipped.setChecked(True)
        if C_undo:
            self.undo.setChecked(True)
        if C_hideHard:
            self.hideHard.setChecked(True)
        if C_hideGood:
            self.hideGood.setChecked(True)
        if C_hideEasy:
            self.hideEasy.setChecked(True)
        if C_right_info:
            self.right_info.setChecked(True)
        elif C_middleRight_info:
            self.middleRight_info.setChecked(True)
        elif C_middleLeft_info:
            self.middleLeft_info.setChecked(True)
        else:
            self.left_info.setChecked(True)
        if C_right_skip:
            self.right_skip.setChecked(True)
        elif C_middleRight_skip:
            self.middleRight_skip.setChecked(True)
        elif C_middleLeft_skip:
            self.middleLeft_skip.setChecked(True)
        else:
            self.left_skip.setChecked(True)
        if C_right_showSkipped:
            self.right_showSkipped.setChecked(True)
        elif C_middleRight_showSkipped:
            self.middleRight_showSkipped.setChecked(True)
        elif C_middleLeft_showSkipped:
            self.middleLeft_showSkipped.setChecked(True)
        else:
            self.left_showSkipped.setChecked(True)
        if C_right_undo:
            self.right_undo.setChecked(True)
        elif C_middleRight_undo:
            self.middleRight_undo.setChecked(True)
        elif C_middleLeft_undo:
            self.middleLeft_undo.setChecked(True)
        else:
            self.left_undo.setChecked(True)
        self.infoShortcut_button.setText("Change Shortcut (Current: {})".format(C_info_shortcut))
        self.skipShortcut_button.setText("Change Shortcut (Current: {})".format(C_skip_shortcut))
        self.showSkippedShortcut_button.setText("Change Shortcut (Current: {})".format(C_showSkipped_shortcut))
        self.undoShortcut_button.setText("Change Shortcut (Current: {})".format(C_undo_shortcut))
        if C_custom_sizes:
            self.customSizes_on.setChecked(True)
        else:
            self.customSizes_off.setChecked(True)
        self.text_size.setValue(int(C_text_size))
        self.buttons_height.setValue(int(C_buttons_height))
        self.reviewButtons_width.setValue(int(C_reviewButtons_width))
        self.edit_width.setValue(int(C_edit_width))
        self.answer_width.setValue(int(C_answer_width))
        self.more_width.setValue(int(C_more_width))
        self.info_width.setValue(int(C_info_width))
        self.skip_width.setValue(int(C_skip_width))
        self.showSkipped_width.setValue(int(C_showSkipped_width))
        self.undo_width.setValue(int(C_undo_width))
        self.buttonLabel_studyNow.setText(C_buttonLabel_studyNow)
        self.buttonLabel_edit.setText(C_buttonLabel_edit)
        self.buttonLabel_showAnswer.setText(C_buttonLabel_showAnswer)
        self.buttonLabel_more.setText(C_buttonLabel_more)
        self.buttonLabel_info.setText(C_buttonLabel_info)
        self.buttonLabel_skip.setText(C_buttonLabel_skip)
        self.buttonLabel_showSkipped.setText(C_buttonLabel_showSkipped)
        self.buttonLabel_undo.setText(C_buttonLabel_undo)
        self.buttonLabel_again.setText(C_buttonLabel_again)
        self.buttonLabel_hard.setText(C_buttonLabel_hard)
        self.buttonLabel_good.setText(C_buttonLabel_good)
        self.buttonLabel_easy.setText(C_buttonLabel_easy)
        self.sidebar_position.setCurrentIndex(C_sidebar_position)
        self.sidebar_theme.setCurrentIndex(C_sidebar_theme)
        self.sidebar_font.setCurrentFont(QFont(C_sidebar_font))
        self.sidebar_PreviousCards.setValue(int(C_sidebar_PreviousCards))
        self.sidebar_reviewsToShow.setValue(int(C_sidebar_reviewsToShow))
        if C_sidebar_currentReviewCount:
            self.sidebar_currentReviewCount.setChecked(True)
        if C_sidebar_dateCreated:
            self.sidebar_dateCreated.setChecked(True)
        if C_sidebar_dateEdited:
            self.sidebar_dateEdited.setChecked(True)
        if C_sidebar_firstReview:
            self.sidebar_firstReview.setChecked(True)
        if C_sidebar_latestReview:
            self.sidebar_latestReview.setChecked(True)
        if C_sidebar_due:
            self.sidebar_due.setChecked(True)
        if C_sidebar_interval:
            self.sidebar_interval.setChecked(True)
        if C_sidebar_ease:
            self.sidebar_ease.setChecked(True)
        if C_sidebar_numberOfReviews:
            self.sidebar_numberOfReviews.setChecked(True)
        if C_sidebar_lapses:
            self.sidebar_lapses.setChecked(True)
        if C_sidebar_averageTime:
            self.sidebar_averageTime.setChecked(True)
        if C_sidebar_totalTime:
            self.sidebar_totalTime.setChecked(True)
        if C_sidebar_cardType:
            self.sidebar_cardType.setChecked(True)
        if C_sidebar_noteType:
            self.sidebar_noteType.setChecked(True)
        if C_sidebar_deck:
            self.sidebar_deck.setChecked(True)
        if C_sidebar_tags:
            self.sidebar_tags.setChecked(True)
        if C_sidebar_sortField:
            self.sidebar_sortField.setChecked(True)
        if C_sidebar_warningNote:
            self.sidebar_warningNote.setChecked(True)
        if C_infobar_correctPercent:
            self.sidebar_correctPercent.setChecked(True)
        if C_infobar_fastestReview:
            self.sidebar_fastestReview.setChecked(True)
        if C_infobar_slowestReview:
            self.sidebar_slowestReview.setChecked(True)
        if C_infobar_noteID:
            self.sidebar_noteID.setChecked(True)
        if C_infobar_cardID:
            self.sidebar_cardID.setChecked(True)
        if C_sidebar_autoOpen:
            self.sidebar_autoOpen.setChecked(True)
        if C_custom_reviewButtonColors:
            self.custom_reviewButtonColors.setChecked(True)
        if C_custom_reviewButtonTextColor:
            self.custom_reviewButtonTextColor.setChecked(True)
        if C_custom_activeIndicatorColor:
            self.custom_activeIndicatorColor.setChecked(True)
        if C_custom_bottombarButtonTextColor:
            self.custom_bottombarButtonTextColor.setChecked(True)
        if C_custom_bottombarButtonBorderColor:
            self.custom_bottombarButtonBorderColor.setChecked(True)
        self.changeButtonColor(self.reviewButtonTextColor_button, C_reviewButtonText_color)
        self.changeButtonColor(self.activeIndicatorColor_button, C_activeIndicator_color)
        self.changeButtonColor(self.bottombarButtonTextColor_button, C_bottombarButtonText_color)
        self.changeButtonColor(self.bottombarButtonBorderColor_button, C_bottombarButtonBorder_color)
        self.changeButtonColor(self.againColor_button, C_again_color)
        self.changeButtonColor(self.againHoverColor_button, C_againHover_color)
        self.changeButtonColor(self.hardColor_button, C_hard_color)
        self.changeButtonColor(self.hardHoverColor_button, C_hardHover_color)
        self.changeButtonColor(self.goodColor_button, C_good_color)
        self.changeButtonColor(self.goodHoverColor_button, C_goodHover_color)
        self.changeButtonColor(self.easyColor_button, C_easy_color)
        self.changeButtonColor(self.easyHoverColor_button, C_easyHover_color)
        self.showAnswerEase1.setValue(int(C_showAnswerEase1))
        self.showAnswerEase2.setValue(int(C_showAnswerEase2))
        self.showAnswerEase3.setValue(int(C_showAnswerEase3))
        self.showAnswerEase4.setValue(int(C_showAnswerEase4))
        self.changeButtonColor(self.showAnswerEase1_button, C_showAnswerEase1_color)
        self.changeButtonColor(self.showAnswerEase2_button, C_showAnswerEase2_color)
        self.changeButtonColor(self.showAnswerEase3_button, C_showAnswerEase3_color)
        self.changeButtonColor(self.showAnswerEase4_button, C_showAnswerEase4_color)
        if C_button_colors:
            self.buttonColors_on.setChecked(True)
        else:
            self.buttonColors_off.setChecked(True)
        if C_speedFocus:
            self.speedFocus_on.setChecked(True)
        else:
            self.speedFocus_off.setChecked(True)
        if C_configEdit:
            self.configEdit_on.setChecked(True)
        else:
            self.configEdit_off.setChecked(True)
        self.overViewStats.setCurrentIndex(C_overViewStats)
        self.settingsMenu_place.setCurrentIndex(C_settingsMenu_palce)
        self.skipMethod.setCurrentIndex(C_skipMethod)

    def onLoadSettings(self):
        addon_path = dirname(__file__)
        #// Open a file browser to choose the settings file (returns a tuple) the first item in the tuple is the settings file location
        fileName_tuple = QFileDialog.getOpenFileName(self, 'Open file', r'{}\user_files'.format(addon_path))
        #// If user cancels the operation and no file is chosen, then return without doing anything
        if not fileName_tuple[0]:
            return
        #// Select the settings file from the tuple
        settingsFile = fileName_tuple[0]
        #// Open and read the JSON File
        settings = open("{}".format(settingsFile), "r")
        conf = json.load(settings)
        settingsFile_name = os.path.basename(settingsFile)
        load = askUser("Replace current settings with settings file <{}>?".format(settingsFile_name), self, None, defaultno=True, title="Advanced Review Bottomabr")
        if load:
            mw.addonManager.writeConfig(__name__, conf)
            showInfo("<div style='font-size: 15px;'>Settings Loaded Succesfully.\
            </div><div style='color: red; font-size: 15px;'> Changes will take \
            effect after you restart anki.</div>", title="Advanced Review Bottombar Settings")
            self.close()
            refreshConfig()
        else:
            return
        settings.close()

    def onSaveSettings(self):
        addon_path = dirname(__file__)
        #// Choose a name for the backup file
        file_name = "ARBb {}".format(datetime.now().strftime("%d-%b-%Y %H-%M-%S"))
        path_to_file = "{}\\user_files\\{}.json".format(addon_path, file_name)
        f = open(path_to_file, "w")

        if self.left_skip.isChecked():
            skip_position = "left"
        elif self.middleRight_skip.isChecked():
            skip_position ="middle right"
        elif self.right_skip.isChecked():
            skip_position ="right"
        else:
            skip_position = "middle left"
        if self.left_showSkipped.isChecked():
            showSkipped_position = "left"
        elif self.middleRight_showSkipped.isChecked():
            showSkipped_position ="middle right"
        elif self.right_showSkipped.isChecked():
            showSkipped_position ="right"
        else:
            showSkipped_position = "middle left"
        if self.middleLeft_info.isChecked():
            info_position = "middle left"
        elif self.middleRight_info.isChecked():
            info_position = "middle right"
        elif self.right_info.isChecked():
            info_position = "right"
        else:
            info_position = "left"
        if self.left_undo.isChecked():
            undo_position = "left"
        elif self.middleLeft_undo.isChecked():
            undo_position = "middle left"
        elif self.right_undo.isChecked():
            undo_position = "right"
        else:
            undo_position = "middle right"
        if self.showAnswerEase1.value() > self.showAnswerEase2.value():
            self.showAnswerEase2.setValue((self.showAnswerEase1.value() + 50))
        if self.showAnswerEase2.value() > self.showAnswerEase3.value():
            self.showAnswerEase3.setValue((self.showAnswerEase2.value() + 50))
        if self.showAnswerEase3.value() > self.showAnswerEase4.value():
            self.showAnswerEase4.setValue((self.showAnswerEase3.value() + 50))
        conf = {
        "  Button Colors": self.buttonColors_on.isChecked(),
        "  Speed Focus Add-on": self.speedFocus_on.isChecked(),
        "  Direct Config Edit": self.configEdit_on.isChecked(),
        "  More Overview Stats": self.overViewStats.currentIndex(),
        "  Settings Menu Place": self.settingsMenu_place.currentIndex(),
        "  Skip Method": self.skipMethod.currentIndex(),
        "  Style Main Screen Buttons": self.style_mainScreenButtons.isChecked(),
        " Review_ Active Button Indicator": self.active_indicator.currentIndex(),
        " Review_ Buttons Style": self.button_style.currentIndex(),
        " Review_ Hover Effect": self.hover_effect.currentIndex(),
        " Review_ Custom Colors": self.custom_reviewButtonColors.isChecked(),
        " Review_ Custom Review Button Text Color": self.custom_reviewButtonTextColor.isChecked(),
        " Review_ Custom Active Indicator Color": self.custom_activeIndicatorColor.isChecked(),
        " Review_ Bottombar Buttons Style": self.bottombarButtons_style.currentIndex(),
        " Review_ Cursor Style": self.cursor_style.currentIndex(),
        " Review_ Interval Style": self.interval_style.currentIndex(),
        " Review_ Button Transition Time": self.buttonTransition_time.value(),
        " Review_ Button Border Radius": self.buttonBorderRadius.value(),
        "Button_   Info Button": self.info.isChecked(),
        "Button_   Skip Button": self.skip.isChecked(),
        "Button_   Show Skipped Button": self.showSkipped.isChecked(),
        "Button_   Undo Button": self.undo.isChecked(),
        "Button_   Hide Hard": self.hideHard.isChecked(),
        "Button_   Hide Good": self.hideGood.isChecked(),
        "Button_   Hide Easy": self.hideEasy.isChecked(),
        "Button_  Custom Button Sizes": self.customSizes_on.isChecked(),
        "Button_ Shortcut_ Skip Button": self.skip_shortcut,
        "Button_ Shortcut_ Show Skipped Button": self.showSkipped_shortcut,
        "Button_ Shortcut_ Info Button": self.info_shortcut,
        "Button_ Shortcut_ Undo Button": self.undo_shortcut,
        "Button_ Position_ Info Button": info_position,
        "Button_ Position_ Skip Button": skip_position,
        "Button_ Position_ Show Skipped Button": showSkipped_position,
        "Button_ Position_ Undo Button": undo_position,
        "Button_ Text Size": self.text_size.value(),
        "Button_ Height_ All Bottombar Buttons": self.buttons_height.value(),
        "Button_ Width_ Edit Button": self.edit_width.value(),
        "Button_ Width_ Show Answer Button": self.answer_width.value(),
        "Button_ Width_ Info Button": self.info_width.value(),
        "Button_ Width_ Skip Button": self.skip_width.value(),
        "Button_ Width_ Show Skipped Button": self.showSkipped_width.value(),
        "Button_ Width_ More Button": self.more_width.value(),
        "Button_ Width_ Review Buttons": self.reviewButtons_width.value(),
        "Button_ Width_ Undo Button": self.undo_width.value(),
        "Button Label_ Study Now": self.buttonLabel_studyNow.text(),
        "Button Label_ Edit": self.buttonLabel_edit.text(),
        "Button Label_ Show Answer": self.buttonLabel_showAnswer.text(),
        "Button Label_ More": self.buttonLabel_more.text(),
        "Button Label_ Info": self.buttonLabel_info.text(),
        "Button Label_ Skip": self.buttonLabel_skip.text(),
        "Button Label_ Show Skipped": self.buttonLabel_showSkipped.text(),
        "Button Label_ Undo": self.buttonLabel_undo.text(),
        "Button Label_ Again": self.buttonLabel_again.text(),
        "Button Label_ Hard": self.buttonLabel_hard.text(),
        "Button Label_ Good": self.buttonLabel_good.text(),
        "Button Label_ Easy": self.buttonLabel_easy.text(),
        "Card Info sidebar_ Number of previous cards to show": self.sidebar_PreviousCards.value(),
        "Card Info sidebar_ Default Position": self.sidebar_position.currentIndex(),
        "Card Info sidebar_ theme": self.sidebar_theme.currentIndex(),
        "Card Info sidebar_ Created": self.sidebar_dateCreated.isChecked(),
        "Card Info sidebar_ Edited": self.sidebar_dateEdited.isChecked(),
        "Card Info sidebar_ First Review": self.sidebar_firstReview.isChecked(),
        "Card Info sidebar_ Latest Review": self.sidebar_latestReview.isChecked(),
        "Card Info sidebar_ Due": self.sidebar_due.isChecked(),
        "Card Info sidebar_ Interval": self.sidebar_interval.isChecked(),
        "Card Info sidebar_ Ease": self.sidebar_ease.isChecked(),
        "Card Info sidebar_ Reviews": self.sidebar_numberOfReviews.isChecked(),
        "Card Info sidebar_ Lapses": self.sidebar_lapses.isChecked(),
		"Card Info Sidebar_ Correct Percent": self.sidebar_correctPercent.isChecked(),
		"Card Info Sidebar_ Fastest Review": self.sidebar_fastestReview.isChecked(),
		"Card Info Sidebar_ Slowest Review": self.sidebar_slowestReview.isChecked(),
        "Card Info sidebar_ Average Time": self.sidebar_averageTime.isChecked(),
        "Card Info sidebar_ Total Time": self.sidebar_totalTime.isChecked(),
        "Card Info sidebar_ Card Type": self.sidebar_cardType.isChecked(),
        "Card Info sidebar_ Note Type": self.sidebar_noteType.isChecked(),
        "Card Info sidebar_ Deck": self.sidebar_deck.isChecked(),
        "Card Info sidebar_ Tags": self.sidebar_tags.isChecked(),
		"Card Info Sidebar_ Note ID": self.sidebar_noteID.isChecked(),
		"Card Info Sidebar_ Card ID": self.sidebar_cardID.isChecked(),
        "Card Info sidebar_ Sort Field": self.sidebar_sortField.isChecked(),
        "Card Info sidebar_ Current Review Count": self.sidebar_currentReviewCount.isChecked(),
        "Card Info sidebar_ Font": self.sidebar_font.currentFont().family(),
        "Card Info sidebar_ number of reviews to show for a card": self.sidebar_reviewsToShow.value(),
        "Card Info sidebar_ Auto Open": self.sidebar_autoOpen.isChecked(),
        "Card Info sidebar_ warning note": self.sidebar_warningNote.isChecked(),
        "Color_  General Text Color": self.reviewButtonText_color,
        "Color_ Active Button Indicator": self.activeIndicator_color,
    	"Color_ Bottombar Button Text Color": self.bottombarButtonText_color,
    	"Color_ Bottombar Button Border Color": self.bottombarButtonBorder_color,
    	"Color_ Custom Bottombar Button Text Color": self.custom_bottombarButtonTextColor.isChecked(),
    	"Color_ Custom Bottombar Button Border Color": self.custom_bottombarButtonBorderColor.isChecked(),
        "Color_ Again": self.again_color,
        "Color_ Again on hover": self.againHover_color,
        "Color_ Hard": self.hard_color,
        "Color_ Hard on hover": self.hardHover_color,
        "Color_ Good":self.good_color,
        "Color_ Good on hover": self.goodHover_color,
        "Color_ Easy": self.easy_color,
        "Color_ Easy on hover": self.easyHover_color,
        "Tooltip": self.reviewTooltip_on.isChecked(),
        "Tooltip Timer": self.reviewTooltip_timer.value(),
        "Tooltip Text Color": self.reviewTooltipText_color,
        "Tooltip Style": self.reviewTooltip_style.currentIndex(),
        "Tooltip Position": [self.reviewTooltipPositionX.value(), self.reviewTooltipPositionY.value()],
        "ShowAnswer_ Border Color Style": self.showAnswerBorderColor_style.currentIndex(),
		"ShowAnswer_ Ease1": self.showAnswerEase1.value(),
		"ShowAnswer_ Ease2": self.showAnswerEase2.value(),
		"ShowAnswer_ Ease3": self.showAnswerEase3.value(),
		"ShowAnswer_ Ease4": self.showAnswerEase4.value(),
		"ShowAnswer_ Ease1 Color": self.showAnswerEase1_color,
		"ShowAnswer_ Ease2 Color": self.showAnswerEase2_color,
		"ShowAnswer_ Ease3 Color": self.showAnswerEase3_color,
		"ShowAnswer_ Ease4 Color": self.showAnswerEase4_color
      }
        #// Save settings in a JSON file
        json.dump(conf, f, indent=4)
        #// Open file explorer after saving so users know where the backup file is (and maybe save it somewhere else)
        subprocess.Popen(f'explorer /select, "{path_to_file}"')
        f.close()

    def onApply(self):
        if self.left_skip.isChecked():
            skip_position = "left"
        elif self.middleRight_skip.isChecked():
            skip_position ="middle right"
        elif self.right_skip.isChecked():
            skip_position ="right"
        else:
            skip_position = "middle left"
        if self.left_showSkipped.isChecked():
            showSkipped_position = "left"
        elif self.middleRight_showSkipped.isChecked():
            showSkipped_position ="middle right"
        elif self.right_showSkipped.isChecked():
            showSkipped_position ="right"
        else:
            showSkipped_position = "middle left"
        if self.middleLeft_info.isChecked():
            info_position = "middle left"
        elif self.middleRight_info.isChecked():
            info_position = "middle right"
        elif self.right_info.isChecked():
            info_position = "right"
        else:
            info_position = "left"
        if self.left_undo.isChecked():
            undo_position = "left"
        elif self.middleLeft_undo.isChecked():
            undo_position = "middle left"
        elif self.right_undo.isChecked():
            undo_position = "right"
        else:
            undo_position = "middle right"
        if self.showAnswerEase1.value() > self.showAnswerEase2.value():
            self.showAnswerEase2.setValue((self.showAnswerEase1.value() + 50))
        if self.showAnswerEase2.value() > self.showAnswerEase3.value():
            self.showAnswerEase3.setValue((self.showAnswerEase2.value() + 50))
        if self.showAnswerEase3.value() > self.showAnswerEase4.value():
            self.showAnswerEase4.setValue((self.showAnswerEase3.value() + 50))

        conf = {
        "  Button Colors": self.buttonColors_on.isChecked(),
        "  Speed Focus Add-on": self.speedFocus_on.isChecked(),
        "  Direct Config Edit": self.configEdit_on.isChecked(),
        "  More Overview Stats": self.overViewStats.currentIndex(),
        "  Settings Menu Place": self.settingsMenu_place.currentIndex(),
        "  Skip Method": self.skipMethod.currentIndex(),
        "  Style Main Screen Buttons": self.style_mainScreenButtons.isChecked(),
        " Review_ Active Button Indicator": self.active_indicator.currentIndex(),
        " Review_ Buttons Style": self.button_style.currentIndex(),
        " Review_ Hover Effect": self.hover_effect.currentIndex(),
        " Review_ Custom Colors": self.custom_reviewButtonColors.isChecked(),
        " Review_ Custom Review Button Text Color": self.custom_reviewButtonTextColor.isChecked(),
        " Review_ Custom Active Indicator Color": self.custom_activeIndicatorColor.isChecked(),
        " Review_ Bottombar Buttons Style": self.bottombarButtons_style.currentIndex(),
        " Review_ Cursor Style": self.cursor_style.currentIndex(),
        " Review_ Interval Style": self.interval_style.currentIndex(),
        " Review_ Button Transition Time": self.buttonTransition_time.value(),
        " Review_ Button Border Radius": self.buttonBorderRadius.value(),
        "Button_   Info Button": self.info.isChecked(),
        "Button_   Skip Button": self.skip.isChecked(),
        "Button_   Show Skipped Button": self.showSkipped.isChecked(),
        "Button_   Undo Button": self.undo.isChecked(),
        "Button_   Hide Hard": self.hideHard.isChecked(),
        "Button_   Hide Good": self.hideGood.isChecked(),
        "Button_   Hide Easy": self.hideEasy.isChecked(),
        "Button_  Custom Button Sizes": self.customSizes_on.isChecked(),
        "Button_ Shortcut_ Skip Button": self.skip_shortcut,
        "Button_ Shortcut_ Show Skipped Button": self.showSkipped_shortcut,
        "Button_ Shortcut_ Info Button": self.info_shortcut,
        "Button_ Shortcut_ Undo Button": self.undo_shortcut,
        "Button_ Position_ Info Button": info_position,
        "Button_ Position_ Skip Button": skip_position,
        "Button_ Position_ Show Skipped Button": showSkipped_position,
        "Button_ Position_ Undo Button": undo_position,
        "Button_ Text Size": self.text_size.value(),
        "Button_ Height_ All Bottombar Buttons": self.buttons_height.value(),
        "Button_ Width_ Edit Button": self.edit_width.value(),
        "Button_ Width_ Show Answer Button": self.answer_width.value(),
        "Button_ Width_ Info Button": self.info_width.value(),
        "Button_ Width_ Skip Button": self.skip_width.value(),
        "Button_ Width_ Show Skipped Button": self.showSkipped_width.value(),
        "Button_ Width_ More Button": self.more_width.value(),
        "Button_ Width_ Review Buttons": self.reviewButtons_width.value(),
        "Button_ Width_ Undo Button": self.undo_width.value(),
        "Button Label_ Study Now": self.buttonLabel_studyNow.text(),
        "Button Label_ Edit": self.buttonLabel_edit.text(),
        "Button Label_ Show Answer": self.buttonLabel_showAnswer.text(),
        "Button Label_ More": self.buttonLabel_more.text(),
        "Button Label_ Info": self.buttonLabel_info.text(),
        "Button Label_ Skip": self.buttonLabel_skip.text(),
        "Button Label_ Show Skipped": self.buttonLabel_showSkipped.text(),
        "Button Label_ Undo": self.buttonLabel_undo.text(),
        "Button Label_ Again": self.buttonLabel_again.text(),
        "Button Label_ Hard": self.buttonLabel_hard.text(),
        "Button Label_ Good": self.buttonLabel_good.text(),
        "Button Label_ Easy": self.buttonLabel_easy.text(),
        "Card Info sidebar_ Number of previous cards to show": self.sidebar_PreviousCards.value(),
        "Card Info sidebar_ Default Position": self.sidebar_position.currentIndex(),
        "Card Info sidebar_ theme": self.sidebar_theme.currentIndex(),
        "Card Info sidebar_ Created": self.sidebar_dateCreated.isChecked(),
        "Card Info sidebar_ Edited": self.sidebar_dateEdited.isChecked(),
        "Card Info sidebar_ First Review": self.sidebar_firstReview.isChecked(),
        "Card Info sidebar_ Latest Review": self.sidebar_latestReview.isChecked(),
        "Card Info sidebar_ Due": self.sidebar_due.isChecked(),
        "Card Info sidebar_ Interval": self.sidebar_interval.isChecked(),
        "Card Info sidebar_ Ease": self.sidebar_ease.isChecked(),
        "Card Info sidebar_ Reviews": self.sidebar_numberOfReviews.isChecked(),
        "Card Info sidebar_ Lapses": self.sidebar_lapses.isChecked(),
		"Card Info Sidebar_ Correct Percent": self.sidebar_correctPercent.isChecked(),
		"Card Info Sidebar_ Fastest Review": self.sidebar_fastestReview.isChecked(),
		"Card Info Sidebar_ Slowest Review": self.sidebar_slowestReview.isChecked(),
        "Card Info sidebar_ Average Time": self.sidebar_averageTime.isChecked(),
        "Card Info sidebar_ Total Time": self.sidebar_totalTime.isChecked(),
        "Card Info sidebar_ Card Type": self.sidebar_cardType.isChecked(),
        "Card Info sidebar_ Note Type": self.sidebar_noteType.isChecked(),
        "Card Info sidebar_ Deck": self.sidebar_deck.isChecked(),
        "Card Info sidebar_ Tags": self.sidebar_tags.isChecked(),
		"Card Info Sidebar_ Note ID": self.sidebar_noteID.isChecked(),
		"Card Info Sidebar_ Card ID": self.sidebar_cardID.isChecked(),
        "Card Info sidebar_ Sort Field": self.sidebar_sortField.isChecked(),
        "Card Info sidebar_ Current Review Count": self.sidebar_currentReviewCount.isChecked(),
        "Card Info sidebar_ Font": self.sidebar_font.currentFont().family(),
        "Card Info sidebar_ number of reviews to show for a card": self.sidebar_reviewsToShow.value(),
        "Card Info sidebar_ Auto Open": self.sidebar_autoOpen.isChecked(),
        "Card Info sidebar_ warning note": self.sidebar_warningNote.isChecked(),
        "Color_  General Text Color": self.reviewButtonText_color,
        "Color_ Active Button Indicator": self.activeIndicator_color,
    	"Color_ Bottombar Button Text Color": self.bottombarButtonText_color,
    	"Color_ Bottombar Button Border Color": self.bottombarButtonBorder_color,
    	"Color_ Custom Bottombar Button Text Color": self.custom_bottombarButtonTextColor.isChecked(),
    	"Color_ Custom Bottombar Button Border Color": self.custom_bottombarButtonBorderColor.isChecked(),
        "Color_ Again": self.again_color,
        "Color_ Again on hover": self.againHover_color,
        "Color_ Hard": self.hard_color,
        "Color_ Hard on hover": self.hardHover_color,
        "Color_ Good":self.good_color,
        "Color_ Good on hover": self.goodHover_color,
        "Color_ Easy": self.easy_color,
        "Color_ Easy on hover": self.easyHover_color,
        "Tooltip": self.reviewTooltip_on.isChecked(),
        "Tooltip Timer": self.reviewTooltip_timer.value(),
        "Tooltip Text Color": self.reviewTooltipText_color,
        "Tooltip Style": self.reviewTooltip_style.currentIndex(),
        "Tooltip Position": [self.reviewTooltipPositionX.value(), self.reviewTooltipPositionY.value()],
        "ShowAnswer_ Border Color Style": self.showAnswerBorderColor_style.currentIndex(),
		"ShowAnswer_ Ease1": self.showAnswerEase1.value(),
		"ShowAnswer_ Ease2": self.showAnswerEase2.value(),
		"ShowAnswer_ Ease3": self.showAnswerEase3.value(),
		"ShowAnswer_ Ease4": self.showAnswerEase4.value(),
		"ShowAnswer_ Ease1 Color": self.showAnswerEase1_color,
		"ShowAnswer_ Ease2 Color": self.showAnswerEase2_color,
		"ShowAnswer_ Ease3 Color": self.showAnswerEase3_color,
		"ShowAnswer_ Ease4 Color": self.showAnswerEase4_color
      }
        mw.addonManager.writeConfig(__name__, conf)
        showInfo("<div style='color: red;\
        font-size: 15px;'> Changes will take effect after you restart anki. </div>\
        <div style='font-size: 15px;'> Sidebar changes will take effect immediately.\
        </div>", title="Advanced Review Bottombar Settings")
        refreshConfig()
        self.close()

    def getNewColor(self, color_variable, color_button):
        color_window = QColorDialog()
        color = color_window.getColor()
        if color.isValid():
            color = color.name()
            if color_variable == "again_color":
                self.again_color = color
            elif color_variable == "againHover_color":
                self.againHover_color = color
            elif color_variable == "hard_color":
                self.hard_color = color
            elif color_variable == "hardHover_color":
                self.hardHover_color = color
            elif color_variable == "good_color":
                self.good_color = color
            elif color_variable == "goodHover_color":
                self.goodHover_color = color
            elif color_variable == "easy_color":
                self.easy_color = color
            elif color_variable == "easyHover_color":
                self.easyHover_color = color
            elif color_variable == "reviewButtonText_color":
                self.reviewButtonText_color = color
            elif color_variable == "activeIndicator_color":
                self.activeIndicator_color = color
            elif color_variable == "reviewTooltipText_color":
                self.reviewTooltipText_color = color
            elif color_variable == "bottombarButtonText_color":
                self.bottombarButtonText_color = color
            elif color_variable == "bottombarButtonBorder_color":
                self.bottombarButtonBorder_color = color
            elif color_variable == "showAnswerEase1":
                self.showAnswerEase1_color = color
            elif color_variable == "showAnswerEase2":
                self.showAnswerEase2_color = color
            elif color_variable == "showAnswerEase3":
                self.showAnswerEase3_color = color
            elif color_variable == "showAnswerEase4":
                self.showAnswerEase4_color = color
            self.changeButtonColor(color_button, color)

    def changeButtonColor(self, button, color):
        pixmap = QPixmap(95, 18)
        qcolour = QColor(0, 0, 0)
        qcolour.setNamedColor(color)
        pixmap.fill(qcolour)
        button.setIcon(QIcon(pixmap))
        button.setIconSize(QSize(95, 18))

    def updateShortcut(self, button_variable, combination=None):
        """Update hotkey label and attribute"""
        if button_variable == "info_shortcut":
            shortcut = combination or self.info_shortcut
            self.infoShortcut_button.setText("Change Shortcut (Current: {})".format(shortcut))
        elif button_variable == "skip_shortcut":
            shortcut = combination or self.skip_shortcut
            self.skipShortcut_button.setText("Change Shortcut (Current: {})".format(shortcut))
        elif button_variable == "showSkipped_shortcut":
            shortcut = combination or self.showSkippedp_shortcut
            self.showSkippedShortcut_button.setText("Change Shortcut (Current: {})".format(shortcut))
        elif button_variable == "undo_shortcut":
            shortcut = combination or self.undo_shortcut
            self.undoShortcut_button.setText("Change Shortcut (Current: {})".format(shortcut))
        else:
            return

        if combination:
            if button_variable == "info_shortcut":
                self.info_shortcut = combination
            elif button_variable == "skip_shortcut":
                self.skip_shortcut = combination
            elif button_variable == "showSkipped_shortcut":
                self.showSkipped_shortcut = combination
            elif button_variable == "undo_shortcut":
                self.undo_shortcut = combination
            else:
                return

    def showGetShortcut(self, button_variable):
        getShortcut = GetShortcut(self, button_variable)
        getShortcut.exec()

def open_settings():
    settings = SettingsMenu()
    #// For styling settings menu -_-
    # settings.setStyle(QStyleFactory.create("Fusion"))
    settings.exec()

def setupMenu():
    settings = QAction('&Advanced Review Bottombar Settings', mw)
    if C_settingsMenu_palce == 1:
        mw.form.menuTools.addAction(settings)
    else:
        mw.ARBB_menu = QMenu('&ARBb', mw)
        mw.ARBB_menu.addAction(settings)
        mw.form.menubar.insertMenu(mw.form.menuHelp.menuAction(), mw.ARBB_menu)
    settings.triggered.connect(open_settings)
    settings.setShortcut(QKeySequence('Shift+A'))
setupMenu()

if not C_configEdit:
    mw.addonManager.setConfigAction(__name__, open_settings)