Skip to content
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

Added dialog buttons for all dialogs (#44) #46

Closed

Conversation

batyshkaLenin
Copy link

@batyshkaLenin batyshkaLenin commented Aug 10, 2023

There were no buttons in the dialog boxes, I fixed that. Causes #44

@@ -127,7 +127,7 @@ class DnsActivity : AppCompatActivity() {
view.findViewById<ImageButton>(R.id.deletePeerButton).tag = i

view.findViewById<ImageButton>(R.id.deletePeerButton).setOnClickListener { button ->
val builder: AlertDialog.Builder = AlertDialog.Builder(this)
val builder: AlertDialog.Builder = AlertDialog.Builder(ContextThemeWrapper(this, R.style.Theme_MaterialComponents_DayNight_Dialog))
Copy link

Choose a reason for hiding this comment

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

I don't think that this solution is optimal. The core problem is that colorPrimary in themes.xml is set to white. Buttons are already exist, but their text color is white.

I think the best solution is to change primary color in theme.

@Revertron
Copy link
Collaborator

@neilalexander Can you approve this? LGTM.

@Revertron
Copy link
Collaborator

Superseded by #50

@Revertron Revertron closed this Oct 29, 2023
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.

3 participants