added a separate brave image for light theme

This commit is contained in:
X1nto 2021-02-15 19:21:26 +04:00
parent 0cff9f51b5
commit 0c2b9805e4
5 changed files with 12 additions and 6 deletions

View File

@ -9,6 +9,8 @@ import com.vanced.manager.R
import com.vanced.manager.databinding.ViewSponsorBinding
import com.vanced.manager.model.SponsorModel
import com.vanced.manager.ui.viewmodels.HomeViewModel
import com.vanced.manager.utils.defPrefs
import com.vanced.manager.utils.managerTheme
class SponsorAdapter(
private val context: Context,
@ -16,7 +18,7 @@ class SponsorAdapter(
) : RecyclerView.Adapter<SponsorAdapter.LinkViewHolder>() {
private val brave = SponsorModel(
AppCompatResources.getDrawable(context, R.drawable.ic_brave),
if (context.defPrefs.managerTheme == "Light") AppCompatResources.getDrawable(context, R.drawable.ic_brave_light) else AppCompatResources.getDrawable(context, R.drawable.ic_brave),
"Brave",
BRAVE
)

View File

@ -7,10 +7,10 @@
android:strokeWidth="1"
android:pathData="M16.7,0.5A36.932,36.932 0,0 0,0.5 4.292c0,5.689 -0.057,19.767 16.2,29.42 16.261,-9.653 16.2,-23.789 16.2,-29.42A36.932,36.932 0,0 0,16.7 0.5Z"
android:fillColor="#00000000"
android:strokeColor="#000000"
android:strokeColor="?colorLinkImage"
android:fillType="evenOdd"/>
<path
android:pathData="M16.13,22.678l9.826,-13.216a1.223,1.223 0,0 0,-1.724 0.172h0l-8.159,8.5 -3.1,-3.735c-1.494,-1.724 -3.448,-0.4 -3.907,-0.057L16.13,22.678"
android:fillColor="#000000"
android:fillColor="?colorLinkImage"
android:fillType="evenOdd"/>
</vector>

View File

@ -7,8 +7,8 @@
android:strokeWidth="1"
android:pathData="M36.796,14.32l-1.329,-3.587 0.93,-2.059a0.707,0.707 0,0 0,-0.133 -0.8L33.807,5.352a4.063,4.063 0,0 0,-4.185 -1l-0.664,0.266L25.171,0.502l-6.51,0.066L12.216,0.635 8.43,4.754l-0.664,-0.266a3.933,3.933 0,0 0,-4.185 1L1.055,8.009A0.637,0.637 0,0 0,0.924 8.602l0.93,2.126L0.524,14.32l4.717,17.8a7.7,7.7 0,0 0,2.857 4.185l9.3,6.311a2.1,2.1 0,0 0,2.591 0l9.3,-6.311a7.162,7.162 0,0 0,2.857 -4.185l3.853,-14.615Z"
android:fillColor="#00000000"
android:strokeColor="#000000"/>
android:strokeColor="?colorLinkImage"/>
<path
android:pathData="M19.723,26.942a3.239,3.239 0,0 0,-0.731 -0.266h-0.465a2.38,2.38 0,0 0,-0.731 0.266l-1.129,0.465 -1.329,0.6L13.209,29.135a0.441,0.441 0,0 0,-0.266 0.332,0.473 0.473,0 0,0 0.2,0.4l1.86,1.262c0.4,0.266 0.8,0.6 1.129,0.864l0.531,0.465 1.063,0.93 0.465,0.465a0.807,0.807 0,0 0,1.063 0l2.126,-1.86 1.129,-0.864 1.86,-1.329a0.418,0.418 0,0 0,0.2 -0.531c-0.066,-0.133 -0.133,-0.2 -0.266,-0.2L22.181,28.004l-1.329,-0.6ZM32.744,15.117l0.066,-0.2a2.491,2.491 0,0 0,-0.066 -0.731,7.572 7.572,0 0,0 -0.664,-1.262l-1.2,-1.727 -0.864,-1.129 -1.594,-1.993a3.8,3.8 0,0 0,-0.465 -0.531h0l-0.731,0.133L23.709,8.341a5.815,5.815 0,0 1,-1.063 -0.133l-1.927,-0.6 -1.4,-0.531a3.612,3.612 0,0 0,-1.2 0l-1.4,0.4 -1.927,0.6a1.894,1.894 0,0 1,-1.063 0.133l-3.521,-0.664 -0.731,-0.133h0a3.327,3.327 0,0 0,-0.465 0.531l-1.594,1.993c-0.266,0.4 -0.6,0.731 -0.864,1.129l-1.2,1.86 -0.531,0.93A2.926,2.926 0,0 0,4.709 14.918l0.066,0.2a0.507,0.507 0,0 0,0.133 0.332l0.93,1.063 4.185,4.451a1.288,1.288 0,0 1,0.2 1.2l-0.731,1.661a1.831,1.831 0,0 0,0 1.329l0.133,0.4a3.193,3.193 0,0 0,1.129 1.528l0.664,0.531a1.116,1.116 0,0 0,1.2 0.133l2.325,-1.129a6.239,6.239 0,0 0,1.2 -0.8l1.86,-1.661a0.82,0.82 0,0 0,0.266 -0.531,0.754 0.754,0 0,0 -0.2,-0.531l-4.185,-2.857a0.833,0.833 0,0 1,-0.266 -1.063l1.661,-3.056a1.5,1.5 0,0 0,0.066 -1.2,1.959 1.959,0 0,0 -0.93,-0.864l-5.115,-1.927c-0.4,-0.133 -0.332,-0.332 0.066,-0.332l2.989,-0.332a4.974,4.974 0,0 1,1.4 0.133l2.591,0.731a0.777,0.777 0,0 1,0.531 0.864l-1,5.58a4.386,4.386 0,0 0,-0.066 0.93,1.252 1.252,0 0,0 0.8,0.4l1.594,0.332a4.908,4.908 0,0 0,1.4 0l1.462,-0.332a1.252,1.252 0,0 0,0.8 -0.4,2.133 2.133,0 0,0 -0.066,-0.93L20.719,13.124a0.762,0.762 0,0 1,0.531 -0.864l2.591,-0.731a4.974,4.974 0,0 1,1.4 -0.133l2.989,0.266c0.4,0.066 0.4,0.2 0.066,0.332l-5.115,1.927a1.687,1.687 0,0 0,-0.93 0.864,1.487 1.487,0 0,0 0.066,1.2l1.661,3.056A0.851,0.851 0,0 1,23.709 20.104l-4.185,2.857a0.807,0.807 0,0 0,0 1.063h0l1.86,1.661a4.7,4.7 0,0 0,1.2 0.8L24.909,27.604a1.271,1.271 0,0 0,1.2 -0.133l0.664,-0.531a3.685,3.685 0,0 0,1.129 -1.528l0.066,-0.266a2.261,2.261 0,0 0,0 -1.329l-0.664,-1.594a1.288,1.288 0,0 1,0.2 -1.2l4.185,-4.451 0.93,-1.063a0.712,0.712 0,0 1,0.133 -0.4Z"
android:fillColor="#000000"/>
android:fillColor="?colorLinkImage"/>
</vector>

View File

@ -0,0 +1,5 @@
<vector android:height="41dp" android:viewportHeight="35"
android:viewportWidth="35" android:width="41dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="?colorLinkImage" android:pathData="M30.8107,11.9c0,0 -2.8,10.6 -3.1,11.9c-0.7,2.5 -1.1,3.5 -2.9,4.8c-1.8,1.3 -5.1,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2c-0.6,-0.1 -2.3,-0.3 -3,-0.1c-0.8,0.2 -2,0.5 -2.1,0.7s-0.2,0.2 -0.1,0.8c0.1,0.6 0.7,3.4 0.7,4c0.1,0.5 0.2,0.8 -0.4,1c-0.5,0.1 -1.4,0.3 -1.7,0.3s-1.2,-0.2 -1.7,-0.3c-0.5,-0.1 -0.4,-0.5 -0.4,-1c0.1,-0.5 0.6,-3.4 0.7,-4c0.1,-0.6 0,-0.6 -0.1,-0.8s-1.4,-0.5 -2.1,-0.7c-0.8,-0.2 -2.4,0 -3,0.1s-0.6,0.1 -0.4,0.2c0.2,0.1 1.7,0.7 2.6,1c0.8,0.3 1.9,0.7 2.1,1.3c0.1,0.7 -0.6,1.7 -1,2.4S13.9107,15.7 13.9107,16c0,0.3 1.3,1.1 1.6,1.3c0.3,0.2 1.9,1.1 1.9,1.6s-1.5,1.8 -2,2.1c-0.5,0.3 -1.8,1 -2.3,1.1c-0.6,0.1 -1.4,-0.5 -1.9,-1.5S11.1107,18.7 11.5107,18c0.3,-0.7 -0.2,-1.2 -0.5,-1.4c-0.3,-0.3 -2.2,-2.4 -2.7,-2.9C7.9107,13.2 7.4107,13 7.4107,12c0,-0.9 3.5,-5.3 3.5,-5.3s3,0.6 3.4,0.6s1.3,-0.3 2.1,-0.6C16.9107,6.4 17.4107,6.4 17.5107,6.4L17.5107,6.4z"/>
</vector>

View File

@ -28,7 +28,6 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginBottom="8dp"
app:tint="?colorLinkImage"
tools:src="@drawable/ic_brave" />
<TextView