The core code is one sentence:
[Javascript] Ext. util. CSS. swapStyleSheet ('window', 'jslib/ext/resource/css/'{combo.getvalue({}'.css ');
Ext. util. CSS. swapStyleSheet ('window', 'jslib/ext/resource/css/'{combo.getvalue({}'.css ');
Use the drop-down menu to change the topic:
[Javascript] {
Xtype: 'combo ',
Store: new Ext. data. SimpleStore ({
Fields: ['id', 'Theme-view', 'Theme-value'],
Data: JpkFrame. data. themes
}),
Width: 80,
Editable: false,
DisplayField: 'Theme-view ',
Name: 'change _ theme ',
Editable: false,
// TypeAhead: true,
Value: 'default style ',
Mode: 'local ',
ValueField: 'Theme-value ',
TriggerAction: 'all ',
SelectOnFocus: true,
Listeners :{
Select: function (combo, record, index ){
Ext. util. CSS. swapStyleSheet ('window', 'jslib/ext/resources/css/'{combo.getvalue({}'.css ');
}
}
}
JpkFrame. data. themes = [
[0, 'default style', 'ext-all'],
[1, 'dark blue style', 'xtheme-slate'],
[2, 'black style', 'xtheme-Black'],
[3, 'Silver-white', 'xtheme-gray '],
[4, 'green style', 'xtheme-olive'],
[5, 'grey style', 'xtheme-darkgray '],
[6, 'purple style', 'xtheme-purple ']
]
From jelly village chief