Skip to content

Commit

Permalink
Yet another icons for 'High Contrast' theme.
Browse files Browse the repository at this point in the history
  • Loading branch information
virxkane committed Mar 6, 2018
1 parent 226574d commit c7609a4
Show file tree
Hide file tree
Showing 46 changed files with 2,991 additions and 325 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/res/drawable-hdpi/cr3_browser_folder_recent_hc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android/res/drawable-hdpi/cr3_button_tts_hc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android/res/drawable-hdpi/cr3_logo_button_hc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android/res/drawable-ldpi/cr3_browser_folder_hc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/res/drawable-ldpi/cr3_browser_folder_recent_hc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android/res/drawable-ldpi/cr3_button_tts_hc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android/res/drawable-ldpi/cr3_logo_button_hc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/res/drawable-mdpi/cr3_browser_folder_recent_hc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android/res/drawable-mdpi/cr3_button_tts_hc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android/res/drawable-mdpi/cr3_logo_button_hc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/res/drawable-xhdpi/cr3_browser_folder_recent_hc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android/res/drawable-xhdpi/cr3_button_tts_hc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added android/res/drawable-xhdpi/cr3_logo_button_hc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion android/res/layout/options.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
android:layout_marginBottom="2dip"
android:layout_marginLeft="0dip"
android:layout_marginRight="0dip"
android:background="#40404040"
android:background="?attr/tabbarBackground"
>
<ImageButton android:id="@+id/options_btn_back"
android:layout_width="wrap_content"
Expand Down
35 changes: 35 additions & 0 deletions android/res/values-v4/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@

<!-- toolbar button background -->
<item name="cr3_toolbar_button_background_drawable">@drawable/cr3_toolbar_button_background</item>
<!-- tabbar background color -->
<item name="tabbarBackground">#40404040</item>
<!-- icons -->
<item name="cr3_button_prev_drawable">@drawable/cr3_button_prev</item>
<item name="cr3_button_next_drawable">@drawable/cr3_button_next</item>
Expand All @@ -74,7 +76,12 @@
<item name="cr3_browser_folder_root_drawable">@drawable/cr3_browser_folder_root</item>
<item name="cr3_option_night_drawable">@drawable/cr3_option_night</item>
<item name="cr3_option_touch_drawable">@drawable/cr3_option_touch</item>
<item name="cr3_button_go_page_drawable">@drawable/cr3_button_go_page</item>
<item name="cr3_button_go_percent_drawable">@drawable/cr3_button_go_percent</item>
<item name="cr3_browser_folder_drawable">@drawable/cr3_browser_folder</item>
<item name="cr3_button_tts_drawable">@drawable/cr3_button_tts</item>
<item name="cr3_browser_folder_recent_drawable">@drawable/cr3_browser_folder_recent</item>
<item name="cr3_logo_button_drawable">@drawable/cr3_logo_button</item>
</style>
<style name="Theme.Dark" parent="@android:style/Theme">
<item name="android:windowBackground">@drawable/background_tiled_dark</item>
Expand All @@ -85,6 +92,8 @@

<!-- toolbar button background -->
<item name="cr3_toolbar_button_background_drawable">@drawable/cr3_toolbar_button_background</item>
<!-- tabbar background color -->
<item name="tabbarBackground">#40404040</item>
<!-- icons -->
<item name="cr3_button_prev_drawable">@drawable/cr3_button_prev</item>
<item name="cr3_button_next_drawable">@drawable/cr3_button_next</item>
Expand All @@ -95,7 +104,12 @@
<item name="cr3_browser_folder_root_drawable">@drawable/cr3_browser_folder_root</item>
<item name="cr3_option_night_drawable">@drawable/cr3_option_night</item>
<item name="cr3_option_touch_drawable">@drawable/cr3_option_touch</item>
<item name="cr3_button_go_page_drawable">@drawable/cr3_button_go_page</item>
<item name="cr3_button_go_percent_drawable">@drawable/cr3_button_go_percent</item>
<item name="cr3_browser_folder_drawable">@drawable/cr3_browser_folder</item>
<item name="cr3_button_tts_drawable">@drawable/cr3_button_tts</item>
<item name="cr3_browser_folder_recent_drawable">@drawable/cr3_browser_folder_recent</item>
<item name="cr3_logo_button_drawable">@drawable/cr3_logo_button</item>
</style>
<style name="Theme.White" parent="@android:style/Theme.Light">
<item name="android:windowBackground">@android:color/white</item>
Expand All @@ -106,6 +120,8 @@

