From 02e3fb0d4e36dd87bd6c17606f9c7c1b4679783c Mon Sep 17 00:00:00 2001 From: Carlos Santos <4a.santos@gmail.com> Date: Tue, 5 Nov 2024 15:54:18 +0100 Subject: [PATCH] ov-components: Updated css styles for improving custom color support --- .../dialogs/delete-recording.component.ts | 9 ++-- .../components/dialogs/dialog.component.ts | 6 ++- .../dialogs/recording-dialog.component.ts | 6 ++- .../activities-panel.component.scss | 13 ++++- .../broadcasting-activity.component.html | 1 + .../broadcasting-activity.component.scss | 16 ++---- .../recording-activity.component.html | 5 +- .../recording-activity.component.scss | 49 ++++++++++++------- .../background-effects-panel.component.html | 4 +- .../background-effects-panel.component.scss | 3 ++ .../chat-panel/chat-panel.component.scss | 5 +- .../lib/components/panel/panel.component.scss | 5 ++ .../participant-panel-item.component.scss | 11 ++++- .../settings-panel.component.html | 4 +- .../settings-panel.component.scss | 10 ++++ .../pre-join/pre-join.component.scss | 6 ++- .../audio-devices.component.scss | 11 +++-- .../lang-selector.component.html | 2 +- .../lang-selector.component.scss | 13 ++++- .../participant-name-input.component.scss | 15 +++--- .../video-devices.component.scss | 12 +++-- .../components/toolbar/toolbar.component.scss | 10 +++- .../src/lib/lang/es.json | 2 +- openvidu-components-angular/src/styles.scss | 26 ---------- 24 files changed, 153 insertions(+), 91 deletions(-) diff --git a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/dialogs/delete-recording.component.ts b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/dialogs/delete-recording.component.ts index 181c890928..54ead971ee 100644 --- a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/dialogs/delete-recording.component.ts +++ b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/dialogs/delete-recording.component.ts @@ -17,18 +17,21 @@ import { MatDialogRef } from '@angular/material/dialog'; `, styles: [ ` + ::ng-deep .mat-mdc-dialog-content { + color: var(--ov-text-surface-color) !important; + } ::ng-deep .mat-mdc-dialog-surface { background-color: var(--ov-surface-color); border-radius: var(--ov-surface-radius); } #delete-recording-confirm-btn { - background-color: var(--ov-error-color); - color: var(--ov-text-primary-color); + background-color: var(--ov-error-color) !important; + color: var(--ov-secondary-action-color); } .mat-mdc-button, .mat-mdc-button:not(:disabled), ::ng-deep .mat-mdc-button .mat-mdc-button-persistent-ripple::before { - color: var(--ov-text-primary-color); + color: var(--ov-secondary-action-color); background-color: var(--ov-primary-action-color) !important; border-radius: var(--ov-surface-radius); } diff --git a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/dialogs/dialog.component.ts b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/dialogs/dialog.component.ts index 89c4f012d4..9ce48c7098 100644 --- a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/dialogs/dialog.component.ts +++ b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/dialogs/dialog.component.ts @@ -17,6 +17,10 @@ import { DialogData } from '../../models/dialog.model'; `, styles: [ ` + ::ng-deep .mat-mdc-dialog-content { + color: var(--ov-text-surface-color) !important; + } + ::ng-deep .mat-mdc-dialog-surface { background-color: var(--ov-surface-color); border-radius: var(--ov-surface-radius); @@ -24,7 +28,7 @@ import { DialogData } from '../../models/dialog.model'; .mat-mdc-button, .mat-mdc-button:not(:disabled), ::ng-deep .mat-mdc-button .mat-mdc-button-persistent-ripple::before { - color: var(--ov-text-primary-color); + color: var(--ov-secondary-action-color); background-color: var(--ov-primary-action-color) !important; border-radius: var(--ov-surface-radius); } diff --git a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/dialogs/recording-dialog.component.ts b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/dialogs/recording-dialog.component.ts index d9e28424bb..bbfccdc7ac 100644 --- a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/dialogs/recording-dialog.component.ts +++ b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/dialogs/recording-dialog.component.ts @@ -17,6 +17,10 @@ import { RecordingDialogData } from '../../models/dialog.model'; `, styles: [ ` + ::ng-deep .mat-mdc-dialog-content { + color: var(--ov-text-surface-color) !important; + } + ::ng-deep .mat-mdc-dialog-surface { background-color: var(--ov-surface-color); border-radius: var(--ov-surface-radius); @@ -29,7 +33,7 @@ import { RecordingDialogData } from '../../models/dialog.model'; .mat-mdc-button, .mat-mdc-button:not(:disabled), ::ng-deep .mat-mdc-button .mat-mdc-button-persistent-ripple::before { - color: var(--ov-text-primary-color); + color: var(--ov-secondary-action-color); background-color: var(--ov-primary-action-color) !important; border-radius: var(--ov-surface-radius); } diff --git a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/panel/activities-panel/activities-panel.component.scss b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/panel/activities-panel/activities-panel.component.scss index cdb42f735d..d34408358b 100644 --- a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/panel/activities-panel/activities-panel.component.scss +++ b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/panel/activities-panel/activities-panel.component.scss @@ -1,3 +1,5 @@ +$ov-activity-status-color: #afafaf; + :host { .activities-body-container { display: block !important; @@ -6,9 +8,18 @@ padding: 10px; } + .activity-status { + color: var(--ov-text-surface-color); + display: inline; + padding: 3px; + font-size: 11px; + border-radius: var(--ov-surface-radius); + background-color: $ov-activity-status-color; + } + .activity-icon { display: inherit; - background-color: var(--ov-secondary-action-color); + background-color: $ov-activity-status-color;; border-radius: var(--ov-surface-radius); margin: 10px 0px !important; padding: 10px; diff --git a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/panel/activities-panel/broadcasting-activity/broadcasting-activity.component.html b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/panel/activities-panel/broadcasting-activity/broadcasting-activity.component.html index 2a8fbd65ae..cac42c8151 100644 --- a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/panel/activities-panel/broadcasting-activity/broadcasting-activity.component.html +++ b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/panel/activities-panel/broadcasting-activity/broadcasting-activity.component.html @@ -34,6 +34,7 @@