9æãiOSçšã®å
¬åŒVKontakteã¢ããªã±ãŒã·ã§ã³ã®ããŒã¯ããŒãããªãªãŒã¹ãã1é±éåã«Androidã§ããªãªãŒã¹ãããŸããã ãã®ãªãªãŒã¹ã®èåŸã«ã¯ãéçºè
ãšãã¶ã€ããŒã®çŽ æŽãããå
±åäœæ¥ããããŸãã äžç·ã«ãVKãããŒã¯ãµã€ãã«åãæ¿ããã ãã§ãªããã€ã³ã¿ãŒãã§ã€ã¹ã§è²ã䜿çšããæ¹æ³ã倧å¹
ã«å€æŽããè²ã®éžæãç°¡çŽ åããééãã®å¯èœæ§ãæžãããäžèŠãªã¹ã¿ã€ã«ãçæããŸããã
ç§ã®ååã¯Mikhail Likhachevã§ããç§ã¯VKã®ããããã¶ã€ããŒã§ãã å°ããªããŒã ãã©ã®ããã«300ã®ç»é¢ãé©å¿ãããã¢ãã€ã«ã¢ããªã±ãŒã·ã§ã³ã«ååšãããã¹ãŠã®è²ãäœç³»åãããããäŒãããŸãããã®ããããã©ãããã©ãŒã éã§è²ãåæããããŒã¯ã³ã䜿çšããŠåäžã®èšèšã·ã¹ãã ã«äœæ¥ãé
眮ããŸããã ç§ãã¡ãããã«ã©ã®ããã«å¯Ÿå¿ããŠãããããããŠèšèšããã»ã¹ãããè€éã«ãªã£ããã©ããã«ã€ããŠã®å°è±¡ãå
±æããŸãã
æãããŒããå¿
èŠãªçç±
ã³ã³ãã©ã¹ããäžããŠèæ¯ãæããããšãç®ãçããããšãªãäœç
§åºŠã§ã¢ããªã±ãŒã·ã§ã³ã䜿çšã§ããŸãã Googleã¯ãæãããŒãã䜿çšãããšãAMOLEDç»é¢ãåããããã€ã¹ã¯å
é»ããã«é·æã¡ããããšã確èªããŠããŸãã ãããŠãå€ãã®äººã
ã¯ãã é»ãè²ã奜ããããã¶ã€ã³ã®æ°é®®ãªããŒããæãã§ããŸãïŒãã¡ãããåèšèšãªãã§ïŒã
ããŒã¯ããŒãã¯ãäžè¬çãªã¢ããªã±ãŒã·ã§ã³ã ãã§ãªããmacOSãtvOSãªãã¬ãŒãã£ã³ã°ã·ã¹ãã ãAndroidã©ã³ãã£ãŒã«ãå®è£
ãããŠããŸãã ãããŠããã¹ãŠã®iOSããã³Androidããã€ã¹ã§ã®ç»å Žã¯ãééããªãããé ããªãã§ãããã
ç§ãã¡ã«ãšã£ãŠãããã¯åŸ
æã®æ©èœã®å®è£
ã§ããããŸãã-ãŠãŒã¶ãŒã¯æããããã¯ã«ã€ããŠããé »ç¹ã«å°ããŸããã æ¬åœã«éèŠãé«ãããšãå€æããŸãã-çŸåšã20ïŒ
以äžã®èŠèŽè
ãiOSãšAndroidã§ããŒã¯ããŒããå®æçã«äœ¿çšããŠããŸãã
ã«ã©ãŒã·ã¹ãã
æãããŒããäœæããåã«ãã¢ããªã±ãŒã·ã§ã³ã®ã«ã©ãŒãã¬ãããåç·šæããå¿
èŠããããŸããã ç®æšã¯æ¬¡ã®ãšããã§ãããã³ãŒããšãã¶ã€ã³ã®äž¡æ¹ã§ãåºå®ãã¬ããã«å«ãŸããŠããªãè²ããã£ãŠã¯ãªããŸããã è²ã®å°ããªã»ããã®å ŽåãæãããŒãã«åããããããªããŸãã
ã¢ããªã±ãŒã·ã§ã³å
šäœããã§ãã¯ãããã¹ãŠã®è²ãåéãããšã200ãè¶
ããäžæã®HEXå€ããããŸããã iOSã§ã®VK Appã®æåã®ããŒãžã§ã³ã®ãªãªãŒã¹ä»¥æ¥ã6幎以äžãçµéããã¢ããªã±ãŒã·ã§ã³ã¯ããã€ãã®åèšèšãçµãŠããŸããã ãããŸã§ã®ã©ããã§ãæŽæ°ãããŠããªãç»é¢ã¯ä¿æãããã©ããã§åãè²ã®å€ãéåžžã«éèŠã§ãªãå ŽåããããŸããã ããšãã°ãHSBã®åäžã®è²ã¯ãPhotoshopãšSketchã§ç°ãªãHEXå€ãæã€ããšãã§ããŸãã
ç§ãã¡ã®ã¢ããªã±ãŒã·ã§ã³ã¯éåžžã«å€§èŠæš¡ã§ãã ãããã¯ããã¥ãŒã¹ãé³æ¥œããããªãã¹ããŒãªãŒãæŸéãã¡ãã»ã³ãžã£ãŒå
šäœãããã³ä»ã®å€ãã®åæ§ã«éèŠãªã»ã¯ã·ã§ã³ããµãŒãã¹ãªã©ãããã€ãã®ã¢ããªã±ãŒã·ã§ã³ã§ãããšèšããŸãã 300ã400ã®ãŠããŒã¯ãªç»é¢ãæ°ããŸãããããããã«å€ãã®ç¶æ
ããããŸãã ãã¥ãŒã¹ã ãã§ããæ°çš®é¡ã®ã¬ã³ãŒã衚瀺ãš15çš®é¡ä»¥äžã®æ·»ä»è³æããããŸãã ãã®ãããªã¢ããªã±ãŒã·ã§ã³ã§ã¯ãè²ãã³ã³ãã©ã¹ãã¬ãã«ã§åå²ããããããè€éãªã·ã¹ãã ãå¿
èŠã§ãããã®ãããæãããŒãã ãã§ãªããæ°ããã³ã³ãããŒã«ã§ãè²ãéžæãããããªããŸãã
ã«ã©ãŒã·ã¹ãã ã®ç·šæã«é¢ããŠã¯ããããªã¢ã«ãã¶ã€ã³ã®ã¢ãããŒããæãæ°ã«å
¥ã£ãŠããŸãã åæ§ã®ã·ã¹ãã ã§ãã°ã¬ãŒãã³ãŒã«ãã°ã¬ãŒããã«ãŒã®3ã€ã®æ¡åŒµãã¬ãããæºåããŸããã åæã«ã0ãã1000ãŸã§ã®åŸæ¥ã®å€ã䜿çšããŠãã³ã³ãã©ã¹ãã¬ãã«ã§è²ãåå²ããŸããã0ãæãæããã1000ãæãæãã§ãã ãããã®çªå·ã¯ããã¬ããã®ååïŒã°ã¬ãŒ100ããã«ãŒ300ãªã©ïŒãšãšãã«è²ã®èå¥åã«ãªããŸããã
è²ãéžæãããšããHSBã«ã©ãŒã¢ãã«ã圹ç«ã¡ãŸãã ãã®äžã§ãHueã¯è²èª¿ãSaturationã¯åœ©åºŠãBrightnessã¯æããã§ãã è²çžã®ç¯å²ã¯0ã360°ã§ããã©ã³ãã®è²èª¿ãšããŠã€ã³ã¿ãŒãã§ãŒã¹ã§212°ã®åºå®å€ã䜿çšããŸãã 圩床ãšèŒåºŠã¯0ã100ïŒ
ã«èšå®ãããŸãã
ã°ã¬ãŒãã¬ããã10ã®ã¡ã€ã³ã·ã§ãŒãã«åå²ãããããæããã§ã¯10ïŒ
ã®ã¹ãããã䜿çšããŸãã 次ã«ãéè²ãå°ããªæ²ç·ã«æ²¿ã£ãŠåœ©åºŠãšæ··åããåæã«æããã®å€ã調æŽããŠå¿
èŠãªã³ã³ãã©ã¹ãã®ã°ã©ããŒã·ã§ã³ãä¿æããŸãã
åæ§ã«ãå·ããã°ã¬ãŒãšãã«ãŒã®ãã¬ãããéžæããŸããã ã³ãŒã«ãã°ã¬ãŒã¯ãéãšçµã¿åãããããã«ãã飜åããè²åããå¿
èŠãªå Žæã§äœ¿çšãããã¢ã¯ã»ã³ããç°ãªããã¿ã³ãããã¹ããããã³ãªã³ã¯ã«ããã€ãã®éã®è²ãå¿
èŠã§ãã
èæ¯ãäžå°ãä»åããã¢ã€ã³ã³ãããŸããŸãªã¬ãã«ã®ããã¹ããªã©ãããŸããŸãªèŠçŽ ã«æãé »ç¹ã«ã°ã¬ãŒã䜿çšããŸãã ãã§ã«éžæãããŠããã°ã¬ãŒã·ã§ãŒãã®ã»ãšãã©ã¯ãåæ§ã®ã³ã³ãã©ã¹ãã®éããããããã¬ãããæŽæ°ãããšãã«ãæ°ããããžãã¯ã«åãããŠããã€ãã®è²ã®å€ããããã«ã·ããããŸããã ãŸããæãããŒãã«ãããã䜿çšããããã«ãæãã¹ãã¯ãã«ã®è²ã®æ¬ èœéšåãè£è¶³ããŸããã
ã¢ããªã±ãŒã·ã§ã³ã§äœ¿çšããããã¹ãŠã®è²ããã¬ããã«è¿œå ãããŸãããããã«ã¯ãéç¥ã®ããŸããŸãªã€ãã³ããè¡šããã®ããã¹ããŒãªãŒã®èœæžãæç»ã¢ãŒãã®è²ãå«ãŸããŸãã ãã¹ãŠãããéæã«ãªããŸãããã¢ããªã±ãŒã·ã§ã³ã®ãã¹ãŠã®è²ã1ãæã«éããããŸããã ãŸããç¹æ®ãªã±ãŒã¹ã«æ°ããè²ãè¿œå ããå Žåã¯ãæ
éã«æ€èšãããã®è²ãæ¢åã®è²ã«é©ããŠãããã©ããã確èªããå¿
èŠããããŸãã
äºåå®çŸ©ããããã¬ãããæºåããããã¢ããªã±ãŒã·ã§ã³ã«é©çšããå¿
èŠãããã200ãè¶
ãã䜿çšå¯èœãªHEXå€ã50ãè¶
ããæ°ããã»ããã«çœ®ãæããŸããã ãããŠããããã®ãã¹ãŠã®è²ãéçå€æ°ã®åœ¢åŒã§1ã€ã®ãã¡ã€ã«ã«å
¥ããŸãããã¬ããã®åè²ã«ã¯äžæã®ååãä»ããããŠããŸãã
iOSããã³Androidã®ã€ã³ãã©ã¹ãã©ã¯ãã£ããŒã ã®éçºè
ããããåãäžããŸããã 圌ãã¯ãè²ãæ°ãããã¬ããããæãè¿ãè²ã«çœ®ãæããã¢ã«ãŽãªãºã ãæºåããŸãããããã«ãããããã»ã¹ã倧å¹
ã«å éãããŸããã 次ã«ããã¹ãŠã®ç»é¢ããã¹ã¿ãŒã§ãã§ãã¯ããŠãééã£ãè²ãã©ãã«ãé©çšãããªãããã«ããæåŸã«æãããŒããåãäžããŸããã
æãããŒãã§è²ãäžèŽããã
䜿çšãããŠããã¡ã€ã³ã·ã§ãŒãã決å®ããããã«ãã¡ã€ã³ç»é¢ã®ã¬ã€ã¢ãŠãã§ããŒã¯ããŒãã®è²ãè©ŠããŠã¿ãŸããã èæ¯ã«ã¯ãGray 900ã䜿çšããŸããèæ¯ãšããã¹ãã®éã®ã³ã³ãã©ã¹ããäžããããã«ãè²ã¯é»ããã1ããŒã³æããã§ãã åãçç±ã§ãããã¹ãã¯çœã§ã¯ãªãã°ã¬ãŒ100ãéžæãããŸããã
æãããŒãã®ãã¹ãŠã®äž»èŠãªè²ã¯ãå
ãšåãã°ã©ããŒã·ã§ã³ã§èå¥ãããŸããã æããã®ç¹ã§ã¹ã¿ã€ã«ã次ã
ã«é
眮ããŠãé©åãªå€ãéžæããããããå転ããŠãã³ã³ãã©ã¹ãã¬ãã«ã1ããŒã³ãã€ã·ããããŸããã 次ã«ãã¬ã€ã¢ãŠãäžã®è²ããã¹ããããã¹ãŠã®èŠçŽ ãèªã¿ããããªã£ãŠããããšã確èªããŸããã
䜿çšãããåè²ã®è¡š
æãããŒãã§ã¯ã䜿çšããè²ãå°ãªããªããŸãããéãåžœåãšéããã¿ã³ãã¢ãã¯ãã«ãªãã䜿çšãããã°ã¬ãŒã®è²åãã®ç¯å²ãçããªããã¯ãŒã«ã°ã¬ãŒãã¬ãããéåžžã®ã°ã¬ãŒã«å€ãããã³ã³ãã©ã¹ããç¶æãããŸããã ã¢ã¯ã»ã³ãèŠçŽ ã¯éã®ãŸãŸã§ãã-æãããŒãã§ã¯ãããæããã圩床ã®äœãã·ã§ãŒããéžæãããŸããã
ã¢ãŒãã«ãŠã£ã³ããŠãã«ãŒããªã©ã®åé¡é åããããŸããã ãããã®äžã®èª¿å
ã¯çœã«å転ããããšãæã¿ãŸããã§ããããããŠãæãããŒãã§è¿œå ã®å¯Ÿçãªãã§ãã³ã³ãã³ãã®éåžžã®èæ¯ã¯ç°å¢ãšå䜵ããã§ãããã ãããåé¿ããããã«ãã¢ãŒãã«ã«ãŒãã®å ŽåãéåžžãããæããããŒã³ã®èæ¯ãéžæããã¹ãããŒã¯ãè¿œå ããŠïŒAndroidã®ã¿ïŒãæäžå±€ããåé¢ããããããŸããã
ãã®ãããªäŸã¯ãããŒã¯ãããã¯ãå®è£
ãããšãã«ãããæè»ãªã·ã¹ãã ãå¿
èŠã§ããããšã瀺ããŠããŸãã
æè¡çãªå®è£
ã¢ãã¯ã¢ããã®ããŒã¯ããŒãã«é©åãªè²ãéžæãããããã®åé¡ãã³ãŒãã«è»¢éãå§ããŸããã
ã¢ãã¯ã¢ããã§èŠãããã«ãæããããŒãããæãããŒãã«åçŽã«ã«ã©ãŒãããã³ã°ãå°å
¥ããããšã¯éžæè¢ã§ã¯ãããŸããã çœã¯åžžã«é»ã§çœ®ãæããããããã§ã¯ãããŸãããæããããŒãã®åãè²ã®èŠçŽ ã¯ãæãããŒãã§ã¯ç°ãªãè²ãæã€ããšãã§ããŸãã æãããŒãã§åèŠçŽ ãŸãã¯å
±éã¹ã¿ã€ã«ã®ã°ã«ãŒããåæç»ããæ¹æ³ãæ£ç¢ºã«å¶åŸ¡ããå¿
èŠããããŸããã èŠçŽ ã¯ãå€æ°åã«åã蟌ãŸããæå³ã«åŸã£ãŠè²ãå€æŽããå¿
èŠããããŸãã
ããŒã¯ã³ã¯èŠçŽ ãŸãã¯èŠçŽ ã®ã°ã«ãŒãã®äžæã®ååïŒããšãã°background_contentïŒã§ããããã®å€ã¯åºå®ãã¬ããã®è²ïŒããšãã°çœïŒã®ã¿ã§ãããšãã次ã®ã¢ãããŒãã決å®ããŸããã JSON圢åŒã®ã¹ããŒã ãäœæããŸããããã®ã¹ããŒã ã§ã¯ããã¹ãŠã®ããŒã¯ã³ãåãããã¯ã®å€ãšãšãã«æžã蟌ãŸããŸãã
ãã®ãããªã¹ããŒã ã¯ãèŠçŽ èå¥åãšãã®ã¹ã¿ã€ã«ãå«ãCSSãã¡ã€ã«ã«éåžžã«äŒŒãŠããŸãããJSON圢åŒã§ãã
background_contentããã³text_primaryããŒã¯ã³ã䜿çšããã¹ããŒã ã¯ã©ã®ããã«èŠããŸããïŒ
ç§ãã¡ãæã£ãŠãããã®ã¯ãã¹ãŠGitHubã§å
¥æã§ããŸãã
- ãã¹ãŠã®è²ãšäžæã®ååãæã€ãã¬ãã ã
- æãããããã¯ãšæããããã¯ã®ãã¹ãŠã®ããŒã¯ã³ãšãã®å€ãå«ãã¹ããŒã ã
JSONã¹ããŒã ããããã¹ãŠã®ãã©ãããã©ãŒã ã®éçºè
ã¯ãå¿
èŠãªåœ¢åŒã§ã³ãŒããçæããŸãã Anton Spivakã®ã¹ã©ã€ãã® CodeFestã§ã®ã¹ããŒãã§ã¯ ãiOSã®ã³ãŒãäŸã§ããã«ã€ããŠèªãããšãã§ããŸãã AppConfã§ã®Arseniy Vasilievã®ã¹ããŒãããã®Androidå®è£
ã«é¢ããã¬ããŒãã¯ã ããã§èŠãããšãã§ããŸã ã
å
éšãã¬ããããã®ã¿è²ãæå®ã§ãããã€ãŸãããŒã¯ã³ã®å€ã«ä»»æã®HEXã«ã©ãŒã³ãŒããç»é²ã§ããªãå³å¯ãªã·ã¹ãã ãäœæããããšã«ããããšãæãåºããŠãã ããã alphaãã©ã¡ãŒã¿ãŒãããŒã¯ã³å€ã«è¿œå ããŠãè¿œå ã®è²ã®éæ床ã瀺ãããšãã§ããŸãã ãã®ãã©ã¡ãŒã¿ãŒã䜿çšããŠãç¡å¹ãªç¶æ
ãšã³ã³ãããŒã«ãã¿ãããããšãã«ç¶æ
ãè¿œå ãããã¬ããã«ç°ãªãéæ床ã®åãè²ãè¿œå ããªãããã«ããŸãã
çŸæç¹ã§ã¯ãã¹ããŒã ã«ã¯ãã§ã«150ãè¶
ããããŒã¯ã³ããããŸãã ã°ããŒãã«å€æ°ãšãåã³ã³ãããŒã«ã®å®å
šã«æç»ãããã¹ã¿ã€ã«ãããã³ã¡ãã»ãŒãžããã®ããã«ã¹ã¿ã€ã«ãªã©ãããè«ççãªçµ±åã«ã¯åããªãç¬èªã®ã±ãŒã¹ããããŸãã
äžè¬çã«äœ¿çšãããããŒã¯ã³ã®äŸ
éåžžã«éèŠãªãã€ã³ã-ããŒã¯ã³ãç°¡åãã€è¿
éã«èŠã€ããã«ã¯ãããŒã¯ã³ã«æ確ãã€ç°¡æœãªååãä»ããå¿
èŠããããŸãã åœåã®ååã¯æ¬¡ã®ããã«éžæãããŸãã-倧ãããã®ããå°ãããã®ãžã ãã®ããžãã¯ã«ãããã°ããŒãã«ã¹ã¿ã€ã«ã§ã¯ãäžè¬çãªåãæåã«ç€ºãããã³ã³ããŒãã³ãã¯é çªã«ååãç¶æ
ãæåŸã«ç¹å®ã®åæç»ãããèŠçŽ ãæã¡ãŸãã å¯èœã§ããã°ãããŒã¯ã³ã¯æ®éçã§ããå¿
èŠããããŸã-ç¹å®ã®å Žåã®å Žæãšå
容ã§ã¯ãªããã¿ã€ããšæå³ã®æå³ãåæ ããŸãã
åè·¯ã®ãããªãäœæ¥
ã¹ã±ãããšZeplin
次ã®ã¹ãããïŒéçºè
ã«ãã¬ã€ã¢ãŠãã§äœ¿çšãããããŒã¯ã³ã«é¢ããç解å¯èœãªæ
å ±ãæäŸããå¿
èŠããããŸãã ãããè¡ãããã«ãããŒã¯ã³ãã·ã³ãã«ãšããŠèŠèŠåããŸãããååã«å ããŠãæãããŒããšæããããŒãã§äœ¿çšãããè²ã®ãã¬ãã¥ãŒãããã³ãã¬ããã®è²ã®ååããããŸãã
åè·¯ã®å€§éšåãæ§æããåŸãã·ã³ãã«ã®åœ¢ã§ãã®ãããªããŒã¯ã³ãçæããŸãããããã§ã«å€ãã®ããŒã¯ã³ããããŸããã ããããæåã§æ§æããªãããã«ãçŸåšã®ããŒãžã§ã³ã®JSONã¹ããŒã ããã«ã¢ãããããããããã³ãã¬ãŒãã®ã·ã³ãã«ã®åœ¢ã§ããŒã¯ã³ãçæããå°ããªãã©ã°ã€ã³ãæºåããããã§ã«ã©ãŒã©ã€ãã©ãªã®äžè¬çãªã¹ã¿ã€ã«ããè²ã眮ãæããŸãã åããã©ã°ã€ã³ã䜿çšããŠãã©ã€ãã©ãªã®æŽæ°ãçæããŸããæ°ããããŒã¯ã³ãè¿œå ãããæ¢åã®ããŒã¯ã³ã®å€ãæŽæ°ãããŸãã ã©ã€ãã©ãªã®ã·ã³ãã«ã¯ã䜿çšãããŠãããã¹ãŠã®ã¬ã€ã¢ãŠãã§æŽæ°ãããŸãã
ããã¯ãããŒã¯ã³ãã·ã³ãã«ã®ããã«èŠããæ¹æ³ã§ã
ãã®ãããªããŒã¯ã³ãã¬ã€ã¢ãŠãã®é£ã«è¿œå ãããã¹ãŠãZeplinã«éä¿¡ããŸãã ååã§ããã«æ確ã«ãªããªãå ŽåããŸãã¯ããŒã¯ã³ãã©ã®èŠçŽ ã«å±ããŠããããæ確ã«ããå¿
èŠãããå Žåã¯ã説æãè¿œå ããç¹å®ã®èŠçŽ ã説æããããŒã¯ã³ãã»ã¯ã·ã§ã³ã«åå²ããŸãã Sketch Runnerãã©ã°ã€ã³ã䜿çšããŠã·ã³ãã«åããã°ããæ€çŽ¢ããã¬ã€ã¢ãŠã泚éã®åœ¢åŒã§ããŒã¯ããŒãèšè¿°ã³ã³ã¹ãã©ã¯ã¿ãŒãååŸããŸããã
䜿çšãããããŒã¯ã³ã®èª¬æãè¿œå ãã
Zeplinã«ããã«éä¿¡ããŠããŒã¯ã³ãã¬ã€ã¢ãŠãã«åã蟌ãæ¹æ³ã«é¢ããããããã€ãã£ãã§ã·ã³ãã«ã§èŠèŠçãªãœãªã¥ãŒã·ã§ã³ã¯èŠã€ãããŸããã§ããã Zeplinã¯äžæã®è²ã«ååãä»ããããšãã§ããŸããããã®ã¹ããŒã ã§ã¯ã1ã€ã®è²ãè€æ°ã®ããŒã¯ã³ã§äžåºŠã«äœ¿çšã§ããŸãã
äœçŸãã®ç»é¢ããšã«æãããŒãžã§ã³ãæç»ãã代ããã«ããã¹ãŠãããŒã¯ã³ã®åœ¢ã§èšè¿°ããã ãã§ãèšèšè
ã®æéãç¯çŽã§ããŸãã ã³ã³ããŒãã³ãã§äœ¿çšå¯èœãªãã¹ãŠã®ããŒã¯ã³å€ã¯ãã§ã«ãã¹ããããŠãããæ£ãããã®ã眮ãæããã ãã§æžã¿ãŸãã å¯äžã®çå®ã¯UIãããã§ã-UIãããã§ã¯ãã³ã³ããŒãã³ãã®çŸåšã®ç¶æ
ã ãã§ãªãã䜿çšãããŠããããŒã¯ã³ãèŠã€ããããšãã§ããŸãã
ããŒã¯ããŒãã®å®è£
ã®ãšã©ãŒã¯ãã¹ã¯ãªãŒã³ã·ã§ããããã§ãã¯ããéã®ãã¹ã段éã§ãã§ã«çºèŠãããŠããŸãã ãã¹ã¿ãŒèªèº«ãæããã«ééã£ãè²ã«æ°ã¥ãããã¶ã€ããŒã«å©ããæ±ããããšãã§ããŸããæ¬ é¥ãä¿®æ£ããã«ã¯ãæ£ããããŒã¯ã³ã®ååã ããå¿
èŠã§ãã
ã¹ããŒãã®æŽæ°
ã¹ããŒã ãæŽæ°ããããæ¢åã®ããŒã¯ã³ã®å€ã眮ãæããããæ°ããããŒã¯ã³ãäœæããå¿
èŠãããå Žåã¯ãJSONãã¡ã€ã«ãç·šéããã ãã§ãã ãããè¡ãããã«ãããŒã¯ã³ãè¿œå ãããšãã«ãã¹ãŠã®ãããã¯ã®å€ãè¿œå ããããšãå¿ããã«ãã¹ããŒã ã®çŸåšã®ããŒãžã§ã³ããã«ã¢ããããããã¹ããšãã£ã¿ãŒã§å€æŽãè¡ããŸãã èšç»ã§ã¯ãããç°¡åãªæ¹æ³ã§ã¹ããŒã ãç·šéã§ããã¢ããªã±ãŒã·ã§ã³ãäœæããäºå®ã§ãããä»ã®ãšããããã§ååã§ãã
æŽæ°ãããã¹ããŒã ãæºåãããããã«ãªã¯ãšã¹ããGitHubïŒãã¡ã€ã«ã®å€æŽãªã¯ãšã¹ãïŒã«éä¿¡ããŸããããã¯ãéçºè
ã«ãã£ãŠç¢ºèªããã³æ¿èªãããŸãã å€æŽãããŒãžããåŸãéçºè
ã¯UIã©ã€ãã©ãªã®æŽæ°ã匷åããå¿
èŠããããŸãããããããšã次ã®éçºã¢ã»ã³ããªã§15å以å
ã«æ°ããè²ã衚瀺ãããŸãã
ã¹ããŒã å
ã®ããŒã¯ã³ã®ååãå€æŽãŸãã¯åé€ããã«ã¯ãããŒãžã§ã³ãGitHubã«äžããããšã§ã¡ãžã£ãŒã¢ããããŒããäœæããŸãã ã€ãŸãããã®ãããªããŒãžã§ã³ã¯èªåçã«é©çšã§ãããUIã©ã€ãã©ãªã®ããŒãžã§ã³ãæŽæ°ããåã«ãéçºè
ã¯ãã¹ãŠã®å€æŽããµããŒãããå¿
èŠããããŸãïŒããŒã¯ã³åãæŽæ°ããåé€ãããããŒã¯ã³ãã©ããã§äœ¿çšãããå Žåãã©ã®ããŒã¯ã³ãå¿
èŠãã瀺ãå€æŽã®ãªã¹ãã®ã³ã¡ã³ãã«åŸãå¿
èŠããããŸã代ããã«äœ¿çšããŠãã ããã
ã¹ããŒã ããªãã¡ã¯ã¿ãªã³ã°ãããšãã«ãã®ãããªæŽæ°ããªãªãŒã¹ã§ããŸããããŒã¯ã³ã«ååãä»ããæåã®æ¹æ³ãããã£ãŠããå ŽåããŸãã¯ããžãã¯ãä¿æããªããè€æ°ã®ããŒã¯ã³ã1ã€ã«çµåããããšãå€æããå Žåã
iOSããã³Androidã¢ããªã±ãŒã·ã§ã³ã®è²ã¯ã»ãŒåãã§ãããããiOSã§äœæ¥ãããšãã«äœæãããé
è²ã¯Androidã«é©ããŠããŸãã ãã©ãããã©ãŒã ã«éããããå Žåã¯ãåžžã«ãã©ãããã©ãŒã ãµãã£ãã¯ã¹ã䜿çšããŠããŒã¯ã³ãäœæã§ããŸãã
ãã€ãã£ãã¢ããªã±ãŒã·ã§ã³ã«å ããŠã VKUIããããŸãã ããã¯ãæããã«ã¢ããªã±ãŒã·ã§ã³ãšèŠåããã€ããªãã€ã³ã¿ãŒãã§ãŒã¹ãäœæã§ããReactã³ã³ããŒãã³ãã®ã»ããã§ãã VKUIã䜿çšããŠãVKå
ã§ãã¹ã補åãäœæããŸãããŸããã¢ããªã±ãŒã·ã§ã³ãæŽæ°ããã«ãµãŒããŒããå¶åŸ¡ãããç»é¢ãäœæããŸãã ããã«ããã®ã©ã€ãã©ãªã¯ããµãŒãããŒãã£ã®VK AppsãµãŒãã¹ãäœæããããã«äœ¿çšãããŸã ã
VKUIã¯ããã€ãã£ãã¢ããªã±ãŒã·ã§ã³ãšåãèšèšããã³åãã³ã³ããŒãã³ãã»ããã«åŸã£ãŠæ§ç¯ãããŠããããããã®ã¹ããŒã ã®ã¢ããªã±ãŒã·ã§ã³ãšããŒã¯ããŒãã®ãµããŒãã¯ãæ°ããã¬ã€ã¢ãŠããå¿
èŠãšããŸããã§ããã ç§ãã¡ã«ãšã£ãŠãããã¯ç§ãã¡ããµããŒããããã1ã€ã®ãã©ãããã©ãŒã ã§ãããiOSãšAndroidã®åãæ¿ããå«ãŸããŠããã ãã§ãã
VKUI Styleguideã® Reactã³ã³ããŒãã³ãã®åœ¢åŒã§VKèšèšã·ã¹ãã ã®å®è£
ã確èªã§ããŸãã ãããŠãæãèå³æ·±ãã®ã¯ããã®ããŒãžã§ãããŒããšãã©ãããã©ãŒã ãåãæ¿ããæ©èœãšãšãã«ã䜿çšããŠããã³ã³ããŒãã³ããã©ã€ãã§ç¢ºèªã§ããããšã§ãã
è¿ãå°æ¥ãVKUIã®ããã¥ã¡ã³ããæŽæ°ããèšèšããŒã ã®äœæ¥ã«é¢ãã詳现æ
å ±ãåéããŸã-å€ãã®èå³æ·±ãããšããããŸãïž
ã¡ãã»ã³ãžã£ãŒã®å¥ã®ãããã¯
ãããŸã§ã®ãšããã«ã¶ãã¹ã¿ã³ã§ã®ã¿ãã¹ããããŠããVK Meã¯ãé»è©±çªå·ã§ç»é²ã§ããå¥ã®ã¡ãã»ã³ãžã£ãŒã§ãã ãã®äžã§ãæ©èœã ããä¿é²ããã³ãã¥ãã±ãŒã·ã§ã³ã®ã¿ãæ®ããã ãã§ãªããèšèšãç°¡çŽ åããŸããã
æãããããã¯ã®åžœåã¯ãã³ãã¥ãã±ãŒã·ã§ã³ã«çŠç¹ãåãããããã«çœã«å€ãããéã¯ããæãã飜åããŸããã
ã¡ãã»ã³ãžã£ãŒã¯ãã¡ã€ã³ã¢ããªã±ãŒã·ã§ã³ã®ã¡ãã»ãŒãžã¢ãžã¥ãŒã«ã«åºã¥ããŠããŸããã€ãŸããåãã³ã³ããŒãã³ããšåãã¹ããŒã ã䜿çšããŠãã¹ãŠã®è²ãèšè¿°ããŸãã ããšãã°ãããããŒãåæç»ããŠæ€çŽ¢ããã«ã¯ã察å¿ããããŒã¯ã³ã®å€ïŒheader_backgroundãheader_tintãheader_textãsearch_bar_backgroundãsearch_bar_field_background search_bar_field_tintãªã©ïŒã眮ãæããå¿
èŠããããŸããã
ããªãç°¡åãªæ¹æ³ã§ãã¢ããªã±ãŒã·ã§ã³å
šäœãçæéã§åæç»ããæ°ãããã¶ã€ã³ããŒããäœæããããšãã§ããŸããã
ã°ã©ãã£ãã¯ã䜿çšãã
ã¢ããªã±ãŒã·ã§ã³ã§äœ¿çšãããã¢ã€ã³ã³ã®ã»ããå
šäœã¯çœã«ã«ãããããŠãããåè·¯ã®ããŒã¯ã³ã䜿çšããŠç°¡åã«åæç»ã§ããŸãã
2è²ã®ã¢ã€ã³ã³ã§åé¡ãçºçããŸããããããžã®åœ¢ã§ã¢ãã¿ãŒã®äžã«éããããçœãã¹ãããŒã¯ãå¿
èŠãªã¢ã€ã³ã³ã¯2è²ã«ã«ãããããŸããã ãããå¡ãçŽãã®ã¯ç°¡åã§ã¯ãããŸããã ãããã®ã¢ã€ã³ã³ãåé¢ãšèæ¯ã®2ã€ã®ã¬ã€ã€ãŒã«åå²ããŸããããã¯ãã¹ã¯ãšããŠäœ¿çšãããå¿
èŠãªåœ¢ç¶ãåãåããŸãã
Androidã«ã¯9ãããã®ã°ã©ãã£ãã¯ããããããšãã°ã圱ä»ãã®ã«ãŒããæãããã«äœ¿çšãããŸãã ãããã®åœ±ã¯é»ã§ãã«ãŒãã®å¡ãã€ã¶ãã¯çœã§ãã ããã§ã°ã©ãã£ãã¯ã2ã€ã®ã¬ã€ã€ãŒã«åå²ããªãããã«ãéçºè
ã¯ä¹ç®ã«ã©ãŒãã¬ã³ãã£ã³ã°ã¢ãŒãã䜿çšããŸãã-ãã®æ¹æ³ã§ã¯ãé»ã圱ã¯åæç»ããããè²ã¯ç»åã®çœãéšåã«ã®ã¿é©çšãããŸãã
ãŸãšã
æãããŒããå®è£
ããéãç§ãã¡ã¯ããã»ã¹ãçå£ã«æ±²ã¿äžããèšèšãšéçºã®é¢ä¿ãæ°ããã¬ãã«ã«åŒãäžããŸããã
ãã¹ãŠã®äœæ¥ãšã¢ããªã±ãŒã·ã§ã³ã®è²ãçµã¿åãããåäžã®ã¹ããŒã ã¯ããã¶ã€ããŒã«ãšã£ãŠåŒ·åã§æé ãªäŸ¡æ Œã®ããŒã«ã«ãªããå°æ¥ã®ãã¶ã€ã³æŽæ°ãç°¡çŽ åããŸãã ã¹ã¿ã€ã«ã®äœæãšè²ã®è¿œå ã«ããã責任ãšæå³ã®ã¬ãã«ãå¢å ããŸããã
è²ã®ã³ã³ãã©ã¹ããåæ ããæ確ãªååã衚瀺ããããšãHEXå€ã䜿çšããããããããã䜿çšããŠç§»åããæ¹ãã¯ããã«ç°¡åã«ãªããŸããã åãããšãããŒã¯ã³ã«ãåœãŠã¯ãŸããŸã-ããŒã¯ã³ã«åã蟌ãŸããæå³ã®ããã«èšæ¶ãããããã€ãã®ãã©ãããã©ãŒã ããã³ã¢ããªã±ãŒã·ã§ã³ã§äœ¿çšãããã¹ã¿ã€ã«ã®ããžãã¯ã«åŸãããšã¯ããã»ã¹ã®äžå¯æ¬ ãªéšåã«ãªããŸãã
ãã®ããã»ã¹ã¯ãèšèšè
ã ãã§ãªããéçºè
ãšãã¹ã¿ãŒã«ââãšã£ãŠãæéãããããŸããã ããããããã¯äŸ¡å€ããããŸãã-ããŒã¯ãããã¯ã¯è¯å®çãªãŠãŒã¶ãŒã¬ãã¥ãŒãéããVKå
šäœã«åºãããããã«ã¯ãããè¶
ãããããŒã¯ãããã¯ãã³ã¡ã³ããããŒã ã«ãªããŸããã