如需本資源的方法清單,請見本頁結尾。
資源表示法
{ "kind": "calendar#colors", "updated": datetime, "calendar": { (key): { "background": string, "foreground": string } }, "event": { (key): { "background": string, "foreground": string } } }
資源名稱 | 值 | 說明 | 附註 |
---|---|---|---|
calendar |
object |
通用的日曆色彩調色盤,可從色彩 ID 對應至其定義。calendarListEntry 資源參照 colorId 欄位中其中一個顏色 ID。唯讀。 |
|
calendar.(key) |
nested object |
日曆顏色定義。 | |
calendar.(key).background |
string |
與這個顏色定義相關聯的背景顏色。 | |
calendar.(key).foreground |
string |
可用來在背景為「背景」顏色的前景顏色。 | |
event |
object |
通用的活動顏色區塊面板,從色彩 ID 對應至其定義。event 資源可在 colorId 欄位中參照其中一個顏色 ID。唯讀。 |
|
event.(key) |
nested object |
活動顏色定義。 | |
event.(key).background |
string |
與這個顏色定義相關聯的背景顏色。 | |
event.(key).foreground |
string |
可用來在背景為「背景」顏色的前景顏色。 | |
kind |
string |
資源類型 (「calendar#colors 」)。 |
|
updated |
datetime |
調色盤上次修改時間 (做為 RFC3339 時間戳記)。唯讀。 |
方法
- 取得
- 傳回日曆和活動的顏色定義。