-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathffconfigmaker.html
More file actions
1778 lines (1664 loc) · 84.3 KB
/
ffconfigmaker.html
File metadata and controls
1778 lines (1664 loc) · 84.3 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fastfetch Config Maker</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/xterm@5.3.0/css/xterm.css">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--bg-primary: #0d1117;
--bg-secondary: #161b22;
--bg-tertiary: #21262d;
--bg-hover: #30363d;
--border-color: #30363d;
--text-primary: #e6edf3;
--text-secondary: #8b949e;
--text-muted: #6e7681;
--accent: #58a6ff;
--accent-hover: #79b8ff;
--success: #3fb950;
--warning: #d29922;
--error: #f85149;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
height: 100vh;
overflow: hidden;
}
.app {
display: flex;
height: 100vh;
}
.sidebar {
width: 220px;
background: var(--bg-secondary);
border-right: 1px solid var(--border-color);
display: flex;
flex-direction: column;
flex-shrink: 0;
}
.sidebar-header {
padding: 20px;
border-bottom: 1px solid var(--border-color);
}
.sidebar-header h1 {
font-size: 18px;
font-weight: 600;
color: var(--accent);
}
.sidebar-header p {
font-size: 12px;
color: var(--text-muted);
margin-top: 4px;
}
.nav-section {
padding: 10px 0;
}
.nav-item {
padding: 10px 20px;
cursor: pointer;
color: var(--text-secondary);
display: flex;
align-items: center;
gap: 10px;
transition: all 0.15s;
border-left: 3px solid transparent;
}
.nav-item:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
.nav-item.active {
background: var(--bg-tertiary);
color: var(--accent);
border-left-color: var(--accent);
}
.nav-item svg {
width: 18px;
height: 18px;
flex-shrink: 0;
}
.sidebar-footer {
margin-top: auto;
padding: 15px;
border-top: 1px solid var(--border-color);
display: flex;
flex-direction: column;
gap: 8px;
}
.main-content {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
}
.content-header {
padding: 15px 25px;
background: var(--bg-secondary);
border-bottom: 1px solid var(--border-color);
display: flex;
justify-content: space-between;
align-items: center;
}
.content-header h2 {
font-size: 20px;
font-weight: 500;
}
.header-actions {
display: flex;
gap: 10px;
}
.content-body {
flex: 1;
display: flex;
overflow: hidden;
}
.config-panel {
flex: 1;
overflow-y: auto;
padding: 25px;
}
.preview-panel {
width: 450px;
background: var(--bg-secondary);
border-left: 1px solid var(--border-color);
display: flex;
flex-direction: column;
flex-shrink: 0;
}
.preview-header {
padding: 15px;
border-bottom: 1px solid var(--border-color);
display: flex;
justify-content: space-between;
align-items: center;
}
.preview-header h3 {
font-size: 14px;
font-weight: 500;
color: var(--text-secondary);
}
.preview-body {
flex: 1;
overflow: auto;
padding: 15px;
}
.preview-body pre {
font-family: 'JetBrains Mono', 'Fira Code', monospace;
font-size: 12px;
line-height: 1.5;
color: var(--text-secondary);
white-space: pre-wrap;
word-break: break-all;
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
.section {
margin-bottom: 30px;
}
.section-title {
font-size: 16px;
font-weight: 600;
margin-bottom: 15px;
padding-bottom: 10px;
border-bottom: 1px solid var(--border-color);
}
.form-row {
display: flex;
gap: 20px;
margin-bottom: 15px;
}
.form-group {
flex: 1;
}
.form-group label {
display: block;
font-size: 13px;
color: var(--text-secondary);
margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
width: 100%;
padding: 8px 12px;
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
border-radius: 6px;
color: var(--text-primary);
font-size: 13px;
transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
outline: none;
border-color: var(--accent);
}
.form-group textarea {
min-height: 80px;
resize: vertical;
}
.form-group input[type="checkbox"] {
width: auto;
cursor: pointer;
}
.checkbox-row {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 0;
}
.checkbox-row label {
margin-bottom: 0;
cursor: pointer;
}
.btn {
padding: 8px 16px;
border-radius: 6px;
border: none;
font-size: 13px;
font-weight: 500;
cursor: pointer;
transition: all 0.15s;
display: inline-flex;
align-items: center;
gap: 6px;
}
.btn-primary {
background: var(--accent);
color: #fff;
}
.btn-primary:hover {
background: var(--accent-hover);
}
.btn-secondary {
background: var(--bg-tertiary);
color: var(--text-primary);
border: 1px solid var(--border-color);
}
.btn-secondary:hover {
background: var(--bg-hover);
}
.btn-danger {
background: var(--error);
color: #fff;
}
.btn-success {
background: var(--success);
color: #fff;
}
.btn-sm {
padding: 5px 10px;
font-size: 12px;
}
.module-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 10px;
}
.module-item {
padding: 10px 12px;
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
border-radius: 6px;
display: flex;
align-items: center;
gap: 10px;
cursor: pointer;
transition: all 0.15s;
}
.module-item:hover {
border-color: var(--accent);
}
.module-item.selected {
border-color: var(--accent);
background: rgba(88, 166, 255, 0.1);
}
.module-item input[type="checkbox"] {
margin: 0;
}
.module-item span {
font-size: 13px;
}
.color-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 10px;
}
.color-item {
display: flex;
align-items: center;
gap: 10px;
}
.color-preview {
width: 30px;
height: 30px;
border-radius: 4px;
border: 1px solid var(--border-color);
}
.nested-fields {
background: var(--bg-tertiary);
border-radius: 6px;
padding: 15px;
margin-top: 10px;
}
.nested-title {
font-size: 13px;
font-weight: 500;
margin-bottom: 12px;
color: var(--text-secondary);
}
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.7);
display: none;
align-items: center;
justify-content: center;
z-index: 1000;
}
.modal-overlay.active {
display: flex;
}
.modal {
background: var(--bg-secondary);
border-radius: 10px;
width: 95%;
max-width: 1200px;
height: 85vh;
display: flex;
flex-direction: column;
border: 1px solid var(--border-color);
}
.modal-header {
padding: 15px 20px;
border-bottom: 1px solid var(--border-color);
display: flex;
justify-content: space-between;
align-items: center;
}
.modal-header h3 {
font-size: 18px;
}
.modal-body {
flex: 1;
padding: 20px;
overflow: hidden;
}
.modal-footer {
padding: 15px 20px;
border-top: 1px solid var(--border-color);
display: flex;
justify-content: flex-end;
gap: 10px;
}
#terminal {
width: 100%;
height: 100%;
background: #000;
border-radius: 6px;
}
#terminal .xterm {
padding: 10px;
}
#terminal .xterm-viewport {
overflow-y: auto !important;
}
.logo-type-options {
display: none;
}
.logo-type-options.visible {
display: block;
}
.search-box {
padding: 12px 15px;
background: var(--bg-secondary);
border-bottom: 1px solid var(--border-color);
}
.search-box input {
width: 100%;
padding: 8px 12px;
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
border-radius: 6px;
color: var(--text-primary);
font-size: 13px;
}
.search-box input:focus {
outline: none;
border-color: var(--accent);
}
.active-modules {
padding: 15px;
background: var(--bg-secondary);
border-bottom: 1px solid var(--border-color);
min-height: 80px;
}
.active-modules-title {
font-size: 13px;
color: var(--text-muted);
margin-bottom: 10px;
}
.active-modules-list {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.module-tag {
padding: 5px 10px;
background: var(--accent);
color: #fff;
border-radius: 4px;
font-size: 12px;
display: flex;
align-items: center;
gap: 6px;
cursor: grab;
}
.module-tag .remove {
cursor: pointer;
opacity: 0.7;
}
.module-tag .remove:hover {
opacity: 1;
}
.module-settings {
padding: 15px;
background: var(--bg-tertiary);
border-radius: 6px;
margin-top: 15px;
}
.file-drop {
border: 2px dashed var(--border-color);
border-radius: 8px;
padding: 30px;
text-align: center;
margin-bottom: 20px;
transition: all 0.15s;
}
.file-drop.dragover {
border-color: var(--accent);
background: rgba(88, 166, 255, 0.1);
}
.file-drop p {
color: var(--text-muted);
font-size: 14px;
}
.file-drop input {
display: none;
}
</style>
</head>
<body>
<div class="app">
<aside class="sidebar">
<div class="sidebar-header">
<h1>Fastfetch Config</h1>
<p>Configuration Generator</p>
</div>
<nav class="nav-section">
<div class="nav-item active" data-tab="logo">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="8.5" cy="8.5" r="1.5"/><path d="M21 15l-5-5L5 21"/></svg>
<span>Logo</span>
</div>
<div class="nav-item" data-tab="display">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="2" y="3" width="20" height="14" rx="2"/><path d="M8 21h8M12 17v4"/></svg>
<span>Display</span>
</div>
<div class="nav-item" data-tab="modules">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"/></svg>
<span>Modules</span>
</div>
<div class="nav-item" data-tab="colors">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="M12 2a10 10 0 0 1 0 20"/></svg>
<span>Colors</span>
</div>
<div class="nav-item" data-tab="general">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="3"/><path d="M12 1v4M12 19v4M4.22 4.22l2.83 2.83M16.95 16.95l2.83 2.83M1 12h4M19 12h4M4.22 19.78l2.83-2.83M16.95 7.05l2.83-2.83"/></svg>
<span>General</span>
</div>
</nav>
<div class="sidebar-footer">
<button class="btn btn-secondary" id="importBtn" style="width: 100%;">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M7 10l5 5 5-5M12 15V3"/></svg>
Import Config
</button>
<button class="btn btn-secondary" id="exportBtn" style="width: 100%;">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M17 8l-5-5-5 5M12 3v12"/></svg>
Export Config
</button>
<button class="btn btn-primary" id="testOutputBtn" style="width: 100%;">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polygon points="5,3 19,12 5,21"/></svg>
Test Output
</button>
</div>
</aside>
<main class="main-content">
<div class="content-header">
<h2 id="tabTitle">Logo Configuration</h2>
<div class="header-actions">
<button class="btn btn-sm btn-secondary" id="resetBtn">Reset to Defaults</button>
</div>
</div>
<div class="content-body">
<div class="config-panel" id="configPanel">
<!-- Logo Tab -->
<div class="tab-content active" id="tab-logo">
<div class="section">
<h3 class="section-title">Logo Settings</h3>
<div class="form-row">
<div class="form-group">
<label>Logo Type</label>
<select id="logoType">
<option value="auto">Auto</option>
<option value="builtin">Builtin (ASCII)</option>
<option value="small">Small (ASCII)</option>
<option value="file">File</option>
<option value="file-raw">File Raw</option>
<option value="data">Data</option>
<option value="data-raw">Data Raw</option>
<option value="command-raw">Command Raw</option>
<option value="sixel">Sixel (Image)</option>
<option value="kitty">Kitty</option>
<option value="kitty-direct">Kitty Direct</option>
<option value="kitty-icat">Kitty ICat</option>
<option value="iterm">iTerm</option>
<option value="chafa">Chafa</option>
<option value="raw">Raw</option>
<option value="none">None (Disabled)</option>
</select>
</div>
<div class="form-group">
<label>Logo Source</label>
<input type="text" id="logoSource" placeholder="e.g., arch, ubuntu, /path/to/logo.txt">
</div>
</div>
<div class="form-row">
<div class="form-group">
<label>Width (characters)</label>
<input type="number" id="logoWidth" value="auto" placeholder="auto">
</div>
<div class="form-group">
<label>Height (characters)</label>
<input type="number" id="logoHeight" value="auto" placeholder="auto">
</div>
</div>
<div class="nested-fields">
<div class="nested-title">Padding</div>
<div class="form-row">
<div class="form-group">
<label>Top</label>
<input type="number" id="logoPaddingTop" value="0">
</div>
<div class="form-group">
<label>Left</label>
<input type="number" id="logoPaddingLeft" value="0">
</div>
<div class="form-group">
<label>Right</label>
<input type="number" id="logoPaddingRight" value="0">
</div>
</div>
</div>
<div class="nested-fields">
<div class="nested-title">Logo Colors (Overrides)</div>
<div class="form-row">
<div class="form-group">
<label>Color 1</label>
<select id="logoColor1" class="color-select">
<option value="">Default</option>
<option value="black">Black</option>
<option value="red">Red</option>
<option value="green">Green</option>
<option value="yellow">Yellow</option>
<option value="blue">Blue</option>
<option value="magenta">Magenta</option>
<option value="cyan">Cyan</option>
<option value="white">White</option>
<option value="default">Default</option>
</select>
</div>
<div class="form-group">
<label>Color 2</label>
<select id="logoColor2" class="color-select">
<option value="">Default</option>
<option value="black">Black</option>
<option value="red">Red</option>
<option value="green">Green</option>
<option value="yellow">Yellow</option>
<option value="blue">Blue</option>
<option value="magenta">Magenta</option>
<option value="cyan">Cyan</option>
<option value="white">White</option>
<option value="default">Default</option>
</select>
</div>
<div class="form-group">
<label>Color 3</label>
<select id="logoColor3" class="color-select">
<option value="">Default</option>
<option value="black">Black</option>
<option value="red">Red</option>
<option value="green">Green</option>
<option value="yellow">Yellow</option>
<option value="blue">Blue</option>
<option value="magenta">Magenta</option>
<option value="cyan">Cyan</option>
<option value="white">White</option>
<option value="default">Default</option>
</select>
</div>
</div>
<div class="form-row">
<div class="form-group">
<label>Color 4</label>
<select id="logoColor4" class="color-select">
<option value="">Default</option>
<option value="black">Black</option>
<option value="red">Red</option>
<option value="green">Green</option>
<option value="yellow">Yellow</option>
<option value="blue">Blue</option>
<option value="magenta">Magenta</option>
<option value="cyan">Cyan</option>
<option value="white">White</option>
<option value="default">Default</option>
</select>
</div>
<div class="form-group">
<label>Color 5</label>
<select id="logoColor5" class="color-select">
<option value="">Default</option>
<option value="black">Black</option>
<option value="red">Red</option>
<option value="green">Green</option>
<option value="yellow">Yellow</option>
<option value="blue">Blue</option>
<option value="magenta">Magenta</option>
<option value="cyan">Cyan</option>
<option value="white">White</option>
<option value="default">Default</option>
</select>
</div>
</div>
</div>
<div class="form-row" style="margin-top: 15px;">
<div class="checkbox-row">
<input type="checkbox" id="logoPreserveAspect">
<label for="logoPreserveAspect">Preserve Aspect Ratio</label>
</div>
<div class="checkbox-row">
<input type="checkbox" id="logoPrintRemaining">
<label for="logoPrintRemaining">Print Remaining Logo Lines</label>
</div>
</div>
<div class="form-group" style="margin-top: 15px;">
<label>Logo Position</label>
<select id="logoPosition">
<option value="auto">Auto</option>
<option value="left">Left</option>
<option value="right">Right</option>
<option value="top">Top</option>
<option value="center">Center</option>
</select>
</div>
</div>
</div>
<!-- Display Tab -->
<div class="tab-content" id="tab-display">
<div class="section">
<h3 class="section-title">General Display</h3>
<div class="form-row">
<div class="form-group">
<label>Separator</label>
<input type="text" id="displaySeparator" value=": ">
</div>
<div class="form-group">
<label>Key Width</label>
<input type="number" id="keyWidth" value="auto" placeholder="auto">
</div>
</div>
<div class="form-row">
<div class="form-group">
<label>Key Type</label>
<select id="keyType">
<option value="auto">Auto</option>
<option value="name">Name</option>
<option value="icon">Icon</option>
<option value="both">Both</option>
<option value="none">None</option>
</select>
</div>
<div class="form-group">
<label>Key Padding Left</label>
<input type="number" id="keyPaddingLeft" value="0">
</div>
</div>
<div class="form-row">
<div class="checkbox-row">
<input type="checkbox" id="brightColor">
<label for="brightColor">Bright Color (Keys/Title/Logo)</label>
</div>
<div class="checkbox-row">
<input type="checkbox" id="disableLinewrap">
<label for="disableLinewrap">Disable Line Wrap</label>
</div>
<div class="checkbox-row">
<input type="checkbox" id="hideCursor">
<label for="hideCursor">Hide Cursor</label>
</div>
</div>
</div>
<div class="section">
<h3 class="section-title">Percentage Bar</h3>
<div class="form-row">
<div class="form-group">
<label>Percent Type</label>
<select id="percentType">
<option value="0">Auto</option>
<option value="1">Number</option>
<option value="2">Bar</option>
<option value="3">Both</option>
<option value="6">Bar Only</option>
<option value="9">Colored Number</option>
<option value="10">Monochrome Bar</option>
</select>
</div>
<div class="form-group">
<label>Bar Width</label>
<input type="number" id="barWidth" value="10">
</div>
</div>
<div class="form-row">
<div class="form-group">
<label>Bar Char Elapsed</label>
<input type="text" id="barCharElapsed" value="■">
</div>
<div class="form-group">
<label>Bar Char Total</label>
<input type="text" id="barCharTotal" value="-">
</div>
</div>
<div class="nested-fields">
<div class="nested-title">Percent Colors (Thresholds)</div>
<div class="form-row">
<div class="form-group">
<label>Green Threshold (%)</label>
<input type="number" id="percentGreen" value="30">
</div>
<div class="form-group">
<label>Yellow Threshold (%)</label>
<input type="number" id="percentYellow" value="70">
</div>
</div>
<div class="form-row">
<div class="form-group">
<label>Green Color</label>
<select id="percentColorGreen">
<option value="green">Green</option>
<option value="light_green">Light Green</option>
<option value="cyan">Cyan</option>
<option value="blue">Blue</option>
</select>
</div>
<div class="form-group">
<label>Yellow Color</label>
<select id="percentColorYellow">
<option value="yellow">Yellow</option>
<option value="light_yellow">Light Yellow</option>
<option value="light_red">Light Red</option>
</select>
</div>
<div class="form-group">
<label>Red Color</label>
<select id="percentColorRed">
<option value="red">Red</option>
<option value="light_red">Light Red</option>
<option value="magenta">Magenta</option>
</select>
</div>
</div>
</div>
</div>
<div class="section">
<h3 class="section-title">Temperature</h3>
<div class="form-row">
<div class="form-group">
<label>Unit</label>
<select id="tempUnit">
<option value="auto">Auto</option>
<option value="celsius">Celsius</option>
<option value="fahrenheit">Fahrenheit</option>
<option value="kelvin">Kelvin</option>
</select>
</div>
<div class="form-group">
<label>Decimal Places</label>
<input type="number" id="tempNdigits" value="1">
</div>
</div>
<div class="form-row">
<div class="form-group">
<label>Green Threshold (°C)</label>
<input type="number" id="tempGreen" value="50">
</div>
<div class="form-group">
<label>Yellow Threshold (°C)</label>
<input type="number" id="tempYellow" value="80">
</div>
</div>
</div>
<div class="section">
<h3 class="section-title">Number Formatting</h3>
<div class="form-row">
<div class="form-group">
<label>Size Decimal Places</label>
<input type="number" id="sizeNdigits" value="1">
</div>
<div class="form-group">
<label>Frequency Decimal Places</label>
<input type="number" id="freqNdigits" value="2">
</div>
<div class="form-group">
<label>Fraction Decimal Places</label>
<input type="number" id="fractionNdigits" value="2">
</div>
</div>
<div class="form-row">
<div class="form-group">
<label>Binary Prefix</label>
<select id="sizeBinaryPrefix">
<option value="auto">Auto</option>
<option value="iec">IEC (KiB, MiB)</option>
<option value="si">SI (KB, MB)</option>
<option value="jedec">JEDEC (KB, MB)</option>
</select>
</div>
<div class="form-group">
<label>Max Prefix</label>
<select id="sizeMaxPrefix">
<option value="auto">Auto</option>
<option value="kib">KiB</option>
<option value="mib">MiB</option>
<option value="gib">GiB</option>
<option value="tib">TiB</option>
</select>
</div>
</div>
</div>
</div>
<!-- Modules Tab -->
<div class="tab-content" id="tab-modules">
<div class="file-drop" id="moduleDropZone">
<p>Drag modules here to add them, or click to toggle</p>
</div>
<div class="search-box">
<input type="text" id="moduleSearch" placeholder="Search modules...">
</div>
<div class="active-modules">
<div class="active-modules-title">Active Modules (drag to reorder)</div>
<div class="active-modules-list" id="activeModulesList"></div>
</div>
<div class="module-grid" id="moduleGrid"></div>
</div>
<!-- Colors Tab -->
<div class="tab-content" id="tab-colors">
<div class="section">
<h3 class="section-title">Color Theme</h3>
<div class="color-grid">
<div class="form-group">
<label>Key Color</label>
<select id="colorKeys" class="color-select">
<option value="">Default</option>
<option value="black">Black</option>
<option value="red">Red</option>
<option value="green">Green</option>
<option value="yellow">Yellow</option>
<option value="blue">Blue</option>
<option value="magenta">Magenta</option>
<option value="cyan">Cyan</option>
<option value="white">White</option>
<option value="bright_black">Bright Black</option>
<option value="bright_red">Bright Red</option>
<option value="bright_green">Bright Green</option>
<option value="bright_yellow">Bright Yellow</option>
<option value="bright_blue">Bright Blue</option>
<option value="bright_magenta">Bright Magenta</option>
<option value="bright_cyan">Bright Cyan</option>
<option value="bright_white">Bright White</option>
</select>
</div>
<div class="form-group">
<label>Title Color</label>
<select id="colorTitle" class="color-select">
<option value="">Default</option>
<option value="black">Black</option>
<option value="red">Red</option>
<option value="green">Green</option>
<option value="yellow">Yellow</option>
<option value="blue">Blue</option>
<option value="magenta">Magenta</option>
<option value="cyan">Cyan</option>
<option value="white">White</option>
<option value="bright_black">Bright Black</option>
<option value="bright_red">Bright Red</option>
<option value="bright_green">Bright Green</option>
<option value="bright_yellow">Bright Yellow</option>
<option value="bright_blue">Bright Blue</option>
<option value="bright_magenta">Bright Magenta</option>
<option value="bright_cyan">Bright Cyan</option>
<option value="bright_white">Bright White</option>
</select>
</div>
<div class="form-group">
<label>Output Color</label>
<select id="colorOutput" class="color-select">
<option value="">Default</option>
<option value="black">Black</option>
<option value="red">Red</option>
<option value="green">Green</option>
<option value="yellow">Yellow</option>
<option value="blue">Blue</option>
<option value="magenta">Magenta</option>
<option value="cyan">Cyan</option>
<option value="white">White</option>
</select>
</div>
<div class="form-group">
<label>Separator Color</label>
<select id="colorSeparator" class="color-select">
<option value="">Default</option>
<option value="black">Black</option>
<option value="red">Red</option>
<option value="green">Green</option>
<option value="yellow">Yellow</option>
<option value="blue">Blue</option>
<option value="magenta">Magenta</option>
<option value="cyan">Cyan</option>
<option value="white">White</option>
</select>
</div>
</div>
</div>
<div class="section">
<h3 class="section-title">Presets</h3>
<div class="form-row">
<button class="btn btn-secondary" onclick="applyColorPreset('nord')">Nord</button>
<button class="btn btn-secondary" onclick="applyColorPreset('dracula')">Dracula</button>
<button class="btn btn-secondary" onclick="applyColorPreset('gruvbox')">Gruvbox</button>
<button class="btn btn-secondary" onclick="applyColorPreset('solarized')">Solarized</button>
<button class="btn btn-secondary" onclick="applyColorPreset('monokai')">Monokai</button>
</div>
</div>
</div>
<!-- General Tab -->
<div class="tab-content" id="tab-general">
<div class="section">
<h3 class="section-title">General Options</h3>
<div class="checkbox-row">
<input type="checkbox" id="threadOption" checked>
<label for="threadOption">Use Separate Threads (HTTP Requests)</label>
</div>
<div class="checkbox-row">
<input type="checkbox" id="detectVersion" checked>
<label for="detectVersion">Detect Version (Terminal, Shell, Editor)</label>
</div>
<div class="checkbox-row">
<input type="checkbox" id="showErrors">
<label for="showErrors">Show Errors</label>
</div>
<div class="checkbox-row">
<input type="checkbox" id="stat">
<label for="stat">Show Timing Statistics</label>
</div>
<div class="checkbox-row">
<input type="checkbox" id="pipe">