mirror of https://github.com/M66B/FairEmail.git
parent
7d1ad17d35
commit
c0daddef8c
@ -0,0 +1,38 @@
|
|||||||
|
package eu.faircode.email;
|
||||||
|
|
||||||
|
/*
|
||||||
|
This file is part of FairEmail.
|
||||||
|
|
||||||
|
FairEmail is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
FairEmail is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with FairEmail. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Copyright 2018-2022 by Marcel Bokhorst (M66B)
|
||||||
|
*/
|
||||||
|
|
||||||
|
import android.graphics.Color;
|
||||||
|
import android.text.TextPaint;
|
||||||
|
import android.text.style.BackgroundColorSpan;
|
||||||
|
|
||||||
|
import androidx.annotation.NonNull;
|
||||||
|
|
||||||
|
public class MarkSpan extends BackgroundColorSpan {
|
||||||
|
public MarkSpan() {
|
||||||
|
super(Color.YELLOW);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void updateDrawState(@NonNull TextPaint textPaint) {
|
||||||
|
super.updateDrawState(textPaint);
|
||||||
|
textPaint.setColor(Color.BLACK);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportWidth="24"
|
||||||
|
android:viewportHeight="24"
|
||||||
|
android:tint="?attr/colorControlNormal">
|
||||||
|
<path
|
||||||
|
android:fillColor="@android:color/white"
|
||||||
|
android:pathData="M16.81,8.94l-3.75,-3.75L4,14.25V18h3.75L16.81,8.94zM6,16v-0.92l7.06,-7.06l0.92,0.92L6.92,16H6z"/>
|
||||||
|
<path
|
||||||
|
android:fillColor="@android:color/white"
|
||||||
|
android:pathData="M19.71,6.04c0.39,-0.39 0.39,-1.02 0,-1.41l-2.34,-2.34C17.17,2.09 16.92,2 16.66,2c-0.25,0 -0.51,0.1 -0.7,0.29l-1.83,1.83l3.75,3.75L19.71,6.04z"/>
|
||||||
|
<path
|
||||||
|
android:fillColor="@android:color/white"
|
||||||
|
android:pathData="M2,20h20v4h-20z"/>
|
||||||
|
</vector>
|
Loading…
Reference in new issue