Skip to content

Bug fix/settings screen tor button UI fix for dark mode #680

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 11, 2025

Conversation

Elelan
Copy link

@Elelan Elelan commented Jun 11, 2025

No description provided.

@Copilot Copilot AI review requested due to automatic review settings June 11, 2025 16:46
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates build tooling versions, bumps the app version code, and refines the settings screen UI for the Tor button to improve dark mode support.

  • Bump Gradle wrapper, Android Gradle Plugin, Kotlin, and KSP versions
  • Increment app versionCode to 30008
  • Adjust preference XML and layout XML to customize the Tor switch and button styling

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
gradle/wrapper/gradle-wrapper.properties Updated Gradle distribution URL to 8.14.2
gradle/libs.versions.toml Bumped AGP to 8.10.1, Kotlin to 2.1.21, and KSP to 2.1.21-2.0.1
app/src/main/res/xml/prefs_general.xml Refined SwitchPreferenceCompat and related preferences styling
app/src/main/res/layout/prefs_open_orbot.xml Added margins, tints, and xmlns:app for the Tor button layout
app/build.gradle.kts Incremented Android app versionCode

@@ -95,35 +95,40 @@
android:title="Encrypt">

<SwitchPreferenceCompat
android:defaultValue="false"
Copy link
Preview

Copilot AI Jun 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SwitchPreferenceCompat should use app:defaultValue instead of android:defaultValue to ensure the support preference framework recognizes the default value.

Suggested change
android:defaultValue="false"
app:defaultValue="false"

Copilot uses AI. Check for mistakes.

@@ -95,35 +95,40 @@
android:title="Encrypt">

<SwitchPreferenceCompat
android:defaultValue="false"
android:icon="@null"
Copy link
Preview

Copilot AI Jun 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Duplicate null icon declarations exist (android:icon and app:icon). Remove one (preferably android:icon) for consistency with PreferenceCompat attributes.

Suggested change
android:icon="@null"

Copilot uses AI. Check for mistakes.

android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/activity_vertical_margin"
android:backgroundTint="@color/colorTertiary"
Copy link
Preview

Copilot AI Jun 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] You have both android:backgroundTint and app:backgroundTint on the Button. Choose one namespace to avoid duplication and potential styling conflicts.

Suggested change
android:backgroundTint="@color/colorTertiary"

Copilot uses AI. Check for mistakes.

@Elelan Elelan merged commit a587b13 into next Jun 11, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant