Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Add kts file icon (issue #1140) #1252

Merged
merged 2 commits into from
Sep 2, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add kts file icon for issue #1140
  • Loading branch information
FaSheep committed Sep 1, 2023
commit 6f21925de4cc1ebe7a3b26c1b219dbb04f5ffd27
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ enum class FileExtension(val extension: String, @DrawableRes val icon: Int) {
JAVA("java", R.drawable.ic_language_java),
JAR("jar", R.drawable.ic_language_java),
KT("kt", R.drawable.ic_language_kotlin),
KTS("kts", R.drawable.ic_language_kotlin),
KTS("kts", R.drawable.ic_gradlekts),
XML("xml", R.drawable.ic_language_xml),
GRADLE("gradle", R.drawable.ic_gradle),
JSON("json", R.drawable.ic_language_json),
Expand Down
30 changes: 30 additions & 0 deletions resources/src/main/res/drawable/ic_gradlekts.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!--
~ This file is part of AndroidIDE.
~
~ AndroidIDE is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ AndroidIDE is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with AndroidIDE. If not, see <https://www.gnu.org/licenses/>.
-->

<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="1024"
android:viewportHeight="1024">
<path
android:pathData="m796,900l-113.6,0c-4,0 -6.4,-1.6 -8.8,-4c-25.6,-32 -53.6,-61.6 -87.2,-84.8c-16.8,-12 -34.4,-22.4 -54.4,-28c-16,-4.8 -32.8,-7.2 -49.6,-3.2c-16.8,4 -31.2,13.6 -43.2,25.6c-15.2,15.2 -25.6,33.6 -33.6,53.6c-4.8,12 -8.8,24 -12.8,36c-0.8,1.6 -0.8,3.2 -1.6,4.8l-91.2,0c-0.8,-4.8 -1.6,-9.6 -2.4,-15.2c-3.2,-16 -8,-32 -16,-46.4c-5.6,-11.2 -12.8,-20.8 -22.4,-28.8c-10.4,-8.8 -22.4,-13.6 -36,-13.6c-10.4,0 -19.2,4 -28,9.6c-12,8 -21.6,18.4 -28.8,30.4c-11.2,17.6 -17.6,37.6 -23.2,57.6c-0.8,1.6 -0.8,4 -1.6,6.4l-119.2,0c-0.8,-5.6 -1.6,-12 -2.4,-17.6c-4,-37.6 -6.4,-75.2 -5.6,-112.8c0.8,-44 5.6,-87.2 16,-130.4c9.6,-39.2 23.2,-76 44,-109.6c28.8,-45.6 67.2,-78.4 117.6,-98.4c1.6,-0.8 2.4,-0.8 4,-1.6l1.6,0l2.4,4.8c14.4,32 29.6,63.2 48,92c11.2,18.4 27.2,32 47.2,38.4c21.6,7.2 42.4,4.8 63.2,-4c18.4,-8 33.6,-20 48,-33.6c16.8,-16 30.4,-33.6 44,-52.8c0.8,-0.8 0.8,-1.6 0.8,-2.4c-1.6,1.6 -3.2,3.2 -5.6,4.8c-20,20 -41.6,37.6 -66.4,51.2c-12,7.2 -25.6,12.8 -39.2,15.2c-20,4 -38.4,1.6 -54.4,-12.8c-6.4,-5.6 -11.2,-12 -16,-18.4c-24,-37.6 -44.8,-76.8 -64,-116.8c-4,-8 -7.2,-16 -8,-25.6c-1.6,-13.6 2.4,-25.6 12,-36c7.2,-7.2 15.2,-12.8 24.8,-17.6c17.6,-8.8 36,-15.2 54.4,-21.6c27.2,-8.8 55.2,-15.2 84,-19.2c32.8,-4.8 66.4,-5.6 100,-1.6c72,7.2 136,33.6 194.4,76c20,14.4 40.8,26.4 64.8,33.6c95.2,30.4 171.2,-35.2 188.8,-102.4c4.8,-18.4 6.4,-36.8 -0.8,-54.4c-10.4,-27.2 -28.8,-48 -58.4,-56c-22.4,-5.6 -44,-3.2 -64.8,8c-4,2.4 -8,4 -12,5.6c-9.6,3.2 -16,0.8 -20.8,-8c-6.4,-11.2 -11.2,-22.4 -16.8,-34.4c-2.4,-4.8 -1.6,-8.8 0.8,-12.8c2.4,-5.6 6.4,-9.6 11.2,-13.6c12,-9.6 26.4,-16 42.4,-19.2c39.2,-8.8 76,-3.2 111.2,14.4c28,13.6 49.6,34.4 65.6,61.6c15.2,25.6 25.6,52.8 30.4,82.4c3.2,23.2 3.2,45.6 0.8,68.8c-4.8,40 -16,77.6 -32,114.4c-20.8,48 -44.8,94.4 -74.4,137.6c-14.4,20.8 -29.6,40.8 -44,60.8c-15.2,21.6 -30.4,43.2 -41.6,67.2c-15.2,31.2 -24,63.2 -27.2,97.6c-2.4,29.6 -0.8,58.4 4,88c0.8,4.8 1.6,8 1.6,11.2zM730.4,488.8c2.4,19.2 -4,32 -21.6,39.2c-12.8,4.8 -28.8,0.8 -36.8,-10.4c-12.8,-16.8 -8.8,-32 5.6,-46.4c-14.4,-4.8 -28.8,-9.6 -42.4,-13.6c-3.2,8 -4.8,20 -4,29.6c1.6,19.2 8.8,35.2 24.8,45.6c16.8,11.2 36,16 56,12c20.8,-4 36.8,-16 48,-33.6c2.4,-3.2 4,-6.4 4,-11.2c-11.2,-3.2 -22.4,-7.2 -33.6,-11.2z"
android:fillColor="#fff"/>
<path
android:strokeWidth="1"
android:pathData="m719.1,731.8l301.3,0l-150.6,147.6l150.6,147.6l-301.3,0l0,-295.3z"
android:fillColor="#fff"/>
</vector>