// Used in window.GetColorCUI()
ColorTypeCUI = {
text: 0,
selection_text: 1,
inactive_selection_text: 2,
background: 3,
selection_background: 4,
inactive_selection_background: 5,
active_item_frame: 6
};
// Used in window.GetFontCUI()
FontTypeCUI = {
items: 0,
labels: 1
};
// Used in window.GetColorDUI()
ColorTypeDUI = {
text: 0,
background: 1,
highlight: 2,
selection: 3
};
// Used in window.GetFontDUI()
FontTypeDUI = {
defaults: 0,
tabs: 1,
lists: 2,
playlists: 3,
statusbar: 4,
console: 5
};
var font = window.InstanceType?window.GetFontDUI(FontTypeDUI.defaults):window.GetFontCUI(FontTypeCUI.items);
var txtcol = window.InstanceType?window.GetColorDUI(ColorTypeDUI.text):window.GetColorCUI(ColorTypeCUI.text);
var bg = window.InstanceType?window.GetColorDUI(ColorTypeDUI.background):window.GetColorCUI(ColorTypeCUI.background);
function on_font_changed() {
font = window.InstanceType?window.GetFontDUI(FontTypeDUI.defaults):window.GetFontCUI(FontTypeCUI.items);
window.Repaint();
}
function on_colors_changed() {
txtcol = window.InstanceType?window.GetColorDUI(ColorTypeDUI.text):window.GetColorCUI(ColorTypeCUI.text);
bg = window.InstanceType?window.GetColorDUI(ColorTypeDUI.background):window.GetColorCUI(ColorTypeCUI.background);
window.Repaint();
}