KMAppearance.swift 85 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957
  1. //
  2. // KMAppearance.swift
  3. // PDF Reader Pro
  4. //
  5. // Created by tangchao on 2023/4/17.
  6. //
  7. import Cocoa
  8. let KMImageNameToolbarLeftPanel = "KMImageNameToolbarLeftPanel";
  9. let KMImageNameToolbarRightPanel = "KMImageNameToolbarRightPanel";
  10. let KMImageNameToolbarMinus = "KMImageNameToolbarMinus";
  11. let KMImageNameToolbarPlus = "KMImageNameToolbarPlus";
  12. let KMImageNameToolbarPrevious = "KMImageNameToolbarPrevious";
  13. let KMImageNameToolbarNext = "KMImageNameToolbarNext";
  14. let KMImageNameToolbarTools = "KMImageNameToolbarTools";
  15. let KMImageNameToolbarPageEdit = "KMImageNameToolbarPageEdit";
  16. let KMImageNameToolbarEdit = "KMImageNameToolbarEdit";
  17. let KMImageNameToolbarConvert = "KMImageNameToolbarConvert";
  18. let KMImageNameToolbarSettings = "KMImageNameToolbarSettings";
  19. let KMImageNameToolbarShare = "KMImageNameToolbarShare";
  20. let KMImageNameToolbarBack = "KMImageNameToolbarBack";
  21. let KMImageNameToolbarForward = "KMImageNameToolbarForward";
  22. let KMImageNameToolbarFirst = "KMImageNameToolbarFirst";
  23. let KMImageNameToolbarLast = "KMImageNameToolbarLast";
  24. let KMImageNameToolbarInfo = "KMImageNameToolbarInfo";
  25. let KMImageNameToolbarLines = "KMImageNameToolbarLines";
  26. let KMImageNameToolbarFont = "KMImageNameToolbarFont";
  27. let KMImageNameToolbarPrint = "KMImageNameToolbarPrint";
  28. let KMImageNameToolbarPlay = "KMImageNameToolbarPlay";
  29. let KMImageNameToolbarHome = "KMImageNameToolbarHome";
  30. let KMImageNameToolbarForm = "KMImageNameToolbarForm";
  31. let KMImageNameToolbarSelfSign = "KMImageNameToolbarSelfSign";
  32. let KMImageNameToolbarTextEdit = "KMImageNameToolbarTextEdit";
  33. let KMImageNameToolbarLeftPanelSelected = "KMImageNameToolbarLeftPanelSelected";
  34. let KMImageNameToolbarRightPanelSelected = "KMImageNameToolbarRightPanelSelected";
  35. let KMImageNameToolbarToolsSelected = "KMImageNameToolbarToolsSelected";
  36. let KMImageNameToolbarSettingsSelected = "KMImageNameToolbarSettingsSelected";
  37. let KMImageNameToolbarPageEditSelected = "KMImageNameToolbarPageEditSelected";
  38. let KMImageNameToolbarConvertSelected = "KMImageNameToolbarConvertSelected";
  39. let KMImageNameToolbarEditSelected = "KMImageNameToolbarEditSelected";
  40. let KMImageNameToolbarHomeSelected = "KMImageNameToolbarHomeSelected";
  41. let KMImageNameToolbarFormSelected = "KMImageNameToolbarFormSelected";
  42. let KMImageNameToolbarSelfSignSelected = "KMImageNameToolbarSelfSignSelected";
  43. let KMImageNameToolbarTextEditSelected = "KMImageNameToolbarTextEditSelected";
  44. let KMImageNameToolbarHand = "KMImageNameToolbarHand";
  45. let KMImageNameToolbarZoom = "KMImageNameToolbarZoom";
  46. let KMImageNameToolbarSelect = "KMImageNameToolbarSelect";
  47. let KMImageNameToolbarSelectZoom = "KMImageNameToolbarSelectZoom";
  48. let KMImageNameToolbarHighlight = "KMImageNameToolbarHighlight";
  49. let KMImageNameToolbarUnderline = "KMImageNameToolbarUnderline";
  50. let KMImageNameToolbarStrickout = "KMImageNameToolbarStrickout";
  51. let KMImageNameToolbarInk = "KMImageNameToolbarInk";
  52. let KMImageNameToolbarFreeText = "KMImageNameToolbarFreeText";
  53. let KMImageNameToolbarNote = "KMImageNameToolbarNote";
  54. let KMImageNameToolbarSquare = "KMImageNameToolbarSquare";
  55. let KMImageNameToolbarCircle = "KMImageNameToolbarCircle";
  56. let KMImageNameToolbarArrow = "KMImageNameToolbarArrow";
  57. let KMImageNameToolbarLine = "KMImageNameToolbarLine";
  58. let KMImageNameToolbarLink = "KMImageNameToolbarLink";
  59. let KMImageNameToolbarStamp = "KMImageNameToolbarStamp";
  60. let KMImageNameToolbarImage = "KMImageNameToolbarImage";
  61. let KMImageNameToolbarSign = "KMImageNameToolbarSign";
  62. let KMImageNameToolbarSet = "KMImageNameToolbarSet";
  63. let KMImageNameToolbarSpace = "KMImageNameToolbarSpace";
  64. let KMImageNameToolbarInsert = "KMImageNameToolbarInsert";
  65. let KMImageNameToolbarMerge = "KMImageNameToolbarMerge";
  66. let KMImageNameToolbarReplace = "KMImageNameToolbarReplace";
  67. let KMImageNameToolbarExtract = "KMImageNameToolbarExtract";
  68. let KMImageNameToolbarSplit = "KMImageNameToolbarSplit";
  69. let KMImageNameToolbarRotate = "KMImageNameToolbarRotate";
  70. let KMImageNameToolbarPaste = "KMImageNameToolbarPaste";
  71. let KMImageNameToolbarCopy = "KMImageNameToolbarCopy";
  72. let KMImageNameToolbarDelete = "KMImageNameToolbarDelete";
  73. let KMImageNameToolbarReverse = "KMImageNameToolbarReverse";
  74. let KMImageNameToolbarCompress = "KMImageNameToolbarCompress";
  75. let KMImageNameToolbarSercurity = "KMImageNameToolbarSercurity";
  76. let KMImageNameToolbarWatermark = "KMImageNameToolbarWatermark";
  77. let KMImageNameToolbarBackground = "KMImageNameToolbarBackground";
  78. let KMImageNameToolbarHeaderFooter = "KMImageNameToolbarHeaderFooter";
  79. let KMImageNameToolbarBates = "KMImageNameToolbarBates";
  80. let KMImageNameToolbarPDFToWord = "KMImageNameToolbarPDFToWord";
  81. let KMImageNameToolbarPDFToHtml = "KMImageNameToolbarPDFToHtml";
  82. let KMImageNameToolbarPDFToText = "KMImageNameToolbarPDFToText";
  83. let KMImageNameToolbarPDFToImage = "KMImageNameToolbarPDFToImage";
  84. let KMImageNameToolbarImageToPDF = "KMImageNameToolbarImageToPDF";
  85. let KMImageNameToolbarThemes = "KMImageNameToolbarThemes";
  86. let KMImageNameToolbarTurning = "KMImageNameToolbarTurning";
  87. let KMImageNameToolbarSplitScreen = "KMImageNameToolbarSplitScreen";
  88. let KMImageNameToolbarBreaks = "KMImageNameToolbarBreaks";
  89. let KMImageNameToolbarRotateRight = "KMImageNameToolbarRotateRight";
  90. let KMImageNameToolbarRotateLeft = "KMImageNameToolbarRotateLeft";
  91. let KMImageNameToolbarCrop = "KMImageNameToolbarCrop";
  92. let KMImageNameToolbarSnapshots = "KMImageNameToolbarSnapshots";
  93. let KMImageNamePanelContent = "KMImageNamePanelContent";
  94. let KMImageNamePanelRange = "KMImageNamePanelRange";
  95. let KMImageNamePanelAdd = "KMImageNamePanelAdd";
  96. let KMImageNamePanelDelete = "KMImageNamePanelDelete";
  97. let KMImageNamePanelFilter = "KMImageNamePanelFilter";
  98. let KMImageNamePanelExport = "KMImageNamePanelExport";
  99. let KMImageNamePanelPrint = "KMImageNamePanelPrint";
  100. let KMImageNamePanelSettings = "KMImageNamePanelSettings";
  101. let KMImageNameHomeDelete = "KMImageNameHomeDelete";
  102. let KMImageNameHomeDeleteHover = "KMImageNameHomeDeleteHover";
  103. let KMImageNameFormTextField = "KMImageNameFormTextField";
  104. let KMImageNameFormTable = "KMImageNameFormTable";
  105. let KMImageNameFormRadio = "KMImageNameFormRadio";
  106. let KMImageNameFormList = "KMImageNameFormList";
  107. let KMImageNameFormComboBox = "KMImageNameFormComboBox";
  108. let KMImageNameFormCheckBox = "KMImageNameFormCheckBox";
  109. let KMImageNameFormActionButton = "KMImageNameFormActionButton";
  110. let KMImageNameFormSignature = "KMImageNameFormSignature";
  111. let KMImageNameFormSegmentation = "KMImageNameFormSegmentation";
  112. let KMImageNameFormAlignment = "KMImageNameFormAlignment";
  113. let KMImageNameSelfSignCircle = "KMImageNameSelfSignCircle";
  114. let KMImageNameSelfSignCircleMouse = "KMImageNameSelfSignCircleMouse";
  115. let KMImageNameSelfSignCircleSel = "KMImageNameSelfSignCircleSel";
  116. let KMImageNameSelfSignDot = "KMImageNameSelfSignDot";
  117. let KMImageNameSelfSignDotSel = "KMImageNameSelfSignDotSel";
  118. let KMImageNameSelfSignFalse = "KMImageNameSelfSignFalse";
  119. let KMImageNameSelfSignFalseMouse = "KMImageNameSelfSignFalseMouse";
  120. let KMImageNameSelfSignFalseSel = "KMImageNameSelfSignFalseSel";
  121. let KMImageNameSelfSignTure = "KMImageNameSelfSignTure";
  122. let KMImageNameSelfSignTureMouse = "KMImageNameSelfSignTureMouse";
  123. let KMImageNameSelfSignTureSel = "KMImageNameSelfSignTureSel";
  124. let KMImageNameSelfSignLine = "KMImageNameSelfSignLine";
  125. let KMImageNameSelfSignLineSel = "KMImageNameSelfSignLineSel";
  126. let KMImageNameSelfSignLineMouse = "KMImageNameSelfSignLineMouse";
  127. let KMImageNameSelfSignDotMouse = "KMImageNameSelfSignDotMouse";
  128. let KMImageNameSelfSignProfile = "KMImageNameSelfSignProfile";
  129. let KMImageNameSelfSignDate = "KMImageNameSelfSignDate";
  130. let KMImageNameSelfSignDateMouse = "KMImageNameSelfSignDateMouse";
  131. let KMImageNameSplitOne = "KMImageNameSplitOne";
  132. let KMImageNameSplitOneSelect = "KMImageNameSplitOneSelect";
  133. let KMImageNameSplitHorizontal = "KMImageNameSplitHorizontal";
  134. let KMImageNameSplitHorizontalSelect = "KMImageNameSplitHorizontalSelect";
  135. let KMImageNameSplitVertical = "KMImageNameSplitVertical";
  136. let KMImageNameSplitVerticalSelect = "KMImageNameSplitVerticalSelect";
  137. //UX 改版
  138. //Home
  139. let KMImageNameUXIconHomeGuideNor = "KMImageNameUXIconHomeGuideNor";
  140. let KMImageNameUXIconHomeGuidePre = "KMImageNameUXIconHomeGuidePre";
  141. let KMImageNameUXIconHomeIosNor = "KMImageNameUXIconHomeIosNor";
  142. let KMImageNameUXIconHomeIosPre = "KMImageNameUXIconHomeIosPre";
  143. let KMImageNameUXIconHomeViewlistNor = "KMImageNameUXIconHomeViewlistNor";
  144. let KMImageNameUXIconHomeViewlistPre = "KMImageNameUXIconHomeViewlistPre";
  145. let KMImageNameUXIconHomeViewthumbnailNor = "KMImageNameUXIconHomeViewthumbnailNor";
  146. let KMImageNameUXIconHomeViewthumbnailPre = "KMImageNameUXIconHomeViewthumbnailPre";
  147. let KMImageNameUXIconHomeQuicktoolBackgroundNor = "KMImageNameUXIconHomeQuicktoolBackgroundNor";
  148. let KMImageNameUXIconHomeQuicktoolBatchNor = "KMImageNameUXIconHomeQuicktoolBatchNor";
  149. let KMImageNameUXIconHomeQuicktoolComprison = "KMImageNameUXIconHomeQuicktoolComprison";
  150. let KMImageNameUXIconHomeQuicktoolBatesNor = "KMImageNameUXIconHomeQuicktoolBatesNor";
  151. let KMImageNameUXIconHomeQuicktoolBookNor = "KMImageNameUXIconHomeQuicktoolBookNor";
  152. let KMImageNameUXIconHomeQuicktoolConvertNor = "KMImageNameUXIconHomeQuicktoolConvertNor";
  153. let KMImageNameUXIconHomeQuicktoolExcelNor = "KMImageNameUXIconHomeQuicktoolExcelNor";
  154. let KMImageNameUXIconHomeQuicktoolExtractNor = "KMImageNameUXIconHomeQuicktoolExtractNor";
  155. let KMImageNameUXIconHomeQuicktoolHeaderandfooterNor = "KMImageNameUXIconHomeQuicktoolHeaderandfooterNor";
  156. let KMImageNameUXIconHomeQuicktoolInsertNor = "KMImageNameUXIconHomeQuicktoolInsertNor";
  157. let KMImageNameUXIconHomeQuicktoolMergeNor = "KMImageNameUXIconHomeQuicktoolMergeNor";
  158. let KMImageNameUXIconHomeQuicktoolMultipageNor = "KMImageNameUXIconHomeQuicktoolMultipageNor";
  159. let KMImageNameUXIconHomeQuicktoolOcrNor = "KMImageNameUXIconHomeQuicktoolOcrNor";
  160. let KMImageNameUXIconHomeQuicktoolOptimizeNor = "KMImageNameUXIconHomeQuicktoolOptimizeNor";
  161. let KMImageNameUXIconHomeQuicktoolPageeditNor = "KMImageNameUXIconHomeQuicktoolPageeditNor";
  162. let KMImageNameUXIconHomeQuicktoolPdftoimgNor = "KMImageNameUXIconHomeQuicktoolPdftoimgNor";
  163. let KMImageNameUXIconHomeQuicktoolPosterNor = "KMImageNameUXIconHomeQuicktoolPosterNor";
  164. let KMImageNameUXIconHomeQuicktoolPPTNor = "KMImageNameUXIconHomeQuicktoolPPTNor";
  165. let KMImageNameUXIconHomeQuicktoolSafeNor = "KMImageNameUXIconHomeQuicktoolSafeNor";
  166. let KMImageNameUXIconHomeQuicktoolSplitNor = "KMImageNameUXIconHomeQuicktoolSplitNor";
  167. let KMImageNameUXIconHomeQuicktoolWatermarkNor = "KMImageNameUXIconHomeQuicktoolWatermarkNor";
  168. let KMImageNameUXIconHomeQuicktoolWordNor = "KMImageNameUXIconHomeQuicktoolWordNor";
  169. let KMImageNameUXIconHomeRemoveNor = "KMImageNameUXIconHomeRemoveNor";
  170. let KMImageNameUXIconHomeRemoveHov = "KMImageNameUXIconHomeRemoveHov";
  171. //Batch
  172. let KMImageNameUXIconBatchBackground = "KMImageNameUXIconBatchBackground";
  173. let KMImageNameUXIconBatchBates = "KMImageNameUXIconBatchBates";
  174. let KMImageNameUXIconBatchConvert = "KMImageNameUXIconBatchConvert";
  175. let KMImageNameUXIconBatchConvertOCR = "KMImageNameUXIconBatchConvertOCR";
  176. let KMImageNameUXIconBatchHeaderandfooter = "KMImageNameUXIconBatchHeaderandfooter";
  177. let KMImageNameUXIconBatchMerge = "KMImageNameUXIconBatchMerge";
  178. let KMImageNameUXIconBatchOptimize = "KMImageNameUXIconBatchOptimize";
  179. let KMImageNameUXIconBatchComparison = "KMImageNameUXIconBatchComparison";
  180. let KMImageNameUXIconBatchSafe = "KMImageNameUXIconBatchSafe";
  181. let KMImageNameUXIconBatchWatermark = "KMImageNameUXIconBatchWatermark";
  182. //Toolbar
  183. let KMImageNameUXIconToolbarConvertNor = "KMImageNameUXIconToolbarConvertNor";
  184. let KMImageNameUXIconToolbarConvertSel = "KMImageNameUXIconToolbarConvertSel";
  185. let KMImageNameUXIconToolbarEditNor = "KMImageNameUXIconToolbarEditNor";
  186. let KMImageNameUXIconToolbarEditSel = "KMImageNameUXIconToolbarEditSel";
  187. let KMImageNameUXIconToolbarRedactNor = "KMImageNameUXIconToolbarRedactNor";
  188. let KMImageNameUXIconToolbarRedactSel = "KMImageNameUXIconToolbarRedactSel";
  189. let KMImageNameUXIconToolbarEdittoolNor = "KMImageNameUXIconToolbarEdittoolNor";
  190. let KMImageNameUXIconToolbarEdittoolSel = "KMImageNameUXIconToolbarEdittoolSel";
  191. let KMImageNameUXIconToolbarFillsignNor = "KMImageNameUXIconToolbarFillsignNor";
  192. let KMImageNameUXIconToolbarFillsignSel = "KMImageNameUXIconToolbarFillsignSel";
  193. let KMImageNameUXIconToolbarFormNor = "KMImageNameUXIconToolbarFormNor";
  194. let KMImageNameUXIconToolbarFormSel = "KMImageNameUXIconToolbarFormSel";
  195. let KMImageNameUXIconToolbarMytoolsNor = "KMImageNameUXIconToolbarMytoolsNor";
  196. let KMImageNameUXIconToolbarMytoolsSel = "KMImageNameUXIconToolbarMytoolsSel";
  197. let KMImageNameUXIconToolbarPageeditNor = "KMImageNameUXIconToolbarPageeditNor";
  198. let KMImageNameUXIconToolbarPageeditSel = "KMImageNameUXIconToolbarPageeditSel";
  199. let KMImageNameUXIconToolbarPageviewNor = "KMImageNameUXIconToolbarPageviewNor";
  200. let KMImageNameUXIconToolbarPageviewSel = "KMImageNameUXIconToolbarPageviewSel";
  201. let KMImageNameUXIconToolbarShareNor = "KMImageNameUXIconToolbarShareNor";
  202. let KMImageNameUXIconToolbarShareSel = "KMImageNameUXIconToolbarShareSel";
  203. let KMImageNameUXIconToolbarZoominNor = "KMImageNameUXIconToolbarZoominNor";
  204. let KMImageNameUXIconToolbarZoominSel = "KMImageNameUXIconToolbarZoominSel";
  205. let KMImageNameUXIconToolbarZoomoutNor = "KMImageNameUXIconToolbarZoomoutNor";
  206. let KMImageNameToolbarZoomoutPre = "KMImageNameToolbarZoomoutPre";
  207. let KMImageNameToolbarBackwardNor = "KMImageNameToolbarBackwardNor";
  208. let KMImageNameToolbarBackwardSel = "KMImageNameToolbarBackwardSel";
  209. let KMImageNameToolbarFirstpageNor = "KMImageNameToolbarFirstpageNor";
  210. let KMImageNameToolbarFirstpageSel = "KMImageNameToolbarFirstpageSel";
  211. let KMImageNameToolbarForwardNor = "KMImageNameToolbarForwardNor";
  212. let KMImageNameToolbarForwardSel = "KMImageNameToolbarForwardSel";
  213. let KMImageNameToolbarHomeNor = "KMImageNameToolbarHomeNor";
  214. let KMImageNameToolbarHomeSel = "KMImageNameToolbarHomeSel";
  215. let KMImageNameToolbarLastpageNor = "KMImageNameToolbarLastpageNor";
  216. let KMImageNameToolbarLastpageSel = "KMImageNameToolbarLastpageSel";
  217. let KMImageNameToolbarPagenextNor = "KMImageNameToolbarPagenextNor";
  218. let KMImageNameToolbarPagenextSel = "KMImageNameToolbarPagenextSel";
  219. let KMImageNameToolbarPagepreviousNor = "KMImageNameToolbarPagepreviousNor";
  220. let KMImageNameToolbarPagepreviousSel = "KMImageNameToolbarPagepreviousSel";
  221. let KMImageNameToolbarSlideshowNor = "KMImageNameToolbarSlideshowNor";
  222. let KMImageNameToolbarSlideshowSel = "KMImageNameToolbarSlideshowSel";
  223. let KMImageNameToolbarFontNor = "KMImageNameToolbarFontNor";
  224. let KMImageNameToolbarFontSel = "KMImageNameToolbarFontSel";
  225. let KMImageNameToolbarInfoNor = "KMImageNameToolbarInfoNor";
  226. let KMImageNameToolbarInfoSel = "KMImageNameToolbarInfoSel";
  227. let KMImageNameToolbarOCRNor = "KMImageNameToolbarOCRNor";
  228. let KMImageNameToolbarOCRSel = "KMImageNameToolbarOCRSel";
  229. let KMImageNameToolbarPrintNor = "KMImageNameToolbarPrintNor";
  230. let KMImageNameToolbarPrintSel = "KMImageNameToolbarPrintSel";
  231. let KMImageNameToolbarStirkeNor = "KMImageNameToolbarStirkeNor";
  232. let KMImageNameToolbarStirkeSel = "KMImageNameToolbarStirkeSel";
  233. //ic_Subtoolbar
  234. let KMImageNameUXIconSubtoolbarConvertCreatPDF = "KMImageNameUXIconSubtoolbarConvertCreatpdf";
  235. let KMImageNameUXIconSubtoolbarConvertCSV = "KMImageNameUXIconSubtoolbarConvertCSV";
  236. let KMImageNameUXIconSubtoolbarConvertExcel = "KMImageNameUXIconSubtoolbarConvertExcel";
  237. let KMImageNameUXIconSubtoolbarConvertHtml = "KMImageNameUXIconSubtoolbarConvertHtml";
  238. let KMImageNameUXIconSubtoolbarConvertOCR = "KMImageNameUXIconSubtoolbarConvertOCR";
  239. let KMImageNameUXIconSubtoolbarConvertPDFToIMG = "KMImageNameUXIconSubtoolbarConvertPDFToIMG";
  240. let KMImageNameUXIconSubtoolbarConvertExportImage = "KMImageNameUXIconSubtoolbarConvertExportImage";
  241. let KMImageNameUXIconSubtoolbarConvertPPT = "KMImageNameUXIconSubtoolbarConvertPPT";
  242. let KMImageNameUXIconSubtoolbarConvertRTF = "KMImageNameUXIconSubtoolbarConvertRTF";
  243. let KMImageNameUXIconSubtoolbarConvertText = "KMImageNameUXIconSubtoolbarConvertText";
  244. let KMImageNameUXIconSubtoolbarConvertWord = "KMImageNameUXIconSubtoolbarConvertWord";
  245. let KMImageNameUXIconSubtoolbarDisplaySnapshot = "KMImageNameUXIconSubtoolbarDisplaySnapshot";
  246. let KMImageNameUXIconSubtoolbarDisplayTailor = "KMImageNameUXIconSubtoolbarDisplayTailor";
  247. let KMImageNameUXIconSubtoolbarDisplayTTS = "KMImageNameUXIconSubtoolbarDisplayTTS";
  248. let KMImageNameUXIconSubtoolbarDisplayView = "KMImageNameUXIconSubtoolbarDisplayView";
  249. let KMImageNameUXIconSubtoolbarEdittoolRemovepassword = "KMImageNameUXIconSubtoolbarEdittoolRemovepassword";
  250. let KMImageNameUXIconSubtoolbarEdittoolSafe = "KMImageNameUXIconSubtoolbarEdittoolSafe";
  251. let KMImageNameUXIconSubtoolbarFillsignDate = "KMImageNameUXIconSubtoolbarFillsignDate";
  252. let KMImageNameUXIconSubtoolbarFillsignDigitalsignature = "KMImageNameUXIconSubtoolbarFillsignDigitalsignature";
  253. let KMImageNameUXIconSubtoolbarFillsignFork = "KMImageNameUXIconSubtoolbarFillsignFork";
  254. let KMImageNameUXIconSubtoolbarFillsignLine = "KMImageNameUXIconSubtoolbarFillsignLine";
  255. let KMImageNameUXIconSubtoolbarFillsignMyprofile = "KMImageNameUXIconSubtoolbarFillsignMyprofile";
  256. let KMImageNameUXIconSubtoolbarFillsignMysignature = "KMImageNameUXIconSubtoolbarFillsignMysignature";
  257. let KMImageNameUXIconSubtoolbarFillsignPoint = "KMImageNameUXIconSubtoolbarFillsignPoint";
  258. let KMImageNameButtonRedactText = "KMImageNameButtonRedactText";
  259. let KMImageNameUXIconSubtoolbarFillsignRoundedrec = "KMImageNameUXIconSubtoolbarFillsignRoundedrec";
  260. let KMImageNameUXIconSubtoolbarFillsignTick = "KMImageNameUXIconSubtoolbarFillsignTick";
  261. let KMImageNameUXIconSubtoolbarFormButton = "KMImageNameUXIconSubtoolbarFormButton";
  262. let KMImageNameUXIconSubtoolbarFormCheckbox = "KMImageNameUXIconSubtoolbarFormCheckbox";
  263. let KMImageNameUXIconSubtoolbarFormListbox = "KMImageNameUXIconSubtoolbarFormListbox";
  264. let KMImageNameUXIconSubtoolbarFormPulldownmenu = "KMImageNameUXIconSubtoolbarFormPulldownmenu";
  265. let KMImageNameUXIconSubtoolbarFormRadiobutton = "KMImageNameUXIconSubtoolbarFormRadiobutton";
  266. let KMImageNameUXIconSubtoolbarFormSet = "KMImageNameUXIconSubtoolbarFormSet";
  267. let KMImageNameUXIconSubtoolbarFormSign = "KMImageNameUXIconSubtoolbarFormSign";
  268. let KMImageNameUXIconSubtoolbarFormClear = "KMImageNameUXIconSubtoolbarFormClear";
  269. let KMImageNameUXIconSubtoolbarFormTextfield = "KMImageNameUXIconSubtoolbarFormTextfield";
  270. let KMImageNameUXIconSubtoolbarMytoolsAreazoom = "KMImageNameUXIconSubtoolbarMytoolsAreazoom";
  271. let KMImageNameUXIconSubtoolbarMytoolsArrow = "KMImageNameUXIconSubtoolbarMytoolsArrow";
  272. let KMImageNameUXIconSubtoolbarMytoolsContentsel = "KMImageNameUXIconSubtoolbarMytoolsContentsel";
  273. let KMImageNameUXIconSubtoolbarMytoolsHighlight = "KMImageNameUXIconSubtoolbarMytoolsHighlight";
  274. let KMImageNameUXIconSubtoolbarMytoolsImage = "KMImageNameUXIconSubtoolbarMytoolsImage";
  275. let KMImageNameUXIconSubtoolbarMytoolsLine = "KMImageNameUXIconSubtoolbarMytoolsLine";
  276. let KMImageNameUXIconSubtoolbarMytoolsLink = "KMImageNameUXIconSubtoolbarMytoolsLink";
  277. let KMImageNameUXIconSubtoolbarMytoolsMagnifier = "KMImageNameUXIconSubtoolbarMytoolsMagnifier";
  278. let KMImageNameUXIconSubtoolbarMytoolsNote = "KMImageNameUXIconSubtoolbarMytoolsNote";
  279. let KMImageNameUXIconSubtoolbarMytoolsOval = "KMImageNameUXIconSubtoolbarMytoolsOval";
  280. let KMImageNameUXIconSubtoolbarMytoolsPantool = "KMImageNameUXIconSubtoolbarMytoolsPantool";
  281. let KMImageNameUXIconSubtoolbarMytoolsPen = "KMImageNameUXIconSubtoolbarMytoolsPen";
  282. let KMImageNameUXIconSubtoolbarMytoolsRec = "KMImageNameUXIconSubtoolbarMytoolsRec";
  283. let KMImageNameUXIconSubtoolbarMytoolsSign = "KMImageNameUXIconSubtoolbarMytoolsSign";
  284. let KMImageNameUXIconSubtoolbarMytoolsStamp = "KMImageNameUXIconSubtoolbarMytoolsStamp";
  285. let KMImageNameUXIconSubtoolbarMytoolsStrikeout = "KMImageNameUXIconSubtoolbarMytoolsStrikeout";
  286. let KMImageNameUXIconSubtoolbarMytoolsTable = "KMImageNameUXIconSubtoolbarMytoolsTable";
  287. let KMImageNameUXIconSubtoolbarMytoolsText = "KMImageNameUXIconSubtoolbarMytoolsText";
  288. let KMImageNameUXIconSubtoolbarMytoolsUnderline = "KMImageNameUXIconSubtoolbarMytoolsUnderline";
  289. let KMImageNameUXIconSubtoolbarPageCopy = "KMImageNameUXIconSubtoolbarPageCopy";
  290. let KMImageNameUXIconSubtoolbarPageDelete = "KMImageNameUXIconSubtoolbarPageDelete";
  291. let KMImageNameUXIconSubtoolbarPageExtract = "KMImageNameUXIconSubtoolbarPageExtract";
  292. let KMImageNameUXIconSubtoolbarPageInsert = "KMImageNameUXIconSubtoolbarPageInsert";
  293. let KMImageNameUXIconSubtoolbarPagePaste = "KMImageNameUXIconSubtoolbarPagePaste";
  294. let KMImageNameUXIconSubtoolbarPageRange = "KMImageNameUXIconSubtoolbarPageRange";
  295. let KMImageNameUXIconSubtoolbarPageReverse = "KMImageNameUXIconSubtoolbarPageReverse";
  296. let KMImageNameUXIconSubtoolbarPageRotate = "KMImageNameUXIconSubtoolbarPageRotate";
  297. let KMImageNameUXIconSubtoolbarPageSplit = "KMImageNameUXIconSubtoolbarPageSplit";
  298. let KMImageNameUXIconSubtoolbarPageTailor = "KMImageNameUXIconSubtoolbarPageTailor";
  299. //ic_Sidetabbar
  300. let KMImageNameUXIconSidetabbarAnnotationNor = "KMImageNameUXIconSidetabbarAnnotationNor";
  301. let KMImageNameUXIconSidetabbarAnnotationSel = "KMImageNameUXIconSidetabbarAnnotationSel";
  302. let KMImageNameUXIconSidetabbarOutlineNor = "KMImageNameUXIconSidetabbarOutlineNor";
  303. let KMImageNameUXIconSidetabbarOutlineSel = "KMImageNameUXIconSidetabbarOutlineSel";
  304. let KMImageNameUXIconSidetabbarSearchNor = "KMImageNameUXIconSidetabbarSearchNor";
  305. let KMImageNameUXIconSidetabbarSearchSel = "KMImageNameUXIconSidetabbarSearchSel";
  306. let KMImageNameUXIconSidetabbarSnapshotNor = "KMImageNameUXIconSidetabbarSnapshotNor";
  307. let KMImageNameUXIconSidetabbarSnapshotSel = "KMImageNameUXIconSidetabbarSnapshotSel";
  308. let KMImageNameUXIconSidetabbarThumbnailNor = "KMImageNameUXIconSidetabbarThumbnailNor";
  309. let KMImageNameUXIconSidetabbarThumbnailSel = "KMImageNameUXIconSidetabbarThumbnailSel";
  310. //ic_Sidebar
  311. let KMImageNameUXIconSidebarAnnotationFilterHightlightNor = "KMImageNameUXIconSidebarAnnotationFilterHightlightNor";
  312. let KMImageNameUXIconSidebarAnnotationFilterHightlightWhite = "KMImageNameUXIconSidebarAnnotationFilterHightlightWhite";
  313. let KMImageNameUXIconSidebarAnnotationFilterOvalNor = "KMImageNameUXIconSidebarAnnotationFilterOvalNor";
  314. let KMImageNameUXIconSidebarAnnotationFilterOvalWhite = "KMImageNameUXIconSidebarAnnotationFilterOvalWhite";
  315. let KMImageNameUXIconSidebarAnnotationFilterStampNor = "KMImageNameUXIconSidebarAnnotationFilterStampNor";
  316. let KMImageNameUXIconSidebarAnnotationFilterStampWhite = "KMImageNameUXIconSidebarAnnotationFilterStampWhite";
  317. let KMImageNameUXIconSidebarAnnotationFilterTextNor = "KMImageNameUXIconSidebarAnnotationFilterTextNor";
  318. let KMImageNameUXIconSidebarAnnotationFilterTextWhite = "KMImageNameUXIconSidebarAnnotationFilterTextWhite";
  319. let KMImageNameUXIconSidebarAnnotationFilterUnderlineNor = "KMImageNameUXIconSidebarAnnotationFilterUnderlineNor";
  320. let KMImageNameUXIconSidebarAnnotationFilterUnderlineWhite = "KMImageNameUXIconSidebarAnnotationFilterUnderlineWhite";
  321. let KMImageNameUXIconSidebarAnnotationHightlight = "KMImageNameUXIconSidebarAnnotationHightlight";
  322. let KMImageNameUXIconSidebarAnnotationOval = "KMImageNameUXIconSidebarAnnotationOval";
  323. let KMImageNameUXIconSidebarAnnotationStamp = "KMImageNameUXIconSidebarAnnotationStamp";
  324. let KMImageNameUXIconSidebarAnnotationText = "KMImageNameUXIconSidebarAnnotationText";
  325. let KMImageNameUXIconSidebarAnnotationUnderline = "KMImageNameUXIconSidebarAnnotationUnderline";
  326. let KMImageNameUXIconSidebarFormButton = "KMImageNameUXIconSidebarFormButton";
  327. let KMImageNameUXIconSidebarFormCheckbox = "KMImageNameUXIconSidebarFormCheckbox";
  328. let KMImageNameUXIconSidebarFormListbox = "KMImageNameUXIconSidebarFormListbox";
  329. let KMImageNameUXIconSidebarFormPulldownmenu = "KMImageNameUXIconSidebarFormPulldownmenu";
  330. let KMImageNameUXIconSidebarFormRadiobutton = "KMImageNameUXIconSidebarFormRadiobutton";
  331. let KMImageNameUXIconSidebarFormSign = "KMImageNameUXIconSidebarFormSign";
  332. let KMImageNameUXIconSidebarFormTextfield = "KMImageNameUXIconSidebarFormTextfield";
  333. let KMImageNameUXIconSidebarSnapshotWindowNor = "KMImageNameUXIconSidebarSnapshotWindowNor";
  334. let KMImageNameUXIconSidebarSnapshotWindowSel = "KMImageNameUXIconSidebarSnapshotWindowSel";
  335. let KMImageNameSidebarAnnotationLink = "KMImageNameSidebarAnnotationLink";
  336. let KMImageNameSidebarAnnotationImage = "KMImageNameSidebarAnnotationImage";
  337. let KMImageNameSidebarAnnotationSign = "KMImageNameSidebarAnnotationSign";
  338. let KMImageNameSidebarAnnotationTable = "KMImageNameSidebarAnnotationTable";
  339. let KMImageNameSidebarAnnotationMarkup = "KMImageNameSidebarAnnotationMarkup";
  340. let KMImageNameSidebarAnnotationNote = "KMImageNameSidebarAnnotationNote";
  341. //ic_Propertybar
  342. let KMImageNameUXIconPropertybarAlignDownNor = "KMImageNameUXIconPropertybarAlignDownNor";
  343. let KMImageNameUXIconPropertybarAlignDownPre = "KMImageNameUXIconPropertybarAlignDownPre";
  344. let KMImageNameUXIconPropertybarAlignHorcenterNor = "KMImageNameUXIconPropertybarAlignHorcenterNor";
  345. let KMImageNameUXIconPropertybarAlignHorcenterPre = "KMImageNameUXIconPropertybarAlignHorcenterPre";
  346. let KMImageNameUXIconPropertybarAlignHorsplitNor = "KMImageNameUXIconPropertybarAlignHorsplitNor";
  347. let KMImageNameUXIconPropertybarAlignHorsplitPre = "KMImageNameUXIconPropertybarAlignHorsplitPre";
  348. let KMImageNameUXIconPropertybarAlignLeftNor = "KMImageNameUXIconPropertybarAlignLeftNor";
  349. let KMImageNameUXIconPropertybarAlignLeftPre = "KMImageNameUXIconPropertybarAlignLeftPre";
  350. let KMImageNameUXIconPropertybarAlignLeftToor = "KMImageNameUXIconPropertybarAlignLeftToor";
  351. let KMImageNameUXIconPropertybarAlignRightNor = "KMImageNameUXIconPropertybarAlignRightNor";
  352. let KMImageNameUXIconPropertybarAlignRightPre = "KMImageNameUXIconPropertybarAlignRightPre";
  353. let KMImageNameUXIconPropertybarAlignUpNor = "KMImageNameUXIconPropertybarAlignUpNor";
  354. let KMImageNameUXIconPropertybarAlignUpPre = "KMImageNameUXIconPropertybarAlignUpPre";
  355. let KMImageNameUXIconPropertybarAlignVercenterNor = "KMImageNameUXIconPropertybarAlignVercenterNor";
  356. let KMImageNameUXIconPropertybarAlignVercenterPre = "KMImageNameUXIconPropertybarAlignVercenterPre";
  357. let KMImageNameUXIconPropertybarAlignVersplitNor = "KMImageNameUXIconPropertybarAlignVersplitNor";
  358. let KMImageNameUXIconPropertybarAlignVersplitPre = "KMImageNameUXIconPropertybarAlignVersplitPre";
  359. let KMImageNameUXIconPropertybarFileIMG = "KMImageNameUXIconPropertybarFileIMG";
  360. let KMImageNameUXIconPropertybarFilePdf = "KMImageNameUXIconPropertybarFilePdf";
  361. let KMImageNameUXIconPropertybarFillsignForkNor = "KMImageNameUXIconPropertybarFillsignForkNor";
  362. let KMImageNameUXIconPropertybarFillsignForkSel = "KMImageNameUXIconPropertybarFillsignForkSel";
  363. let KMImageNameUXIconPropertybarFillsignLineNor = "KMImageNameUXIconPropertybarFillsignLineNor";
  364. let KMImageNameUXIconPropertybarFillsignLineSel = "KMImageNameUXIconPropertybarFillsignLineSel";
  365. let KMImageNameUXIconPropertybarFillsignPointNor = "KMImageNameUXIconPropertybarFillsignPointNor";
  366. let KMImageNameUXIconPropertybarFillsignPointSel = "KMImageNameUXIconPropertybarFillsignPointSel";
  367. let KMImageNameUXIconPropertybarFillsignRoundedrecNor = "KMImageNameUXIconPropertybarFillsignRoundedrecNor";
  368. let KMImageNameUXIconPropertybarFillsignRoundedrecSel = "KMImageNameUXIconPropertybarFillsignRoundedrecSel";
  369. let KMImageNameUXIconPropertybarFillsignTickNor = "KMImageNameUXIconPropertybarFillsignTickNor";
  370. let KMImageNameUXIconPropertybarFillsignTickSel = "KMImageNameUXIconPropertybarFillsignTickSel";
  371. let KMImageNameUXIconPropertybarLinkEmail = "KMImageNameUXIconPropertybarLinkEmail";
  372. let KMImageNameUXIconPropertybarLinkPage = "KMImageNameUXIconPropertybarLinkPage";
  373. let KMImageNameUXIconPropertybarLinkUrl = "KMImageNameUXIconPropertybarLinkUrl";
  374. let KMImageNameUXIconPropertybarNoteAnnotationNor = "KMImageNameUXIconPropertybarNoteAnnotationNor";
  375. let KMImageNameUXIconPropertybarNoteAnnotationSel = "KMImageNameUXIconPropertybarNoteAnnotationSel";
  376. let KMImageNameUXIconPropertybarNoteHelpNor = "KMImageNameUXIconPropertybarNoteHelpNor";
  377. let KMImageNameUXIconPropertybarNoteHelpSel = "KMImageNameUXIconPropertybarNoteHelpSel";
  378. let KMImageNameUXIconPropertybarNoteInsertNor = "KMImageNameUXIconPropertybarNoteInsertNor";
  379. let KMImageNameUXIconPropertybarNoteInsertSel = "KMImageNameUXIconPropertybarNoteInsertSel";
  380. let KMImageNameUXIconPropertybarNoteKeywordNor = "KMImageNameUXIconPropertybarNoteKeywordNor";
  381. let KMImageNameUXIconPropertybarNoteKeywordSel = "KMImageNameUXIconPropertybarNoteKeywordSel";
  382. let KMImageNameUXIconPropertybarNoteNewparagraphNor = "KMImageNameUXIconPropertybarNoteNewparagraphNor";
  383. let KMImageNameUXIconPropertybarNoteNewparagraphSel = "KMImageNameUXIconPropertybarNoteNewparagraphSel";
  384. let KMImageNameUXIconPropertybarNoteNotesNor = "KMImageNameUXIconPropertybarNoteNotesNor";
  385. let KMImageNameUXIconPropertybarNoteNotesSel = "KMImageNameUXIconPropertybarNoteNotesSel";
  386. let KMImageNameUXIconPropertybarNoteParagraphNor = "KMImageNameUXIconPropertybarNoteParagraphNor";
  387. let KMImageNameUXIconPropertybarNoteParagraphSel = "KMImageNameUXIconPropertybarNoteParagraphSel";
  388. let KMImageNameUXIconPropertybarRotateClockwiseNor = "KMImageNameUXIconPropertybarRotateClockwiseNor";
  389. let KMImageNameUXIconPropertybarRotateClockwisePre = "KMImageNameUXIconPropertybarRotateClockwisePre";
  390. let KMImageNameUXIconPropertybarRotateCounterclockwiseNor = "KMImageNameUXIconPropertybarRotateCounterclockwiseNor";
  391. let KMImageNameUXIconPropertybarRotateCounterclockwisePre = "KMImageNameUXIconPropertybarRotateCounterclockwisePre";
  392. let KMImageNameUXIconPropertybarTableBottom = "KMImageNameUXIconPropertybarTableBottom";
  393. let KMImageNameUXIconPropertybarTableTitleAbove = "KMImageNameUXIconPropertybarTableTitleAbove";
  394. let KMImageNameUXIconPropertybarTableTitleLeft = "KMImageNameUXIconPropertybarTableTitleLeft";
  395. let KMImageNameUXIconPropertybarTextalignCenterNor = "KMImageNameUXIconPropertybarTextalignCenterNor";
  396. let KMImageNameUXIconPropertybarTextalignCenterSel = "KMImageNameUXIconPropertybarTextalignCenterSel";
  397. let KMImageNameUXIconPropertybarTextalignCenterWhite = "KMImageNameUXIconPropertybarTextalignCenterWhite";
  398. let KMImageNameUXIconPropertybarTextalignJustifyNor = "KMImageNameUXIconPropertybarTextalignJustifyNor";
  399. let KMImageNameUXIconPropertybarTextalignJustifySel = "KMImageNameUXIconPropertybarTextalignJustifySel";
  400. let KMImageNameUXIconPropertybarTextalignJustifyWhite = "KMImageNameUXIconPropertybarTextalignJustifyWhite";
  401. let KMImageNameUXIconPropertybarTextalignLeftNor = "KMImageNameUXIconPropertybarTextalignLeftNor";
  402. let KMImageNameUXIconPropertybarTextalignLeftSel = "KMImageNameUXIconPropertybarTextalignLeftSel";
  403. let KMImageNameUXIconPropertybarTextalignLeftWhite = "KMImageNameUXIconPropertybarTextalignLeftWhite";
  404. let KMImageNameUXIconPropertybarTextalignRightNor = "KMImageNameUXIconPropertybarTextalignRightNor";
  405. let KMImageNameUXIconPropertybarTextalignRightSel = "KMImageNameUXIconPropertybarTextalignRightSel";
  406. let KMImageNameUXIconPropertybarTextalignRightWhite = "KMImageNameUXIconPropertybarTextalignRightWhite";
  407. let KMImageNameUXIconPropertybarViewPagecoverNor = "KMImageNameUXIconPropertybarViewPagecoverNor";
  408. let KMImageNameUXIconPropertybarViewPagecoverSel = "KMImageNameUXIconPropertybarViewPagecoverSel";
  409. let KMImageNameUXIconPropertybarViewPagedoubleNor = "KMImageNameUXIconPropertybarViewPagedoubleNor";
  410. let KMImageNameUXIconPropertybarViewPagedoubleSel = "KMImageNameUXIconPropertybarViewPagedoubleSel";
  411. let KMImageNameUXIconPropertybarViewPagereadingNor = "KMImageNameUXIconPropertybarViewPagereadingNor";
  412. let KMImageNameUXIconPropertybarViewPagereadingSel = "KMImageNameUXIconPropertybarViewPagereadingSel";
  413. let KMImageNameUXIconPropertybarViewPagesingleNor = "KMImageNameUXIconPropertybarViewPagesingleNor";
  414. let KMImageNameUXIconPropertybarViewPagesingleSel = "KMImageNameUXIconPropertybarViewPagesingleSel";
  415. let KMImageNameUXIconPropertybarViewSplitscreenhorNor = "KMImageNameUXIconPropertybarViewSplitscreenhorNor";
  416. let KMImageNameUXIconPropertybarViewSplitscreenhorSel = "KMImageNameUXIconPropertybarViewSplitscreenhorSel";
  417. let KMImageNameUXIconPropertybarViewSplitscreensingleNor = "KMImageNameUXIconPropertybarViewSplitscreensingleNor";
  418. let KMImageNameUXIconPropertybarViewSplitscreensingleSel = "KMImageNameUXIconPropertybarViewSplitscreensingleSel";
  419. let KMImageNameUXIconPropertybarViewSplitscreenverNor = "KMImageNameUXIconPropertybarViewSplitscreenverNor";
  420. let KMImageNameUXIconPropertybarViewSplitscreenverSel = "KMImageNameUXIconPropertybarViewSplitscreenverSel";
  421. //ic_Cursors
  422. let KMImageNameUXIconCursorsText = "KMImageNameUXIconCursorsText";
  423. //ic_Progress
  424. let KMImageNameUXIconProgressComplete = "KMImageNameUXIconProgressComplete";
  425. let KMImageNameUXIconProgressFailure = "KMImageNameUXIconProgressFailure";
  426. let KMImageNameUXIconProgressWaiting = "KMImageNameUXIconProgressWaiting";
  427. //ic_Vip
  428. let KMImageNameUXIconVip = "KMImageNameUXIconVip";
  429. //ic_Btn
  430. let KMImageNameUXIconBtnAddHov = "KMImageNameUXIconBtnAddHov";
  431. let KMImageNameUXIconBtnAddNor = "KMImageNameUXIconBtnAddNor";
  432. let KMImageNameUXIconBtnAddWhite = "KMImageNameUXIconBtnAddWhite";
  433. let KMImageNameUXIconBtnArrowDown = "KMImageNameUXIconBtnArrowDown";
  434. let KMImageNameUXIconBtnArrowLeft = "KMImageNameUXIconBtnArrowLeft";
  435. let KMImageNameUXIconBtnArrowRight = "KMImageNameUXIconBtnArrowRight";
  436. let KMImageNameUXIconBtnArrowUp = "KMImageNameUXIconBtnArrowUp";
  437. let KMImageNameUXIconBtnArrowUpdown = "KMImageNameUXIconBtnArrowUpdown";
  438. let KMImageNameUXIconBtnCheckboxDis = "KMImageNameUXIconBtnCheckboxDis";
  439. let KMImageNameUXIconBtnCheckboxSel = "KMImageNameUXIconBtnCheckboxSel";
  440. let KMImageNameUXIconBtnClear = "KMImageNameUXIconBtnClear";
  441. let KMImageNameUXIconBtnCloseHov = "KMImageNameUXIconBtnCloseHov";
  442. let KMImageNameUXIconBtnCloseNor = "KMImageNameUXIconBtnCloseNor";
  443. let KMImageNameUXIconBtnCloseWhite = "KMImageNameUXIconBtnCloseWhite";
  444. let KMImageNameUXIconBtnColor = "KMImageNameUXIconBtnColor";
  445. let KMImageNameUXIconBtnDeletAccent = "KMImageNameUXIconBtnDeletAccent";
  446. let KMImageNameUXIconBtnDeletHov = "KMImageNameUXIconBtnDeletHov";
  447. let KMImageNameUXIconBtnDeletNor = "KMImageNameUXIconBtnDeletNor";
  448. let KMImageNameUXIconBtnEditHov = "KMImageNameUXIconBtnEditHov";
  449. let KMImageNameUXIconBtnEditNor = "KMImageNameUXIconBtnEditNor";
  450. let KMImageNameUXIconBtnEyesInvisible = "KMImageNameUXIconBtnEyesInvisible";
  451. let KMImageNameUXIconBtnEyesVisible = "KMImageNameUXIconBtnEyesVisible";
  452. let KMImageNameUXIconBtnFontsetNor = "KMImageNameUXIconBtnFontsetNor";
  453. let KMImageNameUXIconBtnFontsetPre = "KMImageNameUXIconBtnFontsetPre";
  454. let KMImageNameUXIconBtnOpenfileNor = "KMImageNameUXIconBtnOpenfileNor";
  455. let KMImageNameUXIconBtnOpenfileWhite = "KMImageNameUXIconBtnOpenfileWhite";
  456. let KMImageNameUXIconBtnOvalarrowDown = "KMImageNameUXIconBtnOvalarrowDown";
  457. let KMImageNameUXIconBtnRadioDis = "KMImageNameUXIconBtnRadioDis";
  458. let KMImageNameUXIconBtnRadioSel = "KMImageNameUXIconBtnRadioSel";
  459. let KMImageNameUXIconBtnSearchbarSearch = "KMImageNameUXIconBtnSearchbarSearch";
  460. let KMImageNameUXIconBtnSearchbarSearchfilter = "KMImageNameUXIconBtnSearchbarSearchfilter";
  461. let KMImageNameUXIconBtnSetNor = "KMImageNameUXIconBtnSetNor";
  462. let KMImageNameUXIconBtnSetPre = "KMImageNameUXIconBtnSetPre";
  463. let KMImageNameUXIconBtnSidebarAddNor = "KMImageNameUXIconBtnSidebarAddNor";
  464. let KMImageNameUXIconBtnSidebarAddPre = "KMImageNameUXIconBtnSidebarAddPre";
  465. let KMImageNameUXIconBtnSidebarFilterNor = "KMImageNameUXIconBtnSidebarFilterNor";
  466. let KMImageNameUXIconBtnSidebarFilterPre = "KMImageNameUXIconBtnSidebarFilterPre";
  467. let KMImageNameUXIconBtnSidebarListNor = "KMImageNameUXIconBtnSidebarListNor";
  468. let KMImageNameUXIconBtnSidebarListPre = "KMImageNameUXIconBtnSidebarListPre";
  469. let KMImageNameUXIconBtnSidebarMoreNor = "KMImageNameUXIconBtnSidebarMoreNor";
  470. let KMImageNameUXIconBtnSidebarMorePre = "KMImageNameUXIconBtnSidebarMorePre";
  471. let KMImageNameUXIconBtnSidebarMoreSecondary = "KMImageNameUXIconBtnSidebarMoreSecondary";
  472. let KMImageNameUXIconBtnSidebarPageNor = "KMImageNameUXIconBtnSidebarPageNor";
  473. let KMImageNameUXIconBtnSidebarPagePre = "KMImageNameUXIconBtnSidebarPagePre";
  474. let KMImageNameUXIconBtnSidebarSearchNor = "KMImageNameUXIconBtnSidebarSearchNor";
  475. let KMImageNameUXIconBtnSidebarSearchPre = "KMImageNameUXIconBtnSidebarSearchPre";
  476. let KMImageNameUXIconBtnSidebarZoominNor = "KMImageNameUXIconBtnSidebarZoominNor";
  477. let KMImageNameUXIconBtnSidebarZoominPre = "KMImageNameUXIconBtnSidebarZoominPre";
  478. let KMImageNameUXIconBtnSidebarZoomoutNor = "KMImageNameUXIconBtnSidebarZoomoutNor";
  479. let KMImageNameUXIconBtnSidebarZoomoutPre = "KMImageNameUXIconBtnSidebarZoomoutPre";
  480. let KMImageNameUXIconBtnStrikeNor = "KMImageNameUXIconBtnStrikeNor";
  481. let KMImageNameUXIconBtnStrikePre = "KMImageNameUXIconBtnStrikePre";
  482. let KMImageNameUXIconBtnsysArrowLeft = "KMImageNameUXIconBtnsysArrowLeft";
  483. let KMImageNameUXIconBtnSysArrowRight = "KMImageNameUXIconBtnSysArrowRight";
  484. let KMImageNameUXIconBtnTriDownNor = "KMImageNameUXIconBtnTriDownNor";
  485. let KMImageNameUXIconBtnTriDownPre = "KMImageNameUXIconBtnTriDownPre";
  486. let KMImageNameUXIconBtnTriLeftNor = "KMImageNameUXIconBtnTriLeftNor";
  487. let KMImageNameUXIconBtnTriLeftPre = "KMImageNameUXIconBtnTriLeftPre";
  488. let KMImageNameUXIconBtnTriLeftSel = "KMImageNameUXIconBtnTriLeftSel";
  489. let KMImageNameUXIconBtnTriRightNor = "KMImageNameUXIconBtnTriRightNor";
  490. let KMImageNameUXIconBtnTriRightPre = "KMImageNameUXIconBtnTriRightPre";
  491. let KMImageNameUXIconBtnTriRightSel = "KMImageNameUXIconBtnTriRightSel";
  492. let KMImageNameUXIconBtnTriUpNor = "KMImageNameUXIconBtnTriUpNor";
  493. let KMImageNameUXIconBtnTriUpPre = "KMImageNameUXIconBtnTriUpPre";
  494. let KMImageNameBtnSidebarRankPositive = "KMImageNameBtnSidebarRankPositive";
  495. let KMImageNameBtnSidebarRankReverse = "KMImageNameBtnSidebarRankReverse";
  496. let KMImageNameEmptyOutline = "KMImageNameEmptyOutline";
  497. let KMImageNameEmptyAnnotation = "KMImageNameEmptyAnnotation";
  498. let KMImageNameEmptySearch = "KMImageNameEmptySearch";
  499. let KMImageNameEmptyStamp = "KMImageNameEmptyStamp";
  500. let KMImageNameEmptySign = "KMImageNameEmptySign";
  501. let KMImageNameEmptyWatermark = "KMImageNameEmptyWatermark";
  502. let KMImageNameEmptyBackground = "KMImageNameEmptyBackground";
  503. let KMImageNameEmptyHeaderandfooter = "KMImageNameEmptyHeaderandfooter";
  504. let KMImageNameEmptySplitview = "KMImageNameEmptySplitview";
  505. let KMImageNameCursorsUnderline = "KMImageNameCursorsUnderline";
  506. let KMImageNameCursorsHighlight = "KMImageNameCursorsHighlight";
  507. let KMImageNameCursorsStrikeout = "KMImageNameCursorsStrikeout";
  508. let KMImageNameCursorsFreehand = "KMImageNameCursorsFreehand";
  509. let KMImageNameCursorsText = "KMImageNameCursorsText";
  510. let KMImageNameCursorsNote = "KMImageNameCursorsNote";
  511. let KMImageNameCursorsRec = "KMImageNameCursorsRec";
  512. let KMImageNameCursorsOval = "KMImageNameCursorsOval";
  513. let KMImageNameCursorsArrow = "KMImageNameCursorsArrow";
  514. let KMImageNameCursorsTable = "KMImageNameCursorsTable";
  515. let KMImageNameCursorsLink = "KMImageNameCursorsLink";
  516. let KMImageNameCursorsLine = "KMImageNameCursorsLine";
  517. let KMImageNameCursorsButton = "KMImageNameCursorsButton";
  518. let KMImageNameCursorsCheckbox = "KMImageNameCursorsCheckbox";
  519. let KMImageNameCursorsDate = "KMImageNameCursorsDate";
  520. let KMImageNameCursorsFork = "KMImageNameCursorsFork";
  521. let KMImageNameCursorsFormLine = "KMImageNameCursorsFormLine";
  522. let KMImageNameCursorsListbox = "KMImageNameCursorsListbox";
  523. let KMImageNameCursorsPoint = "KMImageNameCursorsPoint";
  524. let KMImageNameCursorsPulldownmenu = "KMImageNameCursorsPulldownmenu";
  525. let KMImageNameCursorsRadiobutton = "KMImageNameCursorsRadiobutton";
  526. let KMImageNameCursorsRoundedrec = "KMImageNameCursorsRoundedrec";
  527. let KMImageNameCursorsSign = "KMImageNameCursorsSign";
  528. let KMImageNameCursorsTextfield = "KMImageNameCursorsTextfield";
  529. let KMImageNameCursorsTick = "KMImageNameCursorsTick";
  530. let KMImageNameElse1 = "KMImageNameElse1";
  531. let KMImageNameElse2 = "KMImageNameElse2";
  532. let KMImageNameElsei = "KMImageNameElsei";
  533. @objcMembers class KMAppearance: NSObject {
  534. class func isDarkMode() -> Bool {
  535. let result = false
  536. if #available(macOS 10.14, *) {
  537. let appearanceName = NSApp.effectiveAppearance.bestMatch(from: [.aqua, .darkAqua])
  538. if (appearanceName == .darkAqua) {
  539. return true
  540. }
  541. }
  542. return result
  543. }
  544. @objc class func titleColor() -> NSColor {
  545. if (!KMAppearance.isSupportNewColor()) {
  546. return NSColor.km_init(hex: "#252629")
  547. }
  548. if let _color = NSColor(named: "KMTitleColor") {
  549. return _color
  550. }
  551. return NSColor.km_init(hex: "#252629")
  552. }
  553. @objc class func subtitleColor() -> NSColor {
  554. if (!KMAppearance.isSupportNewColor()) {
  555. return NSColor.km_init(hex: "#616469")
  556. }
  557. if let _color = NSColor(named: "KMSubtitleColor") {
  558. return _color
  559. }
  560. return NSColor.km_init(hex: "#616469")
  561. }
  562. @objc class func view_bg_dis_color() -> NSColor {
  563. if (!KMAppearance.isSupportNewColor()) {
  564. return NSColor.km_init(hex: "#EDEEF0")
  565. }
  566. if let _color = NSColor(named: "KMBackgroundDisableColor") {
  567. return _color
  568. }
  569. return NSColor.km_init(hex: "#EDEEF0")
  570. }
  571. @objc class func view_border_dis_color() -> NSColor {
  572. if (!KMAppearance.isSupportNewColor()) {
  573. return NSColor.km_init(hex: "#DFE1E5")
  574. }
  575. if let _color = NSColor(named: "KMBorderDisableColor") {
  576. return _color
  577. }
  578. return NSColor.km_init(hex: "#DFE1E5")
  579. }
  580. @objc class func controlBackgroundColor() -> NSColor {
  581. if (!KMAppearance.isSupportNewColor()) {
  582. return NSColor(white: 246/255.0, alpha: 1)
  583. }
  584. if let _color = NSColor(named: "KMControlBackgroundColor") {
  585. return _color
  586. }
  587. return NSColor(white: 246/255.0, alpha: 1)
  588. }
  589. class func isSupportNewColor() -> Bool {
  590. if #available(macOS 10.14, *) {
  591. return true
  592. }
  593. return false
  594. }
  595. }
  596. // MARK: - Reader Pro
  597. @objc extension KMAppearance {
  598. class func viewBackgroundColor() -> NSColor {
  599. if (!self.isSupportNewColor()) {
  600. return NSColor(red: 250.0/255.0, green: 250.0/255.0, blue: 250.0/255.0, alpha: 1)
  601. }
  602. if let _color = NSColor(named: "KMViewBackgroundColor") {
  603. return _color
  604. }
  605. return NSColor(red: 250.0/255.0, green: 250.0/255.0, blue: 250.0/255.0, alpha: 1)
  606. }
  607. class func PDFViewBackgroundColor() -> NSColor {
  608. if (!self.isSupportNewColor()) {
  609. return NSColor.km_init(hex: "#DADBDE")
  610. }
  611. if let _color = NSColor(named: "KMPDFViewBackgroundColor") {
  612. return _color
  613. }
  614. return NSColor.km_init(hex: "#DADBDE")
  615. }
  616. class func toolbarBorderColor() -> NSColor {
  617. if (!self.isSupportNewColor()) {
  618. return NSColor(red: 213/255.0, green: 213/255.0, blue: 213/255.0, alpha: 1)
  619. }
  620. if let _color = NSColor(named: "KMToolbarBorderColor") {
  621. return _color
  622. }
  623. return NSColor(red: 213/255.0, green: 213/255.0, blue: 213/255.0, alpha: 1)
  624. }
  625. class func newWindowBackgroundColor() -> NSColor {
  626. if (!self.isSupportNewColor()) {
  627. return NSColor.km_init(hex: "#EEEEEE", alpha: 0.85)
  628. }
  629. if let _color = NSColor(named: "KMNewWindowBackgroundColor") {
  630. return _color
  631. }
  632. return NSColor.km_init(hex: "#EEEEEE", alpha: 0.85)
  633. }
  634. class func buttonHoverColor() -> NSColor {
  635. if (!self.isSupportNewColor()) {
  636. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  637. }
  638. if let _color = NSColor(named: "KMButtonHoverColor") {
  639. return _color
  640. }
  641. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  642. }
  643. // 236 242 251
  644. class func buttonSelectedColor() -> NSColor {
  645. if (!self.isSupportNewColor()) {
  646. return NSColor.km_init(hex: "#EAF2FB")
  647. }
  648. if let _color = NSColor(named: "KMButtonSelectedColor") {
  649. return _color
  650. }
  651. return NSColor.km_init(hex: "#EAF2FB")
  652. }
  653. class func buttonDisabledColor() -> NSColor {
  654. if (!self.isSupportNewColor()) {
  655. return NSColor.km_init(hex: "#DADBDE")
  656. }
  657. if let _color = NSColor(named: "KMButtonDisabledColor") {
  658. return _color
  659. }
  660. return NSColor.km_init(hex: "#DADBDE")
  661. }
  662. class func separatorLineColor() -> NSColor {
  663. if (!self.isSupportNewColor()) {
  664. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  665. }
  666. if let _color = NSColor(named: "KMSeparatorLineColor") {
  667. return _color
  668. }
  669. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  670. }
  671. // MARK: - New UX Color
  672. class func KM_477EDE_Color15() -> NSColor {
  673. if (!self.isSupportNewColor()) {
  674. return NSColor.km_init(hex: "#477EDE", alpha: 0.15)
  675. }
  676. if let _color = NSColor(named: "KM_477EDE_Color15") {
  677. return _color
  678. }
  679. return NSColor.km_init(hex: "#477EDE", alpha: 0.15)
  680. }
  681. /// 高亮颜色
  682. class func KM_D2D1D2_Color() -> NSColor {
  683. if (!self.isSupportNewColor()) {
  684. return NSColor.km_init(hex: "#D2D1D2", alpha: 1)
  685. }
  686. if let _color = NSColor(named: "KM_D2D1D2_Color") {
  687. return _color
  688. }
  689. return NSColor.km_init(hex: "#D2D1D2", alpha: 1)
  690. }
  691. class func KM_EDECED_Color() -> NSColor {
  692. if (!self.isSupportNewColor()) {
  693. return NSColor.km_init(hex: "#EDECED", alpha: 1)
  694. }
  695. if let _color = NSColor(named: "KM_EDECED_Color") {
  696. return _color
  697. }
  698. return NSColor.km_init(hex: "#EDECED", alpha: 1)
  699. }
  700. class func KM_DBDBDB_Color() -> NSColor {
  701. if (!self.isSupportNewColor()) {
  702. return NSColor.km_init(hex: "#DBDBDB", alpha: 1)
  703. }
  704. if let _color = NSColor(named: "KM_DBDBDB_Color") {
  705. return _color
  706. }
  707. return NSColor.km_init(hex: "#DBDBDB", alpha: 1)
  708. }
  709. class func KM_FFFFFF_ColorChange01() -> NSColor {
  710. if (!self.isSupportNewColor()) {
  711. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  712. }
  713. if let _color = NSColor(named: "KM_FFFFFF_ColorChange01") {
  714. return _color
  715. }
  716. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  717. }
  718. class func KM_757780_Color() -> NSColor {
  719. if (!self.isSupportNewColor()) {
  720. return NSColor.km_init(hex: "#757780", alpha: 1)
  721. }
  722. if let _color = NSColor(named: "KM_757780_Color") {
  723. return _color
  724. }
  725. return NSColor.km_init(hex: "#757780", alpha: 1)
  726. }
  727. class func KM_FFFFFF_Color35() -> NSColor {
  728. if (!self.isSupportNewColor()) {
  729. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  730. }
  731. if let _color = NSColor(named: "KM_FFFFFF_Color35") {
  732. return _color
  733. }
  734. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  735. }
  736. class func KM_000000_Color15Chang35() -> NSColor {
  737. if (!self.isSupportNewColor()) {
  738. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  739. }
  740. if let _color = NSColor(named: "KM_000000_Color15Chang35") {
  741. return _color
  742. }
  743. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  744. }
  745. class func KM_000000_Color20() -> NSColor {
  746. return NSColor.km_init(hex: "#000000", alpha: 0.2)
  747. }
  748. class func KM_242424_Color() -> NSColor {
  749. if (!self.isSupportNewColor()) {
  750. return NSColor.km_init(hex: "#242424", alpha: 1)
  751. }
  752. if let _color = NSColor(named: "KM_242424_Color") {
  753. return _color
  754. }
  755. return NSColor.km_init(hex: "#242424", alpha: 1)
  756. }
  757. class func KM_242424_Color40() -> NSColor {
  758. if (!self.isSupportNewColor()) {
  759. return NSColor.km_init(hex: "#242424", alpha: 0.6)
  760. }
  761. if let _color = NSColor(named: "KM_242424_Color40") {
  762. return _color
  763. }
  764. return NSColor.km_init(hex: "#242424", alpha: 0.6)
  765. }
  766. class func KM_242424_Color75() -> NSColor {
  767. if (!self.isSupportNewColor()) {
  768. return NSColor.km_init(hex: "#242424", alpha: 1)
  769. }
  770. if let _color = NSColor(named: "KM_242424_Color75") {
  771. return _color
  772. }
  773. return NSColor.km_init(hex: "#242424", alpha: 1)
  774. }
  775. class func KM_067DFF_Color() -> NSColor {
  776. if (!self.isSupportNewColor()) {
  777. return NSColor.km_init(hex: "#067DFF", alpha: 1)
  778. }
  779. if let _color = NSColor(named: "KM_067DFF_Color") {
  780. return _color
  781. }
  782. return NSColor.km_init(hex: "#067DFF", alpha: 1)
  783. }
  784. class func KM_FFF700_Color60() -> NSColor {
  785. if (!self.isSupportNewColor()) {
  786. return NSColor.km_init(hex: "#FFF700", alpha: 0.6)
  787. }
  788. if let _color = NSColor(named: "KM_FFF700_Color60") {
  789. return _color
  790. }
  791. return NSColor.km_init(hex: "#FFF700", alpha: 0.6)
  792. }
  793. class func KM_F6F6F6_Color() -> NSColor {
  794. if (!self.isSupportNewColor()) {
  795. return NSColor.km_init(hex: "#F6F6F6", alpha: 1)
  796. }
  797. if let _color = NSColor(named: "KM_F6F6F6_Color") {
  798. return _color
  799. }
  800. return NSColor.km_init(hex: "#F6F6F6", alpha: 1)
  801. }
  802. // MARK: - 已经存在日间模式颜色,但是夜间模式颜色和原来存在的颜色不一致。以下
  803. class func KM_273C62_ColorDarkChanged02() -> NSColor {
  804. if (!self.isSupportNewColor()) {
  805. return NSColor.km_init(hex: "#273C62", alpha: 1)
  806. }
  807. if let _color = NSColor(named: "KMMainColorDarkChanged02") {
  808. return _color
  809. }
  810. return NSColor.km_init(hex: "#273C62", alpha: 1)
  811. }
  812. class func KM_FFFFFF_ColorDarkChanged06() -> NSColor {
  813. if (!self.isSupportNewColor()) {
  814. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  815. }
  816. if let _color = NSColor(named: "KM_FFFFFF_ColorDarkChanged06") {
  817. return _color
  818. }
  819. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  820. }
  821. class func KM_DADBDE_ColorDarkChange04() -> NSColor {
  822. if (!self.isSupportNewColor()) {
  823. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  824. }
  825. if let _color = NSColor(named: "KM_DADBDE_ColorDarkChange04") {
  826. return _color
  827. }
  828. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  829. }
  830. class func KM_273C62_Color80DarkChanged01() -> NSColor {
  831. if (!self.isSupportNewColor()) {
  832. return NSColor.km_init(hex: "#273C62", alpha: 0.8)
  833. }
  834. if let _color = NSColor(named: "KM_273C62_Color80DarkChanged01") {
  835. return _color
  836. }
  837. return NSColor.km_init(hex: "#273C62", alpha: 0.8)
  838. }
  839. class func KM_477EDE_ColorDarkChange01() -> NSColor {
  840. if (!self.isSupportNewColor()) {
  841. return NSColor.km_init(hex: "#477EDE", alpha: 1)
  842. }
  843. if let _color = NSColor(named: "KM_477EDE_ColorDarkChange01") {
  844. return _color
  845. }
  846. return NSColor.km_init(hex: "#477EDE", alpha: 1)
  847. }
  848. class func KM_000000_Color5DarkChange01() -> NSColor {
  849. if (!self.isSupportNewColor()) {
  850. return NSColor.km_init(hex: "#000000", alpha: 0.05)
  851. }
  852. if let _color = NSColor(named: "KM_000000_Color5DarkChange01") {
  853. return _color
  854. }
  855. return NSColor.km_init(hex: "#000000", alpha: 0.05)
  856. }
  857. // MARK: - New Color
  858. @available(*, deprecated, renamed: "Layout.mColor()")
  859. class func KMColor_Layout_M() -> NSColor {
  860. if (!self.isSupportNewColor()) {
  861. return NSColor.km_init(hex: "#273C62", alpha: 1)
  862. }
  863. if let _color = NSColor(named: "KMColor_Layout_M") {
  864. return _color
  865. }
  866. return NSColor.km_init(hex: "#273C62", alpha: 1)
  867. }
  868. @available(*, deprecated, renamed: "Layout.m_1Color()")
  869. class func KMColor_Layout_M_1() -> NSColor {
  870. if (!self.isSupportNewColor()) {
  871. return NSColor.km_init(hex: "#273C62", alpha: 1)
  872. }
  873. if let _color = NSColor(named: "KMColor_Layout_M_1") {
  874. return _color
  875. }
  876. return NSColor.km_init(hex: "#273C62", alpha: 1)
  877. }
  878. @available(*, deprecated, renamed: "Layout.bgColor()")
  879. class func KMColor_Layout_BG() -> NSColor {
  880. if (!self.isSupportNewColor()) {
  881. return NSColor.km_init(hex: "#EBECF0", alpha: 1)
  882. }
  883. if let _color = NSColor(named: "KMColor_Layout_BG") {
  884. return _color
  885. }
  886. return NSColor.km_init(hex: "#EBECF0", alpha: 1)
  887. }
  888. @available(*, deprecated, renamed: "Layout.bgDrakColor()")
  889. class func KMColor_Layout_BG_Drak() -> NSColor {
  890. if (!self.isSupportNewColor()) {
  891. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  892. }
  893. if let _color = NSColor(named: "KMColor_Layout_BG_Drak") {
  894. return _color
  895. }
  896. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  897. }
  898. @available(*, deprecated, renamed: "Layout.l_2Color()")
  899. class func KMColor_Layout_L_2() -> NSColor {
  900. if (!self.isSupportNewColor()) {
  901. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  902. }
  903. if let _color = NSColor(named: "KMColor_Layout_L_2") {
  904. return _color
  905. }
  906. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  907. }
  908. @available(*, deprecated, renamed: "Layout.l_1Color()")
  909. class func KMColor_Layout_L_1() -> NSColor {
  910. if (!self.isSupportNewColor()) {
  911. return NSColor.km_init(hex: "#EBECF0", alpha: 1)
  912. }
  913. if let _color = NSColor(named: "KMColor_Layout_L_1") {
  914. return _color
  915. }
  916. return NSColor.km_init(hex: "#EBECF0", alpha: 1)
  917. }
  918. @available(*, deprecated, renamed: "Layout.l0Color()")
  919. class func KMColor_Layout_L0() -> NSColor {
  920. if (!self.isSupportNewColor()) {
  921. return NSColor.km_init(hex: "#FCFDFF", alpha: 1)
  922. }
  923. if let _color = NSColor(named: "KMColor_Layout_L0") {
  924. return _color
  925. }
  926. return NSColor.km_init(hex: "#FCFDFF", alpha: 1)
  927. }
  928. @available(*, deprecated, renamed: "Layout.l1Color()")
  929. class func KMColor_Layout_L1() -> NSColor {
  930. if (!self.isSupportNewColor()) {
  931. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  932. }
  933. if let _color = NSColor(named: "KMColor_Layout_L1") {
  934. return _color
  935. }
  936. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  937. }
  938. @available(*, deprecated, renamed: "Layout.h0Color()")
  939. class func KMColor_Layout_H0() -> NSColor {
  940. if (!self.isSupportNewColor()) {
  941. return NSColor.km_init(hex: "#0E1114", alpha: 1)
  942. }
  943. if let _color = NSColor(named: "KMColor_Layout_H0") {
  944. return _color
  945. }
  946. return NSColor.km_init(hex: "#0E1114", alpha: 1)
  947. }
  948. @available(*, deprecated, renamed: "Layout.h1Color()")
  949. class func KMColor_Layout_H1() -> NSColor {
  950. if (!self.isSupportNewColor()) {
  951. return NSColor.km_init(hex: "#42464D", alpha: 1)
  952. }
  953. if let _color = NSColor(named: "KMColor_Layout_H1") {
  954. return _color
  955. }
  956. return NSColor.km_init(hex: "#42464D", alpha: 1)
  957. }
  958. @available(*, deprecated, renamed: "Layout.h2Color()")
  959. class func KMColor_Layout_H2() -> NSColor {
  960. if (!self.isSupportNewColor()) {
  961. return NSColor.km_init(hex: "#757780", alpha: 1)
  962. }
  963. if let _color = NSColor(named: "KMColor_Layout_H2") {
  964. return _color
  965. }
  966. return NSColor.km_init(hex: "#757780", alpha: 1)
  967. }
  968. @available(*, deprecated, renamed: "Layout.b80Color()")
  969. class func KMColor_Layout_B80() -> NSColor {
  970. if (!self.isSupportNewColor()) {
  971. return NSColor.km_init(hex: "#000000", alpha: 0.8)
  972. }
  973. if let _color = NSColor(named: "KMColor_Layout_B80") {
  974. return _color
  975. }
  976. return NSColor.km_init(hex: "#000000", alpha: 0.8)
  977. }
  978. @available(*, deprecated, renamed: "Layout.b30Color()")
  979. class func KMColor_Layout_B30() -> NSColor {
  980. if (!self.isSupportNewColor()) {
  981. return NSColor.km_init(hex: "#000000", alpha: 0.3)
  982. }
  983. if let _color = NSColor(named: "KMColor_Layout_B30") {
  984. return _color
  985. }
  986. return NSColor.km_init(hex: "#000000", alpha: 0.3)
  987. }
  988. @available(*, deprecated, renamed: "Layout.b15Color()")
  989. class func KMColor_Layout_B15() -> NSColor {
  990. if (!self.isSupportNewColor()) {
  991. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  992. }
  993. if let _color = NSColor(named: "KMColor_Layout_B15") {
  994. return _color
  995. }
  996. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  997. }
  998. @available(*, deprecated, renamed: "Layout.w0Color()")
  999. class func KMColor_Layout_W0() -> NSColor {
  1000. if (!self.isSupportNewColor()) {
  1001. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  1002. }
  1003. if let _color = NSColor(named: "KMColor_Layout_W0") {
  1004. return _color
  1005. }
  1006. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  1007. }
  1008. @available(*, deprecated, renamed: "Layout.w70Color()")
  1009. class func KMColor_Layout_W70() -> NSColor {
  1010. if (!self.isSupportNewColor()) {
  1011. return NSColor.km_init(hex: "#FFFFFF", alpha: 0.7)
  1012. }
  1013. if let _color = NSColor(named: "KMColor_Layout_W70") {
  1014. return _color
  1015. }
  1016. return NSColor.km_init(hex: "#FFFFFF", alpha: 0.7)
  1017. }
  1018. @available(*, deprecated, renamed: "Layout.w30Color()")
  1019. class func KMColor_Layout_W30() -> NSColor {
  1020. if (!self.isSupportNewColor()) {
  1021. return NSColor.km_init(hex: "#FFFFFF", alpha: 0.3)
  1022. }
  1023. if let _color = NSColor(named: "KMColor_Layout_W30") {
  1024. return _color
  1025. }
  1026. return NSColor.km_init(hex: "#FFFFFF", alpha: 0.3)
  1027. }
  1028. @available(*, deprecated, renamed: "Layout.w15Color()")
  1029. class func KMColor_Layout_W15() -> NSColor {
  1030. if (!self.isSupportNewColor()) {
  1031. return NSColor.km_init(hex: "#FFFFFF", alpha: 0.15)
  1032. }
  1033. if let _color = NSColor(named: "KMColor_Layout_W15") {
  1034. return _color
  1035. }
  1036. return NSColor.km_init(hex: "#FFFFFF", alpha: 0.15)
  1037. }
  1038. @available(*, deprecated, renamed: "Layout.b15_1Color()")
  1039. class func KMColor_Layout_B15_1() -> NSColor {
  1040. if (!self.isSupportNewColor()) {
  1041. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  1042. }
  1043. if let _color = NSColor(named: "KMColor_Layout_B15_1") {
  1044. return _color
  1045. }
  1046. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  1047. }
  1048. /// Interactive
  1049. @available(*, deprecated, renamed: "Interactive.a_1Color()")
  1050. class func KMColor_Interactive_A_1() -> NSColor {
  1051. if (!self.isSupportNewColor()) {
  1052. return NSColor.km_init(hex: "#3864B0", alpha: 1)
  1053. }
  1054. if let _color = NSColor(named: "KMColor_Interactive_A_1") {
  1055. return _color
  1056. }
  1057. return NSColor.km_init(hex: "#3864B0", alpha: 1)
  1058. }
  1059. @available(*, deprecated, renamed: "Interactive.a0Color()")
  1060. class func KMColor_Interactive_A0() -> NSColor {
  1061. if (!self.isSupportNewColor()) {
  1062. return NSColor.km_init(hex: "#4982E6", alpha: 1)
  1063. }
  1064. if let _color = NSColor(named: "KMColor_Interactive_A0") {
  1065. return _color
  1066. }
  1067. return NSColor.km_init(hex: "#4982E6", alpha: 1)
  1068. }
  1069. @available(*, deprecated, renamed: "Interactive.a1Color()")
  1070. class func KMColor_Interactive_A1() -> NSColor {
  1071. if (!self.isSupportNewColor()) {
  1072. return NSColor.km_init(hex: "#6B97E4", alpha: 1)
  1073. }
  1074. if let _color = NSColor(named: "KMColor_Interactive_A1") {
  1075. return _color
  1076. }
  1077. return NSColor.km_init(hex: "#6B97E4", alpha: 1)
  1078. }
  1079. @available(*, deprecated, renamed: "Interactive.m_1Color()")
  1080. class func KMColor_Interactive_M_1() -> NSColor {
  1081. if (!self.isSupportNewColor()) {
  1082. return NSColor.km_init(hex: "#1B2944", alpha: 1)
  1083. }
  1084. if let _color = NSColor(named: "KMColor_Interactive_M_1") {
  1085. return _color
  1086. }
  1087. return NSColor.km_init(hex: "#1B2944", alpha: 1)
  1088. }
  1089. @available(*, deprecated, renamed: "Interactive.m0Color()")
  1090. class func KMColor_Interactive_M0() -> NSColor {
  1091. if (!self.isSupportNewColor()) {
  1092. return NSColor.km_init(hex: "#273C62", alpha: 1)
  1093. }
  1094. if let _color = NSColor(named: "KMColor_Interactive_M0") {
  1095. return _color
  1096. }
  1097. return NSColor.km_init(hex: "#273C62", alpha: 1)
  1098. }
  1099. @available(*, deprecated, renamed: "Interactive.m1Color()")
  1100. class func KMColor_Interactive_M1() -> NSColor {
  1101. if (!self.isSupportNewColor()) {
  1102. return NSColor.km_init(hex: "#365283", alpha: 1)
  1103. }
  1104. if let _color = NSColor(named: "KMColor_Interactive_M1") {
  1105. return _color
  1106. }
  1107. return NSColor.km_init(hex: "#365283", alpha: 1)
  1108. }
  1109. @available(*, deprecated, renamed: "Interactive.s_1Color()")
  1110. class func KMColor_Interactive_S_1() -> NSColor {
  1111. if (!self.isSupportNewColor()) {
  1112. return NSColor.km_init(hex: "#AEAFB1", alpha: 1)
  1113. }
  1114. if let _color = NSColor(named: "KMColor_Interactive_S_1") {
  1115. return _color
  1116. }
  1117. return NSColor.km_init(hex: "#AEAFB1", alpha: 1)
  1118. }
  1119. @available(*, deprecated, renamed: "Interactive.s0Color()")
  1120. class func KMColor_Interactive_S0() -> NSColor {
  1121. if (!self.isSupportNewColor()) {
  1122. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  1123. }
  1124. if let _color = NSColor(named: "KMColor_Interactive_S0") {
  1125. return _color
  1126. }
  1127. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  1128. }
  1129. @available(*, deprecated, renamed: "Interactive.s1Color()")
  1130. class func KMColor_Interactive_S1() -> NSColor {
  1131. if (!self.isSupportNewColor()) {
  1132. return NSColor.km_init(hex: "#C8C9CC", alpha: 1)
  1133. }
  1134. if let _color = NSColor(named: "KMColor_Interactive_S1") {
  1135. return _color
  1136. }
  1137. return NSColor.km_init(hex: "#C8C9CC", alpha: 1)
  1138. }
  1139. /// Status
  1140. @available(*, deprecated, renamed: "Status.sucColor()")
  1141. class func KMColor_Status_Suc() -> NSColor {
  1142. if (!self.isSupportNewColor()) {
  1143. return NSColor.km_init(hex: "#3CCD75", alpha: 1)
  1144. }
  1145. if let _color = NSColor(named: "KMColor_Status_Suc") {
  1146. return _color
  1147. }
  1148. return NSColor.km_init(hex: "#3CCD75", alpha: 1)
  1149. }
  1150. @available(*, deprecated, renamed: "Status.errColor()")
  1151. class func KMColor_Status_Err() -> NSColor {
  1152. if (!self.isSupportNewColor()) {
  1153. return NSColor.km_init(hex: "#FA1E5D", alpha: 1)
  1154. }
  1155. if let _color = NSColor(named: "KMColor_Status_Err") {
  1156. return _color
  1157. }
  1158. return NSColor.km_init(hex: "#FA1E5D", alpha: 1)
  1159. }
  1160. @available(*, deprecated, renamed: "Status.errBGColor()")
  1161. class func KMColor_Status_Err_BG() -> NSColor {
  1162. if (!self.isSupportNewColor()) {
  1163. return NSColor.km_init(hex: "#FA1E5D", alpha: 0.12)
  1164. }
  1165. if let _color = NSColor(named: "KMColor_Status_Err_BG") {
  1166. return _color
  1167. }
  1168. return NSColor.km_init(hex: "#FA1E5D", alpha: 0.12)
  1169. }
  1170. @available(*, deprecated, renamed: "Status.errBG1Color()")
  1171. class func KMColor_Status_Err_BG_1() -> NSColor {
  1172. if (!self.isSupportNewColor()) {
  1173. return NSColor.km_init(hex: "#FA1E5D", alpha: 0.12)
  1174. }
  1175. if let _color = NSColor(named: "KMColor_Status_Err_BG_1") {
  1176. return _color
  1177. }
  1178. return NSColor.km_init(hex: "#FA1E5D", alpha: 0.12)
  1179. }
  1180. @available(*, deprecated, renamed: "Status.hovColor()")
  1181. class func KMColor_Status_Hov() -> NSColor {
  1182. if (!self.isSupportNewColor()) {
  1183. return NSColor.km_init(hex: "#000000", alpha: 0.05)
  1184. }
  1185. if let _color = NSColor(named: "KMColor_Status_Hov") {
  1186. return _color
  1187. }
  1188. return NSColor.km_init(hex: "#000000", alpha: 0.05)
  1189. }
  1190. @available(*, deprecated, renamed: "Status.preColor()")
  1191. class func KMColor_Status_Pre() -> NSColor {
  1192. if (!self.isSupportNewColor()) {
  1193. return NSColor.km_init(hex: "#000000", alpha: 0.1)
  1194. }
  1195. if let _color = NSColor(named: "KMColor_Status_Pre") {
  1196. return _color
  1197. }
  1198. return NSColor.km_init(hex: "#000000", alpha: 0.1)
  1199. }
  1200. @available(*, deprecated, renamed: "Status.selColor()")
  1201. class func KMColor_Status_Sel() -> NSColor {
  1202. if (!self.isSupportNewColor()) {
  1203. return NSColor.km_init(hex: "#4982E6", alpha: 0.2)
  1204. }
  1205. if let _color = NSColor(named: "KMColor_Status_Sel") {
  1206. return _color
  1207. }
  1208. return NSColor.km_init(hex: "#4982E6", alpha: 0.2)
  1209. }
  1210. /// Upgrade
  1211. @available(*, deprecated, renamed: "Upgrade.vip_1Color()")
  1212. class func KMColor_Upgrade_Vip_1() -> NSColor {
  1213. if (!self.isSupportNewColor()) {
  1214. return NSColor.km_init(hex: "#D2B58F", alpha: 1)
  1215. }
  1216. if let _color = NSColor(named: "KMColor_Upgrade_Vip_1") {
  1217. return _color
  1218. }
  1219. return NSColor.km_init(hex: "#D2B58F", alpha: 1)
  1220. }
  1221. @available(*, deprecated, renamed: "Upgrade.vip0Color()")
  1222. class func KMColor_Upgrade_Vip0() -> NSColor {
  1223. if (!self.isSupportNewColor()) {
  1224. return NSColor.km_init(hex: "#ECDCC1", alpha: 1)
  1225. }
  1226. if let _color = NSColor(named: "KMColor_Upgrade_Vip0") {
  1227. return _color
  1228. }
  1229. return NSColor.km_init(hex: "#ECDCC1", alpha: 1)
  1230. }
  1231. @available(*, deprecated, renamed: "Upgrade.vip01Color()")
  1232. class func KMColor_Upgrade_Vip0_1() -> NSColor {
  1233. if (!self.isSupportNewColor()) {
  1234. return NSColor.km_init(hex: "#DCBA8C", alpha: 1)
  1235. }
  1236. if let _color = NSColor(named: "KMColor_Upgrade_Vip0_1") {
  1237. return _color
  1238. }
  1239. return NSColor.km_init(hex: "#DCBA8C", alpha: 1)
  1240. }
  1241. @available(*, deprecated, renamed: "Upgrade.vip1Color()")
  1242. class func KMColor_Upgrade_Vip1() -> NSColor {
  1243. if (!self.isSupportNewColor()) {
  1244. return NSColor.km_init(hex: "#EFDCC1", alpha: 1)
  1245. }
  1246. if let _color = NSColor(named: "KMColor_Upgrade_Vip1") {
  1247. return _color
  1248. }
  1249. return NSColor.km_init(hex: "#EFDCC1", alpha: 1)
  1250. }
  1251. @available(*, deprecated, renamed: "Upgrade.vipBGColor()")
  1252. class func KMColor_Upgrade_Vip_BG() -> NSColor {
  1253. if (!self.isSupportNewColor()) {
  1254. return NSColor.km_init(hex: "#1B263A", alpha: 1)
  1255. }
  1256. if let _color = NSColor(named: "KMColor_Upgrade_Vip_BG") {
  1257. return _color
  1258. }
  1259. return NSColor.km_init(hex: "#1B263A", alpha: 1)
  1260. }
  1261. @available(*, deprecated, renamed: "Upgrade.vipBG1Color()")
  1262. class func KMColor_Upgrade_Vip_BG_1() -> NSColor {
  1263. if (!self.isSupportNewColor()) {
  1264. return NSColor.km_init(hex: "#273C62", alpha: 1)
  1265. }
  1266. if let _color = NSColor(named: "KMColor_Upgrade_Vip_BG_1") {
  1267. return _color
  1268. }
  1269. return NSColor.km_init(hex: "#273C62", alpha: 1)
  1270. }
  1271. /// Else
  1272. @available(*, deprecated, renamed: "Else.clearColor()")
  1273. class func KMColor_Else_00() -> NSColor {
  1274. return .clear
  1275. }
  1276. @available(*, deprecated, renamed: "Else.searchHighlightColor()")
  1277. class func KMColor_Else_Search_Highlight() -> NSColor {
  1278. if (!self.isSupportNewColor()) {
  1279. return NSColor.km_init(hex: "#FFF700", alpha: 0.6)
  1280. }
  1281. if let _color = NSColor(named: "KMColor_Else_Search_Highlight") {
  1282. return _color
  1283. }
  1284. return NSColor.km_init(hex: "#FFF700", alpha: 0.6)
  1285. }
  1286. @available(*, deprecated, renamed: "Else.textHighlightColor()")
  1287. class func KMColor_Else_Text_Highlight() -> NSColor {
  1288. if (!self.isSupportNewColor()) {
  1289. return NSColor.km_init(hex: "#4982E6", alpha: 0.3)
  1290. }
  1291. if let _color = NSColor(named: "KMColor_Else_Text_Highlight") {
  1292. return _color
  1293. }
  1294. return NSColor.km_init(hex: "#4982E6", alpha: 0.3)
  1295. }
  1296. @available(*, deprecated, renamed: "Else.textTagColor()")
  1297. class func KMColor_Else_Text_Tag() -> NSColor {
  1298. if (!self.isSupportNewColor()) {
  1299. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  1300. }
  1301. if let _color = NSColor(named: "KMColor_Else_Text_Tag") {
  1302. return _color
  1303. }
  1304. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  1305. }
  1306. @available(*, deprecated, renamed: "Else.tipsBGColor()")
  1307. class func KMColor_Else_Tips_BG() -> NSColor {
  1308. if (!self.isSupportNewColor()) {
  1309. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  1310. }
  1311. if let _color = NSColor(named: "KMColor_Else_Tips_BG") {
  1312. return _color
  1313. }
  1314. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  1315. }
  1316. @available(*, deprecated, renamed: "Else.tipbarColor()", message: "优化")
  1317. class func KMColor_Else_Tipbar() -> NSColor {
  1318. if (!self.isSupportNewColor()) {
  1319. return NSColor.km_init(hex: "#273C62", alpha: 0.8)
  1320. }
  1321. if let _color = NSColor(named: "KMColor_Else_Tipbar") {
  1322. return _color
  1323. }
  1324. return NSColor.km_init(hex: "#273C62", alpha: 0.8)
  1325. }
  1326. /*
  1327. + (BOOL)isObj:(NSObject *)obj hasObserverKey:(NSString *)keyPath{
  1328. if (obj == nil) {
  1329. return NO;
  1330. }
  1331. if (obj.observationInfo == nil) {
  1332. return NO;
  1333. }
  1334. NSObject *observances = [((__bridge NSObject*)(obj.observationInfo))valueForKeyPath:@"observances"];
  1335. if ([observances isKindOfClass:[NSArray class]]) {
  1336. for (NSObject *observance in (NSArray *)observances) {
  1337. NSString *inKeyPath = [NSString stringWithFormat:@"Key path: %@",keyPath];
  1338. NSString *objString = [NSString stringWithFormat:@"%@",observance];
  1339. if ([objString containsString:inKeyPath]) {
  1340. return YES;
  1341. }
  1342. }
  1343. }
  1344. return NO;
  1345. }
  1346. */
  1347. }
  1348. // MARK: - KMAppearance.Else
  1349. extension KMAppearance.Else {
  1350. static func clearColor() -> NSColor {
  1351. return .clear
  1352. }
  1353. static func searchHighlightColor() -> NSColor {
  1354. if (!KMAppearance.isSupportNewColor()) {
  1355. return NSColor.km_init(hex: "#FFF700", alpha: 0.6)
  1356. }
  1357. if let _color = NSColor(named: "KMColor_Else_Search_Highlight") {
  1358. return _color
  1359. }
  1360. return NSColor.km_init(hex: "#FFF700", alpha: 0.6)
  1361. }
  1362. static func textHighlightColor() -> NSColor {
  1363. if (!KMAppearance.isSupportNewColor()) {
  1364. return NSColor.km_init(hex: "#4982E6", alpha: 0.3)
  1365. }
  1366. if let _color = NSColor(named: "KMColor_Else_Text_Highlight") {
  1367. return _color
  1368. }
  1369. return NSColor.km_init(hex: "#4982E6", alpha: 0.3)
  1370. }
  1371. static func textTagColor() -> NSColor {
  1372. if (!KMAppearance.isSupportNewColor()) {
  1373. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  1374. }
  1375. if let _color = NSColor(named: "KMColor_Else_Text_Tag") {
  1376. return _color
  1377. }
  1378. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  1379. }
  1380. static func tipsBGColor() -> NSColor {
  1381. if (!KMAppearance.isSupportNewColor()) {
  1382. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  1383. }
  1384. if let _color = NSColor(named: "KMColor_Else_Tips_BG") {
  1385. return _color
  1386. }
  1387. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  1388. }
  1389. static func tipbarColor() -> NSColor {
  1390. if (!KMAppearance.isSupportNewColor()) {
  1391. return NSColor.km_init(hex: "#273C62", alpha: 0.8)
  1392. }
  1393. if let _color = NSColor(named: "KMColor_Else_Tipbar") {
  1394. return _color
  1395. }
  1396. return NSColor.km_init(hex: "#273C62", alpha: 0.8)
  1397. }
  1398. }
  1399. // MARK: - KMAppearance.Upgrade
  1400. extension KMAppearance.Upgrade {
  1401. static func vip_1Color() -> NSColor {
  1402. if (!KMAppearance.isSupportNewColor()) {
  1403. return NSColor.km_init(hex: "#D2B58F", alpha: 1)
  1404. }
  1405. if let _color = NSColor(named: "KMColor_Upgrade_Vip_1") {
  1406. return _color
  1407. }
  1408. return NSColor.km_init(hex: "#D2B58F", alpha: 1)
  1409. }
  1410. static func vip0Color() -> NSColor {
  1411. if (!KMAppearance.isSupportNewColor()) {
  1412. return NSColor.km_init(hex: "#ECDCC1", alpha: 1)
  1413. }
  1414. if let _color = NSColor(named: "KMColor_Upgrade_Vip0") {
  1415. return _color
  1416. }
  1417. return NSColor.km_init(hex: "#ECDCC1", alpha: 1)
  1418. }
  1419. static func vip01Color() -> NSColor {
  1420. if (!KMAppearance.isSupportNewColor()) {
  1421. return NSColor.km_init(hex: "#DCBA8C", alpha: 1)
  1422. }
  1423. if let _color = NSColor(named: "KMColor_Upgrade_Vip0_1") {
  1424. return _color
  1425. }
  1426. return NSColor.km_init(hex: "#DCBA8C", alpha: 1)
  1427. }
  1428. static func vip1Color() -> NSColor {
  1429. if (!KMAppearance.isSupportNewColor()) {
  1430. return NSColor.km_init(hex: "#EFDCC1", alpha: 1)
  1431. }
  1432. if let _color = NSColor(named: "KMColor_Upgrade_Vip1") {
  1433. return _color
  1434. }
  1435. return NSColor.km_init(hex: "#EFDCC1", alpha: 1)
  1436. }
  1437. static func vipBGColor() -> NSColor {
  1438. if (!KMAppearance.isSupportNewColor()) {
  1439. return NSColor.km_init(hex: "#1B263A", alpha: 1)
  1440. }
  1441. if let _color = NSColor(named: "KMColor_Upgrade_Vip_BG") {
  1442. return _color
  1443. }
  1444. return NSColor.km_init(hex: "#1B263A", alpha: 1)
  1445. }
  1446. static func vipBG1Color() -> NSColor {
  1447. if (!KMAppearance.isSupportNewColor()) {
  1448. return NSColor.km_init(hex: "#273C62", alpha: 1)
  1449. }
  1450. if let _color = NSColor(named: "KMColor_Upgrade_Vip_BG_1") {
  1451. return _color
  1452. }
  1453. return NSColor.km_init(hex: "#273C62", alpha: 1)
  1454. }
  1455. }
  1456. // MARK: - KMAppearance.Status
  1457. extension KMAppearance.Status {
  1458. static func sucColor() -> NSColor {
  1459. if (!KMAppearance.isSupportNewColor()) {
  1460. return NSColor.km_init(hex: "#3CCD75", alpha: 1)
  1461. }
  1462. if let _color = NSColor(named: "KMColor_Status_Suc") {
  1463. return _color
  1464. }
  1465. return NSColor.km_init(hex: "#3CCD75", alpha: 1)
  1466. }
  1467. static func errColor() -> NSColor {
  1468. if (!KMAppearance.isSupportNewColor()) {
  1469. return NSColor.km_init(hex: "#FA1E5D", alpha: 1)
  1470. }
  1471. if let _color = NSColor(named: "KMColor_Status_Err") {
  1472. return _color
  1473. }
  1474. return NSColor.km_init(hex: "#FA1E5D", alpha: 1)
  1475. }
  1476. static func errBGColor() -> NSColor {
  1477. if (!KMAppearance.isSupportNewColor()) {
  1478. return NSColor.km_init(hex: "#FA1E5D", alpha: 0.12)
  1479. }
  1480. if let _color = NSColor(named: "KMColor_Status_Err_BG") {
  1481. return _color
  1482. }
  1483. return NSColor.km_init(hex: "#FA1E5D", alpha: 0.12)
  1484. }
  1485. static func errBG1Color() -> NSColor {
  1486. if (!KMAppearance.isSupportNewColor()) {
  1487. return NSColor.km_init(hex: "#FA1E5D", alpha: 0.12)
  1488. }
  1489. if let _color = NSColor(named: "KMColor_Status_Err_BG_1") {
  1490. return _color
  1491. }
  1492. return NSColor.km_init(hex: "#FA1E5D", alpha: 0.12)
  1493. }
  1494. static func hovColor() -> NSColor {
  1495. if (!KMAppearance.isSupportNewColor()) {
  1496. return NSColor.km_init(hex: "#000000", alpha: 0.05)
  1497. }
  1498. if let _color = NSColor(named: "KMColor_Status_Hov") {
  1499. return _color
  1500. }
  1501. return NSColor.km_init(hex: "#000000", alpha: 0.05)
  1502. }
  1503. static func preColor() -> NSColor {
  1504. if (!KMAppearance.isSupportNewColor()) {
  1505. return NSColor.km_init(hex: "#000000", alpha: 0.1)
  1506. }
  1507. if let _color = NSColor(named: "KMColor_Status_Pre") {
  1508. return _color
  1509. }
  1510. return NSColor.km_init(hex: "#000000", alpha: 0.1)
  1511. }
  1512. static func selColor() -> NSColor {
  1513. if (!KMAppearance.isSupportNewColor()) {
  1514. return NSColor.km_init(hex: "#4982E6", alpha: 0.2)
  1515. }
  1516. if let _color = NSColor(named: "KMColor_Status_Sel") {
  1517. return _color
  1518. }
  1519. return NSColor.km_init(hex: "#4982E6", alpha: 0.2)
  1520. }
  1521. static func selColorNew() -> NSColor {
  1522. if (!KMAppearance.isSupportNewColor()) {
  1523. return NSColor.km_init(hex: "#4982E6", alpha: 0.2)
  1524. }
  1525. if let _color = NSColor(named: "KMColor_Status_Sel_new") {
  1526. return _color
  1527. }
  1528. return NSColor.km_init(hex: "#4982E6", alpha: 0.2)
  1529. }
  1530. }
  1531. // MARK: - KMAppearance.Interactive
  1532. extension KMAppearance.Interactive {
  1533. static func a_1Color() -> NSColor {
  1534. if (!KMAppearance.isSupportNewColor()) {
  1535. return NSColor.km_init(hex: "#3864B0", alpha: 1)
  1536. }
  1537. if let _color = NSColor(named: "KMColor_Interactive_A_1") {
  1538. return _color
  1539. }
  1540. return NSColor.km_init(hex: "#3864B0", alpha: 1)
  1541. }
  1542. static func a0Color() -> NSColor {
  1543. if (!KMAppearance.isSupportNewColor()) {
  1544. return NSColor.km_init(hex: "#4982E6", alpha: 1)
  1545. }
  1546. if let _color = NSColor(named: "KMColor_Interactive_A0") {
  1547. return _color
  1548. }
  1549. return NSColor.km_init(hex: "#4982E6", alpha: 1)
  1550. }
  1551. static func a1Color() -> NSColor {
  1552. if (!KMAppearance.isSupportNewColor()) {
  1553. return NSColor.km_init(hex: "#6B97E4", alpha: 1)
  1554. }
  1555. if let _color = NSColor(named: "KMColor_Interactive_A1") {
  1556. return _color
  1557. }
  1558. return NSColor.km_init(hex: "#6B97E4", alpha: 1)
  1559. }
  1560. static func m_1Color() -> NSColor {
  1561. if (!KMAppearance.isSupportNewColor()) {
  1562. return NSColor.km_init(hex: "#1B2944", alpha: 1)
  1563. }
  1564. if let _color = NSColor(named: "KMColor_Interactive_M_1") {
  1565. return _color
  1566. }
  1567. return NSColor.km_init(hex: "#1B2944", alpha: 1)
  1568. }
  1569. static func m0Color() -> NSColor {
  1570. if (!KMAppearance.isSupportNewColor()) {
  1571. return NSColor.km_init(hex: "#273C62", alpha: 1)
  1572. }
  1573. if let _color = NSColor(named: "KMColor_Interactive_M0") {
  1574. return _color
  1575. }
  1576. return NSColor.km_init(hex: "#273C62", alpha: 1)
  1577. }
  1578. static func m1Color() -> NSColor {
  1579. if (!KMAppearance.isSupportNewColor()) {
  1580. return NSColor.km_init(hex: "#365283", alpha: 1)
  1581. }
  1582. if let _color = NSColor(named: "KMColor_Interactive_M1") {
  1583. return _color
  1584. }
  1585. return NSColor.km_init(hex: "#365283", alpha: 1)
  1586. }
  1587. static func s_1Color() -> NSColor {
  1588. if (!KMAppearance.isSupportNewColor()) {
  1589. return NSColor.km_init(hex: "#AEAFB1", alpha: 1)
  1590. }
  1591. if let _color = NSColor(named: "KMColor_Interactive_S_1") {
  1592. return _color
  1593. }
  1594. return NSColor.km_init(hex: "#AEAFB1", alpha: 1)
  1595. }
  1596. static func s0Color() -> NSColor {
  1597. if (!KMAppearance.isSupportNewColor()) {
  1598. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  1599. }
  1600. if let _color = NSColor(named: "KMColor_Interactive_S0") {
  1601. return _color
  1602. }
  1603. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  1604. }
  1605. static func s1Color() -> NSColor {
  1606. if (!KMAppearance.isSupportNewColor()) {
  1607. return NSColor.km_init(hex: "#C8C9CC", alpha: 1)
  1608. }
  1609. if let _color = NSColor(named: "KMColor_Interactive_S1") {
  1610. return _color
  1611. }
  1612. return NSColor.km_init(hex: "#C8C9CC", alpha: 1)
  1613. }
  1614. }
  1615. // MARK: - KMAppearance.Layout
  1616. extension KMAppearance.Layout {
  1617. static func mColor() -> NSColor {
  1618. if (!KMAppearance.isSupportNewColor()) {
  1619. return NSColor.km_init(hex: "#273C62", alpha: 1)
  1620. }
  1621. if let _color = NSColor(named: "KMColor_Layout_M") {
  1622. return _color
  1623. }
  1624. return NSColor.km_init(hex: "#273C62", alpha: 1)
  1625. }
  1626. static func m_1Color() -> NSColor {
  1627. if (!KMAppearance.isSupportNewColor()) {
  1628. return NSColor.km_init(hex: "#273C62", alpha: 1)
  1629. }
  1630. if let _color = NSColor(named: "KMColor_Layout_M_1") {
  1631. return _color
  1632. }
  1633. return NSColor.km_init(hex: "#273C62", alpha: 1)
  1634. }
  1635. static func bgColor() -> NSColor {
  1636. if (!KMAppearance.isSupportNewColor()) {
  1637. return NSColor.km_init(hex: "#EBECF0", alpha: 1)
  1638. }
  1639. if let _color = NSColor(named: "KMColor_Layout_BG") {
  1640. return _color
  1641. }
  1642. return NSColor.km_init(hex: "#EBECF0", alpha: 1)
  1643. }
  1644. static func bgDrakColor() -> NSColor {
  1645. if (!KMAppearance.isSupportNewColor()) {
  1646. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  1647. }
  1648. if let _color = NSColor(named: "KMColor_Layout_BG_Drak") {
  1649. return _color
  1650. }
  1651. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  1652. }
  1653. static func l_2Color() -> NSColor {
  1654. if (!KMAppearance.isSupportNewColor()) {
  1655. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  1656. }
  1657. if let _color = NSColor(named: "KMColor_Layout_L_2") {
  1658. return _color
  1659. }
  1660. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  1661. }
  1662. static func l_1Color() -> NSColor {
  1663. if (!KMAppearance.isSupportNewColor()) {
  1664. return NSColor.km_init(hex: "#EBECF0", alpha: 1)
  1665. }
  1666. if let _color = NSColor(named: "KMColor_Layout_L_1") {
  1667. return _color
  1668. }
  1669. return NSColor.km_init(hex: "#EBECF0", alpha: 1)
  1670. }
  1671. static func l0Color() -> NSColor {
  1672. if (!KMAppearance.isSupportNewColor()) {
  1673. return NSColor.km_init(hex: "#FCFDFF", alpha: 1)
  1674. }
  1675. if let _color = NSColor(named: "KMColor_Layout_L0") {
  1676. return _color
  1677. }
  1678. return NSColor.km_init(hex: "#FCFDFF", alpha: 1)
  1679. }
  1680. static func l1Color() -> NSColor {
  1681. if (!KMAppearance.isSupportNewColor()) {
  1682. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  1683. }
  1684. if let _color = NSColor(named: "KMColor_Layout_L1") {
  1685. return _color
  1686. }
  1687. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  1688. }
  1689. static func h0Color() -> NSColor {
  1690. if (!KMAppearance.isSupportNewColor()) {
  1691. return NSColor.km_init(hex: "#0E1114", alpha: 1)
  1692. }
  1693. if let _color = NSColor(named: "KMColor_Layout_H0") {
  1694. return _color
  1695. }
  1696. return NSColor.km_init(hex: "#0E1114", alpha: 1)
  1697. }
  1698. static func h1Color() -> NSColor {
  1699. if (!KMAppearance.isSupportNewColor()) {
  1700. return NSColor.km_init(hex: "#42464D", alpha: 1)
  1701. }
  1702. if let _color = NSColor(named: "KMColor_Layout_H1") {
  1703. return _color
  1704. }
  1705. return NSColor.km_init(hex: "#42464D", alpha: 1)
  1706. }
  1707. static func h2Color() -> NSColor {
  1708. if (!KMAppearance.isSupportNewColor()) {
  1709. return NSColor.km_init(hex: "#757780", alpha: 1)
  1710. }
  1711. if let _color = NSColor(named: "KMColor_Layout_H2") {
  1712. return _color
  1713. }
  1714. return NSColor.km_init(hex: "#757780", alpha: 1)
  1715. }
  1716. static func b80Color() -> NSColor {
  1717. if (!KMAppearance.isSupportNewColor()) {
  1718. return NSColor.km_init(hex: "#000000", alpha: 0.8)
  1719. }
  1720. if let _color = NSColor(named: "KMColor_Layout_B80") {
  1721. return _color
  1722. }
  1723. return NSColor.km_init(hex: "#000000", alpha: 0.8)
  1724. }
  1725. static func b30Color() -> NSColor {
  1726. if (!KMAppearance.isSupportNewColor()) {
  1727. return NSColor.km_init(hex: "#000000", alpha: 0.3)
  1728. }
  1729. if let _color = NSColor(named: "KMColor_Layout_B30") {
  1730. return _color
  1731. }
  1732. return NSColor.km_init(hex: "#000000", alpha: 0.3)
  1733. }
  1734. static func b15Color() -> NSColor {
  1735. if (!KMAppearance.isSupportNewColor()) {
  1736. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  1737. }
  1738. if let _color = NSColor(named: "KMColor_Layout_B15") {
  1739. return _color
  1740. }
  1741. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  1742. }
  1743. static func w0Color() -> NSColor {
  1744. if (!KMAppearance.isSupportNewColor()) {
  1745. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  1746. }
  1747. if let _color = NSColor(named: "KMColor_Layout_W0") {
  1748. return _color
  1749. }
  1750. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  1751. }
  1752. static func w70Color() -> NSColor {
  1753. if (!KMAppearance.isSupportNewColor()) {
  1754. return NSColor.km_init(hex: "#FFFFFF", alpha: 0.7)
  1755. }
  1756. if let _color = NSColor(named: "KMColor_Layout_W70") {
  1757. return _color
  1758. }
  1759. return NSColor.km_init(hex: "#FFFFFF", alpha: 0.7)
  1760. }
  1761. static func w30Color() -> NSColor {
  1762. if (!KMAppearance.isSupportNewColor()) {
  1763. return NSColor.km_init(hex: "#FFFFFF", alpha: 0.3)
  1764. }
  1765. if let _color = NSColor(named: "KMColor_Layout_W30") {
  1766. return _color
  1767. }
  1768. return NSColor.km_init(hex: "#FFFFFF", alpha: 0.3)
  1769. }
  1770. static func w15Color() -> NSColor {
  1771. if (!KMAppearance.isSupportNewColor()) {
  1772. return NSColor.km_init(hex: "#FFFFFF", alpha: 0.15)
  1773. }
  1774. if let _color = NSColor(named: "KMColor_Layout_W15") {
  1775. return _color
  1776. }
  1777. return NSColor.km_init(hex: "#FFFFFF", alpha: 0.15)
  1778. }
  1779. static func b15_1Color() -> NSColor {
  1780. if (!KMAppearance.isSupportNewColor()) {
  1781. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  1782. }
  1783. if let _color = NSColor(named: "KMColor_Layout_B15_1") {
  1784. return _color
  1785. }
  1786. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  1787. }
  1788. }
  1789. extension KMAppearance {
  1790. struct Else {}
  1791. struct Upgrade {}
  1792. struct Status {}
  1793. struct Interactive {}
  1794. struct Layout {}
  1795. }