glad-web 1.0.41 → 1.0.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -142,13 +142,7 @@
142
142
  #cmd-input { flex: 1; min-height: 38px; max-height: 150px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); border-radius: 19px; color: #fff; padding: 9px 16px; font-size: 16px; outline: none; resize: none; overflow-y: auto; line-height: 20px; box-sizing: border-box; transition: background 0.18s ease, border-color 0.18s ease; }
143
143
  #cmd-input::placeholder { color: rgba(255,255,255,0.45); }
144
144
  #cmd-input:focus { background: rgba(255,255,255,0.1); border-color: rgba(0,122,255,0.42); color: #fff; }
145
- #timer-btn { width: 38px; height: 38px; margin-left: 8px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); border-radius: 19px; color: #d1d5db; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; font-size: 24px; line-height: 1; }
146
- #timer-btn.active { color: #fff; border-color: rgba(0,122,255,0.45); background: rgba(0,122,255,0.22); }
147
145
  #send-btn { width: 44px; height: 38px; margin-left: 10px; background: #007aff; border: none; border-radius: 19px; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }
148
- #composer-menu { display: none; width: min(calc(100% - 28px), var(--control-content-max)); margin: -2px auto 8px auto; padding: 6px; border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; background: rgba(38,38,42,0.98); box-shadow: 0 12px 28px rgba(0,0,0,0.28); box-sizing: border-box; }
149
- #composer-menu.active { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
150
- .composer-menu-btn { min-height: 42px; border: 0; border-radius: 9px; background: rgba(255,255,255,0.08); color: #fff; font-size: 14px; font-weight: 650; cursor: pointer; }
151
- .composer-menu-btn:hover { background: rgba(255,255,255,0.14); }
152
146
  #attachment-strip { display: none; width: min(calc(100% - 28px), var(--control-content-max)); margin: -3px auto 2px auto; gap: 7px; overflow-x: auto; padding: 0 0 4px 0; box-sizing: border-box; scrollbar-width: none; }
153
147
  #attachment-strip.active { display: flex; }
154
148
  #attachment-strip::-webkit-scrollbar { display: none; }
@@ -539,3 +533,278 @@
539
533
  :root { --chat-content-max: 960px; --control-content-max: 1100px; }
540
534
  #codex-chat-container { padding: 18px 22px 34px; }
541
535
  }
