KMAppearance.swift 84 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913
  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. class func isSupportNewColor() -> Bool {
  596. if #available(macOS 10.14, *) {
  597. return true
  598. }
  599. return false
  600. }
  601. }
  602. // MARK: - Reader Pro
  603. @objc extension KMAppearance {
  604. class func viewBackgroundColor() -> NSColor {
  605. if (!self.isSupportNewColor()) {
  606. return NSColor(red: 250.0/255.0, green: 250.0/255.0, blue: 250.0/255.0, alpha: 1)
  607. }
  608. if let _color = NSColor(named: "KMViewBackgroundColor") {
  609. return _color
  610. }
  611. return NSColor(red: 250.0/255.0, green: 250.0/255.0, blue: 250.0/255.0, alpha: 1)
  612. }
  613. class func PDFViewBackgroundColor() -> NSColor {
  614. if (!self.isSupportNewColor()) {
  615. return NSColor.km_init(hex: "#DADBDE")
  616. }
  617. if let _color = NSColor(named: "KMPDFViewBackgroundColor") {
  618. return _color
  619. }
  620. return NSColor.km_init(hex: "#DADBDE")
  621. }
  622. class func toolbarBorderColor() -> NSColor {
  623. if (!self.isSupportNewColor()) {
  624. return NSColor(red: 213/255.0, green: 213/255.0, blue: 213/255.0, alpha: 1)
  625. }
  626. if let _color = NSColor(named: "KMToolbarBorderColor") {
  627. return _color
  628. }
  629. return NSColor(red: 213/255.0, green: 213/255.0, blue: 213/255.0, alpha: 1)
  630. }
  631. class func newWindowBackgroundColor() -> NSColor {
  632. if (!self.isSupportNewColor()) {
  633. return NSColor.km_init(hex: "#EEEEEE", alpha: 0.85)
  634. }
  635. if let _color = NSColor(named: "KMNewWindowBackgroundColor") {
  636. return _color
  637. }
  638. return NSColor.km_init(hex: "#EEEEEE", alpha: 0.85)
  639. }
  640. // MARK: - New UX Color
  641. class func KM_477EDE_Color15() -> NSColor {
  642. if (!self.isSupportNewColor()) {
  643. return NSColor.km_init(hex: "#477EDE", alpha: 0.15)
  644. }
  645. if let _color = NSColor(named: "KM_477EDE_Color15") {
  646. return _color
  647. }
  648. return NSColor.km_init(hex: "#477EDE", alpha: 0.15)
  649. }
  650. /// 高亮颜色
  651. class func KM_D2D1D2_Color() -> NSColor {
  652. if (!self.isSupportNewColor()) {
  653. return NSColor.km_init(hex: "#D2D1D2", alpha: 1)
  654. }
  655. if let _color = NSColor(named: "KM_D2D1D2_Color") {
  656. return _color
  657. }
  658. return NSColor.km_init(hex: "#D2D1D2", alpha: 1)
  659. }
  660. class func KM_EDECED_Color() -> NSColor {
  661. if (!self.isSupportNewColor()) {
  662. return NSColor.km_init(hex: "#EDECED", alpha: 1)
  663. }
  664. if let _color = NSColor(named: "KM_EDECED_Color") {
  665. return _color
  666. }
  667. return NSColor.km_init(hex: "#EDECED", alpha: 1)
  668. }
  669. class func KM_DBDBDB_Color() -> NSColor {
  670. if (!self.isSupportNewColor()) {
  671. return NSColor.km_init(hex: "#DBDBDB", alpha: 1)
  672. }
  673. if let _color = NSColor(named: "KM_DBDBDB_Color") {
  674. return _color
  675. }
  676. return NSColor.km_init(hex: "#DBDBDB", alpha: 1)
  677. }
  678. class func KM_FFFFFF_ColorChange01() -> NSColor {
  679. if (!self.isSupportNewColor()) {
  680. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  681. }
  682. if let _color = NSColor(named: "KM_FFFFFF_ColorChange01") {
  683. return _color
  684. }
  685. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  686. }
  687. class func KM_757780_Color() -> NSColor {
  688. if (!self.isSupportNewColor()) {
  689. return NSColor.km_init(hex: "#757780", alpha: 1)
  690. }
  691. if let _color = NSColor(named: "KM_757780_Color") {
  692. return _color
  693. }
  694. return NSColor.km_init(hex: "#757780", alpha: 1)
  695. }
  696. class func KM_FFFFFF_Color35() -> NSColor {
  697. if (!self.isSupportNewColor()) {
  698. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  699. }
  700. if let _color = NSColor(named: "KM_FFFFFF_Color35") {
  701. return _color
  702. }
  703. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  704. }
  705. class func KM_000000_Color15Chang35() -> NSColor {
  706. if (!self.isSupportNewColor()) {
  707. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  708. }
  709. if let _color = NSColor(named: "KM_000000_Color15Chang35") {
  710. return _color
  711. }
  712. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  713. }
  714. class func KM_000000_Color20() -> NSColor {
  715. return NSColor.km_init(hex: "#000000", alpha: 0.2)
  716. }
  717. class func KM_242424_Color() -> NSColor {
  718. if (!self.isSupportNewColor()) {
  719. return NSColor.km_init(hex: "#242424", alpha: 1)
  720. }
  721. if let _color = NSColor(named: "KM_242424_Color") {
  722. return _color
  723. }
  724. return NSColor.km_init(hex: "#242424", alpha: 1)
  725. }
  726. class func KM_242424_Color40() -> NSColor {
  727. if (!self.isSupportNewColor()) {
  728. return NSColor.km_init(hex: "#242424", alpha: 0.6)
  729. }
  730. if let _color = NSColor(named: "KM_242424_Color40") {
  731. return _color
  732. }
  733. return NSColor.km_init(hex: "#242424", alpha: 0.6)
  734. }
  735. class func KM_242424_Color75() -> NSColor {
  736. if (!self.isSupportNewColor()) {
  737. return NSColor.km_init(hex: "#242424", alpha: 1)
  738. }
  739. if let _color = NSColor(named: "KM_242424_Color75") {
  740. return _color
  741. }
  742. return NSColor.km_init(hex: "#242424", alpha: 1)
  743. }
  744. class func KM_067DFF_Color() -> NSColor {
  745. if (!self.isSupportNewColor()) {
  746. return NSColor.km_init(hex: "#067DFF", alpha: 1)
  747. }
  748. if let _color = NSColor(named: "KM_067DFF_Color") {
  749. return _color
  750. }
  751. return NSColor.km_init(hex: "#067DFF", alpha: 1)
  752. }
  753. class func KM_FFF700_Color60() -> NSColor {
  754. if (!self.isSupportNewColor()) {
  755. return NSColor.km_init(hex: "#FFF700", alpha: 0.6)
  756. }
  757. if let _color = NSColor(named: "KM_FFF700_Color60") {
  758. return _color
  759. }
  760. return NSColor.km_init(hex: "#FFF700", alpha: 0.6)
  761. }
  762. class func KM_F6F6F6_Color() -> NSColor {
  763. if (!self.isSupportNewColor()) {
  764. return NSColor.km_init(hex: "#F6F6F6", alpha: 1)
  765. }
  766. if let _color = NSColor(named: "KM_F6F6F6_Color") {
  767. return _color
  768. }
  769. return NSColor.km_init(hex: "#F6F6F6", alpha: 1)
  770. }
  771. // MARK: - 已经存在日间模式颜色,但是夜间模式颜色和原来存在的颜色不一致。以下
  772. class func KM_273C62_ColorDarkChanged02() -> NSColor {
  773. if (!self.isSupportNewColor()) {
  774. return NSColor.km_init(hex: "#273C62", alpha: 1)
  775. }
  776. if let _color = NSColor(named: "KMMainColorDarkChanged02") {
  777. return _color
  778. }
  779. return NSColor.km_init(hex: "#273C62", alpha: 1)
  780. }
  781. class func KM_FFFFFF_ColorDarkChanged06() -> NSColor {
  782. if (!self.isSupportNewColor()) {
  783. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  784. }
  785. if let _color = NSColor(named: "KM_FFFFFF_ColorDarkChanged06") {
  786. return _color
  787. }
  788. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  789. }
  790. class func KM_DADBDE_ColorDarkChange04() -> NSColor {
  791. if (!self.isSupportNewColor()) {
  792. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  793. }
  794. if let _color = NSColor(named: "KM_DADBDE_ColorDarkChange04") {
  795. return _color
  796. }
  797. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  798. }
  799. class func KM_273C62_Color80DarkChanged01() -> NSColor {
  800. if (!self.isSupportNewColor()) {
  801. return NSColor.km_init(hex: "#273C62", alpha: 0.8)
  802. }
  803. if let _color = NSColor(named: "KM_273C62_Color80DarkChanged01") {
  804. return _color
  805. }
  806. return NSColor.km_init(hex: "#273C62", alpha: 0.8)
  807. }
  808. class func KM_477EDE_ColorDarkChange01() -> NSColor {
  809. if (!self.isSupportNewColor()) {
  810. return NSColor.km_init(hex: "#477EDE", alpha: 1)
  811. }
  812. if let _color = NSColor(named: "KM_477EDE_ColorDarkChange01") {
  813. return _color
  814. }
  815. return NSColor.km_init(hex: "#477EDE", alpha: 1)
  816. }
  817. class func KM_000000_Color5DarkChange01() -> NSColor {
  818. if (!self.isSupportNewColor()) {
  819. return NSColor.km_init(hex: "#000000", alpha: 0.05)
  820. }
  821. if let _color = NSColor(named: "KM_000000_Color5DarkChange01") {
  822. return _color
  823. }
  824. return NSColor.km_init(hex: "#000000", alpha: 0.05)
  825. }
  826. // MARK: - New Color
  827. @available(*, deprecated, renamed: "Layout.mColor()")
  828. class func KMColor_Layout_M() -> NSColor {
  829. if (!self.isSupportNewColor()) {
  830. return NSColor.km_init(hex: "#273C62", alpha: 1)
  831. }
  832. if let _color = NSColor(named: "KMColor_Layout_M") {
  833. return _color
  834. }
  835. return NSColor.km_init(hex: "#273C62", alpha: 1)
  836. }
  837. @available(*, deprecated, renamed: "Layout.m_1Color()")
  838. class func KMColor_Layout_M_1() -> NSColor {
  839. if (!self.isSupportNewColor()) {
  840. return NSColor.km_init(hex: "#273C62", alpha: 1)
  841. }
  842. if let _color = NSColor(named: "KMColor_Layout_M_1") {
  843. return _color
  844. }
  845. return NSColor.km_init(hex: "#273C62", alpha: 1)
  846. }
  847. @available(*, deprecated, renamed: "Layout.bgColor()")
  848. class func KMColor_Layout_BG() -> NSColor {
  849. if (!self.isSupportNewColor()) {
  850. return NSColor.km_init(hex: "#EBECF0", alpha: 1)
  851. }
  852. if let _color = NSColor(named: "KMColor_Layout_BG") {
  853. return _color
  854. }
  855. return NSColor.km_init(hex: "#EBECF0", alpha: 1)
  856. }
  857. @available(*, deprecated, renamed: "Layout.bgDrakColor()")
  858. class func KMColor_Layout_BG_Drak() -> NSColor {
  859. if (!self.isSupportNewColor()) {
  860. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  861. }
  862. if let _color = NSColor(named: "KMColor_Layout_BG_Drak") {
  863. return _color
  864. }
  865. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  866. }
  867. @available(*, deprecated, renamed: "Layout.l_2Color()")
  868. class func KMColor_Layout_L_2() -> NSColor {
  869. if (!self.isSupportNewColor()) {
  870. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  871. }
  872. if let _color = NSColor(named: "KMColor_Layout_L_2") {
  873. return _color
  874. }
  875. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  876. }
  877. @available(*, deprecated, renamed: "Layout.l_1Color()")
  878. class func KMColor_Layout_L_1() -> NSColor {
  879. if (!self.isSupportNewColor()) {
  880. return NSColor.km_init(hex: "#EBECF0", alpha: 1)
  881. }
  882. if let _color = NSColor(named: "KMColor_Layout_L_1") {
  883. return _color
  884. }
  885. return NSColor.km_init(hex: "#EBECF0", alpha: 1)
  886. }
  887. @available(*, deprecated, renamed: "Layout.l0Color()")
  888. class func KMColor_Layout_L0() -> NSColor {
  889. if (!self.isSupportNewColor()) {
  890. return NSColor.km_init(hex: "#FCFDFF", alpha: 1)
  891. }
  892. if let _color = NSColor(named: "KMColor_Layout_L0") {
  893. return _color
  894. }
  895. return NSColor.km_init(hex: "#FCFDFF", alpha: 1)
  896. }
  897. @available(*, deprecated, renamed: "Layout.l1Color()")
  898. class func KMColor_Layout_L1() -> NSColor {
  899. if (!self.isSupportNewColor()) {
  900. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  901. }
  902. if let _color = NSColor(named: "KMColor_Layout_L1") {
  903. return _color
  904. }
  905. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  906. }
  907. @available(*, deprecated, renamed: "Layout.h0Color()")
  908. class func KMColor_Layout_H0() -> NSColor {
  909. if (!self.isSupportNewColor()) {
  910. return NSColor.km_init(hex: "#0E1114", alpha: 1)
  911. }
  912. if let _color = NSColor(named: "KMColor_Layout_H0") {
  913. return _color
  914. }
  915. return NSColor.km_init(hex: "#0E1114", alpha: 1)
  916. }
  917. @available(*, deprecated, renamed: "Layout.h1Color()")
  918. class func KMColor_Layout_H1() -> NSColor {
  919. if (!self.isSupportNewColor()) {
  920. return NSColor.km_init(hex: "#42464D", alpha: 1)
  921. }
  922. if let _color = NSColor(named: "KMColor_Layout_H1") {
  923. return _color
  924. }
  925. return NSColor.km_init(hex: "#42464D", alpha: 1)
  926. }
  927. @available(*, deprecated, renamed: "Layout.h2Color()")
  928. class func KMColor_Layout_H2() -> NSColor {
  929. if (!self.isSupportNewColor()) {
  930. return NSColor.km_init(hex: "#757780", alpha: 1)
  931. }
  932. if let _color = NSColor(named: "KMColor_Layout_H2") {
  933. return _color
  934. }
  935. return NSColor.km_init(hex: "#757780", alpha: 1)
  936. }
  937. @available(*, deprecated, renamed: "Layout.b80Color()")
  938. class func KMColor_Layout_B80() -> NSColor {
  939. if (!self.isSupportNewColor()) {
  940. return NSColor.km_init(hex: "#000000", alpha: 0.8)
  941. }
  942. if let _color = NSColor(named: "KMColor_Layout_B80") {
  943. return _color
  944. }
  945. return NSColor.km_init(hex: "#000000", alpha: 0.8)
  946. }
  947. @available(*, deprecated, renamed: "Layout.b30Color()")
  948. class func KMColor_Layout_B30() -> NSColor {
  949. if (!self.isSupportNewColor()) {
  950. return NSColor.km_init(hex: "#000000", alpha: 0.3)
  951. }
  952. if let _color = NSColor(named: "KMColor_Layout_B30") {
  953. return _color
  954. }
  955. return NSColor.km_init(hex: "#000000", alpha: 0.3)
  956. }
  957. @available(*, deprecated, renamed: "Layout.b15Color()")
  958. class func KMColor_Layout_B15() -> NSColor {
  959. if (!self.isSupportNewColor()) {
  960. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  961. }
  962. if let _color = NSColor(named: "KMColor_Layout_B15") {
  963. return _color
  964. }
  965. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  966. }
  967. @available(*, deprecated, renamed: "Layout.w0Color()")
  968. class func KMColor_Layout_W0() -> NSColor {
  969. if (!self.isSupportNewColor()) {
  970. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  971. }
  972. if let _color = NSColor(named: "KMColor_Layout_W0") {
  973. return _color
  974. }
  975. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  976. }
  977. @available(*, deprecated, renamed: "Layout.w70Color()")
  978. class func KMColor_Layout_W70() -> NSColor {
  979. if (!self.isSupportNewColor()) {
  980. return NSColor.km_init(hex: "#FFFFFF", alpha: 0.7)
  981. }
  982. if let _color = NSColor(named: "KMColor_Layout_W70") {
  983. return _color
  984. }
  985. return NSColor.km_init(hex: "#FFFFFF", alpha: 0.7)
  986. }
  987. @available(*, deprecated, renamed: "Layout.w30Color()")
  988. class func KMColor_Layout_W30() -> NSColor {
  989. if (!self.isSupportNewColor()) {
  990. return NSColor.km_init(hex: "#FFFFFF", alpha: 0.3)
  991. }
  992. if let _color = NSColor(named: "KMColor_Layout_W30") {
  993. return _color
  994. }
  995. return NSColor.km_init(hex: "#FFFFFF", alpha: 0.3)
  996. }
  997. @available(*, deprecated, renamed: "Layout.w15Color()")
  998. class func KMColor_Layout_W15() -> NSColor {
  999. if (!self.isSupportNewColor()) {
  1000. return NSColor.km_init(hex: "#FFFFFF", alpha: 0.15)
  1001. }
  1002. if let _color = NSColor(named: "KMColor_Layout_W15") {
  1003. return _color
  1004. }
  1005. return NSColor.km_init(hex: "#FFFFFF", alpha: 0.15)
  1006. }
  1007. @available(*, deprecated, renamed: "Layout.b15_1Color()")
  1008. class func KMColor_Layout_B15_1() -> NSColor {
  1009. if (!self.isSupportNewColor()) {
  1010. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  1011. }
  1012. if let _color = NSColor(named: "KMColor_Layout_B15_1") {
  1013. return _color
  1014. }
  1015. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  1016. }
  1017. /// Interactive
  1018. @available(*, deprecated, renamed: "Interactive.a_1Color()")
  1019. class func KMColor_Interactive_A_1() -> NSColor {
  1020. if (!self.isSupportNewColor()) {
  1021. return NSColor.km_init(hex: "#3864B0", alpha: 1)
  1022. }
  1023. if let _color = NSColor(named: "KMColor_Interactive_A_1") {
  1024. return _color
  1025. }
  1026. return NSColor.km_init(hex: "#3864B0", alpha: 1)
  1027. }
  1028. @available(*, deprecated, renamed: "Interactive.a0Color()")
  1029. class func KMColor_Interactive_A0() -> NSColor {
  1030. if (!self.isSupportNewColor()) {
  1031. return NSColor.km_init(hex: "#4982E6", alpha: 1)
  1032. }
  1033. if let _color = NSColor(named: "KMColor_Interactive_A0") {
  1034. return _color
  1035. }
  1036. return NSColor.km_init(hex: "#4982E6", alpha: 1)
  1037. }
  1038. @available(*, deprecated, renamed: "Interactive.a1Color()")
  1039. class func KMColor_Interactive_A1() -> NSColor {
  1040. if (!self.isSupportNewColor()) {
  1041. return NSColor.km_init(hex: "#6B97E4", alpha: 1)
  1042. }
  1043. if let _color = NSColor(named: "KMColor_Interactive_A1") {
  1044. return _color
  1045. }
  1046. return NSColor.km_init(hex: "#6B97E4", alpha: 1)
  1047. }
  1048. @available(*, deprecated, renamed: "Interactive.m_1Color()")
  1049. class func KMColor_Interactive_M_1() -> NSColor {
  1050. if (!self.isSupportNewColor()) {
  1051. return NSColor.km_init(hex: "#1B2944", alpha: 1)
  1052. }
  1053. if let _color = NSColor(named: "KMColor_Interactive_M_1") {
  1054. return _color
  1055. }
  1056. return NSColor.km_init(hex: "#1B2944", alpha: 1)
  1057. }
  1058. @available(*, deprecated, renamed: "Interactive.m0Color()")
  1059. class func KMColor_Interactive_M0() -> NSColor {
  1060. if (!self.isSupportNewColor()) {
  1061. return NSColor.km_init(hex: "#273C62", alpha: 1)
  1062. }
  1063. if let _color = NSColor(named: "KMColor_Interactive_M0") {
  1064. return _color
  1065. }
  1066. return NSColor.km_init(hex: "#273C62", alpha: 1)
  1067. }
  1068. @available(*, deprecated, renamed: "Interactive.m1Color()")
  1069. class func KMColor_Interactive_M1() -> NSColor {
  1070. if (!self.isSupportNewColor()) {
  1071. return NSColor.km_init(hex: "#365283", alpha: 1)
  1072. }
  1073. if let _color = NSColor(named: "KMColor_Interactive_M1") {
  1074. return _color
  1075. }
  1076. return NSColor.km_init(hex: "#365283", alpha: 1)
  1077. }
  1078. @available(*, deprecated, renamed: "Interactive.s_1Color()")
  1079. class func KMColor_Interactive_S_1() -> NSColor {
  1080. if (!self.isSupportNewColor()) {
  1081. return NSColor.km_init(hex: "#AEAFB1", alpha: 1)
  1082. }
  1083. if let _color = NSColor(named: "KMColor_Interactive_S_1") {
  1084. return _color
  1085. }
  1086. return NSColor.km_init(hex: "#AEAFB1", alpha: 1)
  1087. }
  1088. @available(*, deprecated, renamed: "Interactive.s0Color()")
  1089. class func KMColor_Interactive_S0() -> NSColor {
  1090. if (!self.isSupportNewColor()) {
  1091. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  1092. }
  1093. if let _color = NSColor(named: "KMColor_Interactive_S0") {
  1094. return _color
  1095. }
  1096. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  1097. }
  1098. @available(*, deprecated, renamed: "Interactive.s1Color()")
  1099. class func KMColor_Interactive_S1() -> NSColor {
  1100. if (!self.isSupportNewColor()) {
  1101. return NSColor.km_init(hex: "#C8C9CC", alpha: 1)
  1102. }
  1103. if let _color = NSColor(named: "KMColor_Interactive_S1") {
  1104. return _color
  1105. }
  1106. return NSColor.km_init(hex: "#C8C9CC", alpha: 1)
  1107. }
  1108. /// Status
  1109. @available(*, deprecated, renamed: "Status.sucColor()")
  1110. class func KMColor_Status_Suc() -> NSColor {
  1111. if (!self.isSupportNewColor()) {
  1112. return NSColor.km_init(hex: "#3CCD75", alpha: 1)
  1113. }
  1114. if let _color = NSColor(named: "KMColor_Status_Suc") {
  1115. return _color
  1116. }
  1117. return NSColor.km_init(hex: "#3CCD75", alpha: 1)
  1118. }
  1119. @available(*, deprecated, renamed: "Status.errColor()")
  1120. class func KMColor_Status_Err() -> NSColor {
  1121. if (!self.isSupportNewColor()) {
  1122. return NSColor.km_init(hex: "#FA1E5D", alpha: 1)
  1123. }
  1124. if let _color = NSColor(named: "KMColor_Status_Err") {
  1125. return _color
  1126. }
  1127. return NSColor.km_init(hex: "#FA1E5D", alpha: 1)
  1128. }
  1129. @available(*, deprecated, renamed: "Status.errBGColor()")
  1130. class func KMColor_Status_Err_BG() -> NSColor {
  1131. if (!self.isSupportNewColor()) {
  1132. return NSColor.km_init(hex: "#FA1E5D", alpha: 0.12)
  1133. }
  1134. if let _color = NSColor(named: "KMColor_Status_Err_BG") {
  1135. return _color
  1136. }
  1137. return NSColor.km_init(hex: "#FA1E5D", alpha: 0.12)
  1138. }
  1139. @available(*, deprecated, renamed: "Status.errBG1Color()")
  1140. class func KMColor_Status_Err_BG_1() -> NSColor {
  1141. if (!self.isSupportNewColor()) {
  1142. return NSColor.km_init(hex: "#FA1E5D", alpha: 0.12)
  1143. }
  1144. if let _color = NSColor(named: "KMColor_Status_Err_BG_1") {
  1145. return _color
  1146. }
  1147. return NSColor.km_init(hex: "#FA1E5D", alpha: 0.12)
  1148. }
  1149. @available(*, deprecated, renamed: "Status.hovColor()")
  1150. class func KMColor_Status_Hov() -> NSColor {
  1151. if (!self.isSupportNewColor()) {
  1152. return NSColor.km_init(hex: "#000000", alpha: 0.05)
  1153. }
  1154. if let _color = NSColor(named: "KMColor_Status_Hov") {
  1155. return _color
  1156. }
  1157. return NSColor.km_init(hex: "#000000", alpha: 0.05)
  1158. }
  1159. @available(*, deprecated, renamed: "Status.preColor()")
  1160. class func KMColor_Status_Pre() -> NSColor {
  1161. if (!self.isSupportNewColor()) {
  1162. return NSColor.km_init(hex: "#000000", alpha: 0.1)
  1163. }
  1164. if let _color = NSColor(named: "KMColor_Status_Pre") {
  1165. return _color
  1166. }
  1167. return NSColor.km_init(hex: "#000000", alpha: 0.1)
  1168. }
  1169. @available(*, deprecated, renamed: "Status.selColor()")
  1170. class func KMColor_Status_Sel() -> NSColor {
  1171. if (!self.isSupportNewColor()) {
  1172. return NSColor.km_init(hex: "#4982E6", alpha: 0.2)
  1173. }
  1174. if let _color = NSColor(named: "KMColor_Status_Sel") {
  1175. return _color
  1176. }
  1177. return NSColor.km_init(hex: "#4982E6", alpha: 0.2)
  1178. }
  1179. /// Upgrade
  1180. @available(*, deprecated, renamed: "Upgrade.vip_1Color()")
  1181. class func KMColor_Upgrade_Vip_1() -> NSColor {
  1182. if (!self.isSupportNewColor()) {
  1183. return NSColor.km_init(hex: "#D2B58F", alpha: 1)
  1184. }
  1185. if let _color = NSColor(named: "KMColor_Upgrade_Vip_1") {
  1186. return _color
  1187. }
  1188. return NSColor.km_init(hex: "#D2B58F", alpha: 1)
  1189. }
  1190. @available(*, deprecated, renamed: "Upgrade.vip0Color()")
  1191. class func KMColor_Upgrade_Vip0() -> NSColor {
  1192. if (!self.isSupportNewColor()) {
  1193. return NSColor.km_init(hex: "#ECDCC1", alpha: 1)
  1194. }
  1195. if let _color = NSColor(named: "KMColor_Upgrade_Vip0") {
  1196. return _color
  1197. }
  1198. return NSColor.km_init(hex: "#ECDCC1", alpha: 1)
  1199. }
  1200. @available(*, deprecated, renamed: "Upgrade.vip01Color()")
  1201. class func KMColor_Upgrade_Vip0_1() -> NSColor {
  1202. if (!self.isSupportNewColor()) {
  1203. return NSColor.km_init(hex: "#DCBA8C", alpha: 1)
  1204. }
  1205. if let _color = NSColor(named: "KMColor_Upgrade_Vip0_1") {
  1206. return _color
  1207. }
  1208. return NSColor.km_init(hex: "#DCBA8C", alpha: 1)
  1209. }
  1210. @available(*, deprecated, renamed: "Upgrade.vip1Color()")
  1211. class func KMColor_Upgrade_Vip1() -> NSColor {
  1212. if (!self.isSupportNewColor()) {
  1213. return NSColor.km_init(hex: "#EFDCC1", alpha: 1)
  1214. }
  1215. if let _color = NSColor(named: "KMColor_Upgrade_Vip1") {
  1216. return _color
  1217. }
  1218. return NSColor.km_init(hex: "#EFDCC1", alpha: 1)
  1219. }
  1220. @available(*, deprecated, renamed: "Upgrade.vipBGColor()")
  1221. class func KMColor_Upgrade_Vip_BG() -> NSColor {
  1222. if (!self.isSupportNewColor()) {
  1223. return NSColor.km_init(hex: "#1B263A", alpha: 1)
  1224. }
  1225. if let _color = NSColor(named: "KMColor_Upgrade_Vip_BG") {
  1226. return _color
  1227. }
  1228. return NSColor.km_init(hex: "#1B263A", alpha: 1)
  1229. }
  1230. @available(*, deprecated, renamed: "Upgrade.vipBG1Color()")
  1231. class func KMColor_Upgrade_Vip_BG_1() -> NSColor {
  1232. if (!self.isSupportNewColor()) {
  1233. return NSColor.km_init(hex: "#273C62", alpha: 1)
  1234. }
  1235. if let _color = NSColor(named: "KMColor_Upgrade_Vip_BG_1") {
  1236. return _color
  1237. }
  1238. return NSColor.km_init(hex: "#273C62", alpha: 1)
  1239. }
  1240. /// Else
  1241. @available(*, deprecated, renamed: "Else.clearColor()")
  1242. class func KMColor_Else_00() -> NSColor {
  1243. return .clear
  1244. }
  1245. @available(*, deprecated, renamed: "Else.searchHighlightColor()")
  1246. class func KMColor_Else_Search_Highlight() -> NSColor {
  1247. if (!self.isSupportNewColor()) {
  1248. return NSColor.km_init(hex: "#FFF700", alpha: 0.6)
  1249. }
  1250. if let _color = NSColor(named: "KMColor_Else_Search_Highlight") {
  1251. return _color
  1252. }
  1253. return NSColor.km_init(hex: "#FFF700", alpha: 0.6)
  1254. }
  1255. @available(*, deprecated, renamed: "Else.textHighlightColor()")
  1256. class func KMColor_Else_Text_Highlight() -> NSColor {
  1257. if (!self.isSupportNewColor()) {
  1258. return NSColor.km_init(hex: "#4982E6", alpha: 0.3)
  1259. }
  1260. if let _color = NSColor(named: "KMColor_Else_Text_Highlight") {
  1261. return _color
  1262. }
  1263. return NSColor.km_init(hex: "#4982E6", alpha: 0.3)
  1264. }
  1265. @available(*, deprecated, renamed: "Else.textTagColor()")
  1266. class func KMColor_Else_Text_Tag() -> NSColor {
  1267. if (!self.isSupportNewColor()) {
  1268. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  1269. }
  1270. if let _color = NSColor(named: "KMColor_Else_Text_Tag") {
  1271. return _color
  1272. }
  1273. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  1274. }
  1275. @available(*, deprecated, renamed: "Else.tipsBGColor()")
  1276. class func KMColor_Else_Tips_BG() -> NSColor {
  1277. if (!self.isSupportNewColor()) {
  1278. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  1279. }
  1280. if let _color = NSColor(named: "KMColor_Else_Tips_BG") {
  1281. return _color
  1282. }
  1283. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  1284. }
  1285. @available(*, deprecated, renamed: "Else.tipbarColor()", message: "优化")
  1286. class func KMColor_Else_Tipbar() -> NSColor {
  1287. if (!self.isSupportNewColor()) {
  1288. return NSColor.km_init(hex: "#273C62", alpha: 0.8)
  1289. }
  1290. if let _color = NSColor(named: "KMColor_Else_Tipbar") {
  1291. return _color
  1292. }
  1293. return NSColor.km_init(hex: "#273C62", alpha: 0.8)
  1294. }
  1295. /*
  1296. + (BOOL)isObj:(NSObject *)obj hasObserverKey:(NSString *)keyPath{
  1297. if (obj == nil) {
  1298. return NO;
  1299. }
  1300. if (obj.observationInfo == nil) {
  1301. return NO;
  1302. }
  1303. NSObject *observances = [((__bridge NSObject*)(obj.observationInfo))valueForKeyPath:@"observances"];
  1304. if ([observances isKindOfClass:[NSArray class]]) {
  1305. for (NSObject *observance in (NSArray *)observances) {
  1306. NSString *inKeyPath = [NSString stringWithFormat:@"Key path: %@",keyPath];
  1307. NSString *objString = [NSString stringWithFormat:@"%@",observance];
  1308. if ([objString containsString:inKeyPath]) {
  1309. return YES;
  1310. }
  1311. }
  1312. }
  1313. return NO;
  1314. }
  1315. */
  1316. }
  1317. // MARK: - KMAppearance.Else
  1318. extension KMAppearance.Else {
  1319. static func clearColor() -> NSColor {
  1320. return .clear
  1321. }
  1322. static func searchHighlightColor() -> NSColor {
  1323. if (!KMAppearance.isSupportNewColor()) {
  1324. return NSColor.km_init(hex: "#FFF700", alpha: 0.6)
  1325. }
  1326. if let _color = NSColor(named: "KMColor_Else_Search_Highlight") {
  1327. return _color
  1328. }
  1329. return NSColor.km_init(hex: "#FFF700", alpha: 0.6)
  1330. }
  1331. static func textHighlightColor() -> NSColor {
  1332. if (!KMAppearance.isSupportNewColor()) {
  1333. return NSColor.km_init(hex: "#4982E6", alpha: 0.3)
  1334. }
  1335. if let _color = NSColor(named: "KMColor_Else_Text_Highlight") {
  1336. return _color
  1337. }
  1338. return NSColor.km_init(hex: "#4982E6", alpha: 0.3)
  1339. }
  1340. static func textTagColor() -> NSColor {
  1341. if (!KMAppearance.isSupportNewColor()) {
  1342. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  1343. }
  1344. if let _color = NSColor(named: "KMColor_Else_Text_Tag") {
  1345. return _color
  1346. }
  1347. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  1348. }
  1349. static func tipsBGColor() -> NSColor {
  1350. if (!KMAppearance.isSupportNewColor()) {
  1351. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  1352. }
  1353. if let _color = NSColor(named: "KMColor_Else_Tips_BG") {
  1354. return _color
  1355. }
  1356. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  1357. }
  1358. static func tipbarColor() -> NSColor {
  1359. if (!KMAppearance.isSupportNewColor()) {
  1360. return NSColor.km_init(hex: "#273C62", alpha: 0.8)
  1361. }
  1362. if let _color = NSColor(named: "KMColor_Else_Tipbar") {
  1363. return _color
  1364. }
  1365. return NSColor.km_init(hex: "#273C62", alpha: 0.8)
  1366. }
  1367. }
  1368. // MARK: - KMAppearance.Upgrade
  1369. extension KMAppearance.Upgrade {
  1370. static func vip_1Color() -> NSColor {
  1371. if (!KMAppearance.isSupportNewColor()) {
  1372. return NSColor.km_init(hex: "#D2B58F", alpha: 1)
  1373. }
  1374. if let _color = NSColor(named: "KMColor_Upgrade_Vip_1") {
  1375. return _color
  1376. }
  1377. return NSColor.km_init(hex: "#D2B58F", alpha: 1)
  1378. }
  1379. static func vip0Color() -> NSColor {
  1380. if (!KMAppearance.isSupportNewColor()) {
  1381. return NSColor.km_init(hex: "#ECDCC1", alpha: 1)
  1382. }
  1383. if let _color = NSColor(named: "KMColor_Upgrade_Vip0") {
  1384. return _color
  1385. }
  1386. return NSColor.km_init(hex: "#ECDCC1", alpha: 1)
  1387. }
  1388. static func vip01Color() -> NSColor {
  1389. if (!KMAppearance.isSupportNewColor()) {
  1390. return NSColor.km_init(hex: "#DCBA8C", alpha: 1)
  1391. }
  1392. if let _color = NSColor(named: "KMColor_Upgrade_Vip0_1") {
  1393. return _color
  1394. }
  1395. return NSColor.km_init(hex: "#DCBA8C", alpha: 1)
  1396. }
  1397. static func vip1Color() -> NSColor {
  1398. if (!KMAppearance.isSupportNewColor()) {
  1399. return NSColor.km_init(hex: "#EFDCC1", alpha: 1)
  1400. }
  1401. if let _color = NSColor(named: "KMColor_Upgrade_Vip1") {
  1402. return _color
  1403. }
  1404. return NSColor.km_init(hex: "#EFDCC1", alpha: 1)
  1405. }
  1406. static func vipBGColor() -> NSColor {
  1407. if (!KMAppearance.isSupportNewColor()) {
  1408. return NSColor.km_init(hex: "#1B263A", alpha: 1)
  1409. }
  1410. if let _color = NSColor(named: "KMColor_Upgrade_Vip_BG") {
  1411. return _color
  1412. }
  1413. return NSColor.km_init(hex: "#1B263A", alpha: 1)
  1414. }
  1415. static func vipBG1Color() -> NSColor {
  1416. if (!KMAppearance.isSupportNewColor()) {
  1417. return NSColor.km_init(hex: "#273C62", alpha: 1)
  1418. }
  1419. if let _color = NSColor(named: "KMColor_Upgrade_Vip_BG_1") {
  1420. return _color
  1421. }
  1422. return NSColor.km_init(hex: "#273C62", alpha: 1)
  1423. }
  1424. }
  1425. // MARK: - KMAppearance.Status
  1426. extension KMAppearance.Status {
  1427. static func sucColor() -> NSColor {
  1428. if (!KMAppearance.isSupportNewColor()) {
  1429. return NSColor.km_init(hex: "#3CCD75", alpha: 1)
  1430. }
  1431. if let _color = NSColor(named: "KMColor_Status_Suc") {
  1432. return _color
  1433. }
  1434. return NSColor.km_init(hex: "#3CCD75", alpha: 1)
  1435. }
  1436. static func errColor() -> NSColor {
  1437. if (!KMAppearance.isSupportNewColor()) {
  1438. return NSColor.km_init(hex: "#FA1E5D", alpha: 1)
  1439. }
  1440. if let _color = NSColor(named: "KMColor_Status_Err") {
  1441. return _color
  1442. }
  1443. return NSColor.km_init(hex: "#FA1E5D", alpha: 1)
  1444. }
  1445. static func errBGColor() -> NSColor {
  1446. if (!KMAppearance.isSupportNewColor()) {
  1447. return NSColor.km_init(hex: "#FA1E5D", alpha: 0.12)
  1448. }
  1449. if let _color = NSColor(named: "KMColor_Status_Err_BG") {
  1450. return _color
  1451. }
  1452. return NSColor.km_init(hex: "#FA1E5D", alpha: 0.12)
  1453. }
  1454. static func errBG1Color() -> NSColor {
  1455. if (!KMAppearance.isSupportNewColor()) {
  1456. return NSColor.km_init(hex: "#FA1E5D", alpha: 0.12)
  1457. }
  1458. if let _color = NSColor(named: "KMColor_Status_Err_BG_1") {
  1459. return _color
  1460. }
  1461. return NSColor.km_init(hex: "#FA1E5D", alpha: 0.12)
  1462. }
  1463. static func hovColor() -> NSColor {
  1464. if (!KMAppearance.isSupportNewColor()) {
  1465. return NSColor.km_init(hex: "#000000", alpha: 0.05)
  1466. }
  1467. if let _color = NSColor(named: "KMColor_Status_Hov") {
  1468. return _color
  1469. }
  1470. return NSColor.km_init(hex: "#000000", alpha: 0.05)
  1471. }
  1472. static func preColor() -> NSColor {
  1473. if (!KMAppearance.isSupportNewColor()) {
  1474. return NSColor.km_init(hex: "#000000", alpha: 0.1)
  1475. }
  1476. if let _color = NSColor(named: "KMColor_Status_Pre") {
  1477. return _color
  1478. }
  1479. return NSColor.km_init(hex: "#000000", alpha: 0.1)
  1480. }
  1481. static func selColor() -> NSColor {
  1482. if (!KMAppearance.isSupportNewColor()) {
  1483. return NSColor.km_init(hex: "#4982E6", alpha: 0.2)
  1484. }
  1485. if let _color = NSColor(named: "KMColor_Status_Sel") {
  1486. return _color
  1487. }
  1488. return NSColor.km_init(hex: "#4982E6", alpha: 0.2)
  1489. }
  1490. }
  1491. // MARK: - KMAppearance.Interactive
  1492. extension KMAppearance.Interactive {
  1493. static func a_1Color() -> NSColor {
  1494. if (!KMAppearance.isSupportNewColor()) {
  1495. return NSColor.km_init(hex: "#3864B0", alpha: 1)
  1496. }
  1497. if let _color = NSColor(named: "KMColor_Interactive_A_1") {
  1498. return _color
  1499. }
  1500. return NSColor.km_init(hex: "#3864B0", alpha: 1)
  1501. }
  1502. static func a0Color() -> NSColor {
  1503. if (!KMAppearance.isSupportNewColor()) {
  1504. return NSColor.km_init(hex: "#4982E6", alpha: 1)
  1505. }
  1506. if let _color = NSColor(named: "KMColor_Interactive_A0") {
  1507. return _color
  1508. }
  1509. return NSColor.km_init(hex: "#4982E6", alpha: 1)
  1510. }
  1511. static func a1Color() -> NSColor {
  1512. if (!KMAppearance.isSupportNewColor()) {
  1513. return NSColor.km_init(hex: "#6B97E4", alpha: 1)
  1514. }
  1515. if let _color = NSColor(named: "KMColor_Interactive_A1") {
  1516. return _color
  1517. }
  1518. return NSColor.km_init(hex: "#6B97E4", alpha: 1)
  1519. }
  1520. static func m_1Color() -> NSColor {
  1521. if (!KMAppearance.isSupportNewColor()) {
  1522. return NSColor.km_init(hex: "#1B2944", alpha: 1)
  1523. }
  1524. if let _color = NSColor(named: "KMColor_Interactive_M_1") {
  1525. return _color
  1526. }
  1527. return NSColor.km_init(hex: "#1B2944", alpha: 1)
  1528. }
  1529. static func m0Color() -> NSColor {
  1530. if (!KMAppearance.isSupportNewColor()) {
  1531. return NSColor.km_init(hex: "#273C62", alpha: 1)
  1532. }
  1533. if let _color = NSColor(named: "KMColor_Interactive_M0") {
  1534. return _color
  1535. }
  1536. return NSColor.km_init(hex: "#273C62", alpha: 1)
  1537. }
  1538. static func m1Color() -> NSColor {
  1539. if (!KMAppearance.isSupportNewColor()) {
  1540. return NSColor.km_init(hex: "#365283", alpha: 1)
  1541. }
  1542. if let _color = NSColor(named: "KMColor_Interactive_M1") {
  1543. return _color
  1544. }
  1545. return NSColor.km_init(hex: "#365283", alpha: 1)
  1546. }
  1547. static func s_1Color() -> NSColor {
  1548. if (!KMAppearance.isSupportNewColor()) {
  1549. return NSColor.km_init(hex: "#AEAFB1", alpha: 1)
  1550. }
  1551. if let _color = NSColor(named: "KMColor_Interactive_S_1") {
  1552. return _color
  1553. }
  1554. return NSColor.km_init(hex: "#AEAFB1", alpha: 1)
  1555. }
  1556. static func s0Color() -> NSColor {
  1557. if (!KMAppearance.isSupportNewColor()) {
  1558. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  1559. }
  1560. if let _color = NSColor(named: "KMColor_Interactive_S0") {
  1561. return _color
  1562. }
  1563. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  1564. }
  1565. static func s1Color() -> NSColor {
  1566. if (!KMAppearance.isSupportNewColor()) {
  1567. return NSColor.km_init(hex: "#C8C9CC", alpha: 1)
  1568. }
  1569. if let _color = NSColor(named: "KMColor_Interactive_S1") {
  1570. return _color
  1571. }
  1572. return NSColor.km_init(hex: "#C8C9CC", alpha: 1)
  1573. }
  1574. }
  1575. // MARK: - KMAppearance.Layout
  1576. extension KMAppearance.Layout {
  1577. static func mColor() -> NSColor {
  1578. if (!KMAppearance.isSupportNewColor()) {
  1579. return NSColor.km_init(hex: "#273C62", alpha: 1)
  1580. }
  1581. if let _color = NSColor(named: "KMColor_Layout_M") {
  1582. return _color
  1583. }
  1584. return NSColor.km_init(hex: "#273C62", alpha: 1)
  1585. }
  1586. static func m_1Color() -> NSColor {
  1587. if (!KMAppearance.isSupportNewColor()) {
  1588. return NSColor.km_init(hex: "#273C62", alpha: 1)
  1589. }
  1590. if let _color = NSColor(named: "KMColor_Layout_M_1") {
  1591. return _color
  1592. }
  1593. return NSColor.km_init(hex: "#273C62", alpha: 1)
  1594. }
  1595. static func bgColor() -> NSColor {
  1596. if (!KMAppearance.isSupportNewColor()) {
  1597. return NSColor.km_init(hex: "#EBECF0", alpha: 1)
  1598. }
  1599. if let _color = NSColor(named: "KMColor_Layout_BG") {
  1600. return _color
  1601. }
  1602. return NSColor.km_init(hex: "#EBECF0", alpha: 1)
  1603. }
  1604. static func bgDrakColor() -> NSColor {
  1605. if (!KMAppearance.isSupportNewColor()) {
  1606. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  1607. }
  1608. if let _color = NSColor(named: "KMColor_Layout_BG_Drak") {
  1609. return _color
  1610. }
  1611. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  1612. }
  1613. static func l_2Color() -> NSColor {
  1614. if (!KMAppearance.isSupportNewColor()) {
  1615. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  1616. }
  1617. if let _color = NSColor(named: "KMColor_Layout_L_2") {
  1618. return _color
  1619. }
  1620. return NSColor.km_init(hex: "#DADBDE", alpha: 1)
  1621. }
  1622. static func l_1Color() -> NSColor {
  1623. if (!KMAppearance.isSupportNewColor()) {
  1624. return NSColor.km_init(hex: "#EBECF0", alpha: 1)
  1625. }
  1626. if let _color = NSColor(named: "KMColor_Layout_L_1") {
  1627. return _color
  1628. }
  1629. return NSColor.km_init(hex: "#EBECF0", alpha: 1)
  1630. }
  1631. static func l0Color() -> NSColor {
  1632. if (!KMAppearance.isSupportNewColor()) {
  1633. return NSColor.km_init(hex: "#FCFDFF", alpha: 1)
  1634. }
  1635. if let _color = NSColor(named: "KMColor_Layout_L0") {
  1636. return _color
  1637. }
  1638. return NSColor.km_init(hex: "#FCFDFF", alpha: 1)
  1639. }
  1640. static func l1Color() -> NSColor {
  1641. if (!KMAppearance.isSupportNewColor()) {
  1642. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  1643. }
  1644. if let _color = NSColor(named: "KMColor_Layout_L1") {
  1645. return _color
  1646. }
  1647. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  1648. }
  1649. static func h0Color() -> NSColor {
  1650. if (!KMAppearance.isSupportNewColor()) {
  1651. return NSColor.km_init(hex: "#0E1114", alpha: 1)
  1652. }
  1653. if let _color = NSColor(named: "KMColor_Layout_H0") {
  1654. return _color
  1655. }
  1656. return NSColor.km_init(hex: "#0E1114", alpha: 1)
  1657. }
  1658. static func h1Color() -> NSColor {
  1659. if (!KMAppearance.isSupportNewColor()) {
  1660. return NSColor.km_init(hex: "#42464D", alpha: 1)
  1661. }
  1662. if let _color = NSColor(named: "KMColor_Layout_H1") {
  1663. return _color
  1664. }
  1665. return NSColor.km_init(hex: "#42464D", alpha: 1)
  1666. }
  1667. static func h2Color() -> NSColor {
  1668. if (!KMAppearance.isSupportNewColor()) {
  1669. return NSColor.km_init(hex: "#757780", alpha: 1)
  1670. }
  1671. if let _color = NSColor(named: "KMColor_Layout_H2") {
  1672. return _color
  1673. }
  1674. return NSColor.km_init(hex: "#757780", alpha: 1)
  1675. }
  1676. static func b80Color() -> NSColor {
  1677. if (!KMAppearance.isSupportNewColor()) {
  1678. return NSColor.km_init(hex: "#000000", alpha: 0.8)
  1679. }
  1680. if let _color = NSColor(named: "KMColor_Layout_B80") {
  1681. return _color
  1682. }
  1683. return NSColor.km_init(hex: "#000000", alpha: 0.8)
  1684. }
  1685. static func b30Color() -> NSColor {
  1686. if (!KMAppearance.isSupportNewColor()) {
  1687. return NSColor.km_init(hex: "#000000", alpha: 0.3)
  1688. }
  1689. if let _color = NSColor(named: "KMColor_Layout_B30") {
  1690. return _color
  1691. }
  1692. return NSColor.km_init(hex: "#000000", alpha: 0.3)
  1693. }
  1694. static func b15Color() -> NSColor {
  1695. if (!KMAppearance.isSupportNewColor()) {
  1696. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  1697. }
  1698. if let _color = NSColor(named: "KMColor_Layout_B15") {
  1699. return _color
  1700. }
  1701. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  1702. }
  1703. static func w0Color() -> NSColor {
  1704. if (!KMAppearance.isSupportNewColor()) {
  1705. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  1706. }
  1707. if let _color = NSColor(named: "KMColor_Layout_W0") {
  1708. return _color
  1709. }
  1710. return NSColor.km_init(hex: "#FFFFFF", alpha: 1)
  1711. }
  1712. static func w70Color() -> NSColor {
  1713. if (!KMAppearance.isSupportNewColor()) {
  1714. return NSColor.km_init(hex: "#FFFFFF", alpha: 0.7)
  1715. }
  1716. if let _color = NSColor(named: "KMColor_Layout_W70") {
  1717. return _color
  1718. }
  1719. return NSColor.km_init(hex: "#FFFFFF", alpha: 0.7)
  1720. }
  1721. static func w30Color() -> NSColor {
  1722. if (!KMAppearance.isSupportNewColor()) {
  1723. return NSColor.km_init(hex: "#FFFFFF", alpha: 0.3)
  1724. }
  1725. if let _color = NSColor(named: "KMColor_Layout_W30") {
  1726. return _color
  1727. }
  1728. return NSColor.km_init(hex: "#FFFFFF", alpha: 0.3)
  1729. }
  1730. static func w15Color() -> NSColor {
  1731. if (!KMAppearance.isSupportNewColor()) {
  1732. return NSColor.km_init(hex: "#FFFFFF", alpha: 0.15)
  1733. }
  1734. if let _color = NSColor(named: "KMColor_Layout_W15") {
  1735. return _color
  1736. }
  1737. return NSColor.km_init(hex: "#FFFFFF", alpha: 0.15)
  1738. }
  1739. static func b15_1Color() -> NSColor {
  1740. if (!KMAppearance.isSupportNewColor()) {
  1741. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  1742. }
  1743. if let _color = NSColor(named: "KMColor_Layout_B15_1") {
  1744. return _color
  1745. }
  1746. return NSColor.km_init(hex: "#000000", alpha: 0.15)
  1747. }
  1748. }
  1749. extension KMAppearance {
  1750. struct Else {}
  1751. struct Upgrade {}
  1752. struct Status {}
  1753. struct Interactive {}
  1754. struct Layout {}
  1755. }