<!-- toolbar button background -->
<item name="cr3_toolbar_button_background_drawable">@drawable/cr3_toolbar_button_background</item>
<!-- tabbar background color -->
<item name="tabbarBackground">#40404040</item>
<!-- icons -->
<item name="cr3_button_prev_drawable">@drawable/cr3_button_prev</item>
<item name="cr3_button_next_drawable">@drawable/cr3_button_next</item>
Expand All @@ -116,7 +132,12 @@
<item name="cr3_browser_folder_root_drawable">@drawable/cr3_browser_folder_root</item>
<item name="cr3_option_night_drawable">@drawable/cr3_option_night</item>
<item name="cr3_option_touch_drawable">@drawable/cr3_option_touch</item>
<item name="cr3_button_go_page_drawable">@drawable/cr3_button_go_page</item>
<item name="cr3_button_go_percent_drawable">@drawable/cr3_button_go_percent</item>
<item name="cr3_browser_folder_drawable">@drawable/cr3_browser_folder</item>
<item name="cr3_button_tts_drawable">@drawable/cr3_button_tts</item>
<item name="cr3_browser_folder_recent_drawable">@drawable/cr3_browser_folder_recent</item>
<item name="cr3_logo_button_drawable">@drawable/cr3_logo_button</item>
</style>
<style name="Theme.Black" parent="@android:style/Theme">
<item name="android:windowBackground">@android:color/black</item>
Expand All @@ -127,6 +148,8 @@

<!-- toolbar button background -->
<item name="cr3_toolbar_button_background_drawable">@drawable/cr3_toolbar_button_background</item>
<!-- tabbar background color -->
<item name="tabbarBackground">#40404040</item>
<!-- icons -->
<item name="cr3_button_prev_drawable">@drawable/cr3_button_prev</item>
<item name="cr3_button_next_drawable">@drawable/cr3_button_next</item>
Expand All @@ -137,7 +160,12 @@
<item name="cr3_browser_folder_root_drawable">@drawable/cr3_browser_folder_root</item>
<item name="cr3_option_night_drawable">@drawable/cr3_option_night</item>
<item name="cr3_option_touch_drawable">@drawable/cr3_option_touch</item>
<item name="cr3_button_go_page_drawable">@drawable/cr3_button_go_page</item>
<item name="cr3_button_go_percent_drawable">@drawable/cr3_button_go_percent</item>
<item name="cr3_browser_folder_drawable">@drawable/cr3_browser_folder</item>
<item name="cr3_button_tts_drawable">@drawable/cr3_button_tts</item>
<item name="cr3_browser_folder_recent_drawable">@drawable/cr3_browser_folder_recent</item>
<item name="cr3_logo_button_drawable">@drawable/cr3_logo_button</item>
</style>

<style name="Theme.HiContrast" parent="@android:style/Theme.Light">
Expand All @@ -151,6 +179,8 @@

