有关此类资源的方法列表,请参阅本页面的结尾部分。
资源表示法
{
  "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 | 
        前景色,可用于在“背景”的背景上写入内容color 决定。 | |
event | 
        object | 
        一个全局调色板,其中包含从颜色 ID 到其定义的事件颜色。event 资源可以在其 colorId 字段中引用其中一个颜色 ID。只读。 | 
        |
event.(key) | 
        nested object | 
        事件颜色定义。 | |
event.(key).background | 
        string | 
        与此颜色定义相关联的背景颜色。 | |
event.(key).foreground | 
        string | 
        前景色,可用于在“背景”的背景上写入内容color 决定。 | |
kind | 
        string | 
        资源的类型(“calendar#colors”)。 | 
        |
updated | 
        datetime | 
        调色板的上次修改时间(以 RFC3339 时间戳表示)。只读。 | 
方法
- get
 - 返回日历和活动的颜色定义。