536
+
537
+ /* Responsive application shell, bottom composer, and color themes. */
538
+ :root {
539
+ --sidebar-w: 348px;
540
+ --surface: #121212;
541
+ --surface-raised: #1c1c1e;
542
+ --surface-soft: rgba(255,255,255,.08);
543
+ --line: rgba(255,255,255,.10);
544
+ --chat-bg: #050505;
545
+ --input-bg: rgba(255,255,255,.08);
546
+ --input-fg: #ffffff;
547
+ --input-placeholder: rgba(255,255,255,.45);
548
+ --overlay-bg: rgba(0,0,0,.80);
549
+ color-scheme: dark;
550
+ }
551
+
552
+ html[data-theme="light"] {
553
+ --bg: #f5f6f8;
554
+ --card-bg: #ffffff;
555
+ --text: #172033;
556
+ --text-dim: #667085;
557
+ --surface: #ffffff;
558
+ --surface-raised: #ffffff;
559
+ --surface-soft: rgba(15,23,42,.055);
560
+ --line: rgba(15,23,42,.11);
561
+ --chat-bg: #ffffff;
562
+ --input-bg: #f2f4f7;
563
+ --input-fg: #172033;
564
+ --input-placeholder: #8a94a6;
565
+ --overlay-bg: rgba(15,23,42,.45);
566
+ color-scheme: light;
567
+ }
568
+
569
+ html[data-theme="dark"] { color-scheme: dark; }
570
+
571
+ .app-icon-sprite { position: fixed; width: 0; height: 0; overflow: hidden; pointer-events: none; }
572
+ .action-icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
573
+ .action-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
574
+
575
+ #app-shell { display: flex; width: 100%; height: 100%; min-height: 0; overflow: hidden; background: var(--bg); }
576
+ #detail-pane { position: relative; display: flex; min-width: 0; min-height: 0; flex: 1; overflow: hidden; background: var(--bg); }
577
+ #detail-pane > .view { min-width: 0; min-height: 0; }
578
+ #detail-empty { display: none; flex: 1; flex-direction: column; align-items: center; justify-content: center; padding: 32px; color: var(--text-dim); text-align: center; }
579
+ #detail-empty img { width: 72px; height: 72px; margin-bottom: 14px; opacity: .72; }
580
+ #detail-empty h2 { margin: 0; color: var(--text); font-size: 20px; }
581
+ #detail-empty p { max-width: 360px; margin: 8px 0 0; font-size: 13px; line-height: 1.5; }
582
+ #sidebar-resizer { display: none; }
583
+
584
+ #terminal-view.active { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
585
+ #top-ui { display: contents; }
586
+ #nav-bar { grid-row: 1; z-index: 20; padding-top: max(8px, env(safe-area-inset-top)); background: var(--surface); border-color: var(--line); }
587
+ #terminal-controls { position: relative; inset: auto; grid-row: 3; z-index: 30; max-height: min(62dvh, 620px); overflow-y: auto; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); border-bottom: 0; background: color-mix(in srgb, var(--surface) 96%, transparent); box-shadow: 0 -10px 28px rgba(0,0,0,.12); }
588
+ #terminal-controls-spacer { display: none; }
589
+ #terminal-container, #claude-chat-container, #codex-chat-container { grid-row: 2; min-width: 0; min-height: 0; background: var(--chat-bg); }
590
+ #input-row { padding-top: 10px; padding-bottom: 7px; }
591
+ #cmd-input { width: 100%; min-height: 42px; border-color: var(--line); background: var(--input-bg); color: var(--input-fg); }
592
+ #cmd-input::placeholder { color: var(--input-placeholder); }
593
+ #cmd-input:focus { color: var(--input-fg); }
594
+ #send-btn { position: absolute; z-index: 5; bottom: calc(10px + env(safe-area-inset-bottom)); margin: 0; }
595
+ .composer-action-btn { position: relative; width: 40px; min-width: 40px; height: 40px; flex: 0 0 40px; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); color: var(--text-dim); display: flex; align-items: center; justify-content: center; cursor: pointer; }
596
+ .composer-action-btn:hover { color: var(--text); }
597
+ .composer-action-btn.active { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 48%, transparent); background: color-mix(in srgb, var(--primary) 14%, var(--surface)); }
598
+ #send-btn { right: max(12px, calc((100% - var(--control-content-max)) / 2 + 14px)); width: 44px; height: 40px; }
599
+ #claude-control-panel, #codex-control-panel { position: relative; flex-direction: column; width: min(100%, var(--control-content-max)); padding: 0 14px 10px; border: 0; background: transparent; }
600
+ .claude-control-rail, .codex-control-rail { order: 100; min-height: 40px; gap: 7px; margin: 0 58px 0 0; padding: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: none; scroll-padding: 0; }
601
+ .claude-control-page, .claude-control-page.secondary, .codex-control-page { display: flex; width: auto; flex: 0 0 auto; gap: 7px; justify-content: flex-start; scroll-snap-align: none; }
602
+ .claude-control-page > *, .codex-control-page > * { width: 40px; min-width: 40px; height: 40px; flex: 0 0 40px; }
603
+ .claude-control-page .claude-ctrl-btn, .claude-control-page .claude-select, .codex-control-page .claude-ctrl-btn, .codex-control-page .codex-select-label,
604
+ .claude-select, .claude-ctrl-btn, .codex-select-control, .codex-select-label { width: 40px; height: 40px; padding: 0; border-radius: 12px; font-size: 0; }
605
+ .claude-picker-btn, .claude-ctrl-btn, .codex-select-label { position: relative; display: inline-flex; align-items: center; justify-content: center; }
606
+ #claude-state-bar, #codex-state-bar { order: 10; }
607
+ #claude-picker-panel, #claude-resume-panel, #claude-fork-panel,
608
+ #codex-model-panel, #codex-resume-panel, #codex-fork-panel, #codex-prompt-panel, #codex-skill-panel { order: 20; }
609
+ #shortcut-rail { width: min(100%, var(--control-content-max)); min-height: 40px; gap: 7px; margin: 0 auto; padding: 0 66px 10px 14px; scroll-snap-type: none; scroll-padding: 0; }
610
+ .shortcut-group { display: contents; }
611
+ .shortcut-group .key-btn, .shortcut-group .command-key { width: auto; min-width: 48px; height: 40px; padding: 0 10px; flex: 0 0 auto; }
612
+ #attachment-strip { border-color: var(--line); background: var(--surface-raised); }
613
+ #timed-send-panel { margin-bottom: 8px; border-color: var(--line); background: var(--surface-raised); }
614
+ #timed-tag-rail { top: auto; bottom: calc(100% + 6px); }
615
+ #scroll-controls { position: absolute; }
616
+
617
+ .theme-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
618
+ .theme-choice button { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); color: var(--text); font-size: 13px; font-weight: 700; cursor: pointer; }
619
+ .theme-choice button[aria-pressed="true"] { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 18%, transparent); }
620
+ .theme-swatch { width: 18px; height: 18px; border: 1px solid rgba(127,127,127,.35); border-radius: 50%; }
621
+ .theme-swatch.light { background: #fff; }
622
+ .theme-swatch.dark { background: #1c1c1e; }
623
+ .settings-theme-help { margin: 8px 0 0; color: var(--text-dim); font-size: 11px; }
624
+
625
+ @media (min-width: 920px) {
626
+ #lobby-view { display: flex !important; width: min(var(--sidebar-w), calc(100vw - 484px)); flex: 0 0 min(var(--sidebar-w), calc(100vw - 484px)); border-right: 1px solid var(--line); background: var(--bg); }
627
+ #lobby { width: 100%; padding: 18px 14px; }
628
+ #lobby-view .header { margin-bottom: 18px; }
629
+ #lobby-view .header h1 { font-size: 23px; }
630
+ #lobby-view .header-action-btn:not(.icon-only) { width: 36px; padding: 0; font-size: 0; }
631
+ #lobby-view .header-action-btn:not(.icon-only) span:first-child { font-size: 20px; }
632
+ #sidebar-resizer { display: block; width: 4px; flex: 0 0 4px; cursor: col-resize; background: var(--line); touch-action: none; transition: background .15s; }
633
+ #sidebar-resizer:hover, #sidebar-resizer.dragging { background: var(--primary); }
634
+ #detail-pane:not(:has(.view.active)) #detail-empty { display: flex; }
635
+ #back-btn, .usage-nav-button { visibility: hidden; pointer-events: none; }
636
+ .session-card.selected { border: 1px solid color-mix(in srgb, var(--primary) 48%, transparent); background: color-mix(in srgb, var(--primary) 10%, var(--card-bg)); }
637
+ }
638
+
639
+ @media (max-width: 919px) {
640
+ #lobby-view { flex: 1; }
641
+ #detail-pane { display: contents; }
642
+ #detail-empty { display: none !important; }
643
+ }
644
+
645
+ /* Light palette overrides for legacy selectors that still carry dark literals. */
646
+ html[data-theme="light"] body,
647
+ html[data-theme="light"] #terminal-view,
648
+ html[data-theme="light"] #terminal-container,
649
+ html[data-theme="light"] #git-content,
650
+ html[data-theme="light"] #usage-view { background: var(--bg) !important; color: var(--text); }
651
+ html[data-theme="light"] #top-ui,
652
+ html[data-theme="light"] #nav-bar,
653
+ html[data-theme="light"] .usage-nav,
654
+ html[data-theme="light"] #codex-control-panel { background: var(--surface) !important; border-color: var(--line) !important; }
655
+ html[data-theme="light"] .session-card,
656
+ html[data-theme="light"] .schedule-card,
657
+ html[data-theme="light"] .usage-panel,
658
+ html[data-theme="light"] .usage-summary-card,
659
+ html[data-theme="light"] #tool-modal,
660
+ html[data-theme="light"] #settings-modal,
661
+ html[data-theme="light"] #usage-source-modal,
662
+ html[data-theme="light"] #schedule-modal,
663
+ html[data-theme="light"] #claude-picker-panel,
664
+ html[data-theme="light"] #claude-resume-panel,
665
+ html[data-theme="light"] #claude-fork-panel,
666
+ html[data-theme="light"] #codex-model-panel,
667
+ html[data-theme="light"] #codex-resume-panel,
668
+ html[data-theme="light"] #codex-fork-panel,
669
+ html[data-theme="light"] #codex-prompt-panel,
670
+ html[data-theme="light"] #codex-skill-panel { background: var(--card-bg) !important; border-color: var(--line) !important; color: var(--text) !important; }
671
+ html[data-theme="light"] #modal-overlay,
672
+ html[data-theme="light"] #settings-modal-overlay,
673
+ html[data-theme="light"] #usage-source-overlay { background: var(--overlay-bg); }
674
+ html[data-theme="light"] #claude-chat-container,
675
+ html[data-theme="light"] #codex-chat-container,
676
+ html[data-theme="light"] #history-content { background: var(--chat-bg); color: var(--text); }
677
+ html[data-theme="light"] .history-meta { background: #f0f2f5; border-color: var(--line); }
678
+ html[data-theme="light"] .claude-message.assistant,
679
+ html[data-theme="light"] .codex-message,
680
+ html[data-theme="light"] .claude-tool strong,
681
+ html[data-theme="light"] .claude-tool-header,
682
+ html[data-theme="light"] .claude-picker-option,
683
+ html[data-theme="light"] .codex-picker-option,
684
+ html[data-theme="light"] .claude-resume-item,
685
+ html[data-theme="light"] .codex-prompt-text,
686
+ html[data-theme="light"] .usage-nav-title strong { color: var(--text); }
687
+ html[data-theme="light"] .claude-tool,
688
+ html[data-theme="light"] .claude-work-group,
689
+ html[data-theme="light"] .codex-work-group { border-color: var(--line); background: rgba(15,23,42,.035); color: #344054; }
690
+ html[data-theme="light"] .claude-tool-code,
691
+ html[data-theme="light"] .claude-md pre { background: #f4f6f8; color: #27364a; border-color: var(--line); }
692
+ html[data-theme="light"] .claude-select,
693
+ html[data-theme="light"] .claude-ctrl-btn,
694
+ html[data-theme="light"] .codex-select-label,
695
+ html[data-theme="light"] .composer-action-btn,
696
+ html[data-theme="light"] .key-btn,
697
+ html[data-theme="light"] .command-key,
698
+ html[data-theme="light"] .small-btn { border-color: var(--line); background: var(--surface-soft); color: var(--text); }
699
+ html[data-theme="light"] .claude-ctrl-btn.primary { color: #065fbd; background: rgba(0,122,255,.11); }
700
+ html[data-theme="light"] .claude-ctrl-btn.danger,
701
+ html[data-theme="light"] .small-btn.danger { color: #d92d20; background: rgba(217,45,32,.09); }
702
+ html[data-theme="light"] #settings-modal input,
703
+ html[data-theme="light"] #settings-modal select,
704
+ html[data-theme="light"] .form-field input,
705
+ html[data-theme="light"] .form-field select,
706
+ html[data-theme="light"] .form-field textarea,
707
+ html[data-theme="light"] #cwd-field { background: #f2f4f7 !important; border-color: var(--line) !important; color: var(--text) !important; }
708
+ html[data-theme="light"] .tab-bar,
709
+ html[data-theme="light"] .list-item { border-color: var(--line); }
710
+ html[data-theme="light"] .copy-dir-btn,
711
+ html[data-theme="light"] .serverchan-toggle { border-color: var(--line); background: var(--surface-soft); }
712
+
713
+ /* Light theme refinement: stronger hierarchy and readable provider surfaces. */
714
+ html[data-theme="light"] #lobby-view { background: #f0f2f5; }
715
+ html[data-theme="light"] .lobby-tabs { border: 1px solid #e0e5ec; box-shadow: 0 1px 2px rgba(15,23,42,.03); }
716
+ html[data-theme="light"] .session-card,
717
+ html[data-theme="light"] .schedule-card { border: 1px solid #e0e5ec; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
718
+ html[data-theme="light"] .session-card.selected { border-color: #8fc5ff; background: #eaf4ff; box-shadow: 0 0 0 1px rgba(0,122,255,.08); }
719
+ html[data-theme="light"] .btn-join { background: #e8f2ff; color: #006acb; }
720
+ html[data-theme="light"] .weekday-btn { border-color: #d7dde7; background: #f7f8fa; color: #475467; }
721
+ html[data-theme="light"] .weekday-btn.active { border-color: #007aff; background: #007aff; color: #fff; }
722
+ html[data-theme="light"] .step-card { border-color: #dde2ea; background: #f7f8fa; }
723
+ html[data-theme="light"] .small-btn.primary { border-color: #007aff; background: #007aff; color: #fff; }
724
+
725
+ html[data-theme="light"] .claude-message.user,
726
+ html[data-theme="light"] .codex-message.user { border-color: #b8d9fb; background: #e8f3ff; color: #173b61; }
727
+ html[data-theme="light"] .claude-message-attachment { border-color: #c7d9ec; background: rgba(255,255,255,.68); color: #344054; }
728
+ html[data-theme="light"] .claude-md code { border-color: #d9dee7; background: #eef1f5; color: #24364b; }
729
+ html[data-theme="light"] .claude-md blockquote { border-left-color: #aeb8c6; color: #475467; }
730
+ html[data-theme="light"] .claude-md th,
731
+ html[data-theme="light"] .claude-md td { border-color: #d9dee7; }
732
+ html[data-theme="light"] .claude-md th { background: #eef1f5; color: #172033; }
733
+ html[data-theme="light"] .claude-command-chip { border-color: #d9dee7; background: #f2f4f7; color: #27364a; }
734
+ html[data-theme="light"] .claude-picker-option-value { color: #667085; }
735
+ html[data-theme="light"] .claude-picker-column + .claude-picker-column,
736
+ html[data-theme="light"] .codex-picker-column + .codex-picker-column { border-color: #dfe4eb; }
737
+ html[data-theme="light"] .claude-picker-option.selected,
738
+ html[data-theme="light"] .codex-picker-option.selected { background: #dcecff; color: #075fae; }
739
+
740
+ html[data-theme="light"] .codex-status-card { border-color: #cfe0ef; background: #f5f9fc; color: #172033; box-shadow: 0 1px 2px rgba(15,23,42,.03); }
741
+ html[data-theme="light"] .codex-status-title { color: #0070c9; }
742
+ html[data-theme="light"] .codex-status-item { border-color: #dbe3eb; background: #fff; }
743
+ html[data-theme="light"] .codex-status-label { color: #667085; }
744
+ html[data-theme="light"] .codex-status-value { color: #24364b; }
745
+ html[data-theme="light"] .codex-warning-card { border-color: #f2cc60; background: #fff8df; color: #5e4300; }
746
+ html[data-theme="light"] .codex-warning-icon { background: #ffefb3; color: #9a6700; }
747
+ html[data-theme="light"] .codex-warning-title { color: #7a5200; }
748
+ html[data-theme="light"] .codex-warning-text { color: #725d28; }
749
+ html[data-theme="light"] .codex-compaction-card { border-color: #d9c4ef; background: #f7f0ff; color: #3f2a56; }
750
+ html[data-theme="light"] .codex-compaction-meta { color: #725d86; }
751
+ html[data-theme="light"] .codex-context-meter { --context-color: #168447; border-color: #69c98a; background: #effaf3; color: #125f34; }
752
+ html[data-theme="light"] .codex-context-meter::before { background: #bcebc9; }
753
+ html[data-theme="light"] .codex-context-meter.warn { --context-color: #a66f00; border-color: #e0b53e; background: #fff9df; color: #715000; }
754
+ html[data-theme="light"] .codex-context-meter.warn::before { background: #ffe59a; }
755
+ html[data-theme="light"] .codex-context-meter.danger { --context-color: #b53b33; border-color: #e58d86; background: #fff1f0; color: #8f2d27; }
756
+ html[data-theme="light"] .codex-context-meter.danger::before { background: #fac5c1; }
757
+
758
+ html[data-theme="light"] .codex-tool { border-color: #dbe1e8; background: #f7f9fb; color: #344054; }
759
+ html[data-theme="light"] .codex-tool-title,
760
+ html[data-theme="light"] .codex-inline-permission-title,
761
+ html[data-theme="light"] .claude-edit-file > summary,
762
+ html[data-theme="light"] .codex-patch-file > summary { color: #24364b; }
763
+ html[data-theme="light"] .codex-tool-icon,
764
+ html[data-theme="light"] .codex-tool-command,
765
+ html[data-theme="light"] .codex-tool-code,
766
+ html[data-theme="light"] .codex-work-group > summary,
767
+ html[data-theme="light"] .codex-subagent-message { color: #526174; }
768
+ html[data-theme="light"] .codex-tool-body,
769
+ html[data-theme="light"] .codex-patch-file,
770
+ html[data-theme="light"] .claude-edit-body { border-color: #dbe1e8; }
771
+ html[data-theme="light"] .codex-work-group { border-left-color: #cbd3dd; background: transparent; }
772
+ html[data-theme="light"] .codex-subagent-message { border-left-color: #cbd3dd; }
773
+ html[data-theme="light"] .codex-diff { border-color: #d9dee7; background: #f7f8fa; }
774
+ html[data-theme="light"] .codex-diff-line { color: #344054; }
775
+ html[data-theme="light"] .codex-diff-line.add { color: #176b3a; background: #dff4e7; }
776
+ html[data-theme="light"] .codex-diff-line.del { color: #a12b24; background: #fde5e3; }
777
+ html[data-theme="light"] .codex-diff-line.hunk { color: #075fae; background: #e6f2ff; }
778
+ html[data-theme="light"] .claude-permission,
779
+ html[data-theme="light"] .codex-inline-permission { border-color: #edc84f; background: #fff6cf; }
780
+ html[data-theme="light"] .claude-inline-permission-title { color: #795500; }
781
+ html[data-theme="light"] .codex-permission-result { color: #725d28; }
782
+
783
+ html[data-theme="light"] .codex-skill-header,
784
+ html[data-theme="light"] .codex-prompt-header { border-color: #dce2ea; background: #f3f6f9; color: #344054; }
785
+ html[data-theme="light"] .codex-skill-search { border-color: #cbd3dd; background: #fff; color: #172033; }
786
+ html[data-theme="light"] .codex-skill-search::placeholder { color: #8a94a6; }
787
+ html[data-theme="light"] .codex-skill-search:focus { border-color: #007aff; background: #fff; }
788
+ html[data-theme="light"] .codex-skill-section + .codex-skill-section,
789
+ html[data-theme="light"] .codex-prompt-item { border-color: #e1e5eb; }
790
+ html[data-theme="light"] .codex-skill-section-title { background: #e9edf2; color: #475467; }
791
+ html[data-theme="light"] .codex-skill-item { border-color: #e5e9ef; background: #fff; color: #172033; }
792
+ html[data-theme="light"] .codex-skill-item:hover { background: #f7f9fb; }
793
+ html[data-theme="light"] .codex-skill-item.selected { background: #e6f2ff; }
794
+ html[data-theme="light"] .codex-skill-source { border-color: #99c8f7; background: #e8f3ff; color: #006acb; }
795
+ html[data-theme="light"] .codex-skill-description { color: #667085; }
796
+ html[data-theme="light"] .codex-skill-directory { border-color: #d9dee7; background: #f2f4f7; color: #667085; }
797
+ html[data-theme="light"] .codex-prompt-time { color: #667085; }
798
+
799
+ html[data-theme="light"] .usage-period-picker select { border-color: #d9dee7; color: #172033; }
800
+ html[data-theme="light"] .usage-summary-card,
801
+ html[data-theme="light"] .usage-panel { border-color: #dfe4eb; box-shadow: 0 1px 2px rgba(15,23,42,.025); }
802
+ html[data-theme="light"] .usage-summary-card .value,
803
+ html[data-theme="light"] .usage-table tfoot td { color: #172033; }
804
+ html[data-theme="light"] .usage-summary-card .exact,
805
+ html[data-theme="light"] .usage-chart-label,
806
+ html[data-theme="light"] .usage-chart-total,
807
+ html[data-theme="light"] .usage-pricing-note { color: #667085; }
808
+ html[data-theme="light"] .usage-chart-track { background: #e9edf2; }
809
+ html[data-theme="light"] .usage-table th { border-color: #dfe4eb; color: #667085; }
810
+ html[data-theme="light"] .usage-table td { border-color: #edf0f3; color: #344054; }
@@ -0,0 +1,60 @@
1
+ const GLAD_THEME_KEY = 'glad-theme';
2
+
3
+ function getGladTheme() {
4
+ const stored = localStorage.getItem(GLAD_THEME_KEY);
5
+ if (stored === 'light' || stored === 'dark') return stored;
6
+ return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
7
+ }
8
+
9
+ function getGladTerminalTheme(theme = getGladTheme()) {
10
+ return theme === 'light'
11
+ ? {
12
+ background: '#ffffff', foreground: '#172033', cursor: '#007aff',
13
+ selectionBackground: 'rgba(0, 122, 255, 0.22)', black: '#172033', white: '#f5f6f8',
14
+ brightBlack: '#667085', brightWhite: '#ffffff'
15
+ }
16
+ : {
17
+ background: '#000000', foreground: '#ffffff', cursor: '#34c759',
18
+ selectionBackground: 'rgba(0, 122, 255, 0.32)'
19
+ };
20
+ }
21
+
22
+ function syncGladThemeControls(theme = getGladTheme()) {
23
+ ['light', 'dark'].forEach(value => {
24
+ const button = document.getElementById(`theme-${value}-btn`);
25
+ if (button) button.setAttribute('aria-pressed', String(value === theme));
26
+ });
27
+ }
28
+
29
+ function applyGladTheme(theme, options = {}) {
30
+ const resolved = theme === 'light' ? 'light' : 'dark';
31
+ document.documentElement.dataset.theme = resolved;
32
+ document.documentElement.style.removeProperty('background-color');
33
+ const meta = document.querySelector('meta[name="theme-color"]');
34
+ if (meta) meta.content = resolved === 'light' ? '#f5f6f8' : '#000000';
35
+ syncGladThemeControls(resolved);
36
+ try {
37
+ if (typeof term !== 'undefined' && term) {
38
+ term.options.theme = getGladTerminalTheme(resolved);
39
+ term.refresh(0, Math.max(0, term.rows - 1));
40
+ }
41
+ } catch (_) {}
42
+ if (!options.silent) window.dispatchEvent(new CustomEvent('glad-theme-change', { detail: resolved }));
43
+ }
44
+
45
+ function setGladTheme(theme) {
46
+ if (theme !== 'light' && theme !== 'dark') return;
47
+ localStorage.setItem(GLAD_THEME_KEY, theme);
48
+ applyGladTheme(theme);
49
+ }
50
+
51
+ applyGladTheme(getGladTheme(), { silent: true });
52
+
53
+ const gladSystemTheme = window.matchMedia('(prefers-color-scheme: dark)');
54
+ gladSystemTheme.addEventListener('change', () => {
55
+ if (!localStorage.getItem(GLAD_THEME_KEY)) applyGladTheme(getGladTheme());
56
+ });
57
+ window.addEventListener('storage', event => {
58
+ if (event.key === GLAD_THEME_KEY) applyGladTheme(getGladTheme());
59
+ });
60
+ document.addEventListener('DOMContentLoaded', () => syncGladThemeControls());
@@ -115,7 +115,6 @@
115
115
  function editTimedInput(id) {
116
116
  const item = timedInputs.find(value => value.id === id);
117
117
  if (!item) return;
118
- closeComposerMenu();
119
118
  initTimedDelaySelectors();
120
119
  editingTimedInputId = id;
121
120
  inputEl.value = item.text || '';
@@ -173,19 +172,13 @@
173
172
  }
174
173
 
175
174
  document.getElementById('send-btn').addEventListener('click', performSend);
176
- document.getElementById('timer-btn').addEventListener('click', () => {
177
- const menu = document.getElementById('composer-menu');
178
- const willOpen = !menu.classList.contains('active');
179
- document.getElementById('timed-send-panel').classList.remove('active');
180
- menu.classList.toggle('active', willOpen);
181
- syncComposerButtonState();
182
- updateTerminalControlsHeight();
183
- });
184
175
  document.getElementById('attach-image-btn').addEventListener('click', () => {
185
- closeComposerMenu();
186
176
  imageFileInput.click();
187
177
  });
188
- document.getElementById('schedule-send-btn').addEventListener('click', openTimedSendPanel);
178
+ document.getElementById('schedule-send-btn').addEventListener('click', () => {
179
+ if (document.getElementById('timed-send-panel').classList.contains('active')) closeTimedSendPanel();
180
+ else openTimedSendPanel();
181
+ });
189
182
  imageFileInput.addEventListener('change', () => {
190
183
  const files = imageFileInput.files;
191
184
  if (files?.length) void uploadImageFiles(files);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glad-web",
3
- "version": "1.0.41",
3
+ "version": "1.0.44",
4
4
  "description": "Glad transforms terminal-based AI coding tools into a polished, mobile-friendly local Web interface.",
5
5
  "bin": {
6
6
  "glad": "bin/cli.js"