mirror of https://github.com/OpenVidu/openvidu.git
ov-components: rename theme constants for clarity
parent
747aee5291
commit
8ff7b24aa5
|
@ -75,7 +75,7 @@ export interface OpenViduThemeVariables {
|
||||||
* Predefined theme configurations
|
* Predefined theme configurations
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
export const OPENVIDU_LIGHT_THEME: OpenViduThemeVariables = {
|
export const OPENVIDU_COMPONENTS_LIGHT_THEME: OpenViduThemeVariables = {
|
||||||
'--ov-background-color': '#f0f0f0',
|
'--ov-background-color': '#f0f0f0',
|
||||||
'--ov-surface-color': '#ffffff',
|
'--ov-surface-color': '#ffffff',
|
||||||
'--ov-surface-container-color': '#f8f9fa',
|
'--ov-surface-container-color': '#f8f9fa',
|
||||||
|
@ -108,7 +108,7 @@ export const OPENVIDU_LIGHT_THEME: OpenViduThemeVariables = {
|
||||||
* Predefined dark theme configuration
|
* Predefined dark theme configuration
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
export const OPENVIDU_DARK_THEME: OpenViduThemeVariables = {
|
export const OPENVIDU_COMPONENTS_DARK_THEME: OpenViduThemeVariables = {
|
||||||
'--ov-background-color': '#1f2020',
|
'--ov-background-color': '#1f2020',
|
||||||
'--ov-surface-color': '#2d2d2d',
|
'--ov-surface-color': '#2d2d2d',
|
||||||
'--ov-surface-container-color': '#3a3a3a',
|
'--ov-surface-container-color': '#3a3a3a',
|
||||||
|
|
|
@ -1,7 +1,12 @@
|
||||||
import { Injectable, Inject } from '@angular/core';
|
import { Injectable, Inject } from '@angular/core';
|
||||||
import { DOCUMENT } from '@angular/common';
|
import { DOCUMENT } from '@angular/common';
|
||||||
import { BehaviorSubject, Observable } from 'rxjs';
|
import { BehaviorSubject, Observable } from 'rxjs';
|
||||||
import { OPENVIDU_DARK_THEME, OPENVIDU_LIGHT_THEME, OpenViduThemeMode, OpenViduThemeVariables } from '../../models/theme.model';
|
import {
|
||||||
|
OPENVIDU_COMPONENTS_DARK_THEME,
|
||||||
|
OPENVIDU_COMPONENTS_LIGHT_THEME,
|
||||||
|
OpenViduThemeMode,
|
||||||
|
OpenViduThemeVariables
|
||||||
|
} from '../../models/theme.model';
|
||||||
import { StorageService } from '../storage/storage.service';
|
import { StorageService } from '../storage/storage.service';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -176,9 +181,9 @@ export class OpenViduThemeService {
|
||||||
private getDefaultVariablesForTheme(theme: OpenViduThemeMode): OpenViduThemeVariables {
|
private getDefaultVariablesForTheme(theme: OpenViduThemeMode): OpenViduThemeVariables {
|
||||||
switch (theme) {
|
switch (theme) {
|
||||||
case OpenViduThemeMode.Light:
|
case OpenViduThemeMode.Light:
|
||||||
return OPENVIDU_LIGHT_THEME;
|
return OPENVIDU_COMPONENTS_LIGHT_THEME;
|
||||||
case OpenViduThemeMode.Dark:
|
case OpenViduThemeMode.Dark:
|
||||||
return OPENVIDU_DARK_THEME;
|
return OPENVIDU_COMPONENTS_DARK_THEME;
|
||||||
default:
|
default:
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue