Colors
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Per un elenco di metodi per questa risorsa, vai alla fine di questa pagina.
Rappresentazioni delle risorse
{
"kind": "calendar#colors",
"updated": datetime,
"calendar": {
(key): {
"background": string,
"foreground": string
}
},
"event": {
(key): {
"background": string,
"foreground": string
}
}
}
Nome proprietà |
Valore |
Descrizione |
Note |
calendar |
object |
Una tavolozza globale di colori del calendario, dall'ID colore alla relativa definizione. Una risorsa calendarListEntry fa riferimento a uno di questi ID colore nel campo colorId . Sola lettura. |
|
calendar.(key) |
nested object |
Una definizione di colore del calendario. |
|
calendar.(key).background |
string |
Il colore di sfondo associato a questa definizione del colore. |
|
calendar.(key).foreground |
string |
Il colore in primo piano che può essere utilizzato per scrivere su uno sfondo con "background" colore. |
|
event |
object |
Una tavolozza globale di colori degli eventi, dall'ID colore alla relativa definizione. Una risorsa event può fare riferimento a uno di questi ID colore nel campo colorId . Sola lettura. |
|
event.(key) |
nested object |
Una definizione del colore dell'evento. |
|
event.(key).background |
string |
Il colore di sfondo associato a questa definizione del colore. |
|
event.(key).foreground |
string |
Il colore in primo piano che può essere utilizzato per scrivere su uno sfondo con "background" colore. |
|
kind |
string |
Tipo di risorsa ("calendar#colors "). |
|
updated |
datetime |
Ora dell'ultima modifica della tavolozza dei colori (come timestamp RFC3339). Sola lettura. |
|
Metodi
- trova
- Restituisci le definizioni dei colori per calendari ed eventi.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-25 UTC.
[null,null,["Ultimo aggiornamento 2025-07-25 UTC."],[],[],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."]]