1
mirror of https://github.com/revanced/revanced-patches synced 2024-11-19 03:57:27 +01:00

feat(youtube/settings): add reset button to edit preference dialog (#2047)

This commit is contained in:
LisoUseInAIKyrios 2023-05-03 11:50:35 +04:00 committed by GitHub
parent 334948d61e
commit ede765ae3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -23,7 +23,7 @@ internal class TextPreference(
val default: String? = null,
val summary: StringResource? = null
) : BasePreference(key, title) {
override val tag: String = "EditTextPreference"
override val tag: String = "app.revanced.integrations.settingsmenu.ResettableEditTextPreference"
override fun serialize(ownerDocument: Document, resourceCallback: ((IResource) -> Unit)?): Element {
return super.serialize(ownerDocument, resourceCallback).apply {

View File

@ -20,7 +20,7 @@ class ThemeResourcePatch : ResourcePatch {
"revanced_seekbar_color",
StringResource("revanced_seekbar_color_title", "Seekbar color"),
InputType.STRING,
"#ffff0000",
"#FF0000",
StringResource(
"revanced_seekbar_color_summary",
"The color of the seekbar for the dark theme."

View File

@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="revanced_settings_confirm_user_dialog_title">Do you wish to proceed?</string>
<string name="revanced_settings_reset">Reset</string>
</resources>