diff --git a/api_v1_messages.php b/api_v1_messages.php index 9d54e6b..2a9c73a 100644 --- a/api_v1_messages.php +++ b/api_v1_messages.php @@ -184,7 +184,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'PUT') { $metadata = json_encode([ 'is_manual_announcement' => true, 'title' => $data['ann_title'] ?? '', - 'color' => $data['ann_color'] ?? '#5865f2', + 'color' => $data['ann_color'] ?? '#3c6f7c', 'description' => $content, 'url' => $data['ann_link'] ?? '' ]); @@ -218,7 +218,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'PUT') { 'poll_choice_type' => ($data['allow_multiple'] ?? '0') == '1' ? 'multiple' : 'single', 'is_anonymous' => ($data['is_anonymous'] ?? '0') == '1', 'poll_end_date' => $end_date, - 'poll_color' => $data['poll_color'] ?? '#5865f2' + 'poll_color' => $data['poll_color'] ?? '#3c6f7c' ]); } @@ -350,7 +350,7 @@ if (isset($_POST['is_announcement']) && $_POST['is_announcement'] == '1') { $metadata = json_encode([ 'is_manual_announcement' => true, 'title' => $_POST['ann_title'] ?? '', - 'color' => $_POST['ann_color'] ?? '#5865f2', + 'color' => $_POST['ann_color'] ?? '#3c6f7c', 'description' => $content, 'url' => $_POST['ann_link'] ?? '' ]); @@ -375,7 +375,7 @@ if (isset($_POST['is_announcement']) && $_POST['is_announcement'] == '1') { 'poll_choice_type' => ($_POST['allow_multiple'] ?? '0') == '1' ? 'multiple' : 'single', 'is_anonymous' => ($_POST['is_anonymous'] ?? '0') == '1', 'poll_end_date' => $end_date, - 'poll_color' => $_POST['poll_color'] ?? '#5865f2' + 'poll_color' => $_POST['poll_color'] ?? '#3c6f7c' ]); } elseif (!empty($content)) { $urls = extractUrls($content); diff --git a/assets/css/discord.css b/assets/css/corvara.css similarity index 98% rename from assets/css/discord.css rename to assets/css/corvara.css index f2a34b5..f6aa154 100644 --- a/assets/css/discord.css +++ b/assets/css/corvara.css @@ -5,7 +5,7 @@ --bg-members: #2b2d31; --text-primary: #dbdee1; --text-muted: #949ba4; - --blurple: #5865f2; + --blurple: #3c6f7c; --hover: #35373c; --active: #3f4147; --separator: rgba(255,255,255,0.1); @@ -296,7 +296,7 @@ body { overflow: hidden; } -.discord-app { +.corvara-app { display: flex; height: 100vh; width: 100vw; @@ -520,7 +520,7 @@ body { .form-control:focus { background-color: var(--bg-servers); color: var(--text-primary); - box-shadow: 0 0 0 0.25rem rgba(88, 101, 242, 0.25); + box-shadow: 0 0 0 0.25rem rgba(60, 111, 124, 0.25); } .form-control:disabled, .form-control[readonly] { @@ -736,17 +736,17 @@ body { } .reaction-badge:hover { - border-color: #5865f2; + border-color: #3c6f7c; background-color: #35373c; } .reaction-badge.active { - background-color: rgba(88, 101, 242, 0.15); - border-color: #5865f2; + background-color: rgba(60, 111, 124, 0.15); + border-color: #3c6f7c; } .reaction-badge .count { - color: #5865f2; + color: #3c6f7c; font-weight: bold; } @@ -1118,7 +1118,7 @@ body { /* Mentions */ .mention { - background-color: rgba(88, 101, 242, 0.3); + background-color: rgba(60, 111, 124, 0.3); color: #fff; font-weight: 500; padding: 0 2px; @@ -1137,7 +1137,7 @@ body { /* Pinned Messages */ .message-item.pinned { - background-color: rgba(88, 101, 242, 0.05); + background-color: rgba(60, 111, 124, 0.05); border-left: 2px solid var(--blurple); } @@ -1186,7 +1186,7 @@ body { .pinned-badge { font-size: 0.7em; color: var(--blurple); - background-color: rgba(88, 101, 242, 0.1); + background-color: rgba(60, 111, 124, 0.1); padding: 1px 6px; border-radius: 10px; display: inline-flex; @@ -1202,8 +1202,8 @@ body { /* Announcement Style */ .announcement-style { - background-color: rgba(88, 101, 242, 0.05); - border: 1px solid rgba(88, 101, 242, 0.1); + background-color: rgba(60, 111, 124, 0.05); + border: 1px solid rgba(60, 111, 124, 0.1); border-radius: 8px; margin-bottom: 8px; padding: 12px !important; diff --git a/assets/js/main.js b/assets/js/main.js index cea717f..a3bebc0 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -936,10 +936,10 @@ document.addEventListener('DOMContentLoaded', () => { const title = titleEl ? titleEl.innerText : ''; const description = msgItem.dataset.rawContent; const embedEl = msgItem.querySelector('.rich-embed'); - const color = embedEl ? embedEl.style.borderLeftColor : '#5865f2'; + const color = embedEl ? embedEl.style.borderLeftColor : '#3c6f7c'; const rgbToHex = (rgb) => { - if (!rgb || !rgb.startsWith('rgb')) return '#5865f2'; + if (!rgb || !rgb.startsWith('rgb')) return '#3c6f7c'; const parts = rgb.match(/\d+/g); return "#" + parts.map(x => { const hex = parseInt(x).toString(16); @@ -3794,7 +3794,7 @@ document.addEventListener('DOMContentLoaded', () => { if (endDateContainer) endDateContainer.style.display = 'block'; if (eventBannerPreview) { eventBannerPreview.style.backgroundImage = 'none'; - eventBannerPreview.style.backgroundColor = '#5865f2'; + eventBannerPreview.style.backgroundColor = '#3c6f7c'; } } }); @@ -3931,8 +3931,8 @@ document.addEventListener('DOMContentLoaded', () => { eventBannerPreview.style.backgroundColor = 'transparent'; } else { eventBannerPreview.style.backgroundImage = 'none'; - eventBannerPreview.style.backgroundColor = data.bannerColor || '#5865f2'; - eventBannerColor.value = data.bannerColor || '#5865f2'; + eventBannerPreview.style.backgroundColor = data.bannerColor || '#3c6f7c'; + eventBannerColor.value = data.bannerColor || '#3c6f7c'; } const modal = new bootstrap.Modal(addEventModalEl); diff --git a/assets/js/voice.js b/assets/js/voice.js index 5b2cb3e..704299b 100644 --- a/assets/js/voice.js +++ b/assets/js/voice.js @@ -663,7 +663,7 @@ class VoiceChannel { audio.muted = this.isDeafened; if (!this.isDeafened) audio.volume = this.settings.outputVolume || 1.0; }); - // If we deafen, we usually also mute in Discord + // If we deafen, we usually also mute in Corvara if (this.isDeafened && !this.isSelfMuted) { this.setMute(true); } diff --git a/auth/login.php b/auth/login.php index a0bd9e0..1b64b9f 100644 --- a/auth/login.php +++ b/auth/login.php @@ -29,15 +29,15 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {