KMAppearance.swift 85 KB

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