⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 load_skin.js

📁 javascript 很酷的类库
💻 JS
📖 第 1 页 / 共 2 页
字号:
// 8) Dialogs//----------------------------------------        if (isc.Dialog) {            // even though Dialog inherits from Window, we need a separate changeDefaults block            // because Dialog defines its own toolbarDefaults            isc.Dialog.changeDefaults("toolbarDefaults", {                buttonConstructor: "IButton",                height:40, // 10px margins + 20px button                membersMargin:10            })            if (isc.Dialog.Warn && isc.Dialog.Warn.toolbarDefaults) {                isc.addProperties(isc.Dialog.Warn.toolbarDefaults, {                    buttonConstructor: "IButton",                    height:40,                    membersMargin:10                })            }        }            } // end isc.Window//----------------------------------------// 9) Pickers//----------------------------------------    // add bevels and shadows to all pickers    isc.__pickerDefaults = {        showEdges:true,        edgeSize:6,        edgeImage:"[SKIN]/rounded/frame/FFFFFF/6.png",        //edgeShowCenter: true, // not available for ridge edges        backgroundColor:"#C7C7C7",        showShadow:true,        shadowDepth:6,        shadowOffset:5    }    if (isc.FormItem) {        isc.FormItem.changeDefaults("pickerDefaults", isc.__pickerDefaults)    }    if (isc.ColorChooser) {        isc.ColorChooser.addProperties(isc.__pickerDefaults)    }    if (isc.DateChooser) {        isc.DateChooser.addProperties(isc.__pickerDefaults, {            showDoubleYearIcon:false,            skinImgDir:"images/DateChooser/"        })            }    if (isc.MultiFilePicker) {        isc.MultiFilePicker.addProperties({            backgroundColor:"#C7C7C7"        })    }    if (isc.RelationPicker) {        isc.RelationPicker.addProperties({            backgroundColor:"#C7C7C7"            })    }    //----------------------------------------// 10) Menus//----------------------------------------    if (isc.Menu) {        isc.Menu.addProperties({            // Increase cellHeight to accomodate text + borders in "over" state.            cellHeight:25,            showShadow:true,            shadowDepth:5,            showEdges:true,            edgeSize:4,            edgeImage:"[SKIN]/square/raised/FFFFFF/4.png",            edgeShowCenter:true,            // get rid of everything that could occlude center segment:            // borders around table            tableStyle:"normal",            // XXX unreachable from CSS            bodyBackgroundColor:"transparent"            // also: non-rollover cell styles for menu need to avoid setting bgColor            // for square/tinted edges only:            //edgeBackgroundColor:"#fff0ff"        }    )}//----------------------------------------// 11) Hovers//----------------------------------------    if (isc.Hover) {        isc.addProperties(isc.Hover.hoverCanvasDefaults, {            showShadow:true,            shadowDepth:5        })    }//----------------------------------------// 12) ListGrids//----------------------------------------    if (isc.ListGrid) {										          isc.ListGrid.addProperties({            // Render header buttons out as StretchImgButtons            headerButtonConstructor:"StretchImgButton",            sorterConstructor:"StretchImgButton",            headerMenuButtonConstructor:"StretchImgButton",                        backgroundColor:"#CCCCCC",            headerBackgroundColor:"#CCCCCC",            headerHeight:21,            headerBaseStyle:"headerButton",	// bgcolor tint and borders            headerTitleStyle:"headerTitle",                        headerBarStyle:"headerBar",            bodyStyleName:"gridBody",                                    headerMenuButtonBaseStyle:"headerButton",            headerMenuButtonTitleStyle:"headerTitle",                        groupIcon:"[SKINIMG]/TreeGrid/folder.png"        })        isc.ListGrid.changeDefaults("sorterDefaults", {             capSize:5, // scaling down from 12; using GIFs            labelHPad:4, // arrow image needs to overlap the end caps to fit            // baseStyle / titleStyle is auto-assigned from headerBaseStyle            src:"[SKIN]ListGrid/header.gif"        })        isc.ListGrid.changeDefaults("headerButtonDefaults", {            capSize:5, // scaling down from 12; using GIFs            // baseStyle / titleStyle is auto-assigned from headerBaseStyle            src:"[SKIN]ListGrid/header.gif"        })        isc.ListGrid.changeDefaults("headerMenuButtonDefaults", {            capSize:5,            labelHPad:4,            src:"[SKIN]ListGrid/header.gif"        })    }//----------------------------------------// 13) TreeGrids//----------------------------------------    if (isc.TreeGrid) {        isc.TreeGrid.addProperties({            folderIcon:"[SKIN]folder.png",            nodeIcon:"[SKIN]file.png",            manyItemsImage:"[SKIN]folder_file.png"        })    }//----------------------------------------// 14) Form controls//----------------------------------------    if (isc.FormItem) {isc.FormItem.addProperties({        defaultIconSrc:"[SKIN]/controls/helper_control.gif",        iconHeight:18,        iconWidth:18,        iconVAlign:"middle"    })}        if (isc.TextItem) {isc.TextItem.addProperties({        height:isc.Browser.isSafari ? 22 : 20    })}        if (isc.SelectItem) {isc.SelectItem.addProperties({        pickerIconSrc:"[SKIN]/controls/dropdown_control_inside.gif",        height:20    })}        if (isc.ComboBoxItem) {isc.ComboBoxItem.addProperties({        pickerIconSrc:"[SKIN]/controls/dropdown_control.gif",        height:20, // pickerIcon automatically sizes to this height        pickerIconWidth:17    })}    // used by SelectItem and ComboBoxItem for picklist    if (isc.ScrollingMenu) {isc.ScrollingMenu.addProperties({        border:"1px solid #606060",        showShadow:true,        shadowDepth:5    })}    if (isc.DateItem) {        isc.DateItem.addProperties({            pickerIconWidth:19,            pickerIconHeight:16,            pickerIconSrc:"[SKIN]/controls/date_control.gif"        })    }    if (isc.SpinnerItem) {        isc.SpinnerItem.addProperties({            height:20        })        isc.SpinnerItem.INCREASE_ICON = isc.addProperties(isc.SpinnerItem.INCREASE_ICON, {            width:17,            height:10,            src:"[SKIN]/controls/spinner_control_increase.gif"        })        isc.SpinnerItem.DECREASE_ICON = isc.addProperties(isc.SpinnerItem.DECREASE_ICON, {            width:17,            height:10,            src:"[SKIN]/controls/spinner_control_decrease.gif"        })    }    if (isc.PopUpTextAreaItem) {isc.PopUpTextAreaItem.addProperties({        popUpIconSrc: "[SKIN]/controls/text_control.gif",        popUpIconWidth:16,        popUpIconHeight:16    })}    if (isc.ButtonItem && isc.IButton) {isc.ButtonItem.addProperties({        buttonConstructor:isc.IButton    })}    if (isc.ToolbarItem && isc.IAutoFitButton) {isc.ToolbarItem.addProperties({        buttonConstructor:isc.IAutoFitButton,        buttonProperties: {            autoFitDirection: isc.Canvas.BOTH        }    })}//----------------------------------------// 15) Drag & Drop//----------------------------------------    // drag tracker drop shadow (disabled by default because many trackers are irregular shape)    //isc.addProperties(isc.EH.dragTrackerDefaults, {    //    showShadow:true,    //    shadowDepth:4    //});    // drag target shadow and opacity    isc.EH.showTargetDragShadow = true;    isc.EH.targetDragOpacity = 50;    //----------------------------------------// 16) Edges//----------------------------------------    // default edge style serves as a pretty component frame/border - just set showEdges:true    if (isc.EdgedCanvas) {        isc.EdgedCanvas.addProperties({            edgeSize:6,            edgeImage:"[SKIN]/rounded/frame/FFFFFF/6.png"        })    }//----------------------------------------// 17) Sliders//----------------------------------------    if (isc.Slider) {        isc.Slider.addProperties({            thumbThickWidth:24,            thumbThinWidth:14,            trackWidth:6,            trackCapSize:6,            thumbSrc:"thumb.png",            trackSrc:"track.png"        })    }// specify where the browser should redirect if not supportedisc.Page.checkBrowserAndRedirect("[SKIN]/unsupported_browser.html");}   // end with()}   // end loadSkin()isc.loadSkin()

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -