Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/iNPUTmice/Conversations.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'art/render.rb')
-rwxr-xr-xart/render.rb16
1 files changed, 12 insertions, 4 deletions
diff --git a/art/render.rb b/art/render.rb
index ba50be73b..94f6fef24 100755
--- a/art/render.rb
+++ b/art/render.rb
@@ -11,9 +11,11 @@ resolutions = {
}
images = {
- 'ic_launcher.svg' => ['ic_launcher', 48],
- 'main_logo.svg' => ['main_logo', 200],
- 'splash_logo.svg' => ['splash_logo', 144],
+ 'quicksy_launcher.svg' => ['quicksy/launcher', 48],
+ 'main_logo.svg' => ['conversations/main_logo', 200],
+ 'quicksy_main_logo.svg' => ['quicksy/main_logo', 200],
+ 'splash_logo.svg' => ['conversations/splash_logo', 144],
+ 'quicksy_splash_logo.svg' => ['quicksy/splash_logo', 144],
'ic_search_black.svg' => ['ic_search_background_black', 144],
'ic_search_white.svg' => ['ic_search_background_white', 144],
'ic_no_results_white.svg' => ['ic_no_results_background_white', 144],
@@ -108,7 +110,13 @@ images.each do |source_filename, settings|
height = factor * base_height
end
- path = "../src/main/res/drawable-#{resolution}/#{output_filename}.png"
+ output_parts = output_filename.split('/')
+
+ if output_parts.count != 2
+ path = "../src/main/res/drawable-#{resolution}/#{output_filename}.png"
+ else
+ path = "../src/#{output_parts[0]}/res/drawable-#{resolution}/#{output_parts[1]}.png"
+ end
execute_cmd "#{inkscape} -f #{source_filename} -z -C -w #{width} -h #{height} -e #{path}"
top = []