KMAppearance.swift 86 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973
  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 KMImageNameUXIconPropertybarFileElse = "KMImageNameUXIconPropertybarFileElse";
  360. let KMImageNameUXIconPropertybarFileExcel = "KMImageNameUXIconPropertybarFileExcel";
  361. let KMImageNameUXIconPropertybarFileIMG = "KMImageNameUXIconPropertybarFileIMG";
  362. let KMImageNameUXIconPropertybarFilePdf = "KMImageNameUXIconPropertybarFilePdf";
  363. let KMImageNameUXIconPropertybarFilePPT = "KMImageNameUXIconPropertybarFilePPT";
  364. let KMImageNameUXIconPropertybarFileWord = "KMImageNameUXIconPropertybarFileWord";
  365. let KMImageNameUXIconPropertybarFillsignForkNor = "KMImageNameUXIconPropertybarFillsignForkNor";
  366. let KMImageNameUXIconPropertybarFillsignForkSel = "KMImageNameUXIconPropertybarFillsignForkSel";
  367. let KMImageNameUXIconPropertybarFillsignLineNor = "KMImageNameUXIconPropertybarFillsignLineNor";
  368. let KMImageNameUXIconPropertybarFillsignLineSel = "KMImageNameUXIconPropertybarFillsignLineSel";
  369. let KMImageNameUXIconPropertybarFillsignPointNor = "KMImageNameUXIconPropertybarFillsignPointNor";
  370. let KMImageNameUXIconPropertybarFillsignPointSel = "KMImageNameUXIconPropertybarFillsignPointSel";
  371. let KMImageNameUXIconPropertybarFillsignRoundedrecNor = "KMImageNameUXIconPropertybarFillsignRoundedrecNor";
  372. let KMImageNameUXIconPropertybarFillsignRoundedrecSel = "KMImageNameUXIconPropertybarFillsignRoundedrecSel";
  373. let KMImageNameUXIconPropertybarFillsignTickNor = "KMImageNameUXIconPropertybarFillsignTickNor";
  374. let KMImageNameUXIconPropertybarFillsignTickSel = "KMImageNameUXIconPropertybarFillsignTickSel";
  375. let KMImageNameUXIconPropertybarLinkEmail = "KMImageNameUXIconPropertybarLinkEmail";
  376. let KMImageNameUXIconPropertybarLinkPage = "KMImageNameUXIconPropertybarLinkPage";
  377. let KMImageNameUXIconPropertybarLinkUrl = "KMImageNameUXIconPropertybarLinkUrl";
  378. let KMImageNameUXIconPropertybarNoteAnnotationNor = "KMImageNameUXIconPropertybarNoteAnnotationNor";
  379. let KMImageNameUXIconPropertybarNoteAnnotationSel = "KMImageNameUXIconPropertybarNoteAnnotationSel";
  380. let KMImageNameUXIconPropertybarNoteHelpNor = "KMImageNameUXIconPropertybarNoteHelpNor";
  381. let KMImageNameUXIconPropertybarNoteHelpSel = "KMImageNameUXIconPropertybarNoteHelpSel";
  382. let KMImageNameUXIconPropertybarNoteInsertNor = "KMImageNameUXIconPropertybarNoteInsertNor";
  383. let KMImageNameUXIconPropertybarNoteInsertSel = "KMImageNameUXIconPropertybarNoteInsertSel";
  384. let KMImageNameUXIconPropertybarNoteKeywordNor = "KMImageNameUXIconPropertybarNoteKeywordNor";
  385. let KMImageNameUXIconPropertybarNoteKeywordSel = "KMImageNameUXIconPropertybarNoteKeywordSel";
  386. let KMImageNameUXIconPropertybarNoteNewparagraphNor = "KMImageNameUXIconPropertybarNoteNewparagraphNor";
  387. let KMImageNameUXIconPropertybarNoteNewparagraphSel = "KMImageNameUXIconPropertybarNoteNewparagraphSel";
  388. let KMImageNameUXIconPropertybarNoteNotesNor = "KMImageNameUXIconPropertybarNoteNotesNor";
  389. let KMImageNameUXIconPropertybarNoteNotesSel = "KMImageNameUXIconPropertybarNoteNotesSel";
  390. let KMImageNameUXIconPropertybarNoteParagraphNor = "KMImageNameUXIconPropertybarNoteParagraphNor";
  391. let KMImageNameUXIconPropertybarNoteParagraphSel = "KMImageNameUXIconPropertybarNoteParagraphSel";
  392. let KMImageNameUXIconPropertybarRotateClockwiseNor = "KMImageNameUXIconPropertybarRotateClockwiseNor";
  393. let KMImageNameUXIconPropertybarRotateClockwisePre = "KMImageNameUXIconPropertybarRotateClockwisePre";
  394. let KMImageNameUXIconPropertybarRotateCounterclockwiseNor = "KMImageNameUXIconPropertybarRotateCounterclockwiseNor";
  395. let KMImageNameUXIconPropertybarRotateCounterclockwisePre = "KMImageNameUXIconPropertybarRotateCounterclockwisePre";
  396. let KMImageNameUXIconPropertybarTableBottom = "KMImageNameUXIconPropertybarTableBottom";
  397. let KMImageNameUXIconPropertybarTableTitleAbove = "KMImageNameUXIconPropertybarTableTitleAbove";
  398. let KMImageNameUXIconPropertybarTableTitleLeft = "KMImageNameUXIconPropertybarTableTitleLeft";
  399. let KMImageNameUXIconPropertybarTextalignCenterNor = "KMImageNameUXIconPropertybarTextalignCenterNor";
  400. let KMImageNameUXIconPropertybarTextalignCenterSel = "KMImageNameUXIconPropertybarTextalignCenterSel";
  401. let KMImageNameUXIconPropertybarTextalignCenterWhite = "KMImageNameUXIconPropertybarTextalignCenterWhite";
  402. let KMImageNameUXIconPropertybarTextalignJustifyNor = "KMImageNameUXIconPropertybarTextalignJustifyNor";
  403. let KMImageNameUXIconPropertybarTextalignJustifySel = "KMImageNameUXIconPropertybarTextalignJustifySel";
  404. let KMImageNameUXIconPropertybarTextalignJustifyWhite = "KMImageNameUXIconPropertybarTextalignJustifyWhite";
  405. let KMImageNameUXIconPropertybarTextalignLeftNor = "KMImageNameUXIconPropertybarTextalignLeftNor";
  406. let KMImageNameUXIconPropertybarTextalignLeftSel = "KMImageNameUXIconPropertybarTextalignLeftSel";
  407. let KMImageNameUXIconPropertybarTextalignLeftWhite = "KMImageNameUXIconPropertybarTextalignLeftWhite";
  408. let KMImageNameUXIconPropertybarTextalignRightNor = "KMImageNameUXIconPropertybarTextalignRightNor";
  409. let KMImageNameUXIconPropertybarTextalignRightSel = "KMImageNameUXIconPropertybarTextalignRightSel";
  410. let KMImageNameUXIconPropertybarTextalignRightWhite = "KMImageNameUXIconPropertybarTextalignRightWhite";
  411. let KMImageNameUXIconPropertybarViewPagecoverNor = "KMImageNameUXIconPropertybarViewPagecoverNor";
  412. let KMImageNameUXIconPropertybarViewPagecoverSel = "KMImageNameUXIconPropertybarViewPagecoverSel";
  413. let KMImageNameUXIconPropertybarViewPagedoubleNor = "KMImageNameUXIconPropertybarViewPagedoubleNor";
  414. let KMImageNameUXIconPropertybarViewPagedoubleSel = "KMImageNameUXIconPropertybarViewPagedoubleSel";
  415. let KMImageNameUXIconPropertybarViewPagereadingNor = "KMImageNameUXIconPropertybarViewPagereadingNor";
  416. let KMImageNameUXIconPropertybarViewPagereadingSel = "KMImageNameUXIconPropertybarViewPagereadingSel";
  417. let KMImageNameUXIconPropertybarViewPagesingleNor = "KMImageNameUXIconPropertybarViewPagesingleNor";
  418. let KMImageNameUXIconPropertybarViewPagesingleSel = "KMImageNameUXIconPropertybarViewPagesingleSel";
  419. let KMImageNameUXIconPropertybarViewSplitscreenhorNor = "KMImageNameUXIconPropertybarViewSplitscreenhorNor";
  420. let KMImageNameUXIconPropertybarViewSplitscreenhorSel = "KMImageNameUXIconPropertybarViewSplitscreenhorSel";
  421. let KMImageNameUXIconPropertybarViewSplitscreensingleNor = "KMImageNameUXIconPropertybarViewSplitscreensingleNor";
  422. let KMImageNameUXIconPropertybarViewSplitscreensingleSel = "KMImageNameUXIconPropertybarViewSplitscreensingleSel";
  423. let KMImageNameUXIconPropertybarViewSplitscreenverNor = "KMImageNameUXIconPropertybarViewSplitscreenverNor";
  424. let KMImageNameUXIconPropertybarViewSplitscreenverSel = "KMImageNameUXIconPropertybarViewSplitscreenverSel";
  425. let KMImageNameUXIconPropertybarFileHTML = "KMImageNameUXIconPropertybarFileHTML";
  426. let KMImageNameUXIconPropertybarFileCSV = "KMImageNameUXIconPropertybarFileCSV";
  427. let KMImageNameUXIconPropertybarFileTXT = "KMImageNameUXIconPropertybarFileTXT";
  428. let KMImageNameUXIconPropertybarFileJPEG = "KMImageNameUXIconPropertybarFileJPEG";
  429. let KMImageNameUXIconPropertybarFileJPG = "KMImageNameUXIconPropertybarFileJPG";
  430. let KMImageNameUXIconPropertybarFilePNG = "KMImageNameUXIconPropertybarFilePNG";
  431. let KMImageNameUXIconPropertybarFileGIF = "KMImageNameUXIconPropertybarFileGIF";
  432. let KMImageNameUXIconPropertybarFileTIFF = "KMImageNameUXIconPropertybarFileTIFF";
  433. let KMImageNameUXIconPropertybarFileTGA = "KMImageNameUXIconPropertybarFileTGA";
  434. let KMImageNameUXIconPropertybarFileBMP = "KMImageNameUXIconPropertybarFileBMP";
  435. let KMImageNameUXIconPropertybarFileJP2 = "KMImageNameUXIconPropertybarFileJP2";
  436. //ic_Cursors
  437. let KMImageNameUXIconCursorsText = "KMImageNameUXIconCursorsText";
  438. //ic_Progress
  439. let KMImageNameUXIconProgressComplete = "KMImageNameUXIconProgressComplete";
  440. let KMImageNameUXIconProgressFailure = "KMImageNameUXIconProgressFailure";
  441. let KMImageNameUXIconProgressWaiting = "KMImageNameUXIconProgressWaiting";
  442. //ic_Vip
  443. let KMImageNameUXIconVip = "KMImageNameUXIconVip";
  444. //ic_Btn
  445. let KMImageNameUXIconBtnAddHov = "KMImageNameUXIconBtnAddHov";
  446. let KMImageNameUXIconBtnAddNor = "KMImageNameUXIconBtnAddNor";
  447. let KMImageNameUXIconBtnAddWhite = "KMImageNameUXIconBtnAddWhite";
  448. let KMImageNameUXIconBtnArrowDown = "KMImageNameUXIconBtnArrowDown";
  449. let KMImageNameUXIconBtnArrowLeft = "KMImageNameUXIconBtnArrowLeft";
  450. let KMImageNameUXIconBtnArrowRight = "KMImageNameUXIconBtnArrowRight";
  451. let KMImageNameUXIconBtnArrowUp = "KMImageNameUXIconBtnArrowUp";
  452. let KMImageNameUXIconBtnArrowUpdown = "KMImageNameUXIconBtnArrowUpdown";
  453. let KMImageNameUXIconBtnCheckboxDis = "KMImageNameUXIconBtnCheckboxDis";
  454. let KMImageNameUXIconBtnCheckboxSel = "KMImageNameUXIconBtnCheckboxSel";
  455. let KMImageNameUXIconBtnClear = "KMImageNameUXIconBtnClear";
  456. let KMImageNameUXIconBtnCloseHov = "KMImageNameUXIconBtnCloseHov";
  457. let KMImageNameUXIconBtnCloseNor = "KMImageNameUXIconBtnCloseNor";
  458. let KMImageNameUXIconBtnCloseWhite = "KMImageNameUXIconBtnCloseWhite";
  459. let KMImageNameUXIconBtnColor = "KMImageNameUXIconBtnColor";
  460. let KMImageNameUXIconBtnDeletAccent = "KMImageNameUXIconBtnDeletAccent";
  461. let KMImageNameUXIconBtnDeletHov = "KMImageNameUXIconBtnDeletHov";
  462. let KMImageNameUXIconBtnDeletNor = "KMImageNameUXIconBtnDeletNor";
  463. let KMImageNameUXIconBtnEditHov = "KMImageNameUXIconBtnEditHov";
  464. let KMImageNameUXIconBtnEditNor = "KMImageNameUXIconBtnEditNor";
  465. let KMImageNameUXIconBtnEyesInvisible = "KMImageNameUXIconBtnEyesInvisible";
  466. let KMImageNameUXIconBtnEyesVisible = "KMImageNameUXIconBtnEyesVisible";
  467. let KMImageNameUXIconBtnFontsetNor = "KMImageNameUXIconBtnFontsetNor";
  468. let KMImageNameUXIconBtnFontsetPre = "KMImageNameUXIconBtnFontsetPre";
  469. let KMImageNameUXIconBtnOpenfileNor = "KMImageNameUXIconBtnOpenfileNor";
  470. let KMImageNameUXIconBtnOpenfileWhite = "KMImageNameUXIconBtnOpenfileWhite";
  471. let KMImageNameUXIconBtnOvalarrowDown = "KMImageNameUXIconBtnOvalarrowDown";
  472. let KMImageNameUXIconBtnRadioDis = "KMImageNameUXIconBtnRadioDis";
  473. let KMImageNameUXIconBtnRadioSel = "KMImageNameUXIconBtnRadioSel";
  474. let KMImageNameUXIconBtnSearchbarSearch = "KMImageNameUXIconBtnSearchbarSearch";
  475. let KMImageNameUXIconBtnSearchbarSearchfilter = "KMImageNameUXIconBtnSearchbarSearchfilter";
  476. let KMImageNameUXIconBtnSetNor = "KMImageNameUXIconBtnSetNor";
  477. let KMImageNameUXIconBtnSetPre = "KMImageNameUXIconBtnSetPre";
  478. let KMImageNameUXIconBtnSidebarAddNor = "KMImageNameUXIconBtnSidebarAddNor";
  479. let KMImageNameUXIconBtnSidebarAddPre = "KMImageNameUXIconBtnSidebarAddPre";
  480. let KMImageNameUXIconBtnSidebarFilterNor = "KMImageNameUXIconBtnSidebarFilterNor";
  481. let KMImageNameUXIconBtnSidebarFilterPre = "KMImageNameUXIconBtnSidebarFilterPre";
  482. let KMImageNameUXIconBtnSidebarListNor = "KMImageNameUXIconBtnSidebarListNor";
  483. let KMImageNameUXIconBtnSidebarListPre = "KMImageNameUXIconBtnSidebarListPre";
  484. let KMImageNameUXIconBtnSidebarMoreNor = "KMImageNameUXIconBtnSidebarMoreNor";
  485. let KMImageNameUXIconBtnSidebarMorePre = "KMImageNameUXIconBtnSidebarMorePre";
  486. let KMImageNameUXIconBtnSidebarMoreSecondary = "KMImageNameUXIconBtnSidebarMoreSecondary";
  487. let KMImageNameUXIconBtnSidebarPageNor = "KMImageNameUXIconBtnSidebarPageNor";
  488. let KMImageNameUXIconBtnSidebarPagePre = "KMImageNameUXIconBtnSidebarPagePre";
  489. let KMImageNameUXIconBtnSidebarSearchNor = "KMImageNameUXIconBtnSidebarSearchNor";
  490. let KMImageNameUXIconBtnSidebarSearchPre = "KMImageNameUXIconBtnSidebarSearchPre";
  491. let KMImageNameUXIconBtnSidebarZoominNor = "KMImageNameUXIconBtnSidebarZoominNor";
  492. let KMImageNameUXIconBtnSidebarZoominPre = "KMImageNameUXIconBtnSidebarZoominPre";
  493. let KMImageNameUXIconBtnSidebarZoomoutNor = "KMImageNameUXIconBtnSidebarZoomoutNor";
  494. let KMImageNameUXIconBtnSidebarZoomoutPre = "KMImageNameUXIconBtnSidebarZoomoutPre";
  495. let KMImageNameUXIconBtnStrikeNor = "KMImageNameUXIconBtnStrikeNor";
  496. let KMImageNameUXIconBtnStrikePre = "KMImageNameUXIconBtnStrikePre";
  497. let KMImageNameUXIconBtnsysArrowLeft = "KMImageNameUXIconBtnsysArrowLeft";
  498. let KMImageNameUXIconBtnSysArrowRight = "KMImageNameUXIconBtnSysArrowRight";
  499. let KMImageNameUXIconBtnTriDownNor = "KMImageNameUXIconBtnTriDownNor";
  500. let KMImageNameUXIconBtnTriDownPre = "KMImageNameUXIconBtnTriDownPre";
  501. let KMImageNameUXIconBtnTriLeftNor = "KMImageNameUXIconBtnTriLeftNor";
  502. let KMImageNameUXIconBtnTriLeftPre = "KMImageNameUXIconBtnTriLeftPre";
  503. let KMImageNameUXIconBtnTriLeftSel = "KMImageNameUXIconBtnTriLeftSel";
  504. let KMImageNameUXIconBtnTriRightNor = "KMImageNameUXIconBtnTriRightNor";
  505. let KMImageNameUXIconBtnTriRightPre = "KMImageNameUXIconBtnTriRightPre";
  506. let KMImageNameUXIconBtnTriRightSel = "KMImageNameUXIconBtnTriRightSel";
  507. let KMImageNameUXIconBtnTriUpNor = "KMImageNameUXIconBtnTriUpNor";
  508. let KMImageNameUXIconBtnTriUpPre = "KMImageNameUXIconBtnTriUpPre";
  509. let KMImageNameBtnSidebarRankPositive = "KMImageNameBtnSidebarRankPositive";
  510. let KMImageNameBtnSidebarRankReverse = "KMImageNameBtnSidebarRankReverse";
  511. let KMImageNameEmptyOutline = "KMImageNameEmptyOutline";
  512. let KMImageNameEmptyAnnotation = "KMImageNameEmptyAnnotation";
  513. let KMImageNameEmptySearch = "KMImageNameEmptySearch";
  514. let KMImageNameEmptyStamp = "KMImageNameEmptyStamp";
  515. let KMImageNameEmptySign = "KMImageNameEmptySign";
  516. let KMImageNameEmptyWatermark = "KMImageNameEmptyWatermark";
  517. let KMImageNameEmptyBackground = "KMImageNameEmptyBackground";
  518. let KMImageNameEmptyHeaderandfooter = "KMImageNameEmptyHeaderandfooter";
  519. let KMImageNameEmptySplitview = "KMImageNameEmptySplitview";
  520. let KMImageNameCursorsUnderline = "KMImageNameCursorsUnderline";
  521. let KMImageNameCursorsHighlight = "KMImageNameCursorsHighlight";
  522. let KMImageNameCursorsStrikeout = "KMImageNameCursorsStrikeout";
  523. let KMImageNameCursorsFreehand = "KMImageNameCursorsFreehand";
  524. let KMImageNameCursorsText = "KMImageNameCursorsText";
  525. let KMImageNameCursorsNote = "KMImageNameCursorsNote";
  526. let KMImageNameCursorsRec = "KMImageNameCursorsRec";
  527. let KMImageNameCursorsOval = "KMImageNameCursorsOval";
  528. let KMImageNameCursorsArrow = "KMImageNameCursorsArrow";
  529. let KMImageNameCursorsTable = "KMImageNameCursorsTable";
  530. let KMImageNameCursorsLink = "KMImageNameCursorsLink";
  531. let KMImageNameCursorsLine = "KMImageNameCursorsLine";
  532. let KMImageNameCursorsButton = "KMImageNameCursorsButton";
  533. let KMImageNameCursorsCheckbox = "KMImageNameCursorsCheckbox";
  534. let KMImageNameCursorsDate = "KMImageNameCursorsDate";
  535. let KMImageNameCursorsFork = "KMImageNameCursorsFork";
  536. let KMImageNameCursorsFormLine = "KMImageNameCursorsFormLine";
  537. let KMImageNameCursorsListbox = "KMImageNameCursorsListbox";
  538. let KMImageNameCursorsPoint = "KMImageNameCursorsPoint";
  539. let KMImageNameCursorsPulldownmenu = "KMImageNameCursorsPulldownmenu";
  540. let KMImageNameCursorsRadiobutton = "KMImageNameCursorsRadiobutton";
  541. let KMImageNameCursorsRoundedrec = "KMImageNameCursorsRoundedrec";
  542. let KMImageNameCursorsSign = "KMImageNameCursorsSign";
  543. let KMImageNameCursorsTextfield = "KMImageNameCursorsTextfield";
  544. let KMImageNameCursorsTick = "KMImageNameCursorsTick";
  545. let KMImageNameElse1 = "KMImageNameElse1";
  546. let KMImageNameElse2 = "KMImageNameElse2";
  547. let KMImageNameElsei = "KMImageNameElsei";
  548. @objcMembers class KMAppearance: NSObject {
  549. class func isDarkMode() -> Bool {
  550. let result = false
  551. if #available(macOS 10.14, *) {
  552. let appearanceName = NSApp.effectiveAppearance.bestMatch(from: [.aqua, .darkAqua])
  553. if (appearanceName == .darkAqua) {
  554. return true
  555. }
  556. }
  557. return result
  558. }
  559. @objc class func titleColor() -> NSColor {
  560. if (!KMAppearance.isSupportNewColor()) {
  561. return NSColor.km_init(hex: "#252629")
  562. }
  563. if let _color = NSColor(named: "KMTitleColor") {
  564. return _color
  565. }
  566. return NSColor.km_init(hex: "#252629")
  567. }
  568. @objc class func subtitleColor() -> NSColor {
  569. if (!KMAppearance.isSupportNewColor()) {
  570. return NSColor.km_init(hex: "#616469")
  571. }
  572. if let _color = NSColor(named: "KMSubtitleColor") {
  573. return _color
  574. }
  575. return NSColor.km_init(hex: "#616469")
  576. }
  577. @objc class func view_bg_dis_color() -> NSColor {
  578. if (!KMAppearance.isSupportNewColor()) {
  579. return NSColor.km_init(hex: "#EDEEF0")
  580. }
  581. if let _color = NSColor(named: "KMBackgroundDisableColor") {
  582. return _color
  583. }
  584. return NSColor.km_init(hex: "#EDEEF0")
  585. }
  586. @objc class func view_border_dis_color() -> NSColor {
  587. if (!KMAppearance.isSupportNewColor()) {
  588. return NSColor.km_init(hex: "#DFE1E5")
  589. }
  590. if let _color = NSColor(named: "KMBorderDisableColor") {
  591. return _color
  592. }
  593. return NSColor.km_init(hex: "#DFE1E5")
  594. }
  595. @objc class func controlBackgroundColor() -> NSColor {
  596. if (!KMAppearance.isSupportNewColor()) {
  597. return NSColor(white: 246/255.0, alpha: 1)
  598. }
  599. if let _color = NSColor(named: "KMControlBackgroundColor") {
  600. return _color
  601. }
  602. return NSColor(white: 246/255.0, alpha: 1)
  603. }
  604. class func isSupportNewColor() -> Bool {
  605. if #available(macOS 10.14, *) {
  606. return true
  607. }
  608. return false
  609. }
  610. }
  611. // MARK: - Reader Pro
  612. @objc extension KMAppearance {
  613. class func viewBackgroundColor() -> NSColor {
  614. if (!self.isSupportNewColor()) {
  615. return NSColor(red: 250.0/255.0, green: 250.0/255.0, blue: 250.0/255.0, alpha: 1)
  616. }
  617. if let _color = NSColor(named: "KMViewBackgroundColor") {
  618. return _color
  619. }
  620. return NSColor(red: 250.0/255.0, green: 250.0/255.0, blue: 250.0/255.0, alpha: 1)
  621. }
  622. class func PDFViewBackgroundColor() -> NSColor {
  623. if (!self.isSupportNewColor()) {
  624. return NSColor.km_init(hex: "#DADBDE")
  625. }
  626. if let _color = NSColor(named: "KMPDFViewBackgroundColor") {
  627. return _color
  628. }
  629. return NSColor.km_init(hex: "#DADBDE")
  630. }
  631. class func toolbarBorderColor() -> NSColor {
  632. if (!self.isSupportNewColor()) {
  633. return NSColor(red: 213/255.0, green: 213/255.0, blue: 213/255.0, alpha: 1)
  634. }
  635. if let _color = NSColor(named: "KMToolbarBorderColor") {
  636. return _color
  637. }
  638. return NSColor(red: 213/255.0, green: 213/255.0, blue: 213/255.0, alpha: 1)
  639. }
  640. class func newWindowBackgroundColor() -> NSColor {
  641. if (!self.isSupportNewColor()) {
  642. return NSColor.km_init(hex: "#EEEEEE", alpha: 0.85)
  643. }
  644. if let _color = NSColor(named: "KMNewWindowBackgroundColor") {
  645. return _color
  646. }
  647. return NSColor.km_init(hex: "#EEEEEE", alpha: 0.85)
  648. }
  649. class func buttonHoverColor() -> NSColor {
  650. if (!self.isSupportNewColor()) {
  651. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  652. }
  653. if let _color = NSColor(named: "KMButtonHoverColor") {
  654. return _color
  655. }
  656. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  657. }
  658. // 236 242 251
  659. class func buttonSelectedColor() -> NSColor {
  660. if (!self.isSupportNewColor()) {
  661. return NSColor(hex: "#EAF2FB")
  662. }
  663. if let _color = NSColor(named: "KMButtonSelectedColor") {
  664. return _color
  665. }
  666. return NSColor(hex: "#EAF2FB")
  667. }
  668. class func buttonDisabledColor() -> NSColor {
  669. if (!self.isSupportNewColor()) {
  670. return NSColor(hex: "#DADBDE")
  671. }
  672. if let _color = NSColor(named: "KMButtonDisabledColor") {
  673. return _color
  674. }
  675. return NSColor(hex: "#DADBDE")
  676. }
  677. class func separatorLineColor() -> NSColor {
  678. if (!self.isSupportNewColor()) {
  679. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  680. }
  681. if let _color = NSColor(named: "KMSeparatorLineColor") {
  682. return _color
  683. }
  684. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  685. }
  686. // MARK: - New UX Color
  687. class func KM_477EDE_Color15() -> NSColor {
  688. if (!self.isSupportNewColor()) {
  689. return NSColor.km_init(hex: "#477EDE", alpha: 0.15)
  690. }
  691. if let _color = NSColor(named: "KM_477EDE_Color15") {
  692. return _color
  693. }
  694. return NSColor.km_init(hex: "#477EDE", alpha: 0.15)
  695. }
  696. /// 高亮颜色
  697. class func KM_D2D1D2_Color() -> NSColor {
  698. if (!self.isSupportNewColor()) {
  699. return NSColor.km_init(hex: "#D2D1D2", alpha: 1)
  700. }
  701. if let _color = NSColor(named: "KM_D2D1D2_Color") {
  702. return _color
  703. }
  704. return NSColor.km_init(hex: "#D2D1D2", alpha: 1)
  705. }
  706. class func KM_EDECED_Color() -> NSColor {
  707. if (!self.isSupportNewColor()) {
  708. return NSColor.km_init(hex: "#EDECED", alpha: 1)
  709. }
  710. if let _color = NSColor(named: "KM_EDECED_Color") {
  711. return _color
  712. }
  713. return NSColor.km_init(hex: "#EDECED", alpha: 1)
  714. }
  715. class func KM_DBDBDB_Color() -> NSColor {
  716. if (!self.isSupportNewColor()) {
  717. return NSColor.km_init(hex: "#DBDBDB", alpha: 1)
  718. }
  719. if let _color = NSColor(named: "KM_DBDBDB_Color") {
  720. return _color
  721. }
  722. return NSColor.km_init(hex: "#DBDBDB", alpha: 1)
  723. }
  724. class func KM_FFFFFF_ColorChange01() -> NSColor {
  725. if (!self.isSupportNewColor()) {
  726. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  727. }
  728. if let _color = NSColor(named: "KM_FFFFFF_ColorChange01") {
  729. return _color
  730. }
  731. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  732. }
  733. class func KM_757780_Color() -> NSColor {
  734. if (!self.isSupportNewColor()) {
  735. return NSColor.km_init(hex: "#757780", alpha: 1)
  736. }
  737. if let _color = NSColor(named: "KM_757780_Color") {
  738. return _color
  739. }
  740. return NSColor.km_init(hex: "#757780", alpha: 1)
  741. }
  742. class func KM_FFFFFF_Color35() -> NSColor {
  743. if (!self.isSupportNewColor()) {
  744. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  745. }
  746. if let _color = NSColor(named: "KM_FFFFFF_Color35") {
  747. return _color
  748. }
  749. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  750. }
  751. class func KM_000000_Color15Chang35() -> NSColor {
  752. if (!self.isSupportNewColor()) {
  753. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  754. }
  755. if let _color = NSColor(named: "KM_000000_Color15Chang35") {
  756. return _color
  757. }
  758. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  759. }
  760. class func KM_000000_Color20() -> NSColor {
  761. return NSColor.km_init(hex: "#000000", alpha: 0.2)
  762. }
  763. class func KM_242424_Color() -> NSColor {
  764. if (!self.isSupportNewColor()) {
  765. return NSColor.km_init(hex: "#242424", alpha: 1)
  766. }
  767. if let _color = NSColor(named: "KM_242424_Color") {
  768. return _color
  769. }
  770. return NSColor.km_init(hex: "#242424", alpha: 1)
  771. }
  772. class func KM_242424_Color40() -> NSColor {
  773. if (!self.isSupportNewColor()) {
  774. return NSColor.km_init(hex: "#242424", alpha: 0.6)
  775. }
  776. if let _color = NSColor(named: "KM_242424_Color40") {
  777. return _color
  778. }
  779. return NSColor.km_init(hex: "#242424", alpha: 0.6)
  780. }
  781. class func KM_242424_Color75() -> NSColor {
  782. if (!self.isSupportNewColor()) {
  783. return NSColor.km_init(hex: "#242424", alpha: 1)
  784. }
  785. if let _color = NSColor(named: "KM_242424_Color75") {
  786. return _color
  787. }
  788. return NSColor.km_init(hex: "#242424", alpha: 1)
  789. }
  790. class func KM_067DFF_Color() -> NSColor {
  791. if (!self.isSupportNewColor()) {
  792. return NSColor.km_init(hex: "#067DFF", alpha: 1)
  793. }
  794. if let _color = NSColor(named: "KM_067DFF_Color") {
  795. return _color
  796. }
  797. return NSColor.km_init(hex: "#067DFF", alpha: 1)
  798. }
  799. class func KM_FFF700_Color60() -> NSColor {
  800. if (!self.isSupportNewColor()) {
  801. return NSColor.km_init(hex: "#FFF700", alpha: 0.6)
  802. }
  803. if let _color = NSColor(named: "KM_FFF700_Color60") {
  804. return _color
  805. }
  806. return NSColor.km_init(hex: "#FFF700", alpha: 0.6)
  807. }
  808. class func KM_F6F6F6_Color() -> NSColor {
  809. if (!self.isSupportNewColor()) {
  810. return NSColor.km_init(hex: "#F6F6F6", alpha: 1)
  811. }
  812. if let _color = NSColor(named: "KM_F6F6F6_Color") {
  813. return _color
  814. }
  815. return NSColor.km_init(hex: "#F6F6F6", alpha: 1)
  816. }
  817. // MARK: - 已经存在日间模式颜色,但是夜间模式颜色和原来存在的颜色不一致。以下
  818. class func KM_273C62_ColorDarkChanged02() -> NSColor {
  819. if (!self.isSupportNewColor()) {
  820. return NSColor.km_init(hex: "#273C62", alpha: 1)
  821. }
  822. if let _color = NSColor(named: "KMMainColorDarkChanged02") {
  823. return _color
  824. }
  825. return NSColor.km_init(hex: "#273C62", alpha: 1)
  826. }
  827. class func KM_FFFFFF_ColorDarkChanged06() -> NSColor {
  828. if (!self.isSupportNewColor()) {
  829. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  830. }
  831. if let _color = NSColor(named: "KM_FFFFFF_ColorDarkChanged06") {
  832. return _color
  833. }
  834. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  835. }
  836. class func KM_DADBDE_ColorDarkChange04() -> NSColor {
  837. if (!self.isSupportNewColor()) {
  838. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  839. }
  840. if let _color = NSColor(named: "KM_DADBDE_ColorDarkChange04") {
  841. return _color
  842. }
  843. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  844. }
  845. class func KM_273C62_Color80DarkChanged01() -> NSColor {
  846. if (!self.isSupportNewColor()) {
  847. return NSColor.km_init(hex: "#273C62", alpha: 0.8)
  848. }
  849. if let _color = NSColor(named: "KM_273C62_Color80DarkChanged01") {
  850. return _color
  851. }
  852. return NSColor.km_init(hex: "#273C62", alpha: 0.8)
  853. }
  854. class func KM_477EDE_ColorDarkChange01() -> NSColor {
  855. if (!self.isSupportNewColor()) {
  856. return NSColor.km_init(hex: "#477EDE", alpha: 1)
  857. }
  858. if let _color = NSColor(named: "KM_477EDE_ColorDarkChange01") {
  859. return _color
  860. }
  861. return NSColor.km_init(hex: "#477EDE", alpha: 1)
  862. }
  863. class func KM_000000_Color5DarkChange01() -> NSColor {
  864. if (!self.isSupportNewColor()) {
  865. return NSColor.km_init(hex: "#000000", alpha: 0.05)
  866. }
  867. if let _color = NSColor(named: "KM_000000_Color5DarkChange01") {
  868. return _color
  869. }
  870. return NSColor.km_init(hex: "#000000", alpha: 0.05)
  871. }
  872. // MARK: - New Color
  873. @available(*, deprecated, renamed: "Layout.mColor()")
  874. class func KMColor_Layout_M() -> NSColor {
  875. if (!self.isSupportNewColor()) {
  876. return NSColor.km_init(hex: "#273C62", alpha: 1)
  877. }
  878. if let _color = NSColor(named: "KMColor_Layout_M") {
  879. return _color
  880. }
  881. return NSColor.km_init(hex: "#273C62", alpha: 1)
  882. }
  883. @available(*, deprecated, renamed: "Layout.m_1Color()")
  884. class func KMColor_Layout_M_1() -> NSColor {
  885. if (!self.isSupportNewColor()) {
  886. return NSColor.km_init(hex: "#273C62", alpha: 1)
  887. }
  888. if let _color = NSColor(named: "KMColor_Layout_M_1") {
  889. return _color
  890. }
  891. return NSColor.km_init(hex: "#273C62", alpha: 1)
  892. }
  893. @available(*, deprecated, renamed: "Layout.bgColor()")
  894. class func KMColor_Layout_BG() -> NSColor {
  895. if (!self.isSupportNewColor()) {
  896. return NSColor.km_init(hex: "#EBECF0", alpha: 1)
  897. }
  898. if let _color = NSColor(named: "KMColor_Layout_BG") {
  899. return _color
  900. }
  901. return NSColor.km_init(hex: "#EBECF0", alpha: 1)
  902. }
  903. @available(*, deprecated, renamed: "Layout.bgDrakColor()")
  904. class func KMColor_Layout_BG_Drak() -> NSColor {
  905. if (!self.isSupportNewColor()) {
  906. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  907. }
  908. if let _color = NSColor(named: "KMColor_Layout_BG_Drak") {
  909. return _color
  910. }
  911. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  912. }
  913. @available(*, deprecated, renamed: "Layout.l_2Color()")
  914. class func KMColor_Layout_L_2() -> NSColor {
  915. if (!self.isSupportNewColor()) {
  916. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  917. }
  918. if let _color = NSColor(named: "KMColor_Layout_L_2") {
  919. return _color
  920. }
  921. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  922. }
  923. @available(*, deprecated, renamed: "Layout.l_1Color()")
  924. class func KMColor_Layout_L_1() -> NSColor {
  925. if (!self.isSupportNewColor()) {
  926. return NSColor.km_init(hex: "#EBECF0", alpha: 1)
  927. }
  928. if let _color = NSColor(named: "KMColor_Layout_L_1") {
  929. return _color
  930. }
  931. return NSColor.km_init(hex: "#EBECF0", alpha: 1)
  932. }
  933. @available(*, deprecated, renamed: "Layout.l0Color()")
  934. class func KMColor_Layout_L0() -> NSColor {
  935. if (!self.isSupportNewColor()) {
  936. return NSColor.km_init(hex: "#FCFDFF", alpha: 1)
  937. }
  938. if let _color = NSColor(named: "KMColor_Layout_L0") {
  939. return _color
  940. }
  941. return NSColor.km_init(hex: "#FCFDFF", alpha: 1)
  942. }
  943. @available(*, deprecated, renamed: "Layout.l1Color()")
  944. class func KMColor_Layout_L1() -> NSColor {
  945. if (!self.isSupportNewColor()) {
  946. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  947. }
  948. if let _color = NSColor(named: "KMColor_Layout_L1") {
  949. return _color
  950. }
  951. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  952. }
  953. @available(*, deprecated, renamed: "Layout.h0Color()")
  954. class func KMColor_Layout_H0() -> NSColor {
  955. if (!self.isSupportNewColor()) {
  956. return NSColor.km_init(hex: "#0E1114", alpha: 1)
  957. }
  958. if let _color = NSColor(named: "KMColor_Layout_H0") {
  959. return _color
  960. }
  961. return NSColor.km_init(hex: "#0E1114", alpha: 1)
  962. }
  963. @available(*, deprecated, renamed: "Layout.h1Color()")
  964. class func KMColor_Layout_H1() -> NSColor {
  965. if (!self.isSupportNewColor()) {
  966. return NSColor.km_init(hex: "#42464D", alpha: 1)
  967. }
  968. if let _color = NSColor(named: "KMColor_Layout_H1") {
  969. return _color
  970. }
  971. return NSColor.km_init(hex: "#42464D", alpha: 1)
  972. }
  973. @available(*, deprecated, renamed: "Layout.h2Color()")
  974. class func KMColor_Layout_H2() -> NSColor {
  975. if (!self.isSupportNewColor()) {
  976. return NSColor.km_init(hex: "#757780", alpha: 1)
  977. }
  978. if let _color = NSColor(named: "KMColor_Layout_H2") {
  979. return _color
  980. }
  981. return NSColor.km_init(hex: "#757780", alpha: 1)
  982. }
  983. @available(*, deprecated, renamed: "Layout.b80Color()")
  984. class func KMColor_Layout_B80() -> NSColor {
  985. if (!self.isSupportNewColor()) {
  986. return NSColor.km_init(hex: "#000000", alpha: 0.8)
  987. }
  988. if let _color = NSColor(named: "KMColor_Layout_B80") {
  989. return _color
  990. }
  991. return NSColor.km_init(hex: "#000000", alpha: 0.8)
  992. }
  993. @available(*, deprecated, renamed: "Layout.b30Color()")
  994. class func KMColor_Layout_B30() -> NSColor {
  995. if (!self.isSupportNewColor()) {
  996. return NSColor.km_init(hex: "#000000", alpha: 0.3)
  997. }
  998. if let _color = NSColor(named: "KMColor_Layout_B30") {
  999. return _color
  1000. }
  1001. return NSColor.km_init(hex: "#000000", alpha: 0.3)
  1002. }
  1003. @available(*, deprecated, renamed: "Layout.b15Color()")
  1004. class func KMColor_Layout_B15() -> NSColor {
  1005. if (!self.isSupportNewColor()) {
  1006. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  1007. }
  1008. if let _color = NSColor(named: "KMColor_Layout_B15") {
  1009. return _color
  1010. }
  1011. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  1012. }
  1013. @available(*, deprecated, renamed: "Layout.w0Color()")
  1014. class func KMColor_Layout_W0() -> NSColor {
  1015. if (!self.isSupportNewColor()) {
  1016. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  1017. }
  1018. if let _color = NSColor(named: "KMColor_Layout_W0") {
  1019. return _color
  1020. }
  1021. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  1022. }
  1023. @available(*, deprecated, renamed: "Layout.w70Color()")
  1024. class func KMColor_Layout_W70() -> NSColor {
  1025. if (!self.isSupportNewColor()) {
  1026. return NSColor.km_init(hex: "#FFFFFF", alpha: 0.7)
  1027. }
  1028. if let _color = NSColor(named: "KMColor_Layout_W70") {
  1029. return _color
  1030. }
  1031. return NSColor.km_init(hex: "#FFFFFF", alpha: 0.7)
  1032. }
  1033. @available(*, deprecated, renamed: "Layout.w30Color()")
  1034. class func KMColor_Layout_W30() -> NSColor {
  1035. if (!self.isSupportNewColor()) {
  1036. return NSColor.km_init(hex: "#FFFFFF", alpha: 0.3)
  1037. }
  1038. if let _color = NSColor(named: "KMColor_Layout_W30") {
  1039. return _color
  1040. }
  1041. return NSColor.km_init(hex: "#FFFFFF", alpha: 0.3)
  1042. }
  1043. @available(*, deprecated, renamed: "Layout.w15Color()")
  1044. class func KMColor_Layout_W15() -> NSColor {
  1045. if (!self.isSupportNewColor()) {
  1046. return NSColor.km_init(hex: "#FFFFFF", alpha: 0.15)
  1047. }
  1048. if let _color = NSColor(named: "KMColor_Layout_W15") {
  1049. return _color
  1050. }
  1051. return NSColor.km_init(hex: "#FFFFFF", alpha: 0.15)
  1052. }
  1053. @available(*, deprecated, renamed: "Layout.b15_1Color()")
  1054. class func KMColor_Layout_B15_1() -> NSColor {
  1055. if (!self.isSupportNewColor()) {
  1056. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  1057. }
  1058. if let _color = NSColor(named: "KMColor_Layout_B15_1") {
  1059. return _color
  1060. }
  1061. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  1062. }
  1063. /// Interactive
  1064. @available(*, deprecated, renamed: "Interactive.a_1Color()")
  1065. class func KMColor_Interactive_A_1() -> NSColor {
  1066. if (!self.isSupportNewColor()) {
  1067. return NSColor.km_init(hex: "#3864B0", alpha: 1)
  1068. }
  1069. if let _color = NSColor(named: "KMColor_Interactive_A_1") {
  1070. return _color
  1071. }
  1072. return NSColor.km_init(hex: "#3864B0", alpha: 1)
  1073. }
  1074. @available(*, deprecated, renamed: "Interactive.a0Color()")
  1075. class func KMColor_Interactive_A0() -> NSColor {
  1076. if (!self.isSupportNewColor()) {
  1077. return NSColor.km_init(hex: "#4982E6", alpha: 1)
  1078. }
  1079. if let _color = NSColor(named: "KMColor_Interactive_A0") {
  1080. return _color
  1081. }
  1082. return NSColor.km_init(hex: "#4982E6", alpha: 1)
  1083. }
  1084. @available(*, deprecated, renamed: "Interactive.a1Color()")
  1085. class func KMColor_Interactive_A1() -> NSColor {
  1086. if (!self.isSupportNewColor()) {
  1087. return NSColor.km_init(hex: "#6B97E4", alpha: 1)
  1088. }
  1089. if let _color = NSColor(named: "KMColor_Interactive_A1") {
  1090. return _color
  1091. }
  1092. return NSColor.km_init(hex: "#6B97E4", alpha: 1)
  1093. }
  1094. @available(*, deprecated, renamed: "Interactive.m_1Color()")
  1095. class func KMColor_Interactive_M_1() -> NSColor {
  1096. if (!self.isSupportNewColor()) {
  1097. return NSColor.km_init(hex: "#1B2944", alpha: 1)
  1098. }
  1099. if let _color = NSColor(named: "KMColor_Interactive_M_1") {
  1100. return _color
  1101. }
  1102. return NSColor.km_init(hex: "#1B2944", alpha: 1)
  1103. }
  1104. @available(*, deprecated, renamed: "Interactive.m0Color()")
  1105. class func KMColor_Interactive_M0() -> NSColor {
  1106. if (!self.isSupportNewColor()) {
  1107. return NSColor.km_init(hex: "#273C62", alpha: 1)
  1108. }
  1109. if let _color = NSColor(named: "KMColor_Interactive_M0") {
  1110. return _color
  1111. }
  1112. return NSColor.km_init(hex: "#273C62", alpha: 1)
  1113. }
  1114. @available(*, deprecated, renamed: "Interactive.m1Color()")
  1115. class func KMColor_Interactive_M1() -> NSColor {
  1116. if (!self.isSupportNewColor()) {
  1117. return NSColor.km_init(hex: "#365283", alpha: 1)
  1118. }
  1119. if let _color = NSColor(named: "KMColor_Interactive_M1") {
  1120. return _color
  1121. }
  1122. return NSColor.km_init(hex: "#365283", alpha: 1)
  1123. }
  1124. @available(*, deprecated, renamed: "Interactive.s_1Color()")
  1125. class func KMColor_Interactive_S_1() -> NSColor {
  1126. if (!self.isSupportNewColor()) {
  1127. return NSColor.km_init(hex: "#AEAFB1", alpha: 1)
  1128. }
  1129. if let _color = NSColor(named: "KMColor_Interactive_S_1") {
  1130. return _color
  1131. }
  1132. return NSColor.km_init(hex: "#AEAFB1", alpha: 1)
  1133. }
  1134. @available(*, deprecated, renamed: "Interactive.s0Color()")
  1135. class func KMColor_Interactive_S0() -> NSColor {
  1136. if (!self.isSupportNewColor()) {
  1137. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  1138. }
  1139. if let _color = NSColor(named: "KMColor_Interactive_S0") {
  1140. return _color
  1141. }
  1142. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  1143. }
  1144. @available(*, deprecated, renamed: "Interactive.s1Color()")
  1145. class func KMColor_Interactive_S1() -> NSColor {
  1146. if (!self.isSupportNewColor()) {
  1147. return NSColor.km_init(hex: "#C8C9CC", alpha: 1)
  1148. }
  1149. if let _color = NSColor(named: "KMColor_Interactive_S1") {
  1150. return _color
  1151. }
  1152. return NSColor.km_init(hex: "#C8C9CC", alpha: 1)
  1153. }
  1154. /// Status
  1155. @available(*, deprecated, renamed: "Status.sucColor()")
  1156. class func KMColor_Status_Suc() -> NSColor {
  1157. if (!self.isSupportNewColor()) {
  1158. return NSColor.km_init(hex: "#3CCD75", alpha: 1)
  1159. }
  1160. if let _color = NSColor(named: "KMColor_Status_Suc") {
  1161. return _color
  1162. }
  1163. return NSColor.km_init(hex: "#3CCD75", alpha: 1)
  1164. }
  1165. @available(*, deprecated, renamed: "Status.errColor()")
  1166. class func KMColor_Status_Err() -> NSColor {
  1167. if (!self.isSupportNewColor()) {
  1168. return NSColor.km_init(hex: "#FA1E5D", alpha: 1)
  1169. }
  1170. if let _color = NSColor(named: "KMColor_Status_Err") {
  1171. return _color
  1172. }
  1173. return NSColor.km_init(hex: "#FA1E5D", alpha: 1)
  1174. }
  1175. @available(*, deprecated, renamed: "Status.errBGColor()")
  1176. class func KMColor_Status_Err_BG() -> NSColor {
  1177. if (!self.isSupportNewColor()) {
  1178. return NSColor.km_init(hex: "#FA1E5D", alpha: 0.12)
  1179. }
  1180. if let _color = NSColor(named: "KMColor_Status_Err_BG") {
  1181. return _color
  1182. }
  1183. return NSColor.km_init(hex: "#FA1E5D", alpha: 0.12)
  1184. }
  1185. @available(*, deprecated, renamed: "Status.errBG1Color()")
  1186. class func KMColor_Status_Err_BG_1() -> NSColor {
  1187. if (!self.isSupportNewColor()) {
  1188. return NSColor.km_init(hex: "#FA1E5D", alpha: 0.12)
  1189. }
  1190. if let _color = NSColor(named: "KMColor_Status_Err_BG_1") {
  1191. return _color
  1192. }
  1193. return NSColor.km_init(hex: "#FA1E5D", alpha: 0.12)
  1194. }
  1195. @available(*, deprecated, renamed: "Status.hovColor()")
  1196. class func KMColor_Status_Hov() -> NSColor {
  1197. if (!self.isSupportNewColor()) {
  1198. return NSColor.km_init(hex: "#000000", alpha: 0.05)
  1199. }
  1200. if let _color = NSColor(named: "KMColor_Status_Hov") {
  1201. return _color
  1202. }
  1203. return NSColor.km_init(hex: "#000000", alpha: 0.05)
  1204. }
  1205. @available(*, deprecated, renamed: "Status.preColor()")
  1206. class func KMColor_Status_Pre() -> NSColor {
  1207. if (!self.isSupportNewColor()) {
  1208. return NSColor.km_init(hex: "#000000", alpha: 0.1)
  1209. }
  1210. if let _color = NSColor(named: "KMColor_Status_Pre") {
  1211. return _color
  1212. }
  1213. return NSColor.km_init(hex: "#000000", alpha: 0.1)
  1214. }
  1215. @available(*, deprecated, renamed: "Status.selColor()")
  1216. class func KMColor_Status_Sel() -> NSColor {
  1217. if (!self.isSupportNewColor()) {
  1218. return NSColor.km_init(hex: "#4982E6", alpha: 0.2)
  1219. }
  1220. if let _color = NSColor(named: "KMColor_Status_Sel") {
  1221. return _color
  1222. }
  1223. return NSColor.km_init(hex: "#4982E6", alpha: 0.2)
  1224. }
  1225. /// Upgrade
  1226. @available(*, deprecated, renamed: "Upgrade.vip_1Color()")
  1227. class func KMColor_Upgrade_Vip_1() -> NSColor {
  1228. if (!self.isSupportNewColor()) {
  1229. return NSColor.km_init(hex: "#D2B58F", alpha: 1)
  1230. }
  1231. if let _color = NSColor(named: "KMColor_Upgrade_Vip_1") {
  1232. return _color
  1233. }
  1234. return NSColor.km_init(hex: "#D2B58F", alpha: 1)
  1235. }
  1236. @available(*, deprecated, renamed: "Upgrade.vip0Color()")
  1237. class func KMColor_Upgrade_Vip0() -> NSColor {
  1238. if (!self.isSupportNewColor()) {
  1239. return NSColor.km_init(hex: "#ECDCC1", alpha: 1)
  1240. }
  1241. if let _color = NSColor(named: "KMColor_Upgrade_Vip0") {
  1242. return _color
  1243. }
  1244. return NSColor.km_init(hex: "#ECDCC1", alpha: 1)
  1245. }
  1246. @available(*, deprecated, renamed: "Upgrade.vip01Color()")
  1247. class func KMColor_Upgrade_Vip0_1() -> NSColor {
  1248. if (!self.isSupportNewColor()) {
  1249. return NSColor.km_init(hex: "#DCBA8C", alpha: 1)
  1250. }
  1251. if let _color = NSColor(named: "KMColor_Upgrade_Vip0_1") {
  1252. return _color
  1253. }
  1254. return NSColor.km_init(hex: "#DCBA8C", alpha: 1)
  1255. }
  1256. @available(*, deprecated, renamed: "Upgrade.vip1Color()")
  1257. class func KMColor_Upgrade_Vip1() -> NSColor {
  1258. if (!self.isSupportNewColor()) {
  1259. return NSColor.km_init(hex: "#EFDCC1", alpha: 1)
  1260. }
  1261. if let _color = NSColor(named: "KMColor_Upgrade_Vip1") {
  1262. return _color
  1263. }
  1264. return NSColor.km_init(hex: "#EFDCC1", alpha: 1)
  1265. }
  1266. @available(*, deprecated, renamed: "Upgrade.vipBGColor()")
  1267. class func KMColor_Upgrade_Vip_BG() -> NSColor {
  1268. if (!self.isSupportNewColor()) {
  1269. return NSColor.km_init(hex: "#1B263A", alpha: 1)
  1270. }
  1271. if let _color = NSColor(named: "KMColor_Upgrade_Vip_BG") {
  1272. return _color
  1273. }
  1274. return NSColor.km_init(hex: "#1B263A", alpha: 1)
  1275. }
  1276. @available(*, deprecated, renamed: "Upgrade.vipBG1Color()")
  1277. class func KMColor_Upgrade_Vip_BG_1() -> NSColor {
  1278. if (!self.isSupportNewColor()) {
  1279. return NSColor.km_init(hex: "#273C62", alpha: 1)
  1280. }
  1281. if let _color = NSColor(named: "KMColor_Upgrade_Vip_BG_1") {
  1282. return _color
  1283. }
  1284. return NSColor.km_init(hex: "#273C62", alpha: 1)
  1285. }
  1286. /// Else
  1287. @available(*, deprecated, renamed: "Else.clearColor()")
  1288. class func KMColor_Else_00() -> NSColor {
  1289. return .clear
  1290. }
  1291. @available(*, deprecated, renamed: "Else.searchHighlightColor()")
  1292. class func KMColor_Else_Search_Highlight() -> NSColor {
  1293. if (!self.isSupportNewColor()) {
  1294. return NSColor.km_init(hex: "#FFF700", alpha: 0.6)
  1295. }
  1296. if let _color = NSColor(named: "KMColor_Else_Search_Highlight") {
  1297. return _color
  1298. }
  1299. return NSColor.km_init(hex: "#FFF700", alpha: 0.6)
  1300. }
  1301. @available(*, deprecated, renamed: "Else.textHighlightColor()")
  1302. class func KMColor_Else_Text_Highlight() -> NSColor {
  1303. if (!self.isSupportNewColor()) {
  1304. return NSColor.km_init(hex: "#4982E6", alpha: 0.3)
  1305. }
  1306. if let _color = NSColor(named: "KMColor_Else_Text_Highlight") {
  1307. return _color
  1308. }
  1309. return NSColor.km_init(hex: "#4982E6", alpha: 0.3)
  1310. }
  1311. @available(*, deprecated, renamed: "Else.textTagColor()")
  1312. class func KMColor_Else_Text_Tag() -> NSColor {
  1313. if (!self.isSupportNewColor()) {
  1314. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  1315. }
  1316. if let _color = NSColor(named: "KMColor_Else_Text_Tag") {
  1317. return _color
  1318. }
  1319. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  1320. }
  1321. @available(*, deprecated, renamed: "Else.tipsBGColor()")
  1322. class func KMColor_Else_Tips_BG() -> NSColor {
  1323. if (!self.isSupportNewColor()) {
  1324. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  1325. }
  1326. if let _color = NSColor(named: "KMColor_Else_Tips_BG") {
  1327. return _color
  1328. }
  1329. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  1330. }
  1331. @available(*, deprecated, renamed: "Else.tipbarColor()", message: "优化")
  1332. class func KMColor_Else_Tipbar() -> NSColor {
  1333. if (!self.isSupportNewColor()) {
  1334. return NSColor.km_init(hex: "#273C62", alpha: 0.8)
  1335. }
  1336. if let _color = NSColor(named: "KMColor_Else_Tipbar") {
  1337. return _color
  1338. }
  1339. return NSColor.km_init(hex: "#273C62", alpha: 0.8)
  1340. }
  1341. /*
  1342. + (BOOL)isObj:(NSObject *)obj hasObserverKey:(NSString *)keyPath{
  1343. if (obj == nil) {
  1344. return NO;
  1345. }
  1346. if (obj.observationInfo == nil) {
  1347. return NO;
  1348. }
  1349. NSObject *observances = [((__bridge NSObject*)(obj.observationInfo))valueForKeyPath:@"observances"];
  1350. if ([observances isKindOfClass:[NSArray class]]) {
  1351. for (NSObject *observance in (NSArray *)observances) {
  1352. NSString *inKeyPath = [NSString stringWithFormat:@"Key path: %@",keyPath];
  1353. NSString *objString = [NSString stringWithFormat:@"%@",observance];
  1354. if ([objString containsString:inKeyPath]) {
  1355. return YES;
  1356. }
  1357. }
  1358. }
  1359. return NO;
  1360. }
  1361. */
  1362. }
  1363. // MARK: - KMAppearance.Else
  1364. extension KMAppearance.Else {
  1365. static func clearColor() -> NSColor {
  1366. return .clear
  1367. }
  1368. static func searchHighlightColor() -> NSColor {
  1369. if (!KMAppearance.isSupportNewColor()) {
  1370. return NSColor.km_init(hex: "#FFF700", alpha: 0.6)
  1371. }
  1372. if let _color = NSColor(named: "KMColor_Else_Search_Highlight") {
  1373. return _color
  1374. }
  1375. return NSColor.km_init(hex: "#FFF700", alpha: 0.6)
  1376. }
  1377. static func textHighlightColor() -> NSColor {
  1378. if (!KMAppearance.isSupportNewColor()) {
  1379. return NSColor.km_init(hex: "#4982E6", alpha: 0.3)
  1380. }
  1381. if let _color = NSColor(named: "KMColor_Else_Text_Highlight") {
  1382. return _color
  1383. }
  1384. return NSColor.km_init(hex: "#4982E6", alpha: 0.3)
  1385. }
  1386. static func textTagColor() -> NSColor {
  1387. if (!KMAppearance.isSupportNewColor()) {
  1388. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  1389. }
  1390. if let _color = NSColor(named: "KMColor_Else_Text_Tag") {
  1391. return _color
  1392. }
  1393. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  1394. }
  1395. static func tipsBGColor() -> NSColor {
  1396. if (!KMAppearance.isSupportNewColor()) {
  1397. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  1398. }
  1399. if let _color = NSColor(named: "KMColor_Else_Tips_BG") {
  1400. return _color
  1401. }
  1402. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  1403. }
  1404. static func tipbarColor() -> NSColor {
  1405. if (!KMAppearance.isSupportNewColor()) {
  1406. return NSColor.km_init(hex: "#273C62", alpha: 0.8)
  1407. }
  1408. if let _color = NSColor(named: "KMColor_Else_Tipbar") {
  1409. return _color
  1410. }
  1411. return NSColor.km_init(hex: "#273C62", alpha: 0.8)
  1412. }
  1413. }
  1414. // MARK: - KMAppearance.Upgrade
  1415. extension KMAppearance.Upgrade {
  1416. static func vip_1Color() -> NSColor {
  1417. if (!KMAppearance.isSupportNewColor()) {
  1418. return NSColor.km_init(hex: "#D2B58F", alpha: 1)
  1419. }
  1420. if let _color = NSColor(named: "KMColor_Upgrade_Vip_1") {
  1421. return _color
  1422. }
  1423. return NSColor.km_init(hex: "#D2B58F", alpha: 1)
  1424. }
  1425. static func vip0Color() -> NSColor {
  1426. if (!KMAppearance.isSupportNewColor()) {
  1427. return NSColor.km_init(hex: "#ECDCC1", alpha: 1)
  1428. }
  1429. if let _color = NSColor(named: "KMColor_Upgrade_Vip0") {
  1430. return _color
  1431. }
  1432. return NSColor.km_init(hex: "#ECDCC1", alpha: 1)
  1433. }
  1434. static func vip01Color() -> NSColor {
  1435. if (!KMAppearance.isSupportNewColor()) {
  1436. return NSColor.km_init(hex: "#DCBA8C", alpha: 1)
  1437. }
  1438. if let _color = NSColor(named: "KMColor_Upgrade_Vip0_1") {
  1439. return _color
  1440. }
  1441. return NSColor.km_init(hex: "#DCBA8C", alpha: 1)
  1442. }
  1443. static func vip1Color() -> NSColor {
  1444. if (!KMAppearance.isSupportNewColor()) {
  1445. return NSColor.km_init(hex: "#EFDCC1", alpha: 1)
  1446. }
  1447. if let _color = NSColor(named: "KMColor_Upgrade_Vip1") {
  1448. return _color
  1449. }
  1450. return NSColor.km_init(hex: "#EFDCC1", alpha: 1)
  1451. }
  1452. static func vipBGColor() -> NSColor {
  1453. if (!KMAppearance.isSupportNewColor()) {
  1454. return NSColor.km_init(hex: "#1B263A", alpha: 1)
  1455. }
  1456. if let _color = NSColor(named: "KMColor_Upgrade_Vip_BG") {
  1457. return _color
  1458. }
  1459. return NSColor.km_init(hex: "#1B263A", alpha: 1)
  1460. }
  1461. static func vipBG1Color() -> NSColor {
  1462. if (!KMAppearance.isSupportNewColor()) {
  1463. return NSColor.km_init(hex: "#273C62", alpha: 1)
  1464. }
  1465. if let _color = NSColor(named: "KMColor_Upgrade_Vip_BG_1") {
  1466. return _color
  1467. }
  1468. return NSColor.km_init(hex: "#273C62", alpha: 1)
  1469. }
  1470. }
  1471. // MARK: - KMAppearance.Status
  1472. extension KMAppearance.Status {
  1473. static func sucColor() -> NSColor {
  1474. if (!KMAppearance.isSupportNewColor()) {
  1475. return NSColor.km_init(hex: "#3CCD75", alpha: 1)
  1476. }
  1477. if let _color = NSColor(named: "KMColor_Status_Suc") {
  1478. return _color
  1479. }
  1480. return NSColor.km_init(hex: "#3CCD75", alpha: 1)
  1481. }
  1482. static func errColor() -> NSColor {
  1483. if (!KMAppearance.isSupportNewColor()) {
  1484. return NSColor.km_init(hex: "#FA1E5D", alpha: 1)
  1485. }
  1486. if let _color = NSColor(named: "KMColor_Status_Err") {
  1487. return _color
  1488. }
  1489. return NSColor.km_init(hex: "#FA1E5D", alpha: 1)
  1490. }
  1491. static func errBGColor() -> NSColor {
  1492. if (!KMAppearance.isSupportNewColor()) {
  1493. return NSColor.km_init(hex: "#FA1E5D", alpha: 0.12)
  1494. }
  1495. if let _color = NSColor(named: "KMColor_Status_Err_BG") {
  1496. return _color
  1497. }
  1498. return NSColor.km_init(hex: "#FA1E5D", alpha: 0.12)
  1499. }
  1500. static func errBG1Color() -> NSColor {
  1501. if (!KMAppearance.isSupportNewColor()) {
  1502. return NSColor.km_init(hex: "#FA1E5D", alpha: 0.12)
  1503. }
  1504. if let _color = NSColor(named: "KMColor_Status_Err_BG_1") {
  1505. return _color
  1506. }
  1507. return NSColor.km_init(hex: "#FA1E5D", alpha: 0.12)
  1508. }
  1509. static func hovColor() -> NSColor {
  1510. if (!KMAppearance.isSupportNewColor()) {
  1511. return NSColor.km_init(hex: "#000000", alpha: 0.05)
  1512. }
  1513. if let _color = NSColor(named: "KMColor_Status_Hov") {
  1514. return _color
  1515. }
  1516. return NSColor.km_init(hex: "#000000", alpha: 0.05)
  1517. }
  1518. static func preColor() -> NSColor {
  1519. if (!KMAppearance.isSupportNewColor()) {
  1520. return NSColor.km_init(hex: "#000000", alpha: 0.1)
  1521. }
  1522. if let _color = NSColor(named: "KMColor_Status_Pre") {
  1523. return _color
  1524. }
  1525. return NSColor.km_init(hex: "#000000", alpha: 0.1)
  1526. }
  1527. static func selColor() -> NSColor {
  1528. if (!KMAppearance.isSupportNewColor()) {
  1529. return NSColor.km_init(hex: "#4982E6", alpha: 0.2)
  1530. }
  1531. if let _color = NSColor(named: "KMColor_Status_Sel") {
  1532. return _color
  1533. }
  1534. return NSColor.km_init(hex: "#4982E6", alpha: 0.2)
  1535. }
  1536. static func selColorNew() -> NSColor {
  1537. if (!KMAppearance.isSupportNewColor()) {
  1538. return NSColor.km_init(hex: "#4982E6", alpha: 0.2)
  1539. }
  1540. if let _color = NSColor(named: "KMColor_Status_Sel_new") {
  1541. return _color
  1542. }
  1543. return NSColor.km_init(hex: "#4982E6", alpha: 0.2)
  1544. }
  1545. }
  1546. // MARK: - KMAppearance.Interactive
  1547. extension KMAppearance.Interactive {
  1548. static func a_1Color() -> NSColor {
  1549. if (!KMAppearance.isSupportNewColor()) {
  1550. return NSColor.km_init(hex: "#3864B0", alpha: 1)
  1551. }
  1552. if let _color = NSColor(named: "KMColor_Interactive_A_1") {
  1553. return _color
  1554. }
  1555. return NSColor.km_init(hex: "#3864B0", alpha: 1)
  1556. }
  1557. static func a0Color() -> NSColor {
  1558. if (!KMAppearance.isSupportNewColor()) {
  1559. return NSColor.km_init(hex: "#4982E6", alpha: 1)
  1560. }
  1561. if let _color = NSColor(named: "KMColor_Interactive_A0") {
  1562. return _color
  1563. }
  1564. return NSColor.km_init(hex: "#4982E6", alpha: 1)
  1565. }
  1566. static func a1Color() -> NSColor {
  1567. if (!KMAppearance.isSupportNewColor()) {
  1568. return NSColor.km_init(hex: "#6B97E4", alpha: 1)
  1569. }
  1570. if let _color = NSColor(named: "KMColor_Interactive_A1") {
  1571. return _color
  1572. }
  1573. return NSColor.km_init(hex: "#6B97E4", alpha: 1)
  1574. }
  1575. static func m_1Color() -> NSColor {
  1576. if (!KMAppearance.isSupportNewColor()) {
  1577. return NSColor.km_init(hex: "#1B2944", alpha: 1)
  1578. }
  1579. if let _color = NSColor(named: "KMColor_Interactive_M_1") {
  1580. return _color
  1581. }
  1582. return NSColor.km_init(hex: "#1B2944", alpha: 1)
  1583. }
  1584. static func m0Color() -> NSColor {
  1585. if (!KMAppearance.isSupportNewColor()) {
  1586. return NSColor.km_init(hex: "#273C62", alpha: 1)
  1587. }
  1588. if let _color = NSColor(named: "KMColor_Interactive_M0") {
  1589. return _color
  1590. }
  1591. return NSColor.km_init(hex: "#273C62", alpha: 1)
  1592. }
  1593. static func m1Color() -> NSColor {
  1594. if (!KMAppearance.isSupportNewColor()) {
  1595. return NSColor.km_init(hex: "#365283", alpha: 1)
  1596. }
  1597. if let _color = NSColor(named: "KMColor_Interactive_M1") {
  1598. return _color
  1599. }
  1600. return NSColor.km_init(hex: "#365283", alpha: 1)
  1601. }
  1602. static func s_1Color() -> NSColor {
  1603. if (!KMAppearance.isSupportNewColor()) {
  1604. return NSColor.km_init(hex: "#AEAFB1", alpha: 1)
  1605. }
  1606. if let _color = NSColor(named: "KMColor_Interactive_S_1") {
  1607. return _color
  1608. }
  1609. return NSColor.km_init(hex: "#AEAFB1", alpha: 1)
  1610. }
  1611. static func s0Color() -> NSColor {
  1612. if (!KMAppearance.isSupportNewColor()) {
  1613. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  1614. }
  1615. if let _color = NSColor(named: "KMColor_Interactive_S0") {
  1616. return _color
  1617. }
  1618. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  1619. }
  1620. static func s1Color() -> NSColor {
  1621. if (!KMAppearance.isSupportNewColor()) {
  1622. return NSColor.km_init(hex: "#C8C9CC", alpha: 1)
  1623. }
  1624. if let _color = NSColor(named: "KMColor_Interactive_S1") {
  1625. return _color
  1626. }
  1627. return NSColor.km_init(hex: "#C8C9CC", alpha: 1)
  1628. }
  1629. }
  1630. // MARK: - KMAppearance.Layout
  1631. extension KMAppearance.Layout {
  1632. static func mColor() -> NSColor {
  1633. if (!KMAppearance.isSupportNewColor()) {
  1634. return NSColor.km_init(hex: "#273C62", alpha: 1)
  1635. }
  1636. if let _color = NSColor(named: "KMColor_Layout_M") {
  1637. return _color
  1638. }
  1639. return NSColor.km_init(hex: "#273C62", alpha: 1)
  1640. }
  1641. static func m_1Color() -> NSColor {
  1642. if (!KMAppearance.isSupportNewColor()) {
  1643. return NSColor.km_init(hex: "#273C62", alpha: 1)
  1644. }
  1645. if let _color = NSColor(named: "KMColor_Layout_M_1") {
  1646. return _color
  1647. }
  1648. return NSColor.km_init(hex: "#273C62", alpha: 1)
  1649. }
  1650. static func bgColor() -> NSColor {
  1651. if (!KMAppearance.isSupportNewColor()) {
  1652. return NSColor.km_init(hex: "#EBECF0", alpha: 1)
  1653. }
  1654. if let _color = NSColor(named: "KMColor_Layout_BG") {
  1655. return _color
  1656. }
  1657. return NSColor.km_init(hex: "#EBECF0", alpha: 1)
  1658. }
  1659. static func bgDrakColor() -> NSColor {
  1660. if (!KMAppearance.isSupportNewColor()) {
  1661. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  1662. }
  1663. if let _color = NSColor(named: "KMColor_Layout_BG_Drak") {
  1664. return _color
  1665. }
  1666. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  1667. }
  1668. static func l_2Color() -> NSColor {
  1669. if (!KMAppearance.isSupportNewColor()) {
  1670. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  1671. }
  1672. if let _color = NSColor(named: "KMColor_Layout_L_2") {
  1673. return _color
  1674. }
  1675. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  1676. }
  1677. static func l_1Color() -> NSColor {
  1678. if (!KMAppearance.isSupportNewColor()) {
  1679. return NSColor.km_init(hex: "#EBECF0", alpha: 1)
  1680. }
  1681. if let _color = NSColor(named: "KMColor_Layout_L_1") {
  1682. return _color
  1683. }
  1684. return NSColor.km_init(hex: "#EBECF0", alpha: 1)
  1685. }
  1686. static func l0Color() -> NSColor {
  1687. if (!KMAppearance.isSupportNewColor()) {
  1688. return NSColor.km_init(hex: "#FCFDFF", alpha: 1)
  1689. }
  1690. if let _color = NSColor(named: "KMColor_Layout_L0") {
  1691. return _color
  1692. }
  1693. return NSColor.km_init(hex: "#FCFDFF", alpha: 1)
  1694. }
  1695. static func l1Color() -> NSColor {
  1696. if (!KMAppearance.isSupportNewColor()) {
  1697. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  1698. }
  1699. if let _color = NSColor(named: "KMColor_Layout_L1") {
  1700. return _color
  1701. }
  1702. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  1703. }
  1704. static func h0Color() -> NSColor {
  1705. if (!KMAppearance.isSupportNewColor()) {
  1706. return NSColor.km_init(hex: "#0E1114", alpha: 1)
  1707. }
  1708. if let _color = NSColor(named: "KMColor_Layout_H0") {
  1709. return _color
  1710. }
  1711. return NSColor.km_init(hex: "#0E1114", alpha: 1)
  1712. }
  1713. static func h1Color() -> NSColor {
  1714. if (!KMAppearance.isSupportNewColor()) {
  1715. return NSColor.km_init(hex: "#42464D", alpha: 1)
  1716. }
  1717. if let _color = NSColor(named: "KMColor_Layout_H1") {
  1718. return _color
  1719. }
  1720. return NSColor.km_init(hex: "#42464D", alpha: 1)
  1721. }
  1722. static func h2Color() -> NSColor {
  1723. if (!KMAppearance.isSupportNewColor()) {
  1724. return NSColor.km_init(hex: "#757780", alpha: 1)
  1725. }
  1726. if let _color = NSColor(named: "KMColor_Layout_H2") {
  1727. return _color
  1728. }
  1729. return NSColor.km_init(hex: "#757780", alpha: 1)
  1730. }
  1731. static func b80Color() -> NSColor {
  1732. if (!KMAppearance.isSupportNewColor()) {
  1733. return NSColor.km_init(hex: "#000000", alpha: 0.8)
  1734. }
  1735. if let _color = NSColor(named: "KMColor_Layout_B80") {
  1736. return _color
  1737. }
  1738. return NSColor.km_init(hex: "#000000", alpha: 0.8)
  1739. }
  1740. static func b30Color() -> NSColor {
  1741. if (!KMAppearance.isSupportNewColor()) {
  1742. return NSColor.km_init(hex: "#000000", alpha: 0.3)
  1743. }
  1744. if let _color = NSColor(named: "KMColor_Layout_B30") {
  1745. return _color
  1746. }
  1747. return NSColor.km_init(hex: "#000000", alpha: 0.3)
  1748. }
  1749. static func b15Color() -> NSColor {
  1750. if (!KMAppearance.isSupportNewColor()) {
  1751. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  1752. }
  1753. if let _color = NSColor(named: "KMColor_Layout_B15") {
  1754. return _color
  1755. }
  1756. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  1757. }
  1758. static func w0Color() -> NSColor {
  1759. if (!KMAppearance.isSupportNewColor()) {
  1760. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  1761. }
  1762. if let _color = NSColor(named: "KMColor_Layout_W0") {
  1763. return _color
  1764. }
  1765. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  1766. }
  1767. static func w70Color() -> NSColor {
  1768. if (!KMAppearance.isSupportNewColor()) {
  1769. return NSColor.km_init(hex: "#FFFFFF", alpha: 0.7)
  1770. }
  1771. if let _color = NSColor(named: "KMColor_Layout_W70") {
  1772. return _color
  1773. }
  1774. return NSColor.km_init(hex: "#FFFFFF", alpha: 0.7)
  1775. }
  1776. static func w30Color() -> NSColor {
  1777. if (!KMAppearance.isSupportNewColor()) {
  1778. return NSColor.km_init(hex: "#FFFFFF", alpha: 0.3)
  1779. }
  1780. if let _color = NSColor(named: "KMColor_Layout_W30") {
  1781. return _color
  1782. }
  1783. return NSColor.km_init(hex: "#FFFFFF", alpha: 0.3)
  1784. }
  1785. static func w15Color() -> NSColor {
  1786. if (!KMAppearance.isSupportNewColor()) {
  1787. return NSColor.km_init(hex: "#FFFFFF", alpha: 0.15)
  1788. }
  1789. if let _color = NSColor(named: "KMColor_Layout_W15") {
  1790. return _color
  1791. }
  1792. return NSColor.km_init(hex: "#FFFFFF", alpha: 0.15)
  1793. }
  1794. static func b15_1Color() -> NSColor {
  1795. if (!KMAppearance.isSupportNewColor()) {
  1796. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  1797. }
  1798. if let _color = NSColor(named: "KMColor_Layout_B15_1") {
  1799. return _color
  1800. }
  1801. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  1802. }
  1803. }
  1804. extension KMAppearance {
  1805. struct Else {}
  1806. struct Upgrade {}
  1807. struct Status {}
  1808. struct Interactive {}
  1809. struct Layout {}
  1810. }