@@ -274,9 +274,13 @@ defmodule LiveExWebRTC.Publisher do
274
274
@ impl true
275
275
def render ( assigns ) do
276
276
~H"""
277
- < div id = { @ publisher . id } phx-hook = "Publisher " class = "h-full w-full flex flex-col justify-end gap-4 " >
277
+ < div
278
+ id = { @ publisher . id }
279
+ phx-hook = "Publisher "
280
+ class = "h-full w-full flex flex-col justify-end gap-4 dark:bg-stone-900 "
281
+ >
278
282
< div class = "flex gap-4 " >
279
- < div class = "flex-1 flex flex-col gap-2 " >
283
+ < div class = "flex-[3_1_0%] flex flex-col gap-2 " >
280
284
< div class = "w-full h-full " >
281
285
< video
282
286
id = "lex-preview-player "
@@ -287,18 +291,18 @@ defmodule LiveExWebRTC.Publisher do
287
291
>
288
292
</ video >
289
293
</ div >
290
- < div class = "flex flex-col items-stretch gap-4 " >
294
+ < div class = { "flex flex-col items-stretch gap-4 #{ if @ publisher . streaming? , do: "text-gray-400" , else: "text-indigo-400" } " } >
291
295
< div
292
296
id = "lex-audio-devices-wrapper "
293
297
class = "flex gap-2 items-center relative "
294
298
phx-update = "ignore "
295
299
>
296
300
< label for = "lex-audio-devices " class = "absolute left-3 top-[5px] pointer-events-none " >
297
- < . icon name = "hero-microphone " class = " w-4 h-4 dark:text-indigo-400 " />
301
+ < span class = "hero-microphone w-4 h-4 " />
298
302
</ label >
299
303
< select
300
304
id = "lex-audio-devices "
301
- class = "pl-9 w-full rounded-lg text-sm border-indigo-200 disabled:text-gray-400 disabled:border-gray-400 focus:border-indigo-900 focus:outline-none focus:ring-0 dark:bg-transparent dark:text-indigo-400 dark:border-indigo-400 "
305
+ class = "pl-9 w-full rounded-lg text-sm border-indigo-200 text-indigo-800 disabled:text-gray-400 disabled:border-gray-400 focus:border-indigo-200 focus:outline-none focus:ring-0 dark:bg-transparent dark:text-indigo-400 dark:border-indigo-400 "
302
306
>
303
307
</ select >
304
308
</ div >
@@ -308,19 +312,19 @@ defmodule LiveExWebRTC.Publisher do
308
312
phx-update = "ignore "
309
313
>
310
314
< label for = "lex-video-devices " class = "absolute left-3 top-[5px] pointer-events-none " >
311
- < . icon name = "hero-video-camera " class = "w-4 h-4 dark:text-indigo-400 " />
315
+ < . icon name = "hero-video-camera " class = "w-4 h-4 " />
312
316
</ label >
313
317
< select
314
318
id = "lex-video-devices "
315
- class = "pl-9 w-full rounded-lg text-sm border-indigo-200 disabled:text-gray-400 disabled:border-gray-400 focus:border-indigo-900 focus:outline-none focus:ring-0 dark:bg-transparent dark:text-indigo-400 dark:border-indigo-400 "
319
+ class = "pl-9 w-full rounded-lg text-sm border-indigo-200 text-indigo-800 disabled:text-gray-400 disabled:border-gray-400 focus:border-indigo-200 focus:outline-none focus:ring-0 dark:bg-transparent dark:text-indigo-400 dark:border-indigo-400 "
316
320
>
317
321
</ select >
318
322
</ div >
319
323
</ div >
320
324
</ div >
321
325
< div
322
326
class = {
323
- "flex-1 rounded-lg border border-indigo-200 dark:border-zinc-800 #{ if @ publisher . streaming? , do: "dark:text-neutral-200" , else: "dark:text-neutral-600" } "
327
+ "flex-[2_1_0%] rounded-lg border border-indigo-200 dark:border-zinc-800 #{ if @ publisher . streaming? , do: "text-black dark:text-neutral-200" , else: "text-neutral-400 dark:text-neutral-600" } "
324
328
}
325
329
id = "lex-stats "
326
330
>
@@ -394,7 +398,7 @@ defmodule LiveExWebRTC.Publisher do
394
398
< div class = "w-11 h-6 bg-gray-300 peer-focus:outline-none peer-focus:ring-2 peer-focus:ring-indigo-500 rounded-full peer peer-checked:after:translate-x-5 peer-checked:after:border-white after:content-[''] after:absolute after:top-0.5 after:left-0.5 after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-indigo-500 peer-disabled:opacity-50 " >
395
399
</ div >
396
400
</ label >
397
- < label for = "lex-record-stream " class = "text-xs text-nowrap dark:text-indigo-400 " >
401
+ < label for = "lex-record-stream " class = "text-xs text-nowrap dark:text-neutral-200 " >
398
402
Record stream
399
403
</ label >
400
404
</ form >
0 commit comments