diff --git a/legacy_icons.sh b/legacy_icons.sh new file mode 100755 index 0000000000..8899cb06e0 --- /dev/null +++ b/legacy_icons.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +set -e + +# Generate legacy icons for custom color icons in drawable-anydpi-v24 + +pushd "$(dirname "$(realpath "$0")")" > /dev/null + +desired_accent=`cat vector/src/main/res/values/colors_sc.xml | grep '' | sed 's|.*>\(.*\) $target_file" + sed "s|?\(android:\)\?\(attr/\)\?colorAccent|$desired_accent|g" "$f" > "$target_file" + +done + + +popd > /dev/null diff --git a/vector/src/main/res/drawable/bg_breadcrumbs_typing.xml b/vector/src/main/res/drawable/bg_breadcrumbs_typing.xml index 6b70bd1f87..72add57def 100644 --- a/vector/src/main/res/drawable/bg_breadcrumbs_typing.xml +++ b/vector/src/main/res/drawable/bg_breadcrumbs_typing.xml @@ -4,5 +4,5 @@ - - + + \ No newline at end of file diff --git a/vector/src/main/res/drawable/ic_camera.xml b/vector/src/main/res/drawable/ic_camera.xml index af44a317b3..7d682d1f1a 100644 --- a/vector/src/main/res/drawable/ic_camera.xml +++ b/vector/src/main/res/drawable/ic_camera.xml @@ -8,7 +8,7 @@ android:fillType="evenOdd" android:pathData="M23,19C23,20.1046 22.1046,21 21,21H3C1.8954,21 1,20.1046 1,19V8C1,6.8954 1.8954,6 3,6H7L9,3H15L17,6H21C22.1046,6 23,6.8954 23,8V19Z" android:strokeWidth="2" - android:strokeColor="#03B381" + android:strokeColor="#8BC34A" android:strokeLineCap="round" android:strokeLineJoin="round" /> diff --git a/vector/src/main/res/drawable/ic_check_on.xml b/vector/src/main/res/drawable/ic_check_on.xml index 05439c4df4..e46f234d49 100644 --- a/vector/src/main/res/drawable/ic_check_on.xml +++ b/vector/src/main/res/drawable/ic_check_on.xml @@ -7,7 +7,7 @@ android:fillColor="#00000000" android:pathData="M20,7L9,18L4,13" android:strokeWidth="2" - android:strokeColor="#03B381" + android:strokeColor="#8BC34A" android:strokeLineCap="round" android:strokeLineJoin="round" /> diff --git a/vector/src/main/res/drawable/ic_filter.xml b/vector/src/main/res/drawable/ic_filter.xml index 740585b17e..82c3146eb2 100644 --- a/vector/src/main/res/drawable/ic_filter.xml +++ b/vector/src/main/res/drawable/ic_filter.xml @@ -7,14 +7,14 @@ android:pathData="M4,6.5h16" android:strokeWidth="1.8" android:fillColor="#00000000" - android:strokeColor="#9E9E9E" + android:strokeColor="#8BC34A" android:fillType="evenOdd" android:strokeLineCap="round"/> diff --git a/vector/src/main/res/drawable/ic_material_share.xml b/vector/src/main/res/drawable/ic_material_share.xml index 5ecbfe3388..87bd8cbc7a 100644 --- a/vector/src/main/res/drawable/ic_material_share.xml +++ b/vector/src/main/res/drawable/ic_material_share.xml @@ -3,22 +3,22 @@ android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"> diff --git a/vector/src/main/res/drawable/ic_plus_circle.xml b/vector/src/main/res/drawable/ic_plus_circle.xml index 0b7b4eecd6..374335a0b6 100644 --- a/vector/src/main/res/drawable/ic_plus_circle.xml +++ b/vector/src/main/res/drawable/ic_plus_circle.xml @@ -8,7 +8,7 @@ android:fillType="evenOdd" android:pathData="M11,11m-10,0a10,10 0,1 1,20 0a10,10 0,1 1,-20 0" android:strokeWidth="1.4" - android:strokeColor="#03B381" + android:strokeColor="#8BC34A" android:strokeLineCap="round" android:strokeLineJoin="round" /> diff --git a/vector/src/main/res/drawable/ic_search.xml b/vector/src/main/res/drawable/ic_search.xml index e72df715cf..c13110082f 100644 --- a/vector/src/main/res/drawable/ic_search.xml +++ b/vector/src/main/res/drawable/ic_search.xml @@ -9,7 +9,7 @@ android:strokeWidth="2" android:fillColor="#00000000" android:fillType="evenOdd" - android:strokeColor="#9E9E9E" + android:strokeColor="#8BC34A" android:strokeLineCap="round"/> diff --git a/vector/src/main/res/drawable/ic_send.xml b/vector/src/main/res/drawable/ic_send.xml index d79ba7c126..58fe20936f 100644 --- a/vector/src/main/res/drawable/ic_send.xml +++ b/vector/src/main/res/drawable/ic_send.xml @@ -9,6 +9,6 @@ android:strokeWidth="2" android:fillColor="#00000000" android:fillType="evenOdd" - android:strokeColor="#03B381" + android:strokeColor="#8BC34A" android:strokeLineCap="round"/> diff --git a/vector/src/main/res/drawable/ic_settings_root_advanced.xml b/vector/src/main/res/drawable/ic_settings_root_advanced.xml index fbcd165cda..11ba50ac81 100644 --- a/vector/src/main/res/drawable/ic_settings_root_advanced.xml +++ b/vector/src/main/res/drawable/ic_settings_root_advanced.xml @@ -1,5 +1,17 @@ - - + + + diff --git a/vector/src/main/res/drawable/ic_settings_root_call.xml b/vector/src/main/res/drawable/ic_settings_root_call.xml index 0742e16e0d..388890da4d 100644 --- a/vector/src/main/res/drawable/ic_settings_root_call.xml +++ b/vector/src/main/res/drawable/ic_settings_root_call.xml @@ -1,12 +1,14 @@ + android:width="22dp" + android:height="22dp" + android:viewportWidth="22" + android:viewportHeight="22"> - + android:pathData="M21,15.92v3a2,2 0,0 1,-2.18 2,19.79 19.79,0 0,1 -8.63,-3.07 19.5,19.5 0,0 1,-6 -6,19.79 19.79,0 0,1 -3.07,-8.67A2,2 0,0 1,3.11 1h3a2,2 0,0 1,2 1.72c0.127,0.96 0.361,1.903 0.7,2.81a2,2 0,0 1,-0.45 2.11L7.09,8.91a16,16 0,0 0,6 6l1.27,-1.27a2,2 0,0 1,2.11 -0.45c0.907,0.339 1.85,0.573 2.81,0.7A2,2 0,0 1,21 15.92z" + android:strokeLineJoin="round" + android:strokeWidth="2" + android:fillColor="#00000000" + android:fillType="evenOdd" + android:strokeColor="#8BC34A" + android:strokeLineCap="round"/> diff --git a/vector/src/main/res/drawable/ic_settings_root_flair.xml b/vector/src/main/res/drawable/ic_settings_root_flair.xml index 36b282455b..ceefe16155 100644 --- a/vector/src/main/res/drawable/ic_settings_root_flair.xml +++ b/vector/src/main/res/drawable/ic_settings_root_flair.xml @@ -1,9 +1,22 @@ + android:width="16dp" + android:height="24dp" + android:viewportWidth="16" + android:viewportHeight="24"> + android:pathData="M8,8m-7,0a7,7 0,1 1,14 0a7,7 0,1 1,-14 0" + android:strokeLineJoin="round" + android:strokeWidth="2" + android:fillColor="#00000000" + android:fillType="evenOdd" + android:strokeColor="#8BC34A" + android:strokeLineCap="round"/> + diff --git a/vector/src/main/res/drawable/ic_settings_root_general.xml b/vector/src/main/res/drawable/ic_settings_root_general.xml index a07bf7a164..8173b07b3f 100644 --- a/vector/src/main/res/drawable/ic_settings_root_general.xml +++ b/vector/src/main/res/drawable/ic_settings_root_general.xml @@ -1,10 +1,22 @@ + android:width="24dp" + android:height="24dp" + android:viewportWidth="24" + android:viewportHeight="24"> + android:pathData="M12,12m-3,0a3,3 0,1 1,6 0a3,3 0,1 1,-6 0" + android:strokeLineJoin="round" + android:strokeWidth="2" + android:fillColor="#00000000" + android:fillType="evenOdd" + android:strokeColor="#8BC34A" + android:strokeLineCap="round"/> + diff --git a/vector/src/main/res/drawable/ic_settings_root_help_about.xml b/vector/src/main/res/drawable/ic_settings_root_help_about.xml index 0c79955cba..369ce4f535 100644 --- a/vector/src/main/res/drawable/ic_settings_root_help_about.xml +++ b/vector/src/main/res/drawable/ic_settings_root_help_about.xml @@ -1,10 +1,30 @@ + android:width="22dp" + android:height="22dp" + android:viewportWidth="22" + android:viewportHeight="22"> + android:pathData="M11,11m-10,0a10,10 0,1 1,20 0a10,10 0,1 1,-20 0" + android:strokeLineJoin="round" + android:strokeWidth="2" + android:fillColor="#00000000" + android:strokeColor="#8BC34A" + android:fillType="evenOdd" + android:strokeLineCap="round"/> + + diff --git a/vector/src/main/res/drawable/ic_settings_root_ignored_users.xml b/vector/src/main/res/drawable/ic_settings_root_ignored_users.xml index cf039d55dc..74cb9e754a 100644 --- a/vector/src/main/res/drawable/ic_settings_root_ignored_users.xml +++ b/vector/src/main/res/drawable/ic_settings_root_ignored_users.xml @@ -1,10 +1,30 @@ + android:width="17dp" + android:height="20dp" + android:viewportWidth="17" + android:viewportHeight="20"> + android:pathData="M16,19v-2a4,4 0,0 0,-4 -4H5a4,4 0,0 0,-4 4v2" + android:strokeLineJoin="round" + android:strokeWidth="2" + android:fillColor="#00000000" + android:fillType="evenOdd" + android:strokeColor="#8BC34A" + android:strokeLineCap="round"/> + + diff --git a/vector/src/main/res/drawable/ic_settings_root_labs.xml b/vector/src/main/res/drawable/ic_settings_root_labs.xml index 5416ad7089..50e6ac02bd 100644 --- a/vector/src/main/res/drawable/ic_settings_root_labs.xml +++ b/vector/src/main/res/drawable/ic_settings_root_labs.xml @@ -1,12 +1,14 @@ + android:width="18dp" + android:height="22dp" + android:viewportWidth="18" + android:viewportHeight="22"> - + android:pathData="M1,14s1,-1 4,-1 5,2 8,2 4,-1 4,-1V2s-1,1 -4,1 -5,-2 -8,-2 -4,1 -4,1v12zM1,21v-7" + android:strokeLineJoin="round" + android:strokeWidth="2" + android:fillColor="#00000000" + android:fillType="evenOdd" + android:strokeColor="#8BC34A" + android:strokeLineCap="round"/> diff --git a/vector/src/main/res/drawable/ic_settings_root_legacy.xml b/vector/src/main/res/drawable/ic_settings_root_legacy.xml index c56a7d31f8..9ad4d4a0f7 100644 --- a/vector/src/main/res/drawable/ic_settings_root_legacy.xml +++ b/vector/src/main/res/drawable/ic_settings_root_legacy.xml @@ -9,6 +9,6 @@ android:strokeWidth="2" android:fillColor="#00000000" android:fillType="evenOdd" - android:strokeColor="#7E899C" + android:strokeColor="#8BC34A" android:strokeLineCap="round"/> diff --git a/vector/src/main/res/drawable/ic_settings_root_notification.xml b/vector/src/main/res/drawable/ic_settings_root_notification.xml index bf3786aeab..ed6d5ef6d2 100644 --- a/vector/src/main/res/drawable/ic_settings_root_notification.xml +++ b/vector/src/main/res/drawable/ic_settings_root_notification.xml @@ -1,10 +1,14 @@ + android:width="20dp" + android:height="22dp" + android:viewportWidth="20" + android:viewportHeight="22"> + android:pathData="M16,7A6,6 0,1 0,4 7c0,7 -3,9 -3,9h18s-3,-2 -3,-9M11.73,20a2,2 0,0 1,-3.46 0" + android:strokeLineJoin="round" + android:strokeWidth="2" + android:fillColor="#00000000" + android:fillType="evenOdd" + android:strokeColor="#8BC34A" + android:strokeLineCap="round"/> diff --git a/vector/src/main/res/drawable/ic_settings_root_preferences.xml b/vector/src/main/res/drawable/ic_settings_root_preferences.xml index 1aa5e338f0..f7ac84ddab 100644 --- a/vector/src/main/res/drawable/ic_settings_root_preferences.xml +++ b/vector/src/main/res/drawable/ic_settings_root_preferences.xml @@ -1,10 +1,14 @@ + android:width="24dp" + android:height="20dp" + android:viewportWidth="24" + android:viewportHeight="20"> + android:pathData="M4,19v-7M4,8V1M12,19v-9M12,6V1M20,19v-5M20,10V1M1,12h6M9,6h6M17,14h6" + android:strokeLineJoin="round" + android:strokeWidth="2" + android:fillColor="#00000000" + android:fillType="evenOdd" + android:strokeColor="#8BC34A" + android:strokeLineCap="round"/> diff --git a/vector/src/main/res/drawable/ic_settings_root_security_privacy.xml b/vector/src/main/res/drawable/ic_settings_root_security_privacy.xml index 194eec1be3..647463e5e6 100644 --- a/vector/src/main/res/drawable/ic_settings_root_security_privacy.xml +++ b/vector/src/main/res/drawable/ic_settings_root_security_privacy.xml @@ -1,10 +1,22 @@ + android:width="20dp" + android:height="22dp" + android:viewportWidth="20" + android:viewportHeight="22"> + android:pathData="M3,10L17,10A2,2 0,0 1,19 12L19,19A2,2 0,0 1,17 21L3,21A2,2 0,0 1,1 19L1,12A2,2 0,0 1,3 10z" + android:strokeLineJoin="round" + android:strokeWidth="2" + android:fillColor="#00000000" + android:fillType="evenOdd" + android:strokeColor="#8BC34A" + android:strokeLineCap="round"/> + diff --git a/vector/src/main/res/drawable/ic_shield_custom.xml b/vector/src/main/res/drawable/ic_shield_custom.xml index cb5e98c033..8d96d86bdf 100644 --- a/vector/src/main/res/drawable/ic_shield_custom.xml +++ b/vector/src/main/res/drawable/ic_shield_custom.xml @@ -7,7 +7,7 @@ android:strokeWidth="1" android:pathData="M12,21C12,21 21,17.2 21,11.5V4.85L12,2L3,4.85V11.5C3,17.2 12,21 12,21Z" android:strokeLineJoin="round" - android:fillColor="#03B381" + android:fillColor="#8BC34A" android:fillType="evenOdd" android:strokeColor="#ffffff" android:strokeLineCap="round"/> diff --git a/vector/src/main/res/drawable/ic_shield_trusted.xml b/vector/src/main/res/drawable/ic_shield_trusted.xml index 56f0aa0b63..55e63afdf7 100644 --- a/vector/src/main/res/drawable/ic_shield_trusted.xml +++ b/vector/src/main/res/drawable/ic_shield_trusted.xml @@ -7,7 +7,7 @@ android:strokeWidth="1" android:pathData="M12,21C12,21 21,17.2 21,11.5V4.85L12,2L3,4.85V11.5C3,17.2 12,21 12,21Z" android:strokeLineJoin="round" - android:fillColor="#03B381" + android:fillColor="#8BC34A" android:fillType="evenOdd" android:strokeColor="#ffffff" android:strokeLineCap="round"/> diff --git a/vector/src/main/res/drawable/ic_x_18dp.xml b/vector/src/main/res/drawable/ic_x_18dp.xml index 3172da8cc2..85f75720bc 100644 --- a/vector/src/main/res/drawable/ic_x_18dp.xml +++ b/vector/src/main/res/drawable/ic_x_18dp.xml @@ -9,6 +9,6 @@ android:strokeWidth="2.333" android:fillColor="#00000000" android:fillType="evenOdd" - android:strokeColor="#03B381" + android:strokeColor="#8BC34A" android:strokeLineCap="round"/> diff --git a/vector/src/main/res/drawable/ic_x_green.xml b/vector/src/main/res/drawable/ic_x_green.xml new file mode 100644 index 0000000000..999ba1e620 --- /dev/null +++ b/vector/src/main/res/drawable/ic_x_green.xml @@ -0,0 +1,14 @@ + + +