diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2014-10-15 16:20:45 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2014-10-15 16:20:45 +0200 |
commit | 4c9ac61349cbfbe0e599f39505f4058ef06297de (patch) | |
tree | ce558a7d03a3b2bbcbe8a938ee0b188e19a1dd2b | |
parent | 1927a3d99c3a8e23535680ceb29e7dbb78bda185 (diff) | |
parent | e08b49f671c402919d2355a9fd2e8813c5e1713a (diff) |
Merge pull request #551 from emdete/p4
beautify render script to be easier to diff/patch
-rwxr-xr-x | art/render.rb | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/art/render.rb b/art/render.rb index f2d66b9a..2847891d 100755 --- a/art/render.rb +++ b/art/render.rb @@ -1,6 +1,16 @@ #!/bin/env ruby -resolutions={'mdpi'=> 1, 'hdpi' => 1.5, 'xhdpi' => 2, 'xxhdpi' => 3} -images = { 'conversations.svg' => ['ic_launcher', 48], 'conversations_baloon.svg' => ['ic_activity', 32], 'conversations_mono.svg' => ['ic_notification', 24], 'ic_received_indicator.svg' => ['ic_received_indicator', 12] } +resolutions={ + 'mdpi'=> 1, + 'hdpi' => 1.5, + 'xhdpi' => 2, + 'xxhdpi' => 3, + } +images = { + 'conversations.svg' => ['ic_launcher', 48], + 'conversations_baloon.svg' => ['ic_activity', 32], + 'conversations_mono.svg' => ['ic_notification', 24], + 'ic_received_indicator.svg' => ['ic_received_indicator', 12], + } images.each do |source, result| resolutions.each do |name, factor| size = factor * result[1] |