diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..261eeb9
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,201 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/README.md b/README.md
index 6451313..202b8da 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@ Quiet - Wishing for peace - Wishing for rest - Rest - RIP - Live in peace
1. ~~The notification permission (required) and nearby device permission (optional, only needed when monitoring volume changes caused by Bluetooth headset connection/disconnection) need to be manually enabled.~~
2. Notification channels and priority may need to be adjusted manually.
3. Notification icon may not be prominent enough.
-4. There may be performance issues when using numeric notification icons, and when the volume is at maximum, it will display `!!` instead of `100`.
+4. ~~There may be performance issues when using numeric notification icons, and~~ when the volume is at maximum, it will display `!!` instead of `100`.
5. "Disable Alert" and "Enable Alert" in the settings refer to the option of disabling or enabling the notification for prolonged headphone connection time. Due to the width limitation of the notification button, it may not clearly convey the meaning. There is a plan to implement a settings interface using an Activity in the future, but it's not guaranteed and may take a considerable amount of time.
6. Any kind of bug is possible
diff --git a/README_ZH.md b/README_ZH.md
index 5527740..d1d7e86 100644
--- a/README_ZH.md
+++ b/README_ZH.md
@@ -16,7 +16,7 @@
1. ~~需要手动启用通知权限(必需)和附近的设备权限(非必需,仅当需要监测蓝牙耳机的连接和断开导致的音量变化)~~
2. 通知渠道和通知优先级可能需要手动调整
3. 通知图标可能不够醒目
-4. 使用数字式通知图标时可能有性能问题,且音量满时会显示`!!`而非 `100`
+4. 使用数字式通知图标时~~可能有性能问题,且~~音量满时会显示`!!`而非 `100`
5. 设置中的「禁用提醒」和「启用提醒」指是否启用耳机连接时间过长的提醒,受限于通知按钮的宽度限制没有清楚表述,计划将来使用 Activity 实现设置界面,但并不能保证且可能需要很长的时间。
6. 随便什么 bug 都有可能
diff --git a/app/build.gradle b/app/build.gradle
index 15fd828..715bca2 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -19,7 +19,7 @@ android {
minSdk 31
targetSdk 34
versionCode 5
- versionName "2.2_beta"
+ versionName "2.3_beta"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
diff --git a/app/src/main/java/com/maary/liveinpeace/service/ForegroundService.kt b/app/src/main/java/com/maary/liveinpeace/service/ForegroundService.kt
index d7b6574..464fcf2 100644
--- a/app/src/main/java/com/maary/liveinpeace/service/ForegroundService.kt
+++ b/app/src/main/java/com/maary/liveinpeace/service/ForegroundService.kt
@@ -8,11 +8,6 @@ import android.app.Service
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
-import android.graphics.Bitmap
-import android.graphics.Canvas
-import android.graphics.Color
-import android.graphics.Paint
-import android.graphics.Rect
import android.media.AudioDeviceCallback
import android.media.AudioDeviceInfo
import android.media.AudioManager
@@ -42,12 +37,10 @@ import com.maary.liveinpeace.Constants.Companion.MODE_IMG
import com.maary.liveinpeace.Constants.Companion.MODE_NUM
import com.maary.liveinpeace.Constants.Companion.PREF_ENABLE_EAR_PROTECTION
import com.maary.liveinpeace.Constants.Companion.PREF_ICON
-import com.maary.liveinpeace.Constants.Companion.PREF_NOTIFY_TEXT_SIZE
import com.maary.liveinpeace.Constants.Companion.PREF_WATCHING_CONNECTING_TIME
import com.maary.liveinpeace.Constants.Companion.SHARED_PREF
import com.maary.liveinpeace.DeviceMapChangeListener
import com.maary.liveinpeace.DeviceTimer
-import com.maary.liveinpeace.HistoryActivity
import com.maary.liveinpeace.R
import com.maary.liveinpeace.SleepNotification.find
import com.maary.liveinpeace.database.Connection
@@ -197,7 +190,7 @@ class ForegroundService: Service() {
)
) { return@forEach }
val deviceName = deviceInfo.productName.toString().trim()
- if (deviceName == android.os.Build.MODEL) return@forEach
+ if (deviceName == Build.MODEL) return@forEach
Log.v("MUTE_DEVICE", deviceName)
Log.v("MUTE_TYPE", deviceInfo.type.toString())
deviceMap[deviceName] = Connection(
@@ -410,17 +403,6 @@ class ForegroundService: Service() {
protectionPendingIntent
).build()
-// val historyIntent = Intent(this, HistoryActivity::class.java)
-// historyIntent.flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK
-//
-// val pendingHistoryIntent = PendingIntent.getActivity(context, 0, historyIntent, PendingIntent.FLAG_IMMUTABLE or PendingIntent.FLAG_UPDATE_CURRENT)
-//
-// val actionHistory: NotificationCompat.Action = NotificationCompat.Action.Builder(
-// R.drawable.ic_action_history,
-// resources.getString(R.string.history),
-// pendingHistoryIntent
-// ).build()
-
val sleepIntent = Intent(context, MuteMediaReceiver::class.java)
sleepIntent.action = BROADCAST_ACTION_SLEEPTIMER_TOGGLE
val pendingSleepIntent = PendingIntent.getBroadcast(context, 0, sleepIntent, PendingIntent.FLAG_MUTABLE or PendingIntent.FLAG_UPDATE_CURRENT)
@@ -452,7 +434,6 @@ class ForegroundService: Service() {
.setContentIntent(pendingMuteIntent)
.setPriority(NotificationCompat.PRIORITY_LOW)
.addAction(actionSettings)
-// .addAction(actionHistory)
.addAction(actionSleepTimer)
.addAction(actionProtection)
.setGroup(ID_NOTIFICATION_GROUP_FORE)
@@ -470,63 +451,13 @@ class ForegroundService: Service() {
.build()
}
- private val textBounds = Rect()
-
+ @SuppressLint("DiscouragedApi")
private fun generateNotificationIcon(context: Context, iconMode: Int): IconCompat {
- var currentVolume = getVolumePercentage(context)
+ val currentVolume = getVolumePercentage(context)
val currentVolumeLevel = getVolumeLevel(currentVolume)
if (iconMode == MODE_NUM) {
-
- val iconSize =
- resources.getDimensionPixelSize(android.R.dimen.notification_large_icon_width)
- val background = Bitmap.createBitmap(iconSize, iconSize, Bitmap.Config.ARGB_8888)
-
- val sharedPref = getSharedPreferences(SHARED_PREF, Context.MODE_PRIVATE)
- val textSizePref = sharedPref.getFloat(
- PREF_NOTIFY_TEXT_SIZE, 0.0f
- )
-
- val paint = Paint().apply {
- color = Color.WHITE
- typeface = context.resources.getFont(R.font.ndot_45)
- isFakeBoldText = true
- isAntiAlias = true
- }
-
- val canvas = Canvas(background)
- val canvasWidth = canvas.width
- val canvasHeight = canvas.height
-
- if (textSizePref == 0.0f) {
-
- paint.getTextBounds(99.toString(), 0, 99.toString().length, textBounds)
- val textWidth = textBounds.width()
- val textHeight = textBounds.height()
- val textSize = (canvasWidth / textWidth * textHeight).coerceAtMost(canvasHeight)
- paint.textSize = textSize.toFloat()
- with(sharedPref.edit()) {
- putFloat(PREF_NOTIFY_TEXT_SIZE, textSize.toFloat())
- }
- } else {
- paint.textSize = textSizePref
- }
-
- var textToDraw = currentVolume.toString()
- if (currentVolume == 100) {
- currentVolume--
- textToDraw = "!!"
- }
- paint.getTextBounds(
- currentVolume.toString(), 0,
- currentVolume.toString().length, textBounds)
- canvas.drawText(
- textToDraw,
- (canvasWidth - textBounds.width()) / 2f,
- (canvasHeight + textBounds.height()) / 2f,
- paint
- )
-
- return IconCompat.createWithBitmap(background)
+ val resourceId = resources.getIdentifier("num_$currentVolume", "drawable", context.packageName)
+ return IconCompat.createWithResource(this, resourceId)
}
else {
return IconCompat.createWithResource(context, volumeDrawableIds[currentVolumeLevel])
diff --git a/app/src/main/res/drawable/num_0.xml b/app/src/main/res/drawable/num_0.xml
new file mode 100644
index 0000000..c1cc469
--- /dev/null
+++ b/app/src/main/res/drawable/num_0.xml
@@ -0,0 +1,9 @@
+
+
+
diff --git a/app/src/main/res/drawable/num_1.xml b/app/src/main/res/drawable/num_1.xml
new file mode 100644
index 0000000..568bfc4
--- /dev/null
+++ b/app/src/main/res/drawable/num_1.xml
@@ -0,0 +1,9 @@
+
+
+
diff --git a/app/src/main/res/drawable/num_10.xml b/app/src/main/res/drawable/num_10.xml
new file mode 100644
index 0000000..99cd0bf
--- /dev/null
+++ b/app/src/main/res/drawable/num_10.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_100.xml b/app/src/main/res/drawable/num_100.xml
new file mode 100644
index 0000000..b04764e
--- /dev/null
+++ b/app/src/main/res/drawable/num_100.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_11.xml b/app/src/main/res/drawable/num_11.xml
new file mode 100644
index 0000000..7589687
--- /dev/null
+++ b/app/src/main/res/drawable/num_11.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_12.xml b/app/src/main/res/drawable/num_12.xml
new file mode 100644
index 0000000..024af26
--- /dev/null
+++ b/app/src/main/res/drawable/num_12.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_13.xml b/app/src/main/res/drawable/num_13.xml
new file mode 100644
index 0000000..718ef46
--- /dev/null
+++ b/app/src/main/res/drawable/num_13.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_14.xml b/app/src/main/res/drawable/num_14.xml
new file mode 100644
index 0000000..5785db8
--- /dev/null
+++ b/app/src/main/res/drawable/num_14.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_15.xml b/app/src/main/res/drawable/num_15.xml
new file mode 100644
index 0000000..35d54d4
--- /dev/null
+++ b/app/src/main/res/drawable/num_15.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_16.xml b/app/src/main/res/drawable/num_16.xml
new file mode 100644
index 0000000..0ff9b5c
--- /dev/null
+++ b/app/src/main/res/drawable/num_16.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_17.xml b/app/src/main/res/drawable/num_17.xml
new file mode 100644
index 0000000..5804ef3
--- /dev/null
+++ b/app/src/main/res/drawable/num_17.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_18.xml b/app/src/main/res/drawable/num_18.xml
new file mode 100644
index 0000000..981298b
--- /dev/null
+++ b/app/src/main/res/drawable/num_18.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_19.xml b/app/src/main/res/drawable/num_19.xml
new file mode 100644
index 0000000..57797c4
--- /dev/null
+++ b/app/src/main/res/drawable/num_19.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_2.xml b/app/src/main/res/drawable/num_2.xml
new file mode 100644
index 0000000..07ee7c2
--- /dev/null
+++ b/app/src/main/res/drawable/num_2.xml
@@ -0,0 +1,9 @@
+
+
+
diff --git a/app/src/main/res/drawable/num_20.xml b/app/src/main/res/drawable/num_20.xml
new file mode 100644
index 0000000..907131b
--- /dev/null
+++ b/app/src/main/res/drawable/num_20.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_21.xml b/app/src/main/res/drawable/num_21.xml
new file mode 100644
index 0000000..4cbdb34
--- /dev/null
+++ b/app/src/main/res/drawable/num_21.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_22.xml b/app/src/main/res/drawable/num_22.xml
new file mode 100644
index 0000000..dd60019
--- /dev/null
+++ b/app/src/main/res/drawable/num_22.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_23.xml b/app/src/main/res/drawable/num_23.xml
new file mode 100644
index 0000000..779b35d
--- /dev/null
+++ b/app/src/main/res/drawable/num_23.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_24.xml b/app/src/main/res/drawable/num_24.xml
new file mode 100644
index 0000000..d67271e
--- /dev/null
+++ b/app/src/main/res/drawable/num_24.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_25.xml b/app/src/main/res/drawable/num_25.xml
new file mode 100644
index 0000000..2113605
--- /dev/null
+++ b/app/src/main/res/drawable/num_25.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_26.xml b/app/src/main/res/drawable/num_26.xml
new file mode 100644
index 0000000..1598c7b
--- /dev/null
+++ b/app/src/main/res/drawable/num_26.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_27.xml b/app/src/main/res/drawable/num_27.xml
new file mode 100644
index 0000000..0f282f9
--- /dev/null
+++ b/app/src/main/res/drawable/num_27.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_28.xml b/app/src/main/res/drawable/num_28.xml
new file mode 100644
index 0000000..0ae58a3
--- /dev/null
+++ b/app/src/main/res/drawable/num_28.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_29.xml b/app/src/main/res/drawable/num_29.xml
new file mode 100644
index 0000000..df93f66
--- /dev/null
+++ b/app/src/main/res/drawable/num_29.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_3.xml b/app/src/main/res/drawable/num_3.xml
new file mode 100644
index 0000000..b4013bd
--- /dev/null
+++ b/app/src/main/res/drawable/num_3.xml
@@ -0,0 +1,9 @@
+
+
+
diff --git a/app/src/main/res/drawable/num_30.xml b/app/src/main/res/drawable/num_30.xml
new file mode 100644
index 0000000..727bdc4
--- /dev/null
+++ b/app/src/main/res/drawable/num_30.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_31.xml b/app/src/main/res/drawable/num_31.xml
new file mode 100644
index 0000000..e13640b
--- /dev/null
+++ b/app/src/main/res/drawable/num_31.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_32.xml b/app/src/main/res/drawable/num_32.xml
new file mode 100644
index 0000000..f6986a2
--- /dev/null
+++ b/app/src/main/res/drawable/num_32.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_33.xml b/app/src/main/res/drawable/num_33.xml
new file mode 100644
index 0000000..799ecba
--- /dev/null
+++ b/app/src/main/res/drawable/num_33.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_34.xml b/app/src/main/res/drawable/num_34.xml
new file mode 100644
index 0000000..67aa378
--- /dev/null
+++ b/app/src/main/res/drawable/num_34.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_35.xml b/app/src/main/res/drawable/num_35.xml
new file mode 100644
index 0000000..9281a06
--- /dev/null
+++ b/app/src/main/res/drawable/num_35.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_36.xml b/app/src/main/res/drawable/num_36.xml
new file mode 100644
index 0000000..a9b09cd
--- /dev/null
+++ b/app/src/main/res/drawable/num_36.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_37.xml b/app/src/main/res/drawable/num_37.xml
new file mode 100644
index 0000000..1d83b2a
--- /dev/null
+++ b/app/src/main/res/drawable/num_37.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_38.xml b/app/src/main/res/drawable/num_38.xml
new file mode 100644
index 0000000..bc71a35
--- /dev/null
+++ b/app/src/main/res/drawable/num_38.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_39.xml b/app/src/main/res/drawable/num_39.xml
new file mode 100644
index 0000000..ba8634a
--- /dev/null
+++ b/app/src/main/res/drawable/num_39.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_4.xml b/app/src/main/res/drawable/num_4.xml
new file mode 100644
index 0000000..12326cf
--- /dev/null
+++ b/app/src/main/res/drawable/num_4.xml
@@ -0,0 +1,9 @@
+
+
+
diff --git a/app/src/main/res/drawable/num_40.xml b/app/src/main/res/drawable/num_40.xml
new file mode 100644
index 0000000..e19dcb7
--- /dev/null
+++ b/app/src/main/res/drawable/num_40.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_41.xml b/app/src/main/res/drawable/num_41.xml
new file mode 100644
index 0000000..584e0e2
--- /dev/null
+++ b/app/src/main/res/drawable/num_41.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_42.xml b/app/src/main/res/drawable/num_42.xml
new file mode 100644
index 0000000..9c9d464
--- /dev/null
+++ b/app/src/main/res/drawable/num_42.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_43.xml b/app/src/main/res/drawable/num_43.xml
new file mode 100644
index 0000000..d001c1b
--- /dev/null
+++ b/app/src/main/res/drawable/num_43.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_44.xml b/app/src/main/res/drawable/num_44.xml
new file mode 100644
index 0000000..dcca73f
--- /dev/null
+++ b/app/src/main/res/drawable/num_44.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_45.xml b/app/src/main/res/drawable/num_45.xml
new file mode 100644
index 0000000..7993a3c
--- /dev/null
+++ b/app/src/main/res/drawable/num_45.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_46.xml b/app/src/main/res/drawable/num_46.xml
new file mode 100644
index 0000000..6c98964
--- /dev/null
+++ b/app/src/main/res/drawable/num_46.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_47.xml b/app/src/main/res/drawable/num_47.xml
new file mode 100644
index 0000000..95cb895
--- /dev/null
+++ b/app/src/main/res/drawable/num_47.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_48.xml b/app/src/main/res/drawable/num_48.xml
new file mode 100644
index 0000000..adcf68e
--- /dev/null
+++ b/app/src/main/res/drawable/num_48.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_49.xml b/app/src/main/res/drawable/num_49.xml
new file mode 100644
index 0000000..0e2251d
--- /dev/null
+++ b/app/src/main/res/drawable/num_49.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_5.xml b/app/src/main/res/drawable/num_5.xml
new file mode 100644
index 0000000..9d4948e
--- /dev/null
+++ b/app/src/main/res/drawable/num_5.xml
@@ -0,0 +1,9 @@
+
+
+
diff --git a/app/src/main/res/drawable/num_50.xml b/app/src/main/res/drawable/num_50.xml
new file mode 100644
index 0000000..5f4841d
--- /dev/null
+++ b/app/src/main/res/drawable/num_50.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_51.xml b/app/src/main/res/drawable/num_51.xml
new file mode 100644
index 0000000..53bc121
--- /dev/null
+++ b/app/src/main/res/drawable/num_51.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_52.xml b/app/src/main/res/drawable/num_52.xml
new file mode 100644
index 0000000..2ca5db9
--- /dev/null
+++ b/app/src/main/res/drawable/num_52.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_53.xml b/app/src/main/res/drawable/num_53.xml
new file mode 100644
index 0000000..f11d4d3
--- /dev/null
+++ b/app/src/main/res/drawable/num_53.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_54.xml b/app/src/main/res/drawable/num_54.xml
new file mode 100644
index 0000000..1862afa
--- /dev/null
+++ b/app/src/main/res/drawable/num_54.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_55.xml b/app/src/main/res/drawable/num_55.xml
new file mode 100644
index 0000000..3d612e5
--- /dev/null
+++ b/app/src/main/res/drawable/num_55.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_56.xml b/app/src/main/res/drawable/num_56.xml
new file mode 100644
index 0000000..901a86e
--- /dev/null
+++ b/app/src/main/res/drawable/num_56.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_57.xml b/app/src/main/res/drawable/num_57.xml
new file mode 100644
index 0000000..0d6509d
--- /dev/null
+++ b/app/src/main/res/drawable/num_57.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_58.xml b/app/src/main/res/drawable/num_58.xml
new file mode 100644
index 0000000..b802d45
--- /dev/null
+++ b/app/src/main/res/drawable/num_58.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_59.xml b/app/src/main/res/drawable/num_59.xml
new file mode 100644
index 0000000..119a22e
--- /dev/null
+++ b/app/src/main/res/drawable/num_59.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_6.xml b/app/src/main/res/drawable/num_6.xml
new file mode 100644
index 0000000..6ecf853
--- /dev/null
+++ b/app/src/main/res/drawable/num_6.xml
@@ -0,0 +1,9 @@
+
+
+
diff --git a/app/src/main/res/drawable/num_60.xml b/app/src/main/res/drawable/num_60.xml
new file mode 100644
index 0000000..6c43d47
--- /dev/null
+++ b/app/src/main/res/drawable/num_60.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_61.xml b/app/src/main/res/drawable/num_61.xml
new file mode 100644
index 0000000..c961f68
--- /dev/null
+++ b/app/src/main/res/drawable/num_61.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_62.xml b/app/src/main/res/drawable/num_62.xml
new file mode 100644
index 0000000..2b815a0
--- /dev/null
+++ b/app/src/main/res/drawable/num_62.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_63.xml b/app/src/main/res/drawable/num_63.xml
new file mode 100644
index 0000000..739c5eb
--- /dev/null
+++ b/app/src/main/res/drawable/num_63.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_64.xml b/app/src/main/res/drawable/num_64.xml
new file mode 100644
index 0000000..6ae8358
--- /dev/null
+++ b/app/src/main/res/drawable/num_64.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_65.xml b/app/src/main/res/drawable/num_65.xml
new file mode 100644
index 0000000..67ce18a
--- /dev/null
+++ b/app/src/main/res/drawable/num_65.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_66.xml b/app/src/main/res/drawable/num_66.xml
new file mode 100644
index 0000000..0413403
--- /dev/null
+++ b/app/src/main/res/drawable/num_66.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_67.xml b/app/src/main/res/drawable/num_67.xml
new file mode 100644
index 0000000..c7af6b9
--- /dev/null
+++ b/app/src/main/res/drawable/num_67.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_68.xml b/app/src/main/res/drawable/num_68.xml
new file mode 100644
index 0000000..bc1d242
--- /dev/null
+++ b/app/src/main/res/drawable/num_68.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_69.xml b/app/src/main/res/drawable/num_69.xml
new file mode 100644
index 0000000..51420b3
--- /dev/null
+++ b/app/src/main/res/drawable/num_69.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_7.xml b/app/src/main/res/drawable/num_7.xml
new file mode 100644
index 0000000..94bd7ac
--- /dev/null
+++ b/app/src/main/res/drawable/num_7.xml
@@ -0,0 +1,9 @@
+
+
+
diff --git a/app/src/main/res/drawable/num_70.xml b/app/src/main/res/drawable/num_70.xml
new file mode 100644
index 0000000..e52ab21
--- /dev/null
+++ b/app/src/main/res/drawable/num_70.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_71.xml b/app/src/main/res/drawable/num_71.xml
new file mode 100644
index 0000000..6095483
--- /dev/null
+++ b/app/src/main/res/drawable/num_71.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_72.xml b/app/src/main/res/drawable/num_72.xml
new file mode 100644
index 0000000..46a24c2
--- /dev/null
+++ b/app/src/main/res/drawable/num_72.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_73.xml b/app/src/main/res/drawable/num_73.xml
new file mode 100644
index 0000000..1d724a9
--- /dev/null
+++ b/app/src/main/res/drawable/num_73.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_74.xml b/app/src/main/res/drawable/num_74.xml
new file mode 100644
index 0000000..06542a4
--- /dev/null
+++ b/app/src/main/res/drawable/num_74.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_75.xml b/app/src/main/res/drawable/num_75.xml
new file mode 100644
index 0000000..b062d6f
--- /dev/null
+++ b/app/src/main/res/drawable/num_75.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_76.xml b/app/src/main/res/drawable/num_76.xml
new file mode 100644
index 0000000..9c26357
--- /dev/null
+++ b/app/src/main/res/drawable/num_76.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_77.xml b/app/src/main/res/drawable/num_77.xml
new file mode 100644
index 0000000..edd4c2d
--- /dev/null
+++ b/app/src/main/res/drawable/num_77.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_78.xml b/app/src/main/res/drawable/num_78.xml
new file mode 100644
index 0000000..2f84ddf
--- /dev/null
+++ b/app/src/main/res/drawable/num_78.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_79.xml b/app/src/main/res/drawable/num_79.xml
new file mode 100644
index 0000000..43452b2
--- /dev/null
+++ b/app/src/main/res/drawable/num_79.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_8.xml b/app/src/main/res/drawable/num_8.xml
new file mode 100644
index 0000000..d3b3570
--- /dev/null
+++ b/app/src/main/res/drawable/num_8.xml
@@ -0,0 +1,9 @@
+
+
+
diff --git a/app/src/main/res/drawable/num_80.xml b/app/src/main/res/drawable/num_80.xml
new file mode 100644
index 0000000..77e6828
--- /dev/null
+++ b/app/src/main/res/drawable/num_80.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_81.xml b/app/src/main/res/drawable/num_81.xml
new file mode 100644
index 0000000..6fc0a99
--- /dev/null
+++ b/app/src/main/res/drawable/num_81.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_82.xml b/app/src/main/res/drawable/num_82.xml
new file mode 100644
index 0000000..a1c7ab6
--- /dev/null
+++ b/app/src/main/res/drawable/num_82.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_83.xml b/app/src/main/res/drawable/num_83.xml
new file mode 100644
index 0000000..c38fbaa
--- /dev/null
+++ b/app/src/main/res/drawable/num_83.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_84.xml b/app/src/main/res/drawable/num_84.xml
new file mode 100644
index 0000000..05c8c7c
--- /dev/null
+++ b/app/src/main/res/drawable/num_84.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_85.xml b/app/src/main/res/drawable/num_85.xml
new file mode 100644
index 0000000..8b4321b
--- /dev/null
+++ b/app/src/main/res/drawable/num_85.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_86.xml b/app/src/main/res/drawable/num_86.xml
new file mode 100644
index 0000000..c454364
--- /dev/null
+++ b/app/src/main/res/drawable/num_86.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_87.xml b/app/src/main/res/drawable/num_87.xml
new file mode 100644
index 0000000..c6f2580
--- /dev/null
+++ b/app/src/main/res/drawable/num_87.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_88.xml b/app/src/main/res/drawable/num_88.xml
new file mode 100644
index 0000000..2768fd2
--- /dev/null
+++ b/app/src/main/res/drawable/num_88.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_89.xml b/app/src/main/res/drawable/num_89.xml
new file mode 100644
index 0000000..2846613
--- /dev/null
+++ b/app/src/main/res/drawable/num_89.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_9.xml b/app/src/main/res/drawable/num_9.xml
new file mode 100644
index 0000000..4907487
--- /dev/null
+++ b/app/src/main/res/drawable/num_9.xml
@@ -0,0 +1,9 @@
+
+
+
diff --git a/app/src/main/res/drawable/num_90.xml b/app/src/main/res/drawable/num_90.xml
new file mode 100644
index 0000000..0f7ad80
--- /dev/null
+++ b/app/src/main/res/drawable/num_90.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_91.xml b/app/src/main/res/drawable/num_91.xml
new file mode 100644
index 0000000..0161c9b
--- /dev/null
+++ b/app/src/main/res/drawable/num_91.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_92.xml b/app/src/main/res/drawable/num_92.xml
new file mode 100644
index 0000000..c4bc30d
--- /dev/null
+++ b/app/src/main/res/drawable/num_92.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_93.xml b/app/src/main/res/drawable/num_93.xml
new file mode 100644
index 0000000..976fd1d
--- /dev/null
+++ b/app/src/main/res/drawable/num_93.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_94.xml b/app/src/main/res/drawable/num_94.xml
new file mode 100644
index 0000000..ad844bf
--- /dev/null
+++ b/app/src/main/res/drawable/num_94.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_95.xml b/app/src/main/res/drawable/num_95.xml
new file mode 100644
index 0000000..9fc91de
--- /dev/null
+++ b/app/src/main/res/drawable/num_95.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_96.xml b/app/src/main/res/drawable/num_96.xml
new file mode 100644
index 0000000..a7b2c62
--- /dev/null
+++ b/app/src/main/res/drawable/num_96.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_97.xml b/app/src/main/res/drawable/num_97.xml
new file mode 100644
index 0000000..8bf82c5
--- /dev/null
+++ b/app/src/main/res/drawable/num_97.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_98.xml b/app/src/main/res/drawable/num_98.xml
new file mode 100644
index 0000000..ff9a936
--- /dev/null
+++ b/app/src/main/res/drawable/num_98.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/drawable/num_99.xml b/app/src/main/res/drawable/num_99.xml
new file mode 100644
index 0000000..85c02af
--- /dev/null
+++ b/app/src/main/res/drawable/num_99.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/app/src/main/res/font/ndot_45.ttf b/app/src/main/res/font/ndot_45.ttf
deleted file mode 100644
index 10dccb9..0000000
Binary files a/app/src/main/res/font/ndot_45.ttf and /dev/null differ
diff --git a/app/src/main/scripts/font2svg.py b/app/src/main/scripts/font2svg.py
new file mode 100644
index 0000000..d66ca71
--- /dev/null
+++ b/app/src/main/scripts/font2svg.py
@@ -0,0 +1,53 @@
+from fontTools.ttLib import TTFont
+from io import BytesIO
+import cairo
+from cairosvg import svg2png
+
+# 加载自定义字体
+font_path = "/home/maary/Documents/code/shell/ndot_45.ttf" # 替换为你的字体路径
+ttfont = TTFont(font_path)
+glyph_set = ttfont.getGlyphSet()
+
+# 设置输出 SVG 的尺寸
+width, height = 400, 400
+
+for num in range(0, 101):
+ # 创建 Cairo SVG 表面
+ svg_surface = cairo.SVGSurface(f"num_{num}.svg", width, height)
+ context = cairo.Context(svg_surface)
+
+ # 设置背景为白色
+ # context.set_source_rgb(1, 1, 1)
+ # context.paint()
+
+ # 从 TTFont 提取字体数据并转换为字符串
+ font_data = BytesIO()
+ ttfont.save(font_data)
+ font_data_str = font_data.getvalue()
+
+ # 设置字体
+ context.set_font_face(cairo.ToyFontFace("NDOT 45 (inspired by NOTHING)"))
+ # context.select_font_face("NDOT 45 (inspired by NOTHING)", cairo.FONT_SLANT_NORMAL, cairo.FONT_WEIGHT_BOLD)
+ context.set_font_size(250)
+ context.set_source_rgb(0, 0, 0)
+
+ if (num == 100):
+ num = "!!"
+ # 获取文本范围
+ text = str(num)
+ x_bearing, y_bearing, text_width, text_height, x_advance, y_advance = context.text_extents(text)
+
+ # 计算文本位置,使其居中
+ x = (width - text_width) / 2 - x_bearing
+ y = (height - text_height) / 2 - y_bearing
+
+ # 绘制文本
+ context.move_to(x, y)
+ context.show_text(text)
+
+ # 完成 SVG 并关闭
+ svg_surface.finish()
+
+ # 可选:将 SVG 转换为 PNG
+ # svg2png(url=f"output_{num}.svg", write_to=f"output_{num}.png")
+