Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Commit

Permalink
feat: set scene theme (#35)
Browse files Browse the repository at this point in the history
* add theme schema to the system extension

* add Japanese translation section

* fix keys naming

* set colors default values

* re order theme widget

* simplify the ids

* add Jp translations

* restructure the menu items
  • Loading branch information
yk-eukarya committed Aug 25, 2021
1 parent 0f800fe commit 2e4f52a
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
48 changes: 48 additions & 0 deletions pkg/builtin/manifest.yml
Expand Up @@ -100,6 +100,54 @@ extensions:
title: Maximum zoom level
min: 0
max: 30
- id: theme
title: Publish Theme
description: Set your theme.
fields:
- id: themeType
type: string
title: Theme
defaultValue: dark
description: Select the theme.
choices:
- key: dark
label: Re:Earth Dark
- key: light
label: Re:Earth Light
- key: forest
label: Forest
- key: custom
label: Custom theme
- id: themeTextColor
type: string
ui: color
title: Text color
description: Select a color.
defaultValue: '#434343'
availableIf:
field: themeType
type: string
value: custom
- id: themeSelectColor
type: string
ui: color
title: Select color
description: Select a color.
defaultValue: '#C52C63'
availableIf:
field: themeType
type: string
value: custom
- id: themeBackgroundColor
type: string
ui: color
title: Background color
description: Select a color.
defaultValue: '#DFE5F0'
availableIf:
field: themeType
type: string
value: custom
- id: atmosphere
title: Atmospheric Conditions
description: Set the look and feel of the Earth.
Expand Down
21 changes: 21 additions & 0 deletions pkg/builtin/manifest_ja.yml
Expand Up @@ -98,6 +98,27 @@ extensions:
trackingCode:
title: トラッキングID
description: ここにグーグルアナリティクスのトラッキングIDを貼り付けることで、公開プロジェクトにこのコードが埋め込まれます。
theme:
title: 公開用テーマ
description: 公開用のテーマを設定することができます。
fields:
themeType:
title: テーマ
description: テーマの種類を選択します。より細かくテーマを指定したい場合はカスタムを選択します。
choices:
dark: Re:Earth ダーク
light: Re:Earth ライト
forest:
custom: カスタム
themeTextColor:
title: 文字色
description: 文字色を設定します。
themeSelectColor:
title: 選択色
description: 選択色を設定します。
themeBackgroundColor:
title: 背景色
description: 背景色を設定します。
infobox:
title: インフォボックス
description: 閲覧者が地図上のレイヤーをクリックした時に表示されるボックスです。テキストや画像、動画などのコンテンツを表示することができます。
Expand Down

0 comments on commit 2e4f52a

Please sign in to comment.