Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

Commit

Permalink
Add Zalgo mode icon
Browse files Browse the repository at this point in the history
See #216
  • Loading branch information
nightkr committed Aug 29, 2024
1 parent f8533eb commit c7b38bf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/src/main/java/se/nullable/flickboard/model/KeyM.kt
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,10 @@ sealed class Action {
data object ToggleZalgo : Action() {
override val isModifier: Boolean = true

override fun visual(modifier: ModifierState?): ActionVisual = when {
modifier?.zalgo ?: true -> ActionVisual.Label("ź̸̥͂a̶̝̲͊͠l̶̻͈͛g̶͖̋̾o̶̠̅")
else -> ActionVisual.None
}
override fun visual(modifier: ModifierState?): ActionVisual =
ActionVisual.Icon(R.drawable.outline_cell_merge_24)

override fun isActive(modifier: ModifierState?): Boolean = modifier?.zalgo ?: false
}

data object ToggleSelect : Action() {
Expand Down
12 changes: 12 additions & 0 deletions app/src/main/res/drawable/outline_cell_merge_24.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:height="24dp"
android:tint="#000000"
android:viewportHeight="960"
android:viewportWidth="960"
android:width="24dp">

<path
android:fillColor="@android:color/white"
android:pathData="M120,840L120,600L200,600L200,760L360,760L360,840L120,840ZM600,840L600,760L760,760L760,600L840,600L840,840L600,840ZM287,633L230,577L287,520L80,520L80,440L287,440L230,383L287,327L440,480L287,633ZM673,633L520,480L673,327L730,383L673,440L880,440L880,520L673,520L730,577L673,633ZM120,360L120,120L360,120L360,200L200,200L200,360L120,360ZM760,360L760,200L600,200L600,120L840,120L840,360L760,360Z" />

</vector>

0 comments on commit c7b38bf

Please sign in to comment.