不是每个大小和图片可以定义在 CSS 中。因此主题有种方法定义这些属性。
function MyTheme( ) { BiDefaultTheme.call( this, "MyTheme" ); ... this.setAppearanceProperty( "split-pane-horizontal-divider", "preferredWidth", 7 ); this.setAppearanceProperty( "split-pane-vertical-divider", "preferredHeight", 7 ); ... this.setAppearanceProperty( "grid", "default-icon", imgBase + "file.gif" ); ... }
查看 BiDefaultTheme 当前使用的外观属性列表。