diff options
author | iNPUTmice <daniel@gultsch.de> | 2014-06-24 01:35:43 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2014-06-24 01:35:43 +0200 |
commit | 2a8f9642d562179b20938908e28a93f2d0480a4b (patch) | |
tree | 5fb570375732da8acfaa16792e39ce5f3774ea1f | |
parent | 6f51cc85547c0b4f105da682e0b7e3d14145099d (diff) |
added rendering script for artwork
Diffstat (limited to '')
-rwxr-xr-x | art/render.rb | 12 | ||||
-rw-r--r-- | res/drawable-hdpi/ic_activity.png | bin | 5363 -> 3040 bytes | |||
-rw-r--r-- | res/drawable-hdpi/ic_notification.png | bin | 875 -> 1033 bytes | |||
-rw-r--r-- | res/drawable-ldpi/ic_action_edit.png | bin | 587 -> 0 bytes | |||
-rw-r--r-- | res/drawable-mdpi/ic_activity.png | bin | 3202 -> 1854 bytes | |||
-rw-r--r-- | res/drawable-mdpi/ic_notification.png | bin | 596 -> 681 bytes | |||
-rw-r--r-- | res/drawable-xhdpi/ic_activity.png | bin | 7699 -> 4349 bytes | |||
-rw-r--r-- | res/drawable-xhdpi/ic_notification.png | bin | 1161 -> 1407 bytes | |||
-rw-r--r-- | res/drawable-xxhdpi/ic_activity.png | bin | 0 -> 7209 bytes | |||
-rw-r--r-- | res/drawable-xxhdpi/ic_launcher.png | bin | 10481 -> 11054 bytes | |||
-rw-r--r-- | res/drawable-xxhdpi/ic_notification.png | bin | 2106 -> 2250 bytes |
11 files changed, 12 insertions, 0 deletions
diff --git a/art/render.rb b/art/render.rb new file mode 100755 index 00000000..ed306072 --- /dev/null +++ b/art/render.rb @@ -0,0 +1,12 @@ +#!/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] } +images.each do |source, result| + resolutions.each do |name, factor| + size = factor * result[1] + path = "../res/drawable-#{name}/#{result[0]}.png" + cmd = "inkscape -e #{path} -C -h #{size} -w #{size} #{source}" + puts cmd + system cmd + end +end diff --git a/res/drawable-hdpi/ic_activity.png b/res/drawable-hdpi/ic_activity.png Binary files differindex e2b58373..613da683 100644 --- a/res/drawable-hdpi/ic_activity.png +++ b/res/drawable-hdpi/ic_activity.png diff --git a/res/drawable-hdpi/ic_notification.png b/res/drawable-hdpi/ic_notification.png Binary files differindex f1c6e150..664ba535 100644 --- a/res/drawable-hdpi/ic_notification.png +++ b/res/drawable-hdpi/ic_notification.png diff --git a/res/drawable-ldpi/ic_action_edit.png b/res/drawable-ldpi/ic_action_edit.png Binary files differdeleted file mode 100644 index 650b4d89..00000000 --- a/res/drawable-ldpi/ic_action_edit.png +++ /dev/null diff --git a/res/drawable-mdpi/ic_activity.png b/res/drawable-mdpi/ic_activity.png Binary files differindex 38e7b3e4..c8727f57 100644 --- a/res/drawable-mdpi/ic_activity.png +++ b/res/drawable-mdpi/ic_activity.png diff --git a/res/drawable-mdpi/ic_notification.png b/res/drawable-mdpi/ic_notification.png Binary files differindex 072e7ba7..5d1aca10 100644 --- a/res/drawable-mdpi/ic_notification.png +++ b/res/drawable-mdpi/ic_notification.png diff --git a/res/drawable-xhdpi/ic_activity.png b/res/drawable-xhdpi/ic_activity.png Binary files differindex 75a1b111..95ffbecf 100644 --- a/res/drawable-xhdpi/ic_activity.png +++ b/res/drawable-xhdpi/ic_activity.png diff --git a/res/drawable-xhdpi/ic_notification.png b/res/drawable-xhdpi/ic_notification.png Binary files differindex 0500d375..dfa643d0 100644 --- a/res/drawable-xhdpi/ic_notification.png +++ b/res/drawable-xhdpi/ic_notification.png diff --git a/res/drawable-xxhdpi/ic_activity.png b/res/drawable-xxhdpi/ic_activity.png Binary files differnew file mode 100644 index 00000000..0b642d9b --- /dev/null +++ b/res/drawable-xxhdpi/ic_activity.png diff --git a/res/drawable-xxhdpi/ic_launcher.png b/res/drawable-xxhdpi/ic_launcher.png Binary files differindex 3f856599..65c1af34 100644 --- a/res/drawable-xxhdpi/ic_launcher.png +++ b/res/drawable-xxhdpi/ic_launcher.png diff --git a/res/drawable-xxhdpi/ic_notification.png b/res/drawable-xxhdpi/ic_notification.png Binary files differindex 962dc126..ee1e9534 100644 --- a/res/drawable-xxhdpi/ic_notification.png +++ b/res/drawable-xxhdpi/ic_notification.png |