Skip to main content

parse_theme

Function parse_theme 

Source
pub fn parse_theme(xml: &str) -> Result<Theme>
Expand description

themeN.xml 文本解析出 Theme

§解析内容

  • <a:theme name="..."> 根元素的 name 属性
  • <a:clrScheme> 内的 12 个颜色(dk1/lt1/dk2/lt2/accent1-6/hlink/folHlink)
  • <a:fontScheme> 内的 majorFont/minorFont 的 latin typeface

§忽略内容(后续扩展)

  • <a:fmtScheme> 格式方案
  • <a:objectDefaults> 对象默认值
  • <a:extraClrSchemeLst> 额外颜色方案

§错误