aboutsummaryrefslogtreecommitdiffstats
path: root/art
diff options
context:
space:
mode:
authorM. Dietrich <mdt@emdete.de>2014-10-15 15:19:32 +0200
committerM. Dietrich <mdt@emdete.de>2014-10-15 15:53:02 +0200
commite08b49f671c402919d2355a9fd2e8813c5e1713a (patch)
treec0034ee950b012f051c70f5ad552a03e01f53b58 /art
parentfefce2a72ba6f99d3081ba19936a24cd0e9dd3d1 (diff)
beautify render script to be easier to diff/patch
Diffstat (limited to 'art')
-rwxr-xr-xart/render.rb14
1 files changed, 12 insertions, 2 deletions
diff --git a/art/render.rb b/art/render.rb
index f2d66b9ad..2847891d2 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]