<!-- toolbar button background -->
<item name="cr3_toolbar_button_background_drawable">@drawable/cr3_toolbar_button_background_hc</item>
<!-- tabbar background color -->
<item name="tabbarBackground">#FFFFFFFF</item>
<!-- icons -->
<item name="cr3_button_prev_drawable">@drawable/cr3_button_prev_hc</item>
<item name="cr3_button_next_drawable">@drawable/cr3_button_next_hc</item>
Expand All @@ -161,7 +191,12 @@
<item name="cr3_browser_folder_root_drawable">@drawable/cr3_browser_folder_root_hc</item>
<item name="cr3_option_night_drawable">@drawable/cr3_option_night_hc</item>
<item name="cr3_option_touch_drawable">@drawable/cr3_option_touch_hc</item>
<item name="cr3_button_go_page_drawable">@drawable/cr3_button_go_page_hc</item>
<item name="cr3_button_go_percent_drawable">@drawable/cr3_button_go_percent_hc</item>
<item name="cr3_browser_folder_drawable">@drawable/cr3_browser_folder_hc</item>
<item name="cr3_button_tts_drawable">@drawable/cr3_button_tts_hc</item>
<item name="cr3_browser_folder_recent_drawable">@drawable/cr3_browser_folder_recent_hc</item>
<item name="cr3_logo_button_drawable">@drawable/cr3_logo_button_hc</item>
</style>

<style name="Theme.Light.Dialog.Normal" parent="@style/Theme.Light">
Expand Down
6 changes: 6 additions & 0 deletions android/res/values/attrs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<attr name="horizontalDelimiterRoot"/>
<attr name="horizontalDelimiterSizeRoot"></attr>
</declare-styleable>
<attr name="tabbarBackground" format="reference|color" />
<attr name="cr3_toolbar_button_background_drawable" format="reference" />
<attr name="cr3_button_prev_drawable" format="reference" />
<attr name="cr3_button_next_drawable" format="reference" />
Expand All @@ -21,6 +22,11 @@
<attr name="cr3_browser_folder_root_drawable" format="reference" />
<attr name="cr3_option_night_drawable" format="reference" />
<attr name="cr3_option_touch_drawable" format="reference" />
<attr name="cr3_button_go_page_drawable" format="reference" />
<attr name="cr3_button_go_percent_drawable" format="reference" />
<attr name="cr3_browser_folder_drawable" format="reference" />
<attr name="cr3_button_tts_drawable" format="reference" />

<attr name="cr3_browser_folder_recent_drawable" format="reference" />
<attr name="cr3_logo_button_drawable" format="reference" />
</resources>
35 changes: 35 additions & 0 deletions android/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@

<!-- toolbar button background -->
<item name="cr3_toolbar_button_background_drawable">@drawable/cr3_toolbar_button_background</item>
<!-- tabbar background color -->
<item name="tabbarBackground">#40404040</item>
<!-- icons -->
<item name="cr3_button_prev_drawable">@drawable/cr3_button_prev</item>
<item name="cr3_button_next_drawable">@drawable/cr3_button_next</item>
Expand All @@ -75,7 +77,12 @@
<item name="cr3_browser_folder_root_drawable">@drawable/cr3_browser_folder_root</item>
<item name="cr3_option_night_drawable">@drawable/cr3_option_night</item>
<item name="cr3_option_touch_drawable">@drawable/cr3_option_touch</item>
<item name="cr3_button_go_page_drawable">@drawable/cr3_button_go_page</item>
<item name="cr3_button_go_percent_drawable">@drawable/cr3_button_go_percent</item>
<item name="cr3_browser_folder_drawable">@drawable/cr3_browser_folder</item>
<item name="cr3_button_tts_drawable">@drawable/cr3_button_tts</item>
<item name="cr3_browser_folder_recent_drawable">@drawable/cr3_browser_folder_recent</item>
<item name="cr3_logo_button_drawable">@drawable/cr3_logo_button</item>
</style>
<style name="Theme.Dark" parent="@android:style/Theme">
<item name="android:windowBackground">@drawable/background_tiled_dark_v3</item>
Expand All @@ -87,6 +94,8 @@

