Skip to content

Commit

Permalink
Replace above/below/under icons
Browse files Browse the repository at this point in the history
  • Loading branch information
nevenz committed Sep 6, 2022
1 parent b490b22 commit 6489247
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ class QuickBar(val context: Context, val inBook: Boolean) {

private val LEFT_IN_BOOK = listOf(
Button(R.id.quick_bar_delete, R.drawable.ic_delete),
Button(R.id.quick_bar_new_above, R.drawable.ic_north),
Button(R.id.quick_bar_new_under, R.drawable.ic_south_east),
Button(R.id.quick_bar_new_below, R.drawable.ic_south),
Button(R.id.quick_bar_new_above, R.drawable.cic_new_above),
Button(R.id.quick_bar_new_under, R.drawable.cic_new_under),
Button(R.id.quick_bar_new_below, R.drawable.cic_new_below),
Button(R.id.quick_bar_refile, R.drawable.ic_move_to_inbox)
)

Expand Down
17 changes: 17 additions & 0 deletions app/src/main/res/drawable-anydpi/cic_new_above.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"
android:tint="?colorControlNormal">
<path
android:pathData="m11,13 l0,-4 -4,0 0,-2L11,7l0,-4 2,0 0,4 4,0 0,2 -4,0 0,4 -2,0z"
android:fillColor="#ffffff"/>
<path
android:pathData="M12,19m-2,0a2,2 0,1 1,4 0a2,2 0,1 1,-4 0"
android:strokeLineJoin="miter"
android:strokeWidth="0.86764705"
android:fillColor="#ffffff"
android:strokeColor="#00000000"
android:strokeLineCap="butt"/>
</vector>
18 changes: 18 additions & 0 deletions app/src/main/res/drawable-anydpi/cic_new_below.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?colorControlNormal">
<path
android:pathData="m11,11 l0,4 -4,0 0,2 4,0 0,4 2,0 0,-4 4,0 0,-2 -4,0 0,-4 -2,0z"
android:fillColor="#ffffff"
android:strokeColor="#00000000"/>
<path
android:pathData="M12,5m-2,0a2,2 0,1 1,4 0a2,2 0,1 1,-4 0"
android:strokeLineJoin="miter"
android:strokeWidth="0.68243557"
android:fillColor="#ffffff"
android:strokeColor="#00000000"
android:strokeLineCap="butt"/>
</vector>
17 changes: 17 additions & 0 deletions app/src/main/res/drawable-anydpi/cic_new_under.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"
android:tint="?colorControlNormal">
<path
android:pathData="m14,10 l0,4 -4,0 0,2 4,0 0,4 2,0 0,-4 4,0 0,-2 -4,0 0,-4 -2,0z"
android:fillColor="#ffffff"/>
<path
android:pathData="M7,7m-2,0a2,2 0,1 1,4 0a2,2 0,1 1,-4 0"
android:strokeLineJoin="miter"
android:strokeWidth="0.80000001"
android:fillColor="#ffffff"
android:strokeColor="#00000000"
android:strokeLineCap="butt"/>
</vector>
6 changes: 3 additions & 3 deletions app/src/main/res/menu/book_cab_bottom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,17 @@
<item
android:id="@+id/new_note_above"
android:title="@string/new_above"
android:icon="@drawable/ic_north" />
android:icon="@drawable/cic_new_above" />

<item
android:id="@+id/new_note_under"
android:title="@string/new_under"
android:icon="@drawable/ic_south_east" />
android:icon="@drawable/cic_new_under" />

<item
android:id="@+id/new_note_below"
android:title="@string/new_below"
android:icon="@drawable/ic_south"/>
android:icon="@drawable/cic_new_below"/>
</menu>
</item>
</menu>
6 changes: 3 additions & 3 deletions app/src/main/res/menu/book_cab_top.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@
<menu>
<item
android:id="@+id/paste_above"
android:icon="@drawable/ic_north"
android:icon="@drawable/cic_new_above"
android:title="@string/heads_action_menu_item_paste_above"/>

<item
android:id="@+id/paste_under"
android:icon="@drawable/ic_south_east"
android:icon="@drawable/cic_new_under"
android:title="@string/heads_action_menu_item_paste_under"/>

<item
android:id="@+id/paste_below"
android:icon="@drawable/ic_south"
android:icon="@drawable/cic_new_below"
android:title="@string/heads_action_menu_item_paste_below"/>
</menu>
</item>
Expand Down

0 comments on commit 6489247

Please sign in to comment.