voice chat [TEST]
All checks were successful
Android Build / publish (push) Successful in 37s
Linux Build / publish (push) Successful in 1m0s

This commit is contained in:
olcxja 2026-08-22 12:37:19 +02:00
commit dd08cc88ae
12 changed files with 2218 additions and 6 deletions

View file

@ -198,7 +198,6 @@ roomcontent {
height: 100%;
flex-grow: 1;
min-width: 0;
border-right: var(--border-width) solid var(--light-border-color);
}
roomcontent2 {
display: flex;
@ -1274,3 +1273,175 @@ input:checked + .toggle-slider:before {
background-color: rgba(255, 255, 255, 0.15);
font-weight: bold;
}
/* Voice UI Styles */
#voice-call-popup {
position: fixed;
width: 600px;
height: 450px;
background-color: var(--main-bg-color);
border: var(--border-width) solid var(--light-border-color);
border-radius: 0.9rem;
box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5);
z-index: 1000;
display: flex;
flex-direction: column;
overflow: hidden;
resize: both;
}
#voice-header {
height: 3rem;
background: var(--light-border-color);
display: flex;
align-items: center;
padding: 0 15px;
cursor: grab;
font-weight: bold;
user-select: none;
border-bottom: var(--border-width) solid rgba(255,255,255,0.05);
}
#voice-users {
padding: 15px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
gap: 12px;
overflow-y: auto;
flex-grow: 1;
}
.voice-tile {
position: relative;
background: var(--light-border-color);
border-radius: 8px;
overflow: hidden;
background-size: cover;
background-position: center;
box-shadow: 0 4px 10px rgba(0,0,0,0.3);
cursor: pointer;
border: 2px solid transparent;
}
.voice-tile.speaking {
border-color: #4cd137;
box-shadow: 0 0 8px 2px #4cd137;
}
.voice-tile-name {
position: absolute;
bottom: 6px;
left: 6px;
font-size: 11px;
font-weight: 600;
padding: 2px 6px;
background: rgba(0,0,0,0.6);
border-radius: 4px;
color: #fff;
max-width: calc(100% - 12px);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.voice-tile-icons {
position: absolute;
bottom: 6px;
right: 6px;
display: flex;
gap: 4px;
}
.voice-tile video {
width: 100%;
height: 100%;
object-fit: cover;
background: #000;
}
.voice-controls {
height: 4rem;
background: var(--main-bg-color);
border-top: var(--border-width) solid var(--light-border-color);
display: flex;
align-items: center;
justify-content: center;
gap: 15px;
}
.voice-btn {
border: var(--border-width) solid var(--light-border-color);
background: var(--main-bg-color);
color: var(--fg-1);
border-radius: 0.6rem;
padding: 0.6rem 1rem;
cursor: pointer;
font-weight: bold;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
transition: all 0.2s;
}
.voice-btn:hover {
background: var(--light-border-color);
}
.voice-btn.voice-btn-active {
background: #27ae60;
color: #fff;
border-color: #27ae60;
}
.voice-btn-danger {
background: #e74c3c !important;
color: white !important;
border-color: #e74c3c !important;
}
.voice-btn-danger:hover {
background: #c0392b !important;
border-color: #c0392b !important;
}
/* Voice User Settings Popup */
#voice-user-settings {
position: fixed;
background: var(--main-bg-color);
border: var(--border-width) solid var(--light-border-color);
padding: 15px;
border-radius: 8px;
box-shadow: 0 4px 15px rgba(0,0,0,0.5);
z-index: 10000;
}
.voice-setting-row {
display: flex;
flex-direction: column;
margin-bottom: 10px;
}
.voice-setting-row label {
font-size: 11px;
color: var(--fg-1);
display: flex;
justify-content: space-between;
}
.voice-setting-row input[type="range"] {
width: 100%;
height: 4px;
appearance: none;
background: var(--bg-2);
outline: none;
border-radius: 2px;
}
.voice-setting-row input[type="range"]::-webkit-slider-thumb {
appearance: none;
width: 12px;
height: 12px;
background: var(--accent);
border-radius: 50%;
cursor: pointer;
}