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 时间戳形式表示)。只读。

方法

get
返回日历和活动的颜色定义。