Create Brave QSB Provider (closes #2706)
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="218"
|
||||
android:viewportHeight="256">
|
||||
<path
|
||||
android:pathData="M210.1,61.28L216.08,46.58C216.08,46.58 208.47,38.41 199.22,29.15C189.97,19.89 170.39,25.34 170.39,25.34L148.08,0L108.91,0L69.75,0L47.44,25.34C47.44,25.34 27.86,19.89 18.61,29.15C9.36,38.41 1.75,46.58 1.75,46.58L7.73,61.28L0.11,83.07C0.11,83.07 22.51,168.02 25.14,178.39C30.31,198.82 33.84,206.71 48.53,217.06C63.22,227.41 89.87,245.39 94.23,248.11C98.58,250.83 104.02,255.47 108.91,255.47C113.81,255.47 119.25,250.83 123.6,248.11C127.95,245.39 154.61,227.41 169.3,217.06C183.99,206.71 187.52,198.82 192.69,178.39C195.31,168.02 217.71,83.07 217.71,83.07L210.1,61.28Z"
|
||||
android:strokeWidth="1"
|
||||
android:fillType="evenOdd"
|
||||
android:strokeColor="#00000000">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:startX="0.11"
|
||||
android:startY="129.54"
|
||||
android:endX="217.71"
|
||||
android:endY="129.54"
|
||||
android:type="linear">
|
||||
<item android:offset="0" android:color="#FFFF5500"/>
|
||||
<item android:offset="0.41" android:color="#FFFF5500"/>
|
||||
<item android:offset="0.58" android:color="#FFFF2000"/>
|
||||
<item android:offset="1" android:color="#FFFF2000"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:pathData="M164.13,41.4C164.13,41.4 192.82,76.13 192.82,83.55C192.82,90.97 189.21,92.93 185.58,96.79C181.95,100.64 166.11,117.49 164.07,119.66C162.04,121.82 157.8,125.1 160.29,131.01C162.78,136.91 166.46,144.43 162.37,152.05C158.28,159.67 151.28,164.75 146.79,163.91C142.3,163.07 131.76,157.56 127.89,155.04C124.01,152.52 111.73,142.37 111.73,138.49C111.73,134.61 124.42,127.64 126.77,126.06C129.12,124.48 139.82,118.35 140.04,115.94C140.26,113.54 140.17,112.83 137.01,106.89C133.86,100.95 128.17,93.01 129.12,87.74C130.06,82.46 139.23,79.72 145.78,77.24C152.32,74.77 164.93,70.09 166.5,69.37C168.07,68.64 167.67,67.95 162.9,67.49C158.13,67.04 144.6,65.24 138.5,66.94C132.4,68.65 121.97,71.24 121.13,72.61C120.28,73.99 119.54,74.03 120.41,78.77C121.27,83.51 125.74,106.25 126.17,110.29C126.6,114.32 127.45,116.99 123.1,117.99C118.75,118.99 111.43,120.72 108.91,120.72C106.4,120.72 99.08,118.99 94.73,117.99C90.38,116.99 91.22,114.32 91.66,110.29C92.09,106.25 96.56,83.51 97.42,78.77C98.29,74.03 97.54,73.99 96.7,72.61C95.86,71.24 85.43,68.65 79.33,66.94C73.23,65.24 59.7,67.04 54.93,67.49C50.16,67.95 49.75,68.64 51.33,69.37C52.9,70.09 65.5,74.77 72.05,77.24C78.59,79.72 87.77,82.46 88.71,87.74C89.66,93.01 83.97,100.95 80.81,106.89C77.66,112.83 77.57,113.54 77.79,115.94C78.01,118.35 88.71,124.48 91.06,126.06C93.4,127.64 106.1,134.61 106.1,138.49C106.1,142.37 93.82,152.52 89.94,155.04C86.07,157.56 75.53,163.07 71.04,163.91C66.55,164.75 59.55,159.67 55.46,152.05C51.37,144.43 55.05,136.91 57.54,131.01C60.03,125.1 55.79,121.82 53.76,119.66C51.72,117.49 35.88,100.64 32.25,96.79C28.62,92.93 25.01,90.97 25.01,83.55C25.01,76.13 53.7,41.4 53.7,41.4C53.7,41.4 77.91,46.03 81.17,46.03C84.43,46.03 91.51,43.31 98.03,41.13C104.56,38.95 108.91,38.94 108.91,38.94C108.91,38.94 113.27,38.95 119.79,41.13C126.32,43.31 133.39,46.03 136.66,46.03C139.92,46.03 164.13,41.4 164.13,41.4ZM142.62,174.23C144.4,175.34 143.32,177.44 141.7,178.58C140.08,179.73 118.34,196.58 116.23,198.45C114.12,200.31 111.02,203.39 108.91,203.39C106.81,203.39 103.71,200.31 101.6,198.45C99.49,196.58 77.75,179.73 76.13,178.58C74.51,177.44 73.43,175.34 75.2,174.23C76.98,173.12 82.54,170.31 90.2,166.33C97.87,162.36 107.42,158.99 108.91,158.99C110.41,158.99 119.96,162.36 127.63,166.33C135.29,170.31 140.85,173.12 142.62,174.23Z"
|
||||
android:strokeWidth="1"
|
||||
android:fillColor="#FFFFFF"
|
||||
android:fillType="evenOdd"
|
||||
android:strokeColor="#00000000"/>
|
||||
<path
|
||||
android:pathData="M170.38,25.34L148.08,0L108.91,0L69.74,0L47.44,25.34C47.44,25.34 27.85,19.89 18.61,29.15C18.61,29.15 44.72,26.79 53.69,41.4C53.69,41.4 77.9,46.03 81.17,46.03C84.43,46.03 91.5,43.31 98.03,41.13C104.56,38.95 108.91,38.94 108.91,38.94C108.91,38.94 113.26,38.95 119.79,41.13C126.32,43.31 133.39,46.03 136.65,46.03C139.92,46.03 164.13,41.4 164.13,41.4C173.1,26.79 199.21,29.15 199.21,29.15C189.97,19.89 170.38,25.34 170.38,25.34"
|
||||
android:strokeWidth="1"
|
||||
android:fillType="evenOdd"
|
||||
android:strokeColor="#00000000">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:startX="22.49"
|
||||
android:startY="23.34"
|
||||
android:endX="199.21"
|
||||
android:endY="23.34"
|
||||
android:type="linear">
|
||||
<item android:offset="0" android:color="#FFFF452A"/>
|
||||
<item android:offset="1" android:color="#FFFF2000"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
</vector>
|
||||
File diff suppressed because one or more lines are too long
@@ -271,6 +271,7 @@
|
||||
<string name="search_provider_presearch" translatable="false">Presearch</string>
|
||||
<string name="search_provider_bing" translatable="false">Bing</string>
|
||||
<string name="search_provider_sesame" translatable="false">Sesame</string>
|
||||
<string name="search_provider_brave" translatable="false">Brave</string>
|
||||
<string name="app_label">App</string>
|
||||
<string name="website_label">Website</string>
|
||||
<string name="qsb_search_provider_app_required">App required.</string>
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
package app.lawnchair.qsb.providers
|
||||
|
||||
import app.lawnchair.qsb.ThemingMethod
|
||||
import com.android.launcher3.R
|
||||
|
||||
object Brave : QsbSearchProvider(
|
||||
id = "brave",
|
||||
name = R.string.search_provider_brave,
|
||||
icon = R.drawable.ic_brave,
|
||||
themedIcon = R.drawable.ic_brave_tinted,
|
||||
themingMethod = ThemingMethod.TINT,
|
||||
packageName = "com.brave.browser",
|
||||
className = "org.chromium.chrome.browser.searchwidget.SearchWidgetProviderActivity",
|
||||
website = "https://search.brave.com/"
|
||||
)
|
||||
@@ -123,7 +123,8 @@ open class QsbSearchProvider(
|
||||
Presearch,
|
||||
Wikipedia,
|
||||
Bing,
|
||||
Sesame
|
||||
Sesame,
|
||||
Brave
|
||||
)
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user