mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-28 18:03:14 +08:00
Android QuickActions: Add images to the launcher
Add the svg images from FontAwesome. These look a bit ugly to be honest, and maybe we should change them for conventional pngs.
This commit is contained in:
4
android/app/src/main/res/drawable/ic_book.xml
Normal file
4
android/app/src/main/res/drawable/ic_book.xml
Normal file
@ -0,0 +1,4 @@
|
||||
<vector android:height="24dp" android:viewportHeight="512"
|
||||
android:viewportWidth="448" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#000000" android:pathData="M448,360L448,24c0,-13.3 -10.7,-24 -24,-24L96,0C43,0 0,43 0,96v320c0,53 43,96 96,96h328c13.3,0 24,-10.7 24,-24v-16c0,-7.5 -3.5,-14.3 -8.9,-18.7 -4.2,-15.4 -4.2,-59.3 0,-74.7 5.4,-4.3 8.9,-11.1 8.9,-18.6zM128,134c0,-3.3 2.7,-6 6,-6h212c3.3,0 6,2.7 6,6v20c0,3.3 -2.7,6 -6,6L134,160c-3.3,0 -6,-2.7 -6,-6v-20zM128,198c0,-3.3 2.7,-6 6,-6h212c3.3,0 6,2.7 6,6v20c0,3.3 -2.7,6 -6,6L134,224c-3.3,0 -6,-2.7 -6,-6v-20zM381.4,448L96,448c-17.7,0 -32,-14.3 -32,-32 0,-17.6 14.4,-32 32,-32h285.4c-1.9,17.1 -1.9,46.9 0,64z"/>
|
||||
</vector>
|
4
android/app/src/main/res/drawable/ic_markdown.xml
Normal file
4
android/app/src/main/res/drawable/ic_markdown.xml
Normal file
@ -0,0 +1,4 @@
|
||||
<vector android:height="24dp" android:viewportHeight="512"
|
||||
android:viewportWidth="640" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#000000" android:pathData="M593.8,59.1L46.2,59.1C20.7,59.1 0,79.8 0,105.2v301.5c0,25.5 20.7,46.2 46.2,46.2h547.7c25.5,0 46.2,-20.7 46.1,-46.1L640,105.2c0,-25.4 -20.7,-46.1 -46.2,-46.1zM338.5,360.6L277,360.6v-120l-61.5,76.9 -61.5,-76.9v120L92.3,360.6L92.3,151.4h61.5l61.5,76.9 61.5,-76.9h61.5v209.2zM473.8,363.7L381.5,256L443,256L443,151.4h61.5L504.5,256L566,256z"/>
|
||||
</vector>
|
4
android/app/src/main/res/drawable/ic_tasks.xml
Normal file
4
android/app/src/main/res/drawable/ic_tasks.xml
Normal file
@ -0,0 +1,4 @@
|
||||
<vector android:height="24dp" android:viewportHeight="512"
|
||||
android:viewportWidth="512" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#000000" android:pathData="M139.61,35.5a12,12 0,0 0,-17 0L58.93,98.81l-22.7,-22.12a12,12 0,0 0,-17 0L3.53,92.41a12,12 0,0 0,0 17l47.59,47.4a12.78,12.78 0,0 0,17.61 0l15.59,-15.62L156.52,69a12.09,12.09 0,0 0,0.09 -17zM139.61,194.69a12,12 0,0 0,-17 0l-63.68,63.72 -22.7,-22.1a12,12 0,0 0,-17 0L3.53,252a12,12 0,0 0,0 17L51,316.5a12.77,12.77 0,0 0,17.6 0l15.7,-15.69 72.2,-72.22a12,12 0,0 0,0.09 -16.9zM64,368c-26.49,0 -48.59,21.5 -48.59,48S37.53,464 64,464a48,48 0,0 0,0 -96zM496,384L208,384a16,16 0,0 0,-16 16v32a16,16 0,0 0,16 16h288a16,16 0,0 0,16 -16v-32a16,16 0,0 0,-16 -16zM496,64L208,64a16,16 0,0 0,-16 16v32a16,16 0,0 0,16 16h288a16,16 0,0 0,16 -16L512,80a16,16 0,0 0,-16 -16zM496,224L208,224a16,16 0,0 0,-16 16v32a16,16 0,0 0,16 16h288a16,16 0,0 0,16 -16v-32a16,16 0,0 0,-16 -16z"/>
|
||||
</vector>
|
Binary file not shown.
Before Width: | Height: | Size: 544 B |
@ -188,14 +188,17 @@ class _JournalAppState extends State<JournalApp> {
|
||||
ShortcutItem(
|
||||
type: 'Markdown',
|
||||
localizedTitle: tr('actions.newNote'),
|
||||
icon: "ic_markdown",
|
||||
),
|
||||
ShortcutItem(
|
||||
type: 'Checklist',
|
||||
localizedTitle: tr('actions.newChecklist'),
|
||||
icon: "ic_tasks",
|
||||
),
|
||||
ShortcutItem(
|
||||
type: 'Journal',
|
||||
localizedTitle: tr('actions.newJournal'),
|
||||
icon: "ic_book",
|
||||
),
|
||||
]);
|
||||
|
||||
|
Reference in New Issue
Block a user