mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-02 07:34:31 +02:00
feat(YouTube/Settings): change cursor color dynamically in searchbar (#61)
* feat(YouTube/Searchbar): change cursor color dynamically * chore: integrate `copyResources` --------- Co-authored-by: inotia00 <108592928+inotia00@users.noreply.github.com>
This commit is contained in:
parent
2df3a7f2da
commit
2a07a98b59
@ -149,6 +149,10 @@ object SettingsPatch : BaseResourcePatch(
|
||||
}
|
||||
|
||||
arrayOf(
|
||||
ResourceGroup(
|
||||
"drawable",
|
||||
"revanced_cursor.xml",
|
||||
),
|
||||
ResourceGroup(
|
||||
"layout",
|
||||
"revanced_settings_preferences_category.xml",
|
||||
|
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle"
|
||||
android:id="@+id/revanced_cursor">
|
||||
<solid android:color="?ytTextPrimary" />
|
||||
<size android:width="1dp" />
|
||||
</shape>
|
@ -30,4 +30,7 @@
|
||||
<item name="android:windowIsTranslucent">true</item>
|
||||
<item name="android:background">@android:color/transparent</item>
|
||||
</style>
|
||||
<style name="revanced_searchbar_cursor">
|
||||
<item name="android:textCursorDrawable">@drawable/revanced_cursor</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
@ -25,7 +25,7 @@
|
||||
app:title="@string/revanced_extended_settings_title" />
|
||||
</FrameLayout>
|
||||
|
||||
<SearchView
|
||||
<android.widget.SearchView
|
||||
android:id="@+id/search_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@ -33,6 +33,7 @@
|
||||
android:searchIcon="@null"
|
||||
android:queryBackground="@null"
|
||||
android:layout_margin="5dp"
|
||||
android:theme="@style/revanced_searchbar_cursor"
|
||||
android:padding="5dp" />
|
||||
|
||||
<FrameLayout
|
||||
|
Loading…
x
Reference in New Issue
Block a user