Skip to content

Commit

Permalink
Format code inside subscript and superscript files
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarX committed Jun 19, 2024
1 parent 30a7c16 commit 5f3e0c8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
15 changes: 11 additions & 4 deletions rich-html-editor/src/main/res/drawable/ic_subscript.xml
Original file line number Diff line number Diff line change
@@ -1,5 +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="M800,800Q783,800 771.5,788.5Q760,777 760,760L760,720Q760,703 771.5,691.5Q783,680 800,680L880,680L880,640L780,640Q772,640 766,634Q760,628 760,620Q760,612 766,606Q772,600 780,600L880,600Q897,600 908.5,611.5Q920,623 920,640L920,680Q920,697 908.5,708.5Q897,720 880,720L800,720L800,760L900,760Q908,760 914,766Q920,772 920,780Q920,788 914,794Q908,800 900,800L800,800ZM317,720Q290,720 277.5,697Q265,674 279,651L420,429L292,228Q278,206 290.5,183Q303,160 329,160Q341,160 351,165.5Q361,171 367,181L478,360L482,360L592,181Q598,171 608.5,165.5Q619,160 630,160Q657,160 669,183Q681,206 667,229L539,429L681,651Q695,674 682,697Q669,720 643,720Q631,720 621,714.5Q611,709 605,699L482,503L478,503L355,699Q349,709 338.5,714.5Q328,720 317,720Z"/>

<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:tint="#000000"
android:viewportWidth="960"
android:viewportHeight="960">

<path
android:fillColor="@android:color/white"
android:pathData="M800,800Q783,800 771.5,788.5Q760,777 760,760L760,720Q760,703 771.5,691.5Q783,680 800,680L880,680L880,640L780,640Q772,640 766,634Q760,628 760,620Q760,612 766,606Q772,600 780,600L880,600Q897,600 908.5,611.5Q920,623 920,640L920,680Q920,697 908.5,708.5Q897,720 880,720L800,720L800,760L900,760Q908,760 914,766Q920,772 920,780Q920,788 914,794Q908,800 900,800L800,800ZM317,720Q290,720 277.5,697Q265,674 279,651L420,429L292,228Q278,206 290.5,183Q303,160 329,160Q341,160 351,165.5Q361,171 367,181L478,360L482,360L592,181Q598,171 608.5,165.5Q619,160 630,160Q657,160 669,183Q681,206 667,229L539,429L681,651Q695,674 682,697Q669,720 643,720Q631,720 621,714.5Q611,709 605,699L482,503L478,503L355,699Q349,709 338.5,714.5Q328,720 317,720Z" />

</vector>
15 changes: 11 additions & 4 deletions rich-html-editor/src/main/res/drawable/ic_superscript.xml
Original file line number Diff line number Diff line change
@@ -1,5 +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="M800,360Q783,360 771.5,348.5Q760,337 760,320L760,280Q760,263 771.5,251.5Q783,240 800,240L880,240L880,200L780,200Q772,200 766,194Q760,188 760,180Q760,172 766,166Q772,160 780,160L880,160Q897,160 908.5,171.5Q920,183 920,200L920,240Q920,257 908.5,268.5Q897,280 880,280L800,280L800,320L900,320Q908,320 914,326Q920,332 920,340Q920,348 914,354Q908,360 900,360L800,360ZM317,800Q290,800 277.5,777Q265,754 279,731L420,509L292,308Q278,286 290.5,263Q303,240 329,240Q341,240 351,245.5Q361,251 367,261L478,440L482,440L592,261Q598,251 608.5,245.5Q619,240 630,240Q657,240 669,263Q681,286 667,309L539,509L681,731Q695,754 682,777Q669,800 643,800Q631,800 621,794.5Q611,789 605,779L482,583L478,583L355,779Q349,789 338.5,794.5Q328,800 317,800Z"/>

<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:tint="#000000"
android:viewportWidth="960"
android:viewportHeight="960">

<path
android:fillColor="@android:color/white"
android:pathData="M800,360Q783,360 771.5,348.5Q760,337 760,320L760,280Q760,263 771.5,251.5Q783,240 800,240L880,240L880,200L780,200Q772,200 766,194Q760,188 760,180Q760,172 766,166Q772,160 780,160L880,160Q897,160 908.5,171.5Q920,183 920,200L920,240Q920,257 908.5,268.5Q897,280 880,280L800,280L800,320L900,320Q908,320 914,326Q920,332 920,340Q920,348 914,354Q908,360 900,360L800,360ZM317,800Q290,800 277.5,777Q265,754 279,731L420,509L292,308Q278,286 290.5,263Q303,240 329,240Q341,240 351,245.5Q361,251 367,261L478,440L482,440L592,261Q598,251 608.5,245.5Q619,240 630,240Q657,240 669,263Q681,286 667,309L539,509L681,731Q695,754 682,777Q669,800 643,800Q631,800 621,794.5Q611,789 605,779L482,583L478,583L355,779Q349,789 338.5,794.5Q328,800 317,800Z" />

</vector>

0 comments on commit 5f3e0c8

Please sign in to comment.