Add Mull to QSB providers (#4815)

Co-authored-by: Zongle Wang <wangzongler@gmail.com>
This commit is contained in:
GitGitro
2024-09-14 01:43:13 +00:00
committed by GitHub
parent feac7a5810
commit 4030308c0d
5 changed files with 132 additions and 0 deletions

View File

@@ -568,6 +568,7 @@
<string name="search_provider_yandex" translatable="false">Yandex</string>
<string name="search_provider_firefox" translatable="false">Firefox</string>
<string name="search_provider_iceraven" translatable="false">Iceraven</string>
<string name="search_provider_mull" translatable="false">Mull</string>
<string name="search_provider_sponsored_description">%1$s and Lawnchair have a revenue share agreement.\n\nSearching with %1$s helps support Lawnchair.</string>

View File

@@ -0,0 +1,25 @@
package app.lawnchair.qsb.providers
import android.content.Intent
import app.lawnchair.qsb.ThemingMethod
import com.android.launcher3.R
data object Mull : QsbSearchProvider(
id = "Mull",
name = R.string.search_provider_mull,
icon = R.drawable.ic_mull,
themedIcon = R.drawable.ic_mull_tinted,
themingMethod = ThemingMethod.TINT,
packageName = "us.spotco.fennec_dos",
action = "org.mozilla.fenix.OPEN_TAB",
className = "org.mozilla.fenix.IntentReceiverActivity",
website = "gitlab.com/divested-mobile/mull-fenix",
type = QsbSearchProviderType.APP,
supportVoiceIntent = true,
) {
override fun handleCreateVoiceIntent(): Intent =
Intent(action)
.addFlags(INTENT_FLAGS)
.setClassName(packageName, "org.chromium.chrome.browser.VoiceSearchActivity")
}

View File

@@ -136,6 +136,7 @@ sealed class QsbSearchProvider(
Firefox,
Iceraven,
Startpage,
Mull,
)
/**

59
res/drawable/ic_mull.xml Normal file
View File

@@ -0,0 +1,59 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:pathData="m71.12,25.5c0,0 1.73,-5.82 7.4,-8.81 5.67,-2.99 19.35,-2.99 21.4,-2.05 2.05,0.94 2.68,17.63 0,21.71 -2.68,4.09 -8.03,6.3 -12.28,6.3 -4.25,0 -17.63,-10.23 -17.63,-10.23z"
android:fillColor="#e91e63"/>
<path
android:pathData="m76.09,26.47c0,0 1.15,-3.86 4.91,-5.84 3.76,-1.99 12.84,-1.99 14.2,-1.36 1.36,0.62 1.78,11.69 0,14.41 -1.78,2.71 -5.32,4.18 -8.14,4.18 -2.82,0 -11.69,-6.79 -11.69,-6.79z"
android:fillColor="#424242"/>
<path
android:pathData="m36.33,25.5c0,0 -1.73,-5.82 -7.4,-8.81 -5.67,-2.99 -19.35,-2.99 -21.4,-2.05 -2.05,0.94 -2.68,17.63 0,21.71 2.68,4.09 8.03,6.3 12.28,6.3 4.25,0 17.63,-10.23 17.63,-10.23z"
android:fillColor="#e91e63"/>
<path
android:pathData="m31.36,26.47c0,0 -1.15,-3.86 -4.91,-5.84 -3.76,-1.99 -12.84,-1.99 -14.2,-1.36 -1.36,0.62 -1.78,11.69 0,14.41 1.78,2.71 5.32,4.18 8.14,4.18 2.82,0 11.69,-6.79 11.69,-6.79z"
android:fillColor="#424242"/>
<path
android:pathData="m28.32,25.85c0,0 3.25,0.03 5.89,0.77 0,0 -6.75,1.37 -12.02,4.85 0,0 2,0.11 4.64,0.53 0,0 -8.07,5.92 -14.37,14.92 21.23,4.12 25.12,26.8 25.12,26.8 0.87,-1.4 7.02,-5.61 7.02,-5.61 2.64,-30.47 -2.07,-43.39 -4.56,-47.92 -4.34,1.25 -8.58,3.1 -11.72,5.66zM80.62,31.99c2.64,-0.42 4.64,-0.53 4.64,-0.53 -5.27,-3.48 -12.02,-4.85 -12.02,-4.85 2.64,-0.74 5.89,-0.77 5.89,-0.77 -3.15,-2.56 -7.39,-4.41 -11.72,-5.66 -2.48,4.52 -7.19,17.44 -4.56,47.92 0,0 6.14,4.21 7.02,5.61 0,0 3.89,-22.68 25.12,-26.8 -6.29,-9 -14.37,-14.92 -14.37,-14.92z"
android:fillColor="#212121"/>
<path
android:pathData="m91.91,67.64c6.22,-0.42 10.55,2.85 10.55,2.85 -0.95,-9.81 -7.48,-12.97 -7.48,-12.97 4.22,0.42 6.54,3.17 6.54,3.17 -1.25,-5.21 -3.84,-10.02 -6.79,-14.16 0.09,0.13 0.19,0.26 0.28,0.39 -21.23,4.12 -25.12,26.8 -25.12,26.8C69.02,72.32 62.87,68.11 62.87,68.11 60.23,37.63 64.94,24.71 67.43,20.19 62.51,18.77 57.46,18.13 53.74,18.13c-4.12,0 -9.86,0.79 -15.26,2.54 0.52,-0.17 1.04,-0.33 1.57,-0.48 2.48,4.52 7.19,17.44 4.56,47.92 0,0 -6.14,4.21 -7.02,5.61 0,0 -3.89,-22.68 -25.12,-26.8 0.09,-0.14 0.19,-0.26 0.28,-0.39 -2.97,4.13 -5.57,8.94 -6.81,14.15 0,0 2.32,-2.74 6.54,-3.17 0,0 -6.54,3.17 -7.49,12.97 0,0 4.33,-3.27 10.55,-2.85 0,0 -6.64,0.63 -8.96,7.91 0,0 8.14,-5.23 19.78,-1.88 10.83,3.12 10.18,16.57 18.09,19.4 6.54,2.33 9.29,-0.84 9.29,-0.84 0,0 2.75,3.17 9.29,0.84 7.91,-2.82 7.25,-16.28 18.09,-19.4 11.63,-3.35 19.78,1.88 19.78,1.88C98.55,68.27 91.91,67.64 91.91,67.64Z"
android:fillColor="#e91e63"/>
<path
android:pathData="m53.73,74.28c-7.23,0 -10.58,3.19 -10.58,3.19 0,0 7.16,9.56 10.58,9.73 3.42,-0.17 10.58,-9.73 10.58,-9.73 0,0 -3.36,-3.19 -10.58,-3.19z"
android:fillColor="#212121"/>
<path
android:pathData="m53.73,75.88c6.21,0 9.63,1.19 10.58,1.58l0,-0.01c0,0 -3.36,-3.19 -10.58,-3.19 -7.23,0 -10.58,3.19 -10.58,3.19l0,0.01c0.96,-0.39 4.37,-1.58 10.59,-1.58z"
android:fillColor="#424242"/>
<path
android:pathData="m64.64,55.19a8.83,7.3 87.28,1 0,14.02 -4.08,8.83 7.3,87.28 1,0 -14.02,4.08z"
android:fillColor="#424242"/>
<path
android:pathData="m71.65,52.65m-4.62,0a4.62,4.62 0,1 1,9.23 0,4.62 4.62,0 1,1 -9.23,0"
android:fillColor="#332a24"/>
<path
android:pathData="m71.65,52.65m-2.97,0a2.97,2.97 0,1 1,5.93 0,2.97 2.97,0 1,1 -5.93,0"
android:fillColor="#4d4a47"/>
<path
android:pathData="m70.76,51.73m-1.19,0a1.19,1.19 0,1 1,2.39 0,1.19 1.19,0 1,1 -2.39,0"
android:fillColor="#ffffff"/>
<path
android:pathData="M42.81,55.19A7.3,8.83 55.96,1 0,28.79 51.1,7.3 8.83,55.96 1,0 42.81,55.19Z"
android:fillColor="#424242"/>
<path
android:pathData="m35.8,52.65m-4.62,0a4.62,4.62 0,1 1,9.23 0,4.62 4.62,0 1,1 -9.23,0"
android:fillColor="#332a24"/>
<path
android:pathData="m35.8,52.65m-2.97,0a2.97,2.97 0,1 1,5.93 0,2.97 2.97,0 1,1 -5.93,0"
android:fillColor="#4d4a47"/>
<path
android:pathData="m34.91,51.73m-1.19,0a1.19,1.19 0,1 1,2.39 0,1.19 1.19,0 1,1 -2.39,0"
android:fillColor="#ffffff"/>
<path
android:pathData="m91.51,67.64c6.22,-0.42 10.55,2.85 10.55,2.85 -0.95,-9.81 -7.48,-12.97 -7.48,-12.97 4.22,0.42 6.54,3.17 6.54,3.17 -1.21,-5.04 -3.69,-9.71 -6.52,-13.76 0,0 0.01,0 0.01,0 -0.09,-0.14 -0.19,-0.26 -0.28,-0.39 0,0 0,0 0,0 -1.11,-1.55 -2.26,-3.01 -3.41,-4.36 3.32,-0.85 6.68,-2.83 8.63,-5.8 2.68,-4.09 2.05,-20.77 0,-21.71 -2.05,-0.94 -15.73,-0.94 -21.4,2.05 -2.78,1.46 -4.6,3.61 -5.75,5.42C70.66,21.36 68.85,20.73 67.02,20.2 62.1,18.78 57.05,18.14 53.34,18.14l0,74.08c0,0 2.75,3.17 9.29,0.84 7.91,-2.82 7.25,-16.28 18.09,-19.4 11.63,-3.35 19.78,1.88 19.78,1.88C98.15,68.27 91.51,67.64 91.51,67.64Z"
android:strokeAlpha="0.1"
android:fillColor="#5c4337"
android:fillAlpha="0.1"/>
</vector>

View File

@@ -0,0 +1,46 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:pathData="m71.12,25.5c0,0 1.73,-5.82 7.4,-8.81 5.67,-2.99 19.35,-2.99 21.4,-2.05 2.05,0.94 2.68,17.63 0,21.71 -2.68,4.09 -8.03,6.3 -12.28,6.3 -4.25,0 -17.63,-10.23 -17.63,-10.23z"
android:strokeWidth="1.8"
android:fillColor="#000000"
android:strokeColor="#000000"/>
<path
android:pathData="m36.33,25.5c0,0 -1.73,-5.82 -7.4,-8.81 -5.67,-2.99 -19.35,-2.99 -21.4,-2.05 -2.05,0.94 -2.68,17.63 0,21.71 2.68,4.09 8.03,6.3 12.28,6.3 4.25,0 17.63,-10.23 17.63,-10.23z"
android:strokeWidth="1.8"
android:fillColor="#000000"
android:strokeColor="#000000"/>
<path
android:pathData="m28.32,25.85c0,0 3.25,0.03 5.89,0.77 0,0 -6.75,1.37 -12.02,4.85 0,0 2,0.11 4.64,0.53 0,0 -8.07,5.92 -14.37,14.92 21.23,4.12 25.12,26.8 25.12,26.8 0.87,-1.4 7.02,-5.61 7.02,-5.61 2.64,-30.47 -2.07,-43.39 -4.56,-47.92 -4.34,1.25 -8.58,3.1 -11.72,5.66zM80.62,31.99c2.64,-0.42 4.64,-0.53 4.64,-0.53 -5.27,-3.48 -12.02,-4.85 -12.02,-4.85 2.64,-0.74 5.89,-0.77 5.89,-0.77 -3.15,-2.56 -7.39,-4.41 -11.72,-5.66 -2.48,4.52 -7.19,17.44 -4.56,47.92 0,0 6.14,4.21 7.02,5.61 0,0 3.89,-22.68 25.12,-26.8 -6.29,-9 -14.37,-14.92 -14.37,-14.92z"
android:strokeWidth="1.8"
android:fillColor="#00000000"
android:strokeColor="#000000"/>
<path
android:pathData="M53.75,18.13C50.03,18.13 44.98,18.78 40.05,20.2C42.53,24.72 47.25,37.65 44.61,68.11C44.61,68.11 38.47,72.32 37.59,73.72C37.59,73.72 33.71,51.05 12.49,46.92C9.64,50.97 7.16,55.64 5.95,60.68C5.95,60.68 8.27,57.93 12.49,57.51C12.49,57.51 5.95,60.68 5,70.48C5,70.48 9.32,67.21 15.55,67.63C15.55,67.63 8.9,68.26 6.58,75.54C6.58,75.54 14.73,70.31 26.36,73.66C37.18,76.78 36.53,90.23 44.45,93.06C50.98,95.39 53.74,92.21 53.74,92.21C53.74,92.21 56.49,95.39 63.03,93.06C70.94,90.24 70.28,76.78 81.11,73.66C92.75,70.31 100.89,75.54 100.89,75.54C98.56,68.27 91.91,67.64 91.91,67.64C98.13,67.22 102.46,70.49 102.46,70.49C101.51,60.68 94.97,57.52 94.97,57.52C99.19,57.94 101.51,60.68 101.51,60.68C100.3,55.64 97.83,50.97 94.99,46.92C73.78,51.06 69.89,73.72 69.89,73.72C69.02,72.32 62.88,68.11 62.88,68.11C60.23,37.63 64.94,24.71 67.43,20.19C62.51,18.77 57.46,18.13 53.75,18.13zM94.99,46.92C95,46.92 95,46.93 95.01,46.92C94.91,46.8 94.81,46.66 94.72,46.53C94.81,46.66 94.9,46.79 94.99,46.92zM12.49,46.92C12.58,46.79 12.67,46.66 12.76,46.53C12.67,46.66 12.58,46.79 12.48,46.92L12.49,46.92zM40.05,20.2L40.05,20.19C39.52,20.34 39,20.5 38.48,20.67C39,20.5 39.53,20.35 40.05,20.2zM53.72,74.27C55.07,74.27 56.3,74.38 57.38,74.57C59.84,74.98 61.62,75.74 62.75,76.39C62.79,76.4 62.83,76.43 62.86,76.45C62.86,76.45 62.87,76.45 62.87,76.45C63.03,76.54 63.18,76.64 63.31,76.72C63.36,76.75 63.42,76.79 63.47,76.83C63.54,76.87 63.61,76.92 63.67,76.96C63.67,76.96 63.68,76.96 63.68,76.96C63.71,76.98 63.73,77 63.76,77.03C64.03,77.22 64.17,77.34 64.23,77.4C64.25,77.41 64.3,77.46 64.3,77.46C64.3,77.46 64.31,77.46 64.31,77.46C64.31,77.46 57.15,87.02 53.73,87.19C50.3,87.02 43.15,77.46 43.15,77.46C43.15,77.46 43.15,77.45 43.15,77.45C43.17,77.43 43.37,77.24 43.78,76.96C43.99,76.81 44.26,76.63 44.59,76.45C45.72,75.79 47.53,74.99 50.06,74.57C50.07,74.57 50.07,74.57 50.07,74.57C51.16,74.39 52.37,74.27 53.72,74.27z"
android:strokeWidth="1.8"
android:fillColor="#000000"
android:strokeColor="#000000"/>
<path
android:pathData="m64.64,55.19a8.83,7.3 87.28,1 0,14.02 -4.08,8.83 7.3,87.28 1,0 -14.02,4.08z"
android:strokeWidth="1.8"
android:fillColor="#00000000"
android:strokeColor="#000000"/>
<path
android:pathData="M71.31,48.05A4.62,4.62 0,0 0,67.03 52.65A4.62,4.62 0,0 0,76.27 52.65A4.62,4.62 0,0 0,71.31 48.05zM70.67,50.54A1.19,1.19 0,0 1,71.96 51.73A1.2,1.2 0,0 1,69.57 51.73A1.19,1.19 0,0 1,70.67 50.54z"
android:strokeWidth="1.8"
android:fillColor="#000000"
android:strokeColor="#00000000"/>
<path
android:pathData="M42.81,55.19A7.3,8.83 55.96,1 0,28.79 51.1,7.3 8.83,55.96 1,0 42.81,55.19Z"
android:strokeWidth="1.8"
android:fillColor="#00000000"
android:strokeColor="#000000"/>
<path
android:pathData="M35.46,48.05A4.62,4.62 0,0 0,31.19 52.65A4.62,4.62 0,0 0,40.42 52.65A4.62,4.62 0,0 0,35.46 48.05zM34.82,50.54A1.19,1.19 0,0 1,36.11 51.73A1.2,1.2 0,1 1,33.71 51.73A1.19,1.19 0,0 1,34.82 50.54z"
android:strokeWidth="1.8"
android:fillColor="#000000"
android:strokeColor="#00000000"/>
</vector>