<!-- toolbar button background -->
<item name="cr3_toolbar_button_background_drawable">@drawable/cr3_toolbar_button_background</item>
<!-- tabbar background color -->
<item name="tabbarBackground">#40404040</item>
<!-- icons -->
<item name="cr3_button_prev_drawable">@drawable/cr3_button_prev</item>
<item name="cr3_button_next_drawable">@drawable/cr3_button_next</item>
Expand All @@ -97,7 +106,12 @@
<item name="cr3_browser_folder_root_drawable">@drawable/cr3_browser_folder_root</item>
<item name="cr3_option_night_drawable">@drawable/cr3_option_night</item>
<item name="cr3_option_touch_drawable">@drawable/cr3_option_touch</item>
<item name="cr3_button_go_page_drawable">@drawable/cr3_button_go_page</item>
<item name="cr3_button_go_percent_drawable">@drawable/cr3_button_go_percent</item>
<item name="cr3_browser_folder_drawable">@drawable/cr3_browser_folder</item>
<item name="cr3_button_tts_drawable">@drawable/cr3_button_tts</item>
<item name="cr3_browser_folder_recent_drawable">@drawable/cr3_browser_folder_recent</item>
<item name="cr3_logo_button_drawable">@drawable/cr3_logo_button</item>
</style>
<style name="Theme.White" parent="@android:style/Theme.Light">
<item name="android:windowBackground">@android:color/white</item>
Expand All @@ -110,6 +124,8 @@

<!-- toolbar button background -->
<item name="cr3_toolbar_button_background_drawable">@drawable/cr3_toolbar_button_background</item>
<!-- tabbar background color -->
<item name="tabbarBackground">#40404040</item>
<!-- icons -->
<item name="cr3_button_prev_drawable">@drawable/cr3_button_prev</item>
<item name="cr3_button_next_drawable">@drawable/cr3_button_next</item>
Expand All @@ -120,7 +136,12 @@
<item name="cr3_browser_folder_root_drawable">@drawable/cr3_browser_folder_root</item>
<item name="cr3_option_night_drawable">@drawable/cr3_option_night</item>
<item name="cr3_option_touch_drawable">@drawable/cr3_option_touch</item>
<item name="cr3_button_go_page_drawable">@drawable/cr3_button_go_page</item>
<item name="cr3_button_go_percent_drawable">@drawable/cr3_button_go_percent</item>
<item name="cr3_browser_folder_drawable">@drawable/cr3_browser_folder</item>
<item name="cr3_button_tts_drawable">@drawable/cr3_button_tts</item>
<item name="cr3_browser_folder_recent_drawable">@drawable/cr3_browser_folder_recent</item>
<item name="cr3_logo_button_drawable">@drawable/cr3_logo_button</item>
</style>
<style name="Theme.Black" parent="@android:style/Theme">
<item name="android:windowBackground">@android:color/black</item>
Expand All @@ -133,6 +154,8 @@

<!-- toolbar button background -->
<item name="cr3_toolbar_button_background_drawable">@drawable/cr3_toolbar_button_background</item>
<!-- tabbar background color -->
<item name="tabbarBackground">#40404040</item>
<!-- icons -->
<item name="cr3_button_prev_drawable">@drawable/cr3_button_prev</item>
<item name="cr3_button_next_drawable">@drawable/cr3_button_next</item>
Expand All @@ -143,7 +166,12 @@
<item name="cr3_browser_folder_root_drawable">@drawable/cr3_browser_folder_root</item>
<item name="cr3_option_night_drawable">@drawable/cr3_option_night</item>
<item name="cr3_option_touch_drawable">@drawable/cr3_option_touch</item>
<item name="cr3_button_go_page_drawable">@drawable/cr3_button_go_page</item>
<item name="cr3_button_go_percent_drawable">@drawable/cr3_button_go_percent</item>
<item name="cr3_browser_folder_drawable">@drawable/cr3_browser_folder</item>
<item name="cr3_button_tts_drawable">@drawable/cr3_button_tts</item>
<item name="cr3_browser_folder_recent_drawable">@drawable/cr3_browser_folder_recent</item>
<item name="cr3_logo_button_drawable">@drawable/cr3_logo_button</item>
</style>

<style name="Theme.HiContrast" parent="@android:style/Theme.Light">
Expand All @@ -157,6 +185,8 @@

