diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2012-03-10 12:11:53 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:36:33 +0300 |
commit | 307a64aa57024ce39c90a203188d8b10871bb3b5 (patch) | |
tree | ebd3219ff41020c8c1f09e045c35482aceba5a73 /skin_generator | |
parent | f72adf06362871328bf1c156881dbdeebce6d7c4 (diff) |
refactored catalog structure for generating icons for search categories.
Diffstat (limited to 'skin_generator')
-rw-r--r-- | skin_generator/main.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/skin_generator/main.cpp b/skin_generator/main.cpp index 7abd0ece3d..59c310e752 100644 --- a/skin_generator/main.cpp +++ b/skin_generator/main.cpp @@ -15,10 +15,11 @@ DEFINE_int32(symbolWidth, 24, "width of the rendered symbol"); DEFINE_int32(symbolHeight, 24, "height of the rendered symbol"); DEFINE_string(skinName, "../../data/basic", "prefix for the skin and skinImage file name"); DEFINE_string(skinSuffix, "ldpi", "suffix for skinName<suffix>.skn and symbols<suffix>.png"); -DEFINE_string(searchIconsPath, "../../data/search-icons", "output path for search category icons"); -DEFINE_string(searchCategories, "../../data/categories-icons.txt", "path to file that contains mapping between category and icon names"); -DEFINE_int32(searchIconWidth, 42, "width of the search category icon"); -DEFINE_int32(searchIconHeight, 42, "height of the search category icon"); +DEFINE_string(searchIconsOutPath, "../../data/search-icons/png", "output path for search category icons"); +DEFINE_string(searchCategories, "../../data/search-icons/categories-icons.txt", "path to file that contains mapping between category and icon names"); +DEFINE_string(searchIconsSrcPath, "../../data/search-icons/svg", "input path for search category icons"); +DEFINE_int32(searchIconWidth, 24, "width of the search category icon"); +DEFINE_int32(searchIconHeight, 24, "height of the search category icon"); int main(int argc, char *argv[]) { @@ -33,9 +34,9 @@ int main(int argc, char *argv[]) std::vector<std::string> suffixes; suffixes.push_back(FLAGS_skinSuffix); - gen.processSearchIcons(FLAGS_symbolsDir, + gen.processSearchIcons(FLAGS_searchIconsSrcPath, FLAGS_searchCategories, - FLAGS_searchIconsPath, + FLAGS_searchIconsOutPath, FLAGS_searchIconWidth, FLAGS_searchIconHeight); |