Skip to content

Commit

Permalink
feat(youtube/settings): add reset button to edit preference dialog (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
LisoUseInAIKyrios committed May 3, 2023
1 parent 334948d commit ede765a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/settings/host/values/strings.xml
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit ede765a

Please sign in to comment.