Download
136 lines 2.5 KiBCSSModified 2026-08-01 raw
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
/* Settings window styling — same palette as the bar. */

:root {
  color-scheme: dark;
  --bg: #14161c;
  --panel: #1c1f28;
  --panel-hover: #232734;
  --fg: #e6e9ef;
  --fg-dim: #9aa3b2;
  --accent: #7aa2f7;
  --critical: #f7768e;
  --border: rgba(255, 255, 255, 0.09);
  --font: "Inter", "Cantarell", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;

  /* Theme the shared settings form (src/lib/settings-form.js) for this
     window's solid-panel look; the form's own defaults are the bar's
     glass palette. */
  --form-label: var(--fg);
  --form-fg: var(--fg);
  --form-fg-dim: var(--fg-dim);
  --form-border: var(--border);
  --form-control-bg: var(--bg);
  --form-option-bg: var(--panel);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 21px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  user-select: none;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

h1 {
  font-size: 22px;
  font-weight: 600;
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

#status {
  font-size: 18px;
  color: var(--fg-dim);
  transition: opacity 300ms ease;
}

#status.ok    { color: #9ece6a; }
#status.error { color: var(--critical); }

button {
  font: inherit;
  font-size: 20px;
  color: var(--fg);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
}

button:hover {
  background: var(--panel-hover);
}

.close-btn {
  padding: 5px 12px;
  font-weight: 600;
}

.close-btn:hover {
  color: var(--critical);
  border-color: var(--critical);
  background: rgba(247, 118, 142, 0.12);
}

main {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

section > h2 {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--fg-dim);
  margin-bottom: 8px;
}

/* --- Section panels -------------------------------------------------------- */

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.panel .hint {
  color: var(--fg-dim);
  font-size: 19px;
}

/* Form rows and controls come from src/lib/settings-form.js, themed by
   the --form-* variables set on :root above. */