diff --git a/src/components/settings/Settings.svelte b/src/components/settings/Settings.svelte index 370a8092e..4b3f581ac 100644 --- a/src/components/settings/Settings.svelte +++ b/src/components/settings/Settings.svelte @@ -65,6 +65,7 @@ { value: 'gifverse', label: 'Cosmic', swatch: 'linear-gradient(#eab1d3, #baaef6 25%, #bdede6 62%, #f0febd)' }, { value: 'monero', label: 'XMR', swatch: '#ed702d' }, { value: 'cyberpunk', label: 'Neon', swatch: 'linear-gradient(#8bf2f0, #e46aad)' }, + { value: 'void', label: 'Event Horizon', swatch: 'linear-gradient(#3a3a3a, #000)' }, ]; // ── widescreen: categories of anchored blocks ── @@ -73,7 +74,7 @@ { id: 'appearance', label: 'Appearance', icon: 'palette', anchors: [ - { id: 'display', label: 'Display', icon: 'image', groups: displayGroups(shell.ws), rows: displayRows(shell.ws), keys: `theme colour color vector satoshi chatstr cosmic purple neon xmr display image types background wallpaper rich composer emoticon suggestions time suggestions countdown autocorrect send on enter return key floating player${shell.ws ? ' main menu navbar navigation pins sidebar tabs' : ' hide community rail sidebar pull tab chat list filters'}` }, + { id: 'display', label: 'Display', icon: 'image', groups: displayGroups(shell.ws), rows: displayRows(shell.ws), keys: `theme colour color vector satoshi chatstr cosmic purple neon xmr event horizon black void display image types background wallpaper rich composer emoticon suggestions time suggestions countdown autocorrect send on enter return key floating player${shell.ws ? ' main menu navbar navigation pins sidebar tabs' : ' hide community rail sidebar pull tab chat list filters'}` }, ], }, { diff --git a/src/js/settings.js b/src/js/settings.js index 23b29cf84..821a4a46a 100644 --- a/src/js/settings.js +++ b/src/js/settings.js @@ -661,7 +661,7 @@ async function selectFolder() { * @param {string} mode - The theme mode, i.e: light, dark */ function applyTheme(theme = 'vector', mode = 'dark') { - document.body.classList.remove('vector-theme', 'satoshi-theme', 'chatstr-theme', 'gifverse-theme', 'pivx-theme', 'cyberpunk-theme', 'monero-theme',); + document.body.classList.remove('vector-theme', 'satoshi-theme', 'chatstr-theme', 'gifverse-theme', 'pivx-theme', 'cyberpunk-theme', 'monero-theme', 'void-theme',); document.body.classList.add(`${theme}-theme`); domTheme.href = `/themes/${theme}/${mode}.css`; diff --git a/src/themes/void/dark.css b/src/themes/void/dark.css new file mode 100644 index 000000000..01c2f8134 --- /dev/null +++ b/src/themes/void/dark.css @@ -0,0 +1,392 @@ +:root { + --text-label: #8a8a8a; + --badge-bg: var(--accent-color); + --badge-ink: #000000; + background-color: #000000; + --voice-highlight-bg: #FFFFFF30; + --voice-highlight-text: #E6E6E6; + --voice-frequency-glow: #FFFFFF80; + --icon-color-primary: #E6E6E6; + --voice-progress-secondary: #FFFFFF40; + --reply-highlight-border: #FFFFFF; + --toast-border-color: #E6E6E6; + --primary-color: #E6E6E6; + --accent-color: #FFFFFF; +} + +.sync-line { + background-color: var(--primary-color); +} + +.popup { + background-color: #000000; + box-shadow: 0 0 15px #FFFFFF20; + border-color: var(--primary-color); +} + +.typing-indicator-text { + background: linear-gradient(to right, #f8f8f8 13.87%, var(--primary-color) 60%); + background-size: 200% 200%; + background-clip: text; +} + +.back-btn { + color: var(--primary-color); +} + +.chatlist-contact { + border-color: transparent; +} + +.chat { + background-color: inherit; +} + +.chat-messages { + background-color: #000000; + border-top-color: #1a1a1a; + border-top-style: solid; + border-top-width: 1px; + position: relative; +} + +.dmsg-reply-them { + border-left-color: var(--primary-color) !important; +} + +@keyframes highlightMessage { + 0%, 100% { background-color: rgba(255, 255, 255, 0); } + 20%, 80% { background-color: rgba(255, 255, 255, 0.08); } +} + +.image-viewer-close { + border: 1px solid var(--primary-color); +} + +.attachment-panel { + background: #000000; + border-color: #E6E6E6; +} + +.mention-selector { + background: #000000; + border-color: #E6E6E6; +} + +.mention-item.active::before { + background: #E6E6E6; +} + +.mention { + background: #FFFFFF15; + color: #E6E6E6; +} + +.mention:hover { + background: #FFFFFF25; +} + +.emoji-shortcode-selector { + background: #050505; + border-color: #E6E6E6; +} + +.emoji-shortcode-item.active::before { + background: #E6E6E6; +} + +.emoji-creator-dropzone:hover, +.emoji-creator-dropzone.is-dragover { + border-color: var(--primary-color); + color: var(--primary-color); + background-color: #FFFFFF10; +} + +.emoji-pack-creator-naming { + background: + linear-gradient(to bottom, #FFFFFF00, #FFFFFF20), + rgba(8, 8, 8, 0.82); + backdrop-filter: blur(6px); + -webkit-backdrop-filter: blur(6px); + border: 2px solid var(--primary-color); + box-shadow: 0 0 24px #FFFFFF20 inset; +} + +.emoji-pack-creator-naming-save { + background-color: #FFFFFF20; + border-color: var(--primary-color); + color: var(--primary); +} + +.emoji-pack-creator-naming-save:hover { + background-color: #FFFFFF30; +} + +.emoji-pack-creator-naming-input:focus { + background-color: #FFFFFF10; +} + +.emoji-pack-creator-cropper-ok { + background-color: #FFFFFF20; +} + +.emoji-pack-creator-cropper-ok:hover { +background-color: #FFFFFF30; +} + +.input-box { + background: #1a1a1a; + box-shadow: none; +} + +#chat-input { + background-color: #000000; +} + +input, +textarea, +button { + background-color: #111111; +} + +.corner-float { + border-color: #E6E6E6; +} + +.divider { + background-color: #474747; +} + +.new-chat-btn .icon { + background-color: var(--primary-color); +} + +.progress-bar { + background: linear-gradient(90deg, #E6E6E6 0%, #E6E6E6 80%); +} + +select { + border: 1px solid #E6E6E6; +} + +#whisper-model:focus { + box-shadow: 0 0 0 2px #FFFFFF30; +} + +#download-model { + background: var(--primary-color); +} + +#download-model:hover { + box-shadow: 0 5px 15px #FFFFFF30; +} + +.model-status { + color: var(--primary-color); +} + +.progress-bar-track { + box-shadow: + inset 0 1px 3px rgba(0, 0, 0, 0.4), + 0 0 0 1px #FFFFFF10; +} + +.progress-bar-fill { + background: linear-gradient(90deg, + #E6E6E6 0%, + #E6E6E6 80%); +} + +.progress-text { + text-shadow: 0 0 5px #FFFFFF70; +} + +.voice-progress-container { + border: 1px solid #E6E6E6; + box-shadow: 0 0 15px #FFFFFF30; +} + +.voice-progress-text { + color: #E6E6E6; +} + +input[type="checkbox"]:checked + .neon-toggle { + background: var(--primary-color); + box-shadow: + inset 0 1px 3px rgba(0, 0, 0, 0.3); +} + +.neon-toggle:hover { + box-shadow: + 0 0 4px #b2b2b2, + inset 0 1px 3px rgba(0, 0, 0, 0.3); +} + +input[type="checkbox"]:checked + .neon-toggle:hover { + box-shadow: + inset 0 1px 3px rgba(0, 0, 0, 0.3); +} + +#theme-select:focus { + box-shadow: 0 0 0 2px #FFFFFF30; +} + +.icon-trash { + background-color: #E6E6E6; +} + +select:disabled { + border-color: #FFFFFF60; +} + +.nav-icon { + background-color: #E6E6E6; +} + +/* Default style */ + +.transcribe-progress-fill { + background: var(--primary-color); +} + +.transcribe-progress-text { + color: #fff; +} + +/* Update Settings Section Styles */ +#current-version, +#new-version { + color: #E6E6E6; +} + +.accept-btn { + background: #FFFFFF10; + border: 1px solid #E6E6E6; + color: #ffffff; +} + +.accept-btn:hover:not(:disabled) { + background: #FFFFFF50; + border-color: #E6E6E6; + color: #ffffff; +} + +#update-status-text { + color: rgba(255, 255, 255, 0.8); +} + +#update-progress-bar { + background: linear-gradient(90deg, #E6E6E6 0%, #E6E6E6 100%); + box-shadow: 0 0 10px #FFFFFF40; +} + +#download-update-btn, +#restart-update-btn { + color: #000; + border: none; + box-shadow: 0 4px 12px #FFFFFF30; +} + +#changelog-content { + background: rgba(0, 0, 0, 0.3); + border: 1px solid #FFFFFF20; + color: rgba(255, 255, 255, 0.8); +} + +#popupConfirm { + background-color: #E6E6E6; + color: #ffffff; +} + +/* File Preview Overlay Theme */ +.file-preview-container { + border-color: var(--primary-color); + background: #050505; +} + +.file-preview-icon-container { + background: #FFFFFF10; + border: 2px solid #FFFFFF20; +} + +.file-preview-icon { + background-color: #E6E6E6; +} + +.file-preview-option { + background: #111111; + border: 1px solid #47474750; +} + +.file-preview-btn-send { + background: #E6E6E6; + color: #ffffff; +} + +.file-preview-btn-send:hover { + opacity: 0.9; +} + +/* File Preview Publish Button */ +.file-preview-btn-publish { + background: linear-gradient(90deg, #e6e6e6 0%, #9a9a9a 100%); + color: #000; +} + +.file-preview-btn-publish .icon { + background-color: #000; +} + +.file-preview-btn-publish:hover { + box-shadow: 0 4px 16px #FFFFFF40; +} + +/* Relay Add Button */ +.relay-add-btn { + background: #FFFFFF25; + border: 1px solid #E6E6E6; + color: #E6E6E6; +} + +.relay-add-btn:hover { + background: #FFFFFF50; + border-color: #E6E6E6; + color: #E6E6E6; +} + +/* Relay Dialog */ + +.relay-form-input:focus, +.relay-form-select:focus { + border-color: #E6E6E6; +} + +.relay-dialog-buttons .primary-btn { + background-color: #E6E6E6; + color: #000; +} + +.relay-metric-value { + color: #E6E6E6; +} + +.relay-dialog .relay-form-select { + border: 1px solid #262626; +} + +.profile-switcher-active-dot { + background: var(--primary-color); +} + +.profile-switcher-add { + color: var(--primary-color); +} +/* The rail's edge bars: dim grey for unread, pure white for a ping, so the two never blur together. + The extra class outweighs widescreen.css, which loads after the theme. */ +body.void-theme:is(.ws, .cc) #ws-rail-spaces .ws-rail-item.has-unread::before { + background-color: #5c5c5c; +} + +body.void-theme:is(.ws, .cc) #ws-rail-spaces .ws-rail-item.has-ping::before { + background-color: #FFFFFF; +}