Colors
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
資源表示法
{
"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 時間戳記為準)。唯讀。 |
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[],[],null,["# Colors\n\n\u003cbr /\u003e\n\nFor a list of [methods](#methods) for this resource, see the end of this page.\n\nResource representations\n------------------------\n\n\u003cbr /\u003e\n\n```verilog\n{\n \"kind\": \"calendar#colors\",\n \"updated\": datetime,\n \"calendar\": {\n (key): {\n \"background\": string,\n \"foreground\": string\n }\n },\n \"event\": {\n (key): {\n \"background\": string,\n \"foreground\": string\n }\n }\n}\n```\n\n| Property name | Value | Description | Notes |\n|-----------------------------|-----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------|\n| `calendar` | `object` | A global palette of calendar colors, mapping from the color ID to its definition. A `calendarListEntry` resource refers to one of these color IDs in its `colorId` field. Read-only. | |\n| calendar.`(key)` | `nested object` | A calendar color definition. | |\n| calendar.(key).`background` | `string` | The background color associated with this color definition. | |\n| calendar.(key).`foreground` | `string` | The foreground color that can be used to write on top of a background with 'background' color. | |\n| `event` | `object` | A global palette of event colors, mapping from the color ID to its definition. An `event` resource may refer to one of these color IDs in its `colorId` field. Read-only. | |\n| event.`(key)` | `nested object` | An event color definition. | |\n| event.(key).`background` | `string` | The background color associated with this color definition. | |\n| event.(key).`foreground` | `string` | The foreground color that can be used to write on top of a background with 'background' color. | |\n| `kind` | `string` | Type of the resource (\"`calendar#colors`\"). | |\n| `updated` | `datetime` | Last modification time of the color palette (as a [RFC3339](https://tools.ietf.org/html/rfc3339) timestamp). Read-only. | |\n\nMethods\n-------\n\n[get](/workspace/calendar/api/v3/reference/colors/get)\n: Returns the color definitions for calendars and events."]]