<!-- toolbar button background -->
<item name="cr3_toolbar_button_background_drawable">@drawable/cr3_toolbar_button_background_hc</item>
<!-- tabbar background color -->
<item name="tabbarBackground">#FFFFFFFF</item>
<!-- icons -->
<item name="cr3_button_prev_drawable">@drawable/cr3_button_prev_hc</item>
<item name="cr3_button_next_drawable">@drawable/cr3_button_next_hc</item>
Expand All @@ -167,7 +197,12 @@
<item name="cr3_browser_folder_root_drawable">@drawable/cr3_browser_folder_root_hc</item>
<item name="cr3_option_night_drawable">@drawable/cr3_option_night_hc</item>
<item name="cr3_option_touch_drawable">@drawable/cr3_option_touch_hc</item>
<item name="cr3_button_go_page_drawable">@drawable/cr3_button_go_page_hc</item>
<item name="cr3_button_go_percent_drawable">@drawable/cr3_button_go_percent_hc</item>
<item name="cr3_browser_folder_drawable">@drawable/cr3_browser_folder_hc</item>
<item name="cr3_button_tts_drawable">@drawable/cr3_button_tts_hc</item>
<item name="cr3_browser_folder_recent_drawable">@drawable/cr3_browser_folder_recent_hc</item>
<item name="cr3_logo_button_drawable">@drawable/cr3_logo_button_hc</item>
</style>

