Remove intro text from settings, fix button text color in dark mode
- Removed 'Sluit de ESP aan op USB en kies een actie.' from settings screen - Button text now black on light gray background (readable in dark mode)
This commit is contained in:
parent
4c022b8259
commit
df5154732c
2 changed files with 2 additions and 7 deletions
|
|
@ -163,6 +163,7 @@ class MainActivity : AppCompatActivity(), BleCallbacks {
|
||||||
val b = ContextCompat.getColor(this, R.color.colorAccent)
|
val b = ContextCompat.getColor(this, R.color.colorAccent)
|
||||||
relay1Button.backgroundTintList = null
|
relay1Button.backgroundTintList = null
|
||||||
relay1Button.setBackgroundColor(a)
|
relay1Button.setBackgroundColor(a)
|
||||||
|
relay1Button.setTextColor(Color.BLACK)
|
||||||
relay1Button.setOnTouchListener { _, event ->
|
relay1Button.setOnTouchListener { _, event ->
|
||||||
when (event.action) {
|
when (event.action) {
|
||||||
MotionEvent.ACTION_DOWN -> {
|
MotionEvent.ACTION_DOWN -> {
|
||||||
|
|
@ -187,6 +188,7 @@ class MainActivity : AppCompatActivity(), BleCallbacks {
|
||||||
val b = ContextCompat.getColor(this, R.color.colorAccent)
|
val b = ContextCompat.getColor(this, R.color.colorAccent)
|
||||||
relay2Button.backgroundTintList = null
|
relay2Button.backgroundTintList = null
|
||||||
relay2Button.setBackgroundColor(a)
|
relay2Button.setBackgroundColor(a)
|
||||||
|
relay2Button.setTextColor(Color.BLACK)
|
||||||
relay2Button.setOnTouchListener { _, event ->
|
relay2Button.setOnTouchListener { _, event ->
|
||||||
when (event.action) {
|
when (event.action) {
|
||||||
MotionEvent.ACTION_DOWN -> {
|
MotionEvent.ACTION_DOWN -> {
|
||||||
|
|
|
||||||
|
|
@ -5,13 +5,6 @@
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:padding="24dp">
|
android:padding="24dp">
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="@string/msg_settings_intro"
|
|
||||||
android:textSize="16sp"
|
|
||||||
android:layout_marginBottom="24dp" />
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue