Skip to content

Commit

Permalink
themes: fix alert dialog colors
Browse files Browse the repository at this point in the history
In night mode the input text and buttons
had the color of the background.
  • Loading branch information
mwarning committed Sep 15, 2024
1 parent a5e81ca commit d164a51
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 21 deletions.
2 changes: 1 addition & 1 deletion app/src/main/kotlin/d/d/meshenger/QRScanActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ import com.journeyapps.barcodescanner.DefaultDecoderFactory
import com.google.zxing.ResultPoint
import com.google.zxing.BarcodeFormat
import android.content.ComponentName
import android.app.AlertDialog
import android.app.Dialog
import android.os.IBinder
import android.view.View
import android.widget.Button
import androidx.activity.result.contract.ActivityResultContracts
import androidx.appcompat.app.AlertDialog
import org.json.JSONException

class QRScanActivity : BaseActivity(), BarcodeCallback, ServiceConnection {
Expand Down
13 changes: 0 additions & 13 deletions app/src/main/res/values-night/themes.xml

This file was deleted.

4 changes: 0 additions & 4 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@
<item name="android:textSize">@dimen/headline_text_size</item>
</style>

<style name="AlertDialogTheme" parent="Theme.AppCompat.Light.Dialog.Alert">
<item name="android:textColor">@android:color/black</item>
</style>

<style name="MySpinner" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="android:dividerHeight">2dp</item>
<item name="android:divider">#7C7B7B</item>
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<item name="android:dropDownListViewStyle">@style/MySpinner</item>

<item name="android:textColor">@color/black</item>
<item name="android:textColorPrimary">@color/black</item>
</style>

<style name="AppTheme.FireRed" parent="AppThemeBase">
Expand Down Expand Up @@ -85,4 +82,7 @@
<item name="tabSelectedTextColor">@color/black</item>
</style>

<style name="AlertDialogTheme" parent="Theme.AppCompat.DayNight.Dialog.Alert">
<!-- Nothing to do for now -->
</style>
</resources>

0 comments on commit d164a51

Please sign in to comment.