<style name="Theme.Light.Dialog.Normal" parent="@style/Theme.Light">
Expand Down
24 changes: 20 additions & 4 deletions android/src/org/coolreader/crengine/BaseActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,8 @@ public void updateActionsIcons() {
int [] attrs = { R.attr.cr3_button_prev_drawable, R.attr.cr3_button_next_drawable, R.attr.cr3_viewer_toc_drawable,
R.attr.cr3_viewer_find_drawable, R.attr.cr3_viewer_settings_drawable, R.attr.cr3_button_bookmarks_drawable,
R.attr.cr3_browser_folder_root_drawable, R.attr.cr3_option_night_drawable, R.attr.cr3_option_touch_drawable,
R.attr.cr3_browser_folder_recent_drawable };
R.attr.cr3_button_go_page_drawable, R.attr.cr3_button_go_percent_drawable, R.attr.cr3_browser_folder_drawable,
R.attr.cr3_button_tts_drawable, R.attr.cr3_browser_folder_recent_drawable, R.attr.cr3_logo_button_drawable };
TypedArray a = getTheme().obtainStyledAttributes(attrs);
int btnPrevDrawableRes = a.getResourceId(0, 0);
int btnNextDrawableRes = a.getResourceId(1, 0);
Expand All @@ -390,7 +391,12 @@ public void updateActionsIcons() {
int brFolderRootDrawableRes = a.getResourceId(6, 0);
int optionNightDrawableRes = a.getResourceId(7, 0);
int optionTouchDrawableRes = a.getResourceId(8, 0);
int brFolderRecentDrawableRes = a.getResourceId(9, 0);
int btnGoPageDrawableRes = a.getResourceId(9, 0);
int btnGoPercentDrawableRes = a.getResourceId(10, 0);
int brFolderDrawableRes = a.getResourceId(11, 0);
int btnTtsDrawableRes = a.getResourceId(12, 0);
int brFolderRecentDrawableRes = a.getResourceId(13, 0);
int logoBtnDrawableRes = a.getResourceId(14, 0);
a.recycle();
if (btnPrevDrawableRes != 0) {
ReaderAction.GO_BACK.setIconId(btnPrevDrawableRes);
Expand All @@ -410,8 +416,18 @@ public void updateActionsIcons() {
ReaderAction.FILE_BROWSER_ROOT.setIconId(brFolderRootDrawableRes);
if (optionNightDrawableRes != 0)
ReaderAction.TOGGLE_DAY_NIGHT.setIconId(optionNightDrawableRes);
if (optionTouchDrawableRes != 0)
ReaderAction.TOGGLE_SELECTION_MODE.setIconId(optionTouchDrawableRes);
if (optionTouchDrawableRes != 0)
ReaderAction.TOGGLE_SELECTION_MODE.setIconId(optionTouchDrawableRes);
if (btnGoPageDrawableRes != 0)
ReaderAction.GO_PAGE.setIconId(btnGoPageDrawableRes);
if (btnGoPercentDrawableRes != 0)
ReaderAction.GO_PERCENT.setIconId(btnGoPercentDrawableRes);
if (brFolderDrawableRes != 0)
ReaderAction.FILE_BROWSER.setIconId(brFolderDrawableRes);
if (btnTtsDrawableRes != 0)
ReaderAction.TTS_PLAY.setIconId(btnTtsDrawableRes);
if (logoBtnDrawableRes != 0)
ReaderAction.ABOUT.setIconId(logoBtnDrawableRes);
if (brFolderRecentDrawableRes != 0)
ReaderAction.RECENT_BOOKS.setIconId(brFolderRecentDrawableRes);
}
Expand Down
14 changes: 10 additions & 4 deletions icons_src/convert_all.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

$TARGET_DIR = "../android/res/";

# dpi: 120 160 240 320 480 640
my %ic_actions_sizes = (ldpi=>24, mdpi=>32, hdpi=>48, xhdpi=>64, xxhdpi=>96, xxxhdpi=>128);
my %ic_menu_sizes = (ldpi=>36, mdpi=>48, hdpi=>72, xhdpi=>96, xxhdpi=>144, xxxhdpi=>192);
my %ic_launcher_sizes = (ldpi=>36, mdpi=>48, hdpi=>72, xhdpi=>96, xxhdpi=>144, xxxhdpi=>192);
Expand All @@ -16,7 +17,12 @@
'cr3_browser_folder_root_hc-256x256-src.svg' => 'cr3_browser_folder_root_hc.png',
'cr3_option_night_hc-256x256-src.svg' => 'cr3_option_night_hc.png',
'cr3_option_touch_hc-256x256-src.svg' => 'cr3_option_touch_hc.png',
'cr3_browser_folder_recent_hc-256x256-src.svg' => 'cr3_browser_folder_recent_hc.png'
'cr3_button_go_page_hc-256x256-src.svg' => 'cr3_button_go_page_hc.png',
'cr3_button_go_percent_hc-256x256-src.svg' => 'cr3_button_go_percent_hc.png',
'cr3_browser_folder_hc-48x48-src.svg' => 'cr3_browser_folder_hc.png',
'cr3_button_tts_hc-48x48-src.svg' => 'cr3_button_tts_hc.png',
'cr3_browser_folder_recent_hc-48x48-src.svg' => 'cr3_browser_folder_recent_hc.png',
'cr3_logo_hc-48x48-src.svg' => 'cr3_logo_button_hc.png'
);

my %ic_menu_list=(
Expand All @@ -39,7 +45,7 @@
$folder = "${TARGET_DIR}/drawable-${dpi}/";
if (-d $folder)
{
$resfile = "${TARGET_DIR}/drawable-${dpi}/${dstfile}";
$resfile = "${folder}/${dstfile}";
$cmd = "inkscape -z -e ${resfile} -w ${size} -h ${size} ${srcfile}";
print "$cmd\n";
$ret = system($cmd);
Expand All @@ -55,7 +61,7 @@
$folder = "${TARGET_DIR}/drawable-${dpi}/";
if (-d $folder)
{
$resfile = "${TARGET_DIR}/drawable-${dpi}/${dstfile}";
$resfile = "${folder}/${dstfile}";
$cmd = "inkscape -z -e ${resfile} -w ${size} -h ${size} ${srcfile}";
print "$cmd\n";
$ret = system($cmd);
Expand All @@ -71,7 +77,7 @@
$folder = "${TARGET_DIR}/drawable-${dpi}/";
if (-d $folder)
{
$resfile = "${TARGET_DIR}/drawable-${dpi}/${dstfile}";
$resfile = "${folder}/${dstfile}";
$cmd = "inkscape -z -e ${resfile} -w ${size} -h ${size} ${srcfile}";
print "$cmd\n";
$ret = system($cmd);
Expand Down
Loading

0 comments on commit c7609a4

Please sign in to comment.