Styles.js 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. /**
  2. * Created by Jacky.gao on 2016/5/26.
  3. */
  4. const Styles={};
  5. Styles.frameStyle={
  6. getRootIcon:function () {
  7. return _getStyle("rootIcon","rf rf-root");
  8. },
  9. getRootIconStyle:function () {
  10. return _getStyle("rootIconStyle",{color:'rgb(102, 102, 102)'});
  11. },
  12. getProjectIcon:function () {
  13. return _getStyle("projectIcon","rf rf-project");
  14. },
  15. getProjectIconStyle:function () {
  16. return _getStyle("projectIconStyle",{color:'rgb(188, 15, 105)'});
  17. },
  18. getResourceIcon:function () {
  19. return _getStyle("resourceIcon","rf rf-library");
  20. },
  21. getResourceIconStyle:function () {
  22. return _getStyle("resourceIconStyle",{color:'rgb(88, 45, 170)'});
  23. },
  24. getResourcePackageIcon:function () {
  25. return _getStyle("resourcePackageIcon","rf rf-package");
  26. },
  27. getResourcePackageIconStyle:function () {
  28. return _getStyle("resourcePackageIconStyle",{color:'rgb(180, 133, 19)'});
  29. },
  30. getLibIcon:function () {
  31. return _getStyle("libIcon","rf rf-database");
  32. },
  33. getLibIconStyle:function () {
  34. return _getStyle("libIconStyle",{color:'rgb(24, 121, 27)'});
  35. },
  36. getActionIcon:function () {
  37. return _getStyle("actionIcon","rf rf-action");
  38. },
  39. getActionIconStyle:function () {
  40. return _getStyle("actionIconStyle",{color:'rgb(24, 121, 27)'});
  41. },
  42. getVariableIcon:function () {
  43. return _getStyle("variableIcon","rf rf-variable");
  44. },
  45. getVariableIconStyle:function () {
  46. return _getStyle("variableIconStyle",{color:'rgb(24, 121, 27)'});
  47. },
  48. getConstantIcon:function () {
  49. return _getStyle("constantIcon","rf rf-constant");
  50. },
  51. getConstantIconStyle:function () {
  52. return _getStyle("constantIconStyle",{color:'rgb(24, 121, 27)'});
  53. },
  54. getParameterIcon:function () {
  55. return _getStyle("parameterIcon","rf rf-parameter");
  56. },
  57. getParameterIconStyle:function () {
  58. return _getStyle("parameterIconStyle",{color:'rgb(24, 121, 27)'});
  59. },
  60. getRuleIcon:function () {
  61. return _getStyle("ruleIcon","rf rf-rule");
  62. },
  63. getRuleIconStyle:function () {
  64. return _getStyle("ruleIconStyle",{color:'rgb(31, 90, 163)'});
  65. },
  66. getUlIcon:function () {
  67. return _getStyle("ulIcon","rf rf-script");
  68. },
  69. getUlIconStyle:function () {
  70. return _getStyle("ulIconStyle",{color:'rgb(31, 90, 163)'});
  71. },
  72. getRuleLibIcon:function () {
  73. return _getStyle("ruleLibIcon","rf rf-rule");
  74. },
  75. getRuleLibIconStyle:function () {
  76. return _getStyle("ruleLibIconStyle",{color:'rgb(31, 90, 163)'});
  77. },
  78. getDecisionTableIcon:function () {
  79. return _getStyle("decisionTableIcon","rf rf-table");
  80. },
  81. getDecisionTableIconStyle:function () {
  82. return _getStyle("decisionTableIconStyle",{color:'rgb(31, 90, 163)'});
  83. },
  84. getScriptDecisionTableIcon:function () {
  85. return _getStyle("scriptDecisionTableIcon","rf rf-scripttable");
  86. },
  87. getScriptDecisionTableIconStyle:function () {
  88. return _getStyle("scriptDecisionTableIconStyle",{color:'rgb(31, 90, 163)'});
  89. },
  90. getDecisionTableLibIcon:function () {
  91. return _getStyle("decisionTableLibIcon","rf rf-table");
  92. },
  93. getDecisionTableLibIconStyle:function () {
  94. return _getStyle("decisionTableLibIconStyle",{color:'rgb(31, 90, 163)'});
  95. },
  96. getDecisionTreeIcon:function () {
  97. return _getStyle("decisionTreeIcon","rf rf-tree");
  98. },
  99. getDecisionTreeIconStyle:function () {
  100. return _getStyle("decisionTreeIconStyle",{color:'rgb(31, 90, 163)'});
  101. },
  102. getDecisionTreeLibIcon:function () {
  103. return _getStyle("decisionTreeLibIcon","rf rf-tree");
  104. },
  105. getDecisionTreeLibIconStyle:function () {
  106. return _getStyle("decisionTreeLibIconStyle",{color:'rgb(31, 90, 163)'});
  107. },
  108. getScorecardIcon:function () {
  109. return _getStyle("scorecardIcon","rf rf-scorecard");
  110. },
  111. getScorecardIconStyle:function () {
  112. return _getStyle("scorecardIconStyle",{color:'rgb(31, 90, 163)'});
  113. },
  114. getScorecardLibIcon:function () {
  115. return _getStyle("scorecardLibIcon","rf rf-scorecard");
  116. },
  117. getScorecardLibIconStyle:function () {
  118. return _getStyle("scorecardLibIconStyle",{color:'rgb(31, 90, 163)'});
  119. },
  120. getFlowIcon:function () {
  121. return _getStyle("flowIcon","rf rf-flow");
  122. },
  123. getFlowIconStyle:function () {
  124. return _getStyle("flowIconStyle",{color:'rgb(31, 90, 163)'});
  125. },
  126. getFlowLibIcon:function () {
  127. return _getStyle("flowLibIcon","rf rf-flow");
  128. },
  129. getFlowLibIconStyle:function () {
  130. return _getStyle("flowLibIconStyle",{color:'rgb(31, 90, 163)'});
  131. },
  132. getFolderIcon:function () {
  133. return _getStyle("flowIcon","rf rf-folder");
  134. },
  135. getFolderIconStyle:function () {
  136. return _getStyle("flowIconStyle",{color:'rgb(224, 126, 1)'});
  137. },
  138. };
  139. function _getStyle(styleName,defaultValue) {
  140. if(window._frameStyles){
  141. return window._frameStyles[styleName];
  142. }else{
  143. return defaultValue;
  144. }
  145. }
  146. export default Styles;