优化ShortCuts显示 #108
This commit is contained in:
@@ -23,7 +23,7 @@ object ShortCuts {
|
||||
return ShortcutInfoCompat.Builder(context, "bookshelf")
|
||||
.setShortLabel(context.getString(R.string.bookshelf))
|
||||
.setLongLabel(context.getString(R.string.bookshelf))
|
||||
.setIcon(IconCompat.createWithResource(context, R.drawable.ic_shortcut_books))
|
||||
.setIcon(IconCompat.createWithResource(context, R.mipmap.ic_st_book))
|
||||
.setIntent(bookShelfIntent)
|
||||
.build()
|
||||
}
|
||||
@@ -34,7 +34,7 @@ object ShortCuts {
|
||||
return ShortcutInfoCompat.Builder(context, "lastRead")
|
||||
.setShortLabel(context.getString(R.string.last_read))
|
||||
.setLongLabel(context.getString(R.string.last_read))
|
||||
.setIcon(IconCompat.createWithResource(context, R.drawable.ic_shortcut_recent))
|
||||
.setIcon(IconCompat.createWithResource(context, R.mipmap.ic_st_rec))
|
||||
.setIntents(arrayOf(bookShelfIntent, readBookIntent))
|
||||
.build()
|
||||
}
|
||||
@@ -45,7 +45,7 @@ object ShortCuts {
|
||||
return ShortcutInfoCompat.Builder(context, "readAloud")
|
||||
.setShortLabel(context.getString(R.string.read_aloud))
|
||||
.setLongLabel(context.getString(R.string.read_aloud))
|
||||
.setIcon(IconCompat.createWithResource(context, R.drawable.ic_shortcut_read_aloud))
|
||||
.setIcon(IconCompat.createWithResource(context, R.mipmap.ic_st_aloud))
|
||||
.setIntent(readAloudIntent)
|
||||
.build()
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="30"
|
||||
android:viewportHeight="30">
|
||||
<group android:scaleX="0.42"
|
||||
android:scaleY="0.42"
|
||||
android:translateX="8.7"
|
||||
android:translateY="8.7">
|
||||
<path
|
||||
android:pathData="M11.25,26.25H6.25C5.563,26.25 4.974,26.005 4.484,25.516C3.995,25.026 3.75,24.438 3.75,23.75V15C3.75,13.438 4.047,11.974 4.641,10.609C5.234,9.245 6.036,8.057 7.047,7.047C8.057,6.036 9.245,5.234 10.609,4.641C11.974,4.047 13.438,3.75 15,3.75C16.563,3.75 18.026,4.047 19.391,4.641C20.755,5.234 21.943,6.036 22.953,7.047C23.963,8.057 24.766,9.245 25.359,10.609C25.953,11.974 26.25,13.438 26.25,15V23.75C26.25,24.438 26.005,25.026 25.516,25.516C25.026,26.005 24.438,26.25 23.75,26.25H18.75V16.25H23.75V15C23.75,12.563 22.901,10.495 21.203,8.797C19.505,7.099 17.438,6.25 15,6.25C12.563,6.25 10.495,7.099 8.797,8.797C7.099,10.495 6.25,12.563 6.25,15V16.25H11.25V26.25ZM8.75,18.75H6.25V23.75H8.75V18.75ZM21.25,18.75V23.75H23.75V18.75H21.25Z"
|
||||
android:fillColor="#2E2D3D"/>
|
||||
</group>
|
||||
</vector>
|
||||
@@ -0,0 +1,14 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="30"
|
||||
android:viewportHeight="30">
|
||||
<group android:scaleX="0.42"
|
||||
android:scaleY="0.42"
|
||||
android:translateX="8.7"
|
||||
android:translateY="8.7">
|
||||
<path
|
||||
android:pathData="M7,25.667C6.028,25.667 5.201,25.326 4.521,24.646C3.84,23.965 3.5,23.139 3.5,22.167V5.833C3.5,4.861 3.84,4.035 4.521,3.354C5.201,2.674 6.028,2.333 7,2.333H19.833V21H7C6.669,21 6.392,21.112 6.169,21.335C5.945,21.559 5.833,21.836 5.833,22.167C5.833,22.497 5.945,22.774 6.169,22.998C6.392,23.222 6.669,23.333 7,23.333H22.167V4.667H24.5V25.667H7ZM10.5,18.667H17.5V4.667H10.5V18.667ZM8.167,18.667V4.667H7C6.669,4.667 6.392,4.778 6.169,5.002C5.945,5.226 5.833,5.503 5.833,5.833V18.871C6.028,18.813 6.217,18.764 6.402,18.725C6.587,18.686 6.786,18.667 7,18.667H8.167Z"
|
||||
android:fillColor="#2E2D3D"/>
|
||||
</group>
|
||||
</vector>
|
||||
@@ -0,0 +1,14 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="30"
|
||||
android:viewportHeight="30">
|
||||
<group android:scaleX="0.42"
|
||||
android:scaleY="0.42"
|
||||
android:translateX="8.7"
|
||||
android:translateY="8.7">
|
||||
<path
|
||||
android:pathData="M15,26.25C12.125,26.25 9.62,25.297 7.484,23.391C5.349,21.484 4.125,19.104 3.813,16.25H6.375C6.667,18.417 7.63,20.208 9.266,21.625C10.901,23.042 12.813,23.75 15,23.75C17.438,23.75 19.505,22.901 21.203,21.203C22.901,19.505 23.75,17.438 23.75,15C23.75,12.563 22.901,10.495 21.203,8.797C19.505,7.099 17.438,6.25 15,6.25C13.563,6.25 12.219,6.583 10.969,7.25C9.719,7.917 8.667,8.833 7.813,10H11.25V12.5H3.75V5H6.25V7.938C7.313,6.604 8.609,5.573 10.141,4.844C11.672,4.115 13.292,3.75 15,3.75C16.563,3.75 18.026,4.047 19.391,4.641C20.755,5.234 21.943,6.036 22.953,7.047C23.963,8.057 24.766,9.245 25.359,10.609C25.953,11.974 26.25,13.438 26.25,15C26.25,16.563 25.953,18.026 25.359,19.391C24.766,20.755 23.963,21.943 22.953,22.953C21.943,23.963 20.755,24.766 19.391,25.359C18.026,25.953 16.563,26.25 15,26.25ZM18.5,20.25L13.75,15.5V8.75H16.25V14.5L20.25,18.5L18.5,20.25Z"
|
||||
android:fillColor="#2E2D3D"/>
|
||||
</group>
|
||||
</vector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@color/ic_st_aloud_background"/>
|
||||
<foreground android:drawable="@drawable/ic_st_aloud_foreground"/>
|
||||
</adaptive-icon>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@color/ic_st_aloud_background"/>
|
||||
<foreground android:drawable="@drawable/ic_st_book_foreground"/>
|
||||
</adaptive-icon>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@color/ic_st_aloud_background"/>
|
||||
<foreground android:drawable="@drawable/ic_st_rec_foreground"/>
|
||||
</adaptive-icon>
|
||||
@@ -2,6 +2,7 @@
|
||||
<resources>
|
||||
<color name="ic_launcher_background">#2E2D3D</color>
|
||||
<color name="ic_launcher_background_w">#F2F1F6</color>
|
||||
<color name="ic_st_aloud_background">#D7D7D7</color>
|
||||
|
||||
<!-- GR Theme-->
|
||||
<color name="gr_theme_primary">#4C662B</color>
|
||||
|
||||
Reference in New Issue
Block a user