Giter VIP home page Giter VIP logo

clg's People

Contributors

ch3cooh avatar griffin-stewie avatar ikesyo avatar knmsyk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

clg's Issues

Android向けcolors.xmlがそのままAndroid Studioで使えない

生成したcolors.xmlは以下のようになっています。

<!-- Palette generated by clg -->
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <color name="thumbnail_background">#00FFFFFF</color>
</resources>

このファイルをAndroid Studioで使おうとすると、下記のビルドエラーが発生します。このエラーはxmlタグから始まらないと表示されてしまうようです。

Error: "[xX][mM][lL]"と一致する処理命令ターゲットは許可されていません。

IDE上では下図のようにエラーが表示されています。

2017-04-03 10 04 44

解決方法としては、<!-- Palette generated by clg -->を入れない、もしくはresourcesタグの直下に移動させる必要がありそうです。

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <!-- Palette generated by clg -->
    <color name="thumbnail_background">#00FFFFFF</color>
</resources>

生成したAndroid向けcolors.xmlにはalpha値が反映されていない

以下のコマンドを実行した時に生成されるAndroid向けのcolor.xmlにはalpha値が反映されていません。

clg code --output ${path} --code android ${path}/colors.json 

colors.json では、以下のようにRGBAの並び順で定義しています。

[
 { "name": "thumbnail_background", "hex": "#05799259" }
]

生成される値は下記のようになり、alpha値が反映されていないことがわかります。

<color name="thumbnail_background_highlight">#057992</color>

Update to Swift5

This tool is staled now, but it needs updating to the latest.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.