Skip to content

Commit

Permalink
release 0.1.0-beta02
Browse files Browse the repository at this point in the history
  • Loading branch information
cinkhangin committed Dec 24, 2024
1 parent 705832d commit d9b7466
Show file tree
Hide file tree
Showing 13 changed files with 236 additions and 9 deletions.
2 changes: 1 addition & 1 deletion modify/src/main/java/com/naulian/modify/Dialog.kt
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ fun AlertDialog(
confirmButton = {
if (primaryAction.isNotEmpty()) {
MButton(
onClick = { onDismissRequest(); onConfirmed() },
onClick = { onConfirmed(); onDismissRequest(); },
modifier = Modifier.fillMaxWidth(),
height = 40.dp,
shape = RoundedCornerShape(50)
Expand Down
19 changes: 19 additions & 0 deletions modify/src/main/java/com/naulian/modify/MIcons.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package com.naulian.modify

//MIcons icons are from hugeicons.com
object MIcons {
val Copy = R.drawable.ic_copy
val Back = R.drawable.ic_back
val Cancel = R.drawable.ic_cancel
val Delete = R.drawable.ic_delete
val Settings = R.drawable.ic_settings
val Search = R.drawable.ic_search
val Notification = R.drawable.ic_notification
val Image = R.drawable.ic_image
val Add = R.drawable.ic_add

val edit = R.drawable.ic_pencil2
val edit1 = R.drawable.ic_edit1
val edit2 = R.drawable.ic_edit2
val edit3 = R.drawable.ic_pencil1
}
8 changes: 0 additions & 8 deletions modify/src/main/java/com/naulian/modify/Modicons.kt

This file was deleted.

20 changes: 20 additions & 0 deletions modify/src/main/res/drawable/ic_add.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:pathData="M12,4V20"
android:strokeLineJoin="round"
android:strokeWidth="1.5"
android:fillColor="#00000000"
android:strokeColor="#FFF"
android:strokeLineCap="round"/>
<path
android:pathData="M4,12H20"
android:strokeLineJoin="round"
android:strokeWidth="1.5"
android:fillColor="#00000000"
android:strokeColor="#FFF"
android:strokeLineCap="round"/>
</vector>
30 changes: 30 additions & 0 deletions modify/src/main/res/drawable/ic_delete.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:pathData="M19.5,5.5L18.88,15.525C18.722,18.086 18.643,19.367 18.001,20.288C17.683,20.743 17.275,21.127 16.801,21.416C15.842,22 14.559,22 11.993,22C9.423,22 8.138,22 7.179,21.415C6.705,21.126 6.296,20.741 5.979,20.285C5.337,19.363 5.259,18.08 5.105,15.515L4.5,5.5"
android:strokeWidth="1.5"
android:fillColor="#00000000"
android:strokeColor="#FFF"
android:strokeLineCap="round"/>
<path
android:pathData="M3,5.5H21M16.056,5.5L15.373,4.092C14.92,3.156 14.693,2.689 14.302,2.397C14.215,2.332 14.123,2.275 14.027,2.225C13.594,2 13.074,2 12.035,2C10.969,2 10.436,2 9.996,2.234C9.898,2.286 9.805,2.346 9.717,2.413C9.322,2.717 9.101,3.202 8.659,4.171L8.053,5.5"
android:strokeWidth="1.5"
android:fillColor="#00000000"
android:strokeColor="#FFF"
android:strokeLineCap="round"/>
<path
android:pathData="M9.5,16.5L9.5,10.5"
android:strokeWidth="1.5"
android:fillColor="#00000000"
android:strokeColor="#FFF"
android:strokeLineCap="round"/>
<path
android:pathData="M14.5,16.5L14.5,10.5"
android:strokeWidth="1.5"
android:fillColor="#00000000"
android:strokeColor="#FFF"
android:strokeLineCap="round"/>
</vector>
19 changes: 19 additions & 0 deletions modify/src/main/res/drawable/ic_edit1.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:pathData="M16.946,3.173C17.533,2.586 17.827,2.292 18.152,2.152C18.621,1.949 19.152,1.949 19.621,2.152C19.946,2.292 20.24,2.586 20.827,3.173C21.414,3.76 21.708,4.054 21.848,4.379C22.051,4.848 22.051,5.379 21.848,5.848C21.708,6.173 21.414,6.467 20.827,7.054L15.805,12.076C14.568,13.313 13.95,13.932 13.175,14.298C12.4,14.665 11.529,14.75 9.788,14.922L9,15L9.078,14.212C9.25,12.471 9.335,11.6 9.702,10.825C10.068,10.05 10.687,9.432 11.924,8.195L16.946,3.173Z"
android:strokeLineJoin="round"
android:strokeWidth="1.5"
android:fillColor="#00000000"
android:strokeColor="#FFF"/>
<path
android:pathData="M6,15H3.75C2.783,15 2,15.783 2,16.75C2,17.716 2.783,18.5 3.75,18.5H13.25C14.217,18.5 15,19.284 15,20.25C15,21.216 14.217,22 13.25,22H11"
android:strokeLineJoin="round"
android:strokeWidth="1.5"
android:fillColor="#00000000"
android:strokeColor="#FFF"
android:strokeLineCap="round"/>
</vector>
25 changes: 25 additions & 0 deletions modify/src/main/res/drawable/ic_edit2.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:pathData="M14.074,3.885C14.819,3.078 15.191,2.674 15.587,2.439C16.543,1.871 17.719,1.853 18.69,2.392C19.093,2.616 19.477,3.008 20.245,3.793C21.013,4.577 21.397,4.97 21.616,5.381C22.144,6.373 22.126,7.575 21.57,8.551C21.34,8.955 20.945,9.336 20.154,10.097L10.751,19.154C9.253,20.597 8.504,21.318 7.568,21.684C6.632,22.049 5.603,22.022 3.545,21.969L3.265,21.961C2.639,21.945 2.326,21.937 2.144,21.73C1.962,21.523 1.986,21.204 2.036,20.566L2.063,20.22C2.203,18.424 2.273,17.525 2.624,16.718C2.974,15.911 3.579,15.255 4.789,13.944L14.074,3.885Z"
android:strokeLineJoin="round"
android:strokeWidth="1.5"
android:fillColor="#00000000"
android:strokeColor="#FFF"/>
<path
android:pathData="M13,4L20,11"
android:strokeLineJoin="round"
android:strokeWidth="1.5"
android:fillColor="#00000000"
android:strokeColor="#FFF"/>
<path
android:pathData="M14,22L22,22"
android:strokeLineJoin="round"
android:strokeWidth="1.5"
android:fillColor="#00000000"
android:strokeColor="#FFF"
android:strokeLineCap="round"/>
</vector>
28 changes: 28 additions & 0 deletions modify/src/main/res/drawable/ic_image.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:pathData="M2.5,12C2.5,7.522 2.5,5.282 3.891,3.891C5.282,2.5 7.522,2.5 12,2.5C16.478,2.5 18.718,2.5 20.109,3.891C21.5,5.282 21.5,7.522 21.5,12C21.5,16.478 21.5,18.718 20.109,20.109C18.718,21.5 16.478,21.5 12,21.5C7.522,21.5 5.282,21.5 3.891,20.109C2.5,18.718 2.5,16.478 2.5,12Z"
android:strokeWidth="1.5"
android:fillColor="#00000000"
android:strokeColor="#FFF"/>
<path
android:pathData="M16.5,7.5m-1.5,0a1.5,1.5 0,1 1,3 0a1.5,1.5 0,1 1,-3 0"
android:strokeWidth="1.5"
android:fillColor="#00000000"
android:strokeColor="#FFF"/>
<path
android:pathData="M16,22C15.38,19.775 13.934,17.782 11.877,16.334C9.658,14.773 6.872,13.947 4.016,14.003C3.677,14.002 3.338,14.013 3,14.035"
android:strokeLineJoin="round"
android:strokeWidth="1.5"
android:fillColor="#00000000"
android:strokeColor="#FFF"/>
<path
android:pathData="M13,18C14.701,16.673 16.535,15.993 18.386,16C19.436,15.999 20.481,16.222 21.5,16.662"
android:strokeLineJoin="round"
android:strokeWidth="1.5"
android:fillColor="#00000000"
android:strokeColor="#FFF"/>
</vector>
20 changes: 20 additions & 0 deletions modify/src/main/res/drawable/ic_notification.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:pathData="M2.53,14.394C2.317,15.747 3.268,16.686 4.432,17.154C8.895,18.949 15.105,18.949 19.568,17.154C20.732,16.686 21.683,15.747 21.47,14.394C21.339,13.563 20.693,12.87 20.214,12.194C19.587,11.297 19.525,10.32 19.525,9.279C19.525,5.259 16.156,2 12,2C7.844,2 4.475,5.259 4.475,9.279C4.475,10.32 4.413,11.297 3.786,12.194C3.307,12.87 2.661,13.563 2.53,14.394Z"
android:strokeLineJoin="round"
android:strokeWidth="1.5"
android:fillColor="#00000000"
android:strokeColor="#FFF"
android:strokeLineCap="round"/>
<path
android:pathData="M9,21C9.796,21.622 10.847,22 12,22C13.153,22 14.204,21.622 15,21"
android:strokeLineJoin="round"
android:strokeWidth="1.5"
android:fillColor="#00000000"
android:strokeColor="#FFF"
android:strokeLineCap="round"/>
</vector>
19 changes: 19 additions & 0 deletions modify/src/main/res/drawable/ic_pencil1.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:pathData="M15.214,5.982L16.616,4.581C17.39,3.806 18.645,3.806 19.419,4.581C20.194,5.355 20.194,6.61 19.419,7.384L18.018,8.786M15.214,5.982L6.98,14.216C5.935,15.262 5.412,15.784 5.056,16.421C4.7,17.058 4.342,18.562 4,20C5.438,19.658 6.942,19.299 7.579,18.944C8.216,18.588 8.738,18.065 9.784,17.02L18.018,8.786M15.214,5.982L18.018,8.786"
android:strokeLineJoin="round"
android:strokeWidth="1.5"
android:fillColor="#00000000"
android:strokeColor="#FFF"
android:strokeLineCap="round"/>
<path
android:pathData="M11,20H17"
android:strokeWidth="1.5"
android:fillColor="#00000000"
android:strokeColor="#FFF"
android:strokeLineCap="round"/>
</vector>
19 changes: 19 additions & 0 deletions modify/src/main/res/drawable/ic_pencil2.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:pathData="M16.425,4.605L17.415,3.615C18.235,2.795 19.565,2.795 20.385,3.615C21.205,4.435 21.205,5.765 20.385,6.585L19.395,7.575M16.425,4.605L9.766,11.264C9.258,11.772 8.898,12.408 8.724,13.104L8,16L10.896,15.276C11.592,15.102 12.228,14.742 12.736,14.234L19.395,7.575M16.425,4.605L19.395,7.575"
android:strokeLineJoin="round"
android:strokeWidth="1.5"
android:fillColor="#00000000"
android:strokeColor="#FFF"/>
<path
android:pathData="M19,13.5C19,16.788 19,18.431 18.092,19.538C17.926,19.74 17.74,19.926 17.538,20.092C16.431,21 14.787,21 11.5,21H11C7.229,21 5.343,21 4.172,19.828C3,18.657 3,16.771 3,13V12.5C3,9.213 3,7.569 3.908,6.462C4.074,6.26 4.26,6.074 4.462,5.908C5.569,5 7.213,5 10.5,5"
android:strokeLineJoin="round"
android:strokeWidth="1.5"
android:fillColor="#00000000"
android:strokeColor="#FFF"
android:strokeLineCap="round"/>
</vector>
19 changes: 19 additions & 0 deletions modify/src/main/res/drawable/ic_search.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:pathData="M17.5,17.5L22,22"
android:strokeLineJoin="round"
android:strokeWidth="1.5"
android:fillColor="#00000000"
android:strokeColor="#FFF"
android:strokeLineCap="round"/>
<path
android:pathData="M20,11C20,6.029 15.971,2 11,2C6.029,2 2,6.029 2,11C2,15.971 6.029,20 11,20C15.971,20 20,15.971 20,11Z"
android:strokeLineJoin="round"
android:strokeWidth="1.5"
android:fillColor="#00000000"
android:strokeColor="#FFF"/>
</vector>
17 changes: 17 additions & 0 deletions modify/src/main/res/drawable/ic_settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:pathData="M15.5,12C15.5,13.933 13.933,15.5 12,15.5C10.067,15.5 8.5,13.933 8.5,12C8.5,10.067 10.067,8.5 12,8.5C13.933,8.5 15.5,10.067 15.5,12Z"
android:strokeWidth="1.5"
android:fillColor="#00000000"
android:strokeColor="#FFF"/>
<path
android:pathData="M21.011,14.097C21.533,13.956 21.794,13.885 21.897,13.751C22,13.616 22,13.4 22,12.967V11.033C22,10.6 22,10.384 21.897,10.249C21.794,10.115 21.533,10.044 21.011,9.904C19.061,9.378 17.84,7.339 18.343,5.401C18.482,4.868 18.551,4.602 18.485,4.445C18.419,4.289 18.229,4.181 17.85,3.966L16.125,2.987C15.753,2.775 15.567,2.67 15.4,2.692C15.233,2.715 15.044,2.903 14.667,3.279C13.208,4.734 10.794,4.734 9.334,3.279C8.957,2.903 8.769,2.715 8.602,2.692C8.435,2.67 8.249,2.775 7.877,2.987L6.152,3.966C5.773,4.181 5.583,4.289 5.517,4.445C5.451,4.601 5.52,4.868 5.658,5.401C6.161,7.339 4.94,9.378 2.989,9.904C2.467,10.044 2.206,10.115 2.103,10.249C2,10.384 2,10.6 2,11.033V12.967C2,13.4 2,13.616 2.103,13.751C2.206,13.885 2.467,13.956 2.989,14.097C4.939,14.623 6.16,16.662 5.657,18.599C5.518,19.132 5.449,19.399 5.515,19.555C5.581,19.711 5.771,19.819 6.15,20.034L7.875,21.013C8.247,21.225 8.433,21.33 8.6,21.308C8.767,21.285 8.956,21.097 9.333,20.721C10.793,19.264 13.209,19.264 14.669,20.721C15.046,21.097 15.234,21.285 15.401,21.308C15.568,21.33 15.754,21.225 16.127,21.013L17.851,20.034C18.231,19.819 18.42,19.711 18.486,19.555C18.552,19.398 18.483,19.132 18.345,18.599C17.841,16.662 19.061,14.623 21.011,14.097Z"
android:strokeWidth="1.5"
android:fillColor="#00000000"
android:strokeColor="#FFF"
android:strokeLineCap="round"/>
</vector>

0 comments on commit d9b7466

Please sign in to comment.