Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,8 @@ <h2 style="margin-top: 40px">Choose Theme</h2>
<select id="theme-select">
<option value="vector">Vector</option>
<option value="chatstr">Chatstr</option>
<option value="gifverse">Cosmic</option>
<option value="pivx">Keep it Purple</option>
</select>

<!-- Voice Settings Section -->
Expand Down
2 changes: 1 addition & 1 deletion src/js/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ async function selectFile() {
* @param {string} mode - The theme mode, i.e: light, dark
*/
function applyTheme(theme = 'vector', mode = 'dark') {
document.body.classList.remove('vector-theme', 'chatstr-theme');
document.body.classList.remove('vector-theme', 'chatstr-theme', 'gifverse-theme', 'pivx-theme');
document.body.classList.add(`${theme}-theme`);

domTheme.href = `/themes/${theme}/${mode}.css`;
Expand Down
6 changes: 3 additions & 3 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3798,7 +3798,7 @@ function renderInviteItem(invite) {
const divInvite = document.createElement('div');
divInvite.classList.add('chatlist-contact', 'chatlist-invite');
divInvite.id = `invite-${invite.id || invite.welcome_event_id || groupId}`;
divInvite.style.borderColor = '#59fcb3';
divInvite.style.borderColor = getComputedStyle(document.documentElement).getPropertyValue('--icon-color-primary').trim();

// Avatar container with group placeholder
const divAvatarContainer = document.createElement('div');
Expand Down Expand Up @@ -3980,7 +3980,7 @@ function renderChat(chat) {

// The Chat container (The ID is the Contact's npub)
const divContact = document.createElement('div');
if (nUnread) divContact.style.borderColor = '#59fcb3';
if (nUnread) divContact.style.borderColor = getComputedStyle(document.documentElement).getPropertyValue('--icon-color-primary').trim();
divContact.classList.add('chatlist-contact');
divContact.id = `chatlist-${chat.id}`;

Expand Down Expand Up @@ -4086,7 +4086,7 @@ function renderChat(chat) {
}
// Apply 'Unread' final styling
if (nUnread) {
pTimeAgo.style.color = '#59fcb3';
pTimeAgo.style.color = getComputedStyle(document.documentElement).getPropertyValue('--icon-color-primary').trim();
} else {
// Add 'read' class for smaller font size when no unread messages
pTimeAgo.classList.add('read');
Expand Down
13 changes: 12 additions & 1 deletion src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -1915,7 +1915,7 @@ html, body {
}

#chat-input-send.active .icon {
background-color: #59fcb3;
background-color: var(--icon-color-primary);
opacity: 1;
}

Expand Down Expand Up @@ -3432,6 +3432,7 @@ input[type="checkbox"]:checked + .neon-toggle:before {
/* Style options to match whisper model */
#theme-select option {
background: #161616;
text-align: center;
padding: 10px;
}

Expand All @@ -3451,6 +3452,13 @@ select:focus::-ms-value {
margin-right: auto;
}

/* Sound Notification Selection container styles */
#notif-sound-select option {
background: #161616;
padding: 10px;
text-align: center;
}

/* Delete model button with trash bin icon */
.btn-delete-model {
position: absolute;
Expand Down Expand Up @@ -4558,6 +4566,8 @@ select:disabled:hover {
.relay-dialog-close:hover {
background: rgba(255, 255, 255, 0.1);
color: #fff;
transform: scale(1.1);
transition: transform 0.25s ease;
}

.relay-dialog-content {
Expand Down Expand Up @@ -8546,6 +8556,7 @@ hr {
.notif-custom-container {
display: flex;
align-items: center;
text-align: center;
margin-bottom: 10px;
}

Expand Down
Loading