本文書では、RICOH Live Streaming Conference のデザインをカスタマイズする方法について説明します。
iframe コンポーネントの create 時に theme のパラメータで LSConf のデザインのカスタマイズが可能です。
ここではデザインのカスタマイズ方法のみの説明となるため、それ以外のパラメータについては LSConfSDK の API 仕様を ご参照ください。
const iframe = window.LSConferenceIframe.create(
document.getElementById('frame-container'),
{
defaultLayout: 'gallery',
...,
theme: {
primary: '#303030', # ボタンやツールバーのデフォルトの背景色
background: '#f7f7fa', # 会議画面のデフォルトの背景色
surface: '#fff', # ダイアログやメニューのデフォルトの背景色
onPrimary: '#fff', # ボタンやツールバーのデフォルトの文字色・アイコン色
primaryTextColor: 'rgba(0, 0, 0, 0.87)', # ダイアログやメニューのデフォルトの文字色
secondaryTextColor: 'rgba(0, 0, 0, 0.60)', # サブ情報の文字色
disabledTextColor: 'rgba(0, 0, 0, 0.38)', # 無効時の文字色
components: {
participantsVideoContainer: {
background: 'rgba(0, 0, 0, 0.05)', # Presentationレイアウト時の通常表示領域の背景色
subViewSwitchBackgroundColor : '#fff', # Presentationレイアウト時の通常表示領域の配置切替ボタンの背景色
subViewSwitchIconColor : 'rgba(0, 0, 0, 0.87)', # Presentationレイアウト時の通常表示領域の配置切替ボタンのアイコン色
},
toolbar: {
background: '#303030', # ツールバーの背景色
iconColor: '#fff', # ツールバーのアイコン色
},
video: {
background: '#000', # カメラオフ時の背景色
textColor: '#fff', # ユーザ名の文字色
textBackgroundColor: '#000', # ユーザ名の背景色
iconColor: '#fff', # SubView上のアイコンの文字色
menuBackgroundColor: '#fff', # SubViewMenuの背景色
menuTextColor: '#000', # SubViewMenuの文字色
highlightBorderColor: '#661fff', # SubViewの強調表示時の枠色
highlightShadowColor: '#661fff', # SubView の強調表示時の影色
}
}
}
}
);create 時に指定する properties のうち、デザインのカスタマイズを行うパラメータを説明します。
全てのパラメータが optional で未指定時は、デフォルトの値に設定されます。
指定する文字列はCSS の Color 定義に準拠した値にしてください。
上記以外の文字列を指定した場合、透明となります。
| Name | Type | Default | 説明 |
|---|---|---|---|
| theme | Object | LSConf のテーマ設定のオブジェクト | |
| theme .primary | string | "#303030" | LSConf のベースカラー |
| theme .background | string | "rgba(0, 0, 0, 0)" | LSConf 全体の背景色 |
| theme .surface | string | "#fff" | 手前のレイヤーに表示する オブジェクトの背景色 |
| theme .onPrimary | string | "#fff" | 背景色が primary の時の文字色 |
| theme .primaryTextColor | string | "rgba(0, 0, 0, 0.87)" | 背景色が surface の時の文字色 |
| theme .secondaryTextColor | string | "rgba(0, 0, 0, 0.60)" | サブ情報の文字色 |
| theme .disabledTextColor | string | "rgba(0, 0, 0, 0.38)" | 無効時の文字色 |
| theme .components | Object | コンポーネントのオブジェクト | |
| theme .components .participantsVideoContainer | Object | Presentation レイアウト時の 通常表示領域のオブジェクト | |
| theme .components .participantsVideoContainer .background | string | "rgba(0, 0, 0, 0.05)" | Presentation レイアウト時の 通常表示領域の背景色 |
| theme .components .participantsVideoContainer .subViewSwitchBackgroundColor | string | "#fff" | Presentation レイアウト時の 通常表示領域の配置切替ボタンの 背景色 |
| theme .components .participantsVideoContainer .subViewSwitchIconColor | string | "rgba(0, 0, 0, 0.87)" | Presentation レイアウト時の 通常表示領域の配置切替ボタンの アイコン色 |
| theme .components .toolbar | Object | ツールバーのオブジェクト | |
| theme .components .toolbar .background | string | "#303030" | ツールバーの背景色 |
| theme .components .toolbar .iconColor | string | "rgba(255, 255, 255, 1)" | ツールバのアイコン色 |
| theme .components .video | Object | SubView のオブジェクト | |
| theme .components .video .background | string | "#000" | カメラオフ時の背景色 |
| theme .components .video .textColor | string | "#fff" | ユーザ名の文字色・アイコン色 |
| theme .components .video .textBackgroundColor | string | "#000" | ユーザ名の背景色 |
| theme .components .video .iconColor | string | "#fff" | SubView 上のアイコン色 |
| theme .components .video .menuBackgroundColor | string | "#fff" | SubViewMenu の背景色 |
| theme .components .video .menuTextColor | string | "#000" | SubViewMenu の文字色 |
| theme .components .video .highlightBorderColor | string | "#661fff" | SubView の強調表示時の枠色 |
| theme .components .video .highlightShadowColor | string | "#661fff" | SubView の強調表示時の影色 |

backgroundprimaryTextColor
components.participantsVideoContainer.backgroundsurfacecomponents.participantsVideoContainer.subViewSwitchBackgroundColor で指定primaryTextColorcomponents.participantsVideoContainer.subViewSwitchIconColor で指定
components.video.iconColordrop-shadow(0 0 0.25rem #000)components.video.textBackgroundColorcomponents.video.textColorcomponents.video.background#fffsurfacecomponents.video.menuBackgroundColor で指定primaryTextColorcomponents.video.menuTextColor で指定rgba(0, 0, 0, 0.04)components.video.highlightBorderColorcomponents.video.highlightShadowColor
onPrimarycomponents.toolbar.iconColor で指定primarycomponents.toolbar.background で指定
rgba(0, 0, 0, 0.5)surfaceprimaryTextColorsecondaryTextColorprimaryprimary の透過 8%box-shadow: rgb(0 0 0 / 20%) 0px 11px 15px -7px, rgb(0 0 0 / 14%) 0px 24px 38px 3px, rgb(0 0 0 / 12%) 0px 9px 46px 8pxDialog のデザインを使用

surfaceprimaryTextColorsecondaryTextColorprimaryTextColorprimaryTextColor の透過 1/3primaryTextColorprimaryprimary の透過 38%disabledTextColorprimaryprimary の透過 8%primaryrgba(0, 0, 0, 0.04)primary の透過 8%primary の透過 8% に rgba(0, 0, 0, 0.04) を重ねた値
#303030rgba(48, 48, 48, 0.38)#fffこの情報は役に立ちましたか?