📄 globalfuncs.as
字号:
&& this[whichItem + 'Styles'][i] != 'weekDayfontStyle' && this[whichItem + 'Styles'][i] != 'weekDaytextDecoration' && this[whichItem + 'Styles'][i] != 'todaytextcolor' && this[whichItem + 'Styles'][i] != 'todayfontFamily' && this[whichItem + 'Styles'][i] != 'todayfontSize' && this[whichItem + 'Styles'][i] != 'todayfontWeight' && this[whichItem + 'Styles'][i] != 'todayfontStyle' && this[whichItem + 'Styles'][i] != 'todaytextDecoration' ) { myCSS += this['css'+ this[whichItem + 'Styles'][i]]; } //Loop for ButtonBars } else if (whichItem == 'buttonBar' || whichItem == 'toggleButtonBar') { if (this[whichItem + 'Styles'][i] != 'cornerRadiusLeft' && this[whichItem + 'Styles'][i] != 'highlightAlphas' && this[whichItem + 'Styles'][i] != 'fillAlphas' && this[whichItem + 'Styles'][i] != 'fillColors' && this[whichItem + 'Styles'][i] != 'borderColor' && this[whichItem + 'Styles'][i] != 'themeColor' && this[whichItem + 'Styles'][i] != 'color' && this[whichItem + 'Styles'][i] != 'textRollOverColor' && this[whichItem + 'Styles'][i] != 'textSelectedColor' && this[whichItem + 'Styles'][i] != 'cornerRadiusRight' && this[whichItem + 'Styles'][i] != 'fontFamily' && this[whichItem + 'Styles'][i] != 'fontSize' && this[whichItem + 'Styles'][i] != 'fontWeight' && this[whichItem + 'Styles'][i] != 'fontStyle' && this[whichItem + 'Styles'][i] != 'textDecoration' && this[whichItem + 'Styles'][i] != 'selectedcolor' && this[whichItem + 'Styles'][i] != 'selectedfontFamily' && this[whichItem + 'Styles'][i] != 'selectedfontSize' && this[whichItem + 'Styles'][i] != 'selectedfontWeight' && this[whichItem + 'Styles'][i] != 'selectedfontStyle' && this[whichItem + 'Styles'][i] != 'selectedtextDecoration') { myCSS += this['css'+ this[whichItem + 'Styles'][i]]; } //Loop for everybody else } else { myCSS += this['css'+ this[whichItem + 'Styles'][i]]; } } //TabStyleName for TabNavigator if (whichItem == 'tabNavigator' ) { if (this['csscornerRadiustab'] != '' || this['csshighlightAlphastab'] != '' || this['cssfillAlphastab'] != '' || this['cssfillColorstab'] != '' || this['cssbackgroundAlphatab'] != '' || this['cssbackgroundColortab'] != '' || this['cssborderColortab'] != '' || this['csscolortab'] != '' || this['cssletterSpacingtab'] != '' || this['csstextAligntab'] != '' || this['cssfontFamilytab'] != '' || this['cssfontSizetab'] != '' || this['cssfontWeighttab'] != '' || this['cssfontStyletab'] != '' || this['csstextDecorationtab'] != '' || this['csstextRollOverColortab'] != '' || this['cssthemeColortab'] != '' || this['csscolorselectedTab'] != '' || this['csstextRollOverColorselectedTab'] != '' || this['cssletterSpacingselectedTab'] != '' || this['csstextAlignselectedTab'] != '' || this['cssfontFamilyselectedTab'] != '' || this['cssfontSizeselectedTab'] != '' || this['cssfontWeightselectedTab'] != '' || this['cssfontStyleselectedTab'] != '' || this['csstextDecorationselectedTab'] != '' ) { myCSS += ' tabStyleName: "myTabs";\n ' + 'firstTabStyleName: "myTabs";\n ' + 'lastTabStyleName: "myTabs";\n ' + 'selectedTabTextStyleName: "mySelectedTabs";\n}\n\n.myTabs {\n' + this['csscornerRadiustab'] + this['csshighlightAlphastab'] + this['cssletterSpacingtab'] + this['cssfillAlphastab'] + this['cssfillColorstab'] + this['cssbackgroundAlphatab'] + this['cssbackgroundColortab'] + this['cssborderColortab'] + this['csscolortab'] + this['csstextRollOverColortab'] + this['cssthemeColortab'] + this['csstextAligntab'] + this['cssfontFamilytab'] + this['cssfontSizetab'] + this['cssfontWeighttab'] + this['cssfontStyletab'] + this['csstextDecorationtab']; myCSS += '\n}\n\n.mySelectedTabs {\n' + this['cssletterSpacingselectedTab'] + this['csscolorselectedTab'] + this['csstextRollOverColorselectedTab'] + this['csstextAlignselectedTab'] + this['cssfontFamilyselectedTab'] + this['cssfontSizeselectedTab'] + this['cssfontWeightselectedTab'] + this['cssfontStyleselectedTab'] + this['csstextDecorationselectedTab']; } } //dropDownStyleName for ComboBox if (whichItem == 'comboBox' ) { if (this['csscornerRadiusdropDown'] != '' || this['cssborderThicknessdropDown'] != '' || this['cssborderColordropDown'] != '' || this['csscolordropDown'] != '' || this['csstextAligndropDown'] != '' || this['cssfontFamilydropDown'] != '' || this['cssfontWeightdropDown'] != '' || this['cssfontStyledropDown'] != '' || this['csstextDecorationdropDown'] != '' || this['cssdropShadowEnableddropDown'] != '' || this['cssshadowDirectiondropDown'] != '' || this['cssshadowDistancedropDown'] != '' || this['cssdropShadowColordropDown'] != '' || this['cssfontSizedropDown'] != '' || this['cssletterSpacingdropDown'] != '' ) { myCSS += ' dropDownStyleName: "myComboBoxDropDowns";\n}\n\n.myComboBoxDropDowns {\n' + this['csscornerRadiusdropDown'] + this['cssborderThicknessdropDown'] + this['cssletterSpacingdropDown'] + this['cssborderColordropDown'] + this['csscolordropDown'] + this['csstextAligndropDown'] + this['cssfontFamilydropDown'] + this['cssfontSizedropDown'] + this['cssfontWeightdropDown'] + this['cssfontStyledropDown'] + this['csstextDecorationdropDown'] + this['cssdropShadowEnableddropDown'] + this['cssshadowDirectiondropDown'] + this['cssshadowDistancedropDown'] + this['cssdropShadowColordropDown'] ; } } //HeaderStyleName for Accordion if (whichItem == 'accordion') { if (this['csscolor'] != '' || this['csstextAlign'] != '' || this['cssfontFamily'] != '' || this['cssfontSize'] != '' || this['cssfontWeight'] != '' || this['cssfontStyle'] != '' || this['csstextDecoration'] != '' || this['cssletterSpacing'] != '') { myCSS += ' headerStyleName: "my'+whichItem+'Header";\n}\n\n.my'+whichItem+'Header {\n' + this['cssletterSpacing'] + this['csscolor'] + this['csstextAlign'] + this['cssfontFamily'] + this['cssfontSize'] + this['cssfontWeight'] + this['cssfontStyle'] + this['csstextDecoration']; } } //HeaderStyleName for Panels if (whichItem == 'panel') { if (this['csscolor'] != '' || this['csstextAlign'] != '' || this['cssfontFamily'] != '' || this['cssfontSize'] != '' || this['cssfontWeight'] != '' || this['cssfontStyle'] != '' || this['csstextDecoration'] != '' || this['cssletterSpacing'] != '') { myCSS += ' titleStyleName: "my'+whichItem+'Title";\n}\n\n.my'+whichItem+'Title {\n' + this['cssletterSpacing'] + this['csscolor'] + this['csstextAlign'] + this['cssfontFamily'] + this['cssfontSize'] + this['cssfontWeight'] + this['cssfontStyle'] + this['csstextDecoration']; } } //ButtonStyleName for ButtonBar if (whichItem == 'buttonBar') { if ( this['csshighlightAlphas'] != '' || this['csscornerRadiusLeft'] != '' || this['csscornerRadiusRight'] != '' || this['cssfillAlphas'] != '' || this['cssfillColors'] != '' || this['cssborderColor'] != '' || this['cssthemeColor'] != '' || this['csscolor'] != '' || this['csstextRollOverColor'] != '' || this['csstextSelectedColor'] != '' || this['cssfontFamily'] != '' || this['cssfontSize'] != '' || this['cssfontWeight'] != '' || this['cssfontStyle'] != '' || this['csstextDecoration'] != '') { myCSS += ' buttonStyleName: "my'+whichItem+'ButtonStyle";\n'; myCSS += ' firstButtonStyleName: "my'+whichItem+'FirstButtonStyle";\n'; myCSS += ' lastButtonStyleName: "my'+whichItem+'LastButtonStyle";\n'; myCSS += '}\n\n.my'+whichItem+'ButtonStyle {\n' + this['csshighlightAlphas'] + this['cssfillAlphas'] + this['cssfillColors'] + this['csscolor'] + this['csstextRollOverColor'] + this['csstextSelectedColor'] + this['cssborderColor'] + this['cssthemeColor'] + this['cssfontFamily'] + this['cssfontSize'] + this['cssfontWeight'] + this['cssfontStyle'] + this['csstextDecoration']; myCSS += '}\n\n.my'+whichItem+'FirstButtonStyle {\n' + this['csscornerRadiusLeft']; myCSS += '}\n\n.my'+whichItem+'LastButtonStyle {\n' + this['csscornerRadiusRight']; } } //ButtonStyleName for ButtonBar if (whichItem == 'toggleButtonBar') { if ( this['csshighlightAlphas'] != '' || this['csscornerRadiusLeft'] != '' || this['csscornerRadiusRight'] != '' || this['cssfillAlphas'] != '' || this['cssfillColors'] != '' || this['cssborderColor'] != '' || this['cssthemeColor'] != '' || this['csscolor'] != '' || this['csstextRollOverColor'] != '' || this['csstextSelectedColor'] != '' || this['cssfontFamily'] != '' || this['cssfontSize'] != '' || this['cssfontWeight'] != '' || this['cssfontStyle'] != '' || this['csstextDecoration'] != '' || this['cssselectedcolor'] != '' || this['cssselectedfontFamily'] != '' || this['cssselectedfontWeight'] != '' || this['cssselectedfontStyle'] != '' || this['cssselectedtextDecoration'] != '' || this['cssselectedfontSize'] != '') { myCSS += ' buttonStyleName: "my'+whichItem+'ButtonStyle";\n'; myCSS += ' firstButtonStyleName: "my'+whichItem+'FirstButtonStyle";\n'; myCSS += ' lastButtonStyleName: "my'+whichItem+'LastButtonStyle";\n'; myCSS += ' selectedButtonTextStyleName: "my'+whichItem+'SelectedButtonStyle";\n'; myCSS += '}\n\n.my'+whichItem+'ButtonStyle {\n' + this['csshighlightAlphas'] + this['cssfillAlphas'] + this['cssfillColors'] + this['csscolor'] + this['csstextRollOverColor'] + this['csstextSelectedColor'] + this['cssborderColor'] + this['cssthemeColor'] + this['cssfontFamily'] + this['cssfontSize'] + this['cssfontWeight'] + this['cssfontStyle'] + this['csstextDecoration']; myCSS += '}\n\n.my'+whichItem+'FirstButtonStyle {\n' + this['csscornerRadiusLeft']; myCSS += '}\n\n.my'+whichItem+'LastButtonStyle {\n' + this['csscornerRadiusRight']; myCSS += '}\n\n.my'+whichItem+'SelectedButtonStyle {\n' + this['cssselectedcolor'] + this['cssselectedfontFamily'] + this['cssselectedfontSize'] + this['cssselectedfontWeight'] + this['cssselectedfontStyle'] + this['cssselectedtextDecoration']; } } //Label Style name for sliders, if (whichItem == 'vSlider' || whichItem == 'hSlider') { if (this['csscolor'] != '' || this['cssfontFamily'] != '' || this['cssfontSize'] != '' || this['cssfontWeight'] != '' || this['cssfontStyle'] != '' || this['csstextDecoration'] != '' || this['cssletterSpacing'] != '') { myCSS += ' labelStyleName: "my'+whichItem+'LabelStyle";\n}\n\n.my'+whichItem+'LabelStyle {\n' + this['cssletterSpacing'] + this['csscolor'] + this['cssfontFamily'] + this['cssfontSize'] + this['cssfontWeight'] + this['cssfontStyle'] + this['csstextDecoration']; } } //headerStyleName for DataGrid if (whichItem == 'dataGrid') { if (this['cssheaderColor'] != '' || this['cssheaderfontFamily'] != '' || this['cssheaderletterSpacing'] != '' || this['cssheaderfontWeight'] != '' || this['cssheaderfontSize'] != '' || this['cssheaderfontStyle'] != '' || this['cssheadertextDecoration'] != '' ) { myCSS += ' headerStyleName: "my'+whichItem+'HeaderStyle";\n}\n\n.my'+whichItem+'HeaderStyle {\n' + this['cssheaderColor'] + this['cssheaderfontFamily'] + this['cssheaderfontWeight'] + this['cssheaderfontSize'] + this['cssheaderfontStyle'] + this['cssheadertextDecoration'] + this['cssheaderletterSpacing']; } } //stylenames for datechooser if (whichItem == 'dateChooser') { if (this['cssheadercolor'] != '' || this['cssheaderfontFamily'] != '' || this['cssheaderfontSize'] != '' || this['cssheaderfontSize'] != '' || this['cssheaderfontStyle'] != '' || this['cssheadertextDecoration'] != '' ) { myCSS += ' headerStyleName: "my'+whichItem+'HeaderStyle";'; } if (this['cssweekDaycolor'] != '' || this['cssweekDayfontFamily'] != '' || this['cssweekDayfontSize'] != '' || this['cssweekDayfontSize'] != '' || this['cssweekDayfontStyle'] != '' || this['cssweekDaytextDecoration'] != '' ) { myCSS += ' weekDayStyleName: "my'+whichItem+'WeekDayStyle";'; } if (this['csstodaytextcolor'] != '' || this['csstodayfontFamily'] != '' || this['csstodayfontSize'] != '' || this['csstodayfontSize'] != '' || this['csstodayfontStyle'] != '' || this['csstodaytextDecoration'] != '' ) { myCSS += ' todayStyleName: "my'+whichItem+'TodayStyle";'; } //------ if (this['cssheadercolor'] != '' || this['cssheaderfontFamily'] != '' || this['cssheaderfontSize'] != '' || this['cssheaderfontSize'] != '' || this['cssheaderfontStyle'] != '' || this['cssheadertextDecoration'] != '' ) { myCSS += '\n}\n\n.my'+whichItem+'HeaderStyle {\n' + this['cssheadercolor'] + this['cssheaderfontFamily'] + this['cssheaderfontWeight'] + this['cssheaderfontSize'] + this['cssheaderfontStyle'] + this['cssheadertextDecoration']; } if (this['cssweekDaycolor'] != '' || this['cssweekDayfontFamily'] != '' || this['cssweekDayfontSize'] != '' || this['cssweekDayfontSize'] != '' || this['cssweekDayfontStyle'] != '' || this['cssweekDaytextDecoration'] != '' ) { myCSS += '\n}\n\n.my'+whichItem+'WeekDayStyle {\n' + this['cssweekDaycolor'] + this['cssweekDayfontFamily'] + this['cssweekDayfontWeight'] + this['cssweekDayfontSize'] + this['cssweekDayfontStyle'] + this['cssweekDaytextDecoration']; } if (this['csstodaytextcolor'] != '' || this['csstodayfontFamily'] != '' || this['csstodayfontSize'] != '' || this['csstodayfontSize'] != '' || this['csstodayfontStyle'] != '' || this['csstodaytextDecoration'] != '' ) { myCSS += '\n}\n\n.my'+whichItem+'TodayStyle {\n' + this['csstodaytextcolor'] + this['csstodayfontFamily'] + this['csstodayfontWeight']
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -