Browse Source

change Amount colour of transactions in Maintab,change logo Background to transparent

duke
Denio 5 years ago
parent
commit
f97e801e44
  1. BIN
      app/src/main/ic_launcher_hush_new-web.png
  2. 8
      app/src/main/java/org/myhush/silentdragon/SendActivity.kt
  3. 16
      app/src/main/res/layout/content_main.xml
  4. 5
      app/src/main/res/mipmap-anydpi-v26/ic_launcher_hush_new.xml
  5. 5
      app/src/main/res/mipmap-anydpi-v26/ic_launcher_hush_new_round.xml
  6. BIN
      app/src/main/res/mipmap-hdpi/ic_launcher_hush_new.png
  7. BIN
      app/src/main/res/mipmap-hdpi/ic_launcher_hush_new_background.png
  8. BIN
      app/src/main/res/mipmap-hdpi/ic_launcher_hush_new_foreground.png
  9. BIN
      app/src/main/res/mipmap-hdpi/ic_launcher_hush_new_round.png
  10. BIN
      app/src/main/res/mipmap-mdpi/ic_launcher_hush_new.png
  11. BIN
      app/src/main/res/mipmap-mdpi/ic_launcher_hush_new_background.png
  12. BIN
      app/src/main/res/mipmap-mdpi/ic_launcher_hush_new_foreground.png
  13. BIN
      app/src/main/res/mipmap-mdpi/ic_launcher_hush_new_round.png
  14. BIN
      app/src/main/res/mipmap-xhdpi/ic_launcher_hush_new.png
  15. BIN
      app/src/main/res/mipmap-xhdpi/ic_launcher_hush_new_background.png
  16. BIN
      app/src/main/res/mipmap-xhdpi/ic_launcher_hush_new_foreground.png
  17. BIN
      app/src/main/res/mipmap-xhdpi/ic_launcher_hush_new_round.png
  18. BIN
      app/src/main/res/mipmap-xxhdpi/ic_launcher_hush_new.png
  19. BIN
      app/src/main/res/mipmap-xxhdpi/ic_launcher_hush_new_background.png
  20. BIN
      app/src/main/res/mipmap-xxhdpi/ic_launcher_hush_new_foreground.png
  21. BIN
      app/src/main/res/mipmap-xxhdpi/ic_launcher_hush_new_round.png
  22. BIN
      app/src/main/res/mipmap-xxxhdpi/ic_launcher_hush_new.png
  23. BIN
      app/src/main/res/mipmap-xxxhdpi/ic_launcher_hush_new_background.png
  24. BIN
      app/src/main/res/mipmap-xxxhdpi/ic_launcher_hush_new_foreground.png
  25. BIN
      app/src/main/res/mipmap-xxxhdpi/ic_launcher_hush_new_round.png

BIN
app/src/main/ic_launcher_hush_new-web.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

8
app/src/main/java/org/myhush/silentdragon/SendActivity.kt

@ -67,7 +67,7 @@ class SendActivity : AppCompatActivity() {
if (DataModel.isValidAddress(s.toString())) {
txtValidAddress.text = "\u2713 Valid address"
txtValidAddress.setTextColor(ContextCompat.getColor(applicationContext,
R.color.colorPrimary
R.color.white_selected
))
} else {
txtValidAddress.text = "Not a valid Hush address!"
@ -125,7 +125,7 @@ class SendActivity : AppCompatActivity() {
))
} else {
txtMemoSize.setTextColor(ContextCompat.getColor(applicationContext,
R.color.colorPrimary
R.color.white_selected
))
}
}
@ -247,7 +247,7 @@ class SendActivity : AppCompatActivity() {
amountUSD.setText( (zprice * amt).format(2))
amountHUSH.text =
"${DataModel.mainResponseData?.tokenName} " + DecimalFormat("#.########").format(amt)
"${DataModel.mainResponseData?.tokenName} " + DecimalFormat("#.########").format(amt)
}
private fun setAmount(amt: Double?) {
@ -275,7 +275,7 @@ class SendActivity : AppCompatActivity() {
sendAddress.setText(data.data?.host ?: "", TextView.BufferType.EDITABLE)
var amt = data.data?.getQueryParameter("amt") ?:
data.data?.getQueryParameter("amount")
data.data?.getQueryParameter("amount")
// Remove all commas.
amt = amt?.replace(",", ".")

16
app/src/main/res/layout/content_main.xml

@ -53,13 +53,17 @@
app:layout_constraintTop_toBottomOf="@+id/txtMainBalance"
android:textColor="@color/light_grey" app:layout_constraintBottom_toBottomOf="@+id/imageView2"
android:layout_marginBottom="32dp"/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="46dp" app:srcCompat="@mipmap/ic_launcher_round"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent" android:id="@+id/imageView3"
app:layout_constraintHorizontal_bias="0.498"
app:layout_constraintTop_toTopOf="parent" android:layout_marginTop="125dp"/>
android:id="@+id/imageView3"
android:layout_width="wrap_content"
android:layout_height="46dp"
android:layout_marginTop="125dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.498"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@mipmap/ic_launcher_hush_new_foreground" />
<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/swiperefresh"
android:layout_width="match_parent"

5
app/src/main/res/mipmap-anydpi-v26/ic_launcher_hush_new.xml

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/ic_launcher_hush_new_background"/>
<foreground android:drawable="@mipmap/ic_launcher_hush_new_foreground"/>
</adaptive-icon>

5
app/src/main/res/mipmap-anydpi-v26/ic_launcher_hush_new_round.xml

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/ic_launcher_hush_new_background"/>
<foreground android:drawable="@mipmap/ic_launcher_hush_new_foreground"/>
</adaptive-icon>

BIN
app/src/main/res/mipmap-hdpi/ic_launcher_hush_new.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
app/src/main/res/mipmap-hdpi/ic_launcher_hush_new_background.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

BIN
app/src/main/res/mipmap-hdpi/ic_launcher_hush_new_foreground.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

BIN
app/src/main/res/mipmap-hdpi/ic_launcher_hush_new_round.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
app/src/main/res/mipmap-mdpi/ic_launcher_hush_new.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
app/src/main/res/mipmap-mdpi/ic_launcher_hush_new_background.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
app/src/main/res/mipmap-mdpi/ic_launcher_hush_new_foreground.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
app/src/main/res/mipmap-mdpi/ic_launcher_hush_new_round.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
app/src/main/res/mipmap-xhdpi/ic_launcher_hush_new.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

BIN
app/src/main/res/mipmap-xhdpi/ic_launcher_hush_new_background.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
app/src/main/res/mipmap-xhdpi/ic_launcher_hush_new_foreground.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
app/src/main/res/mipmap-xhdpi/ic_launcher_hush_new_round.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

BIN
app/src/main/res/mipmap-xxhdpi/ic_launcher_hush_new.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

BIN
app/src/main/res/mipmap-xxhdpi/ic_launcher_hush_new_background.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

BIN
app/src/main/res/mipmap-xxhdpi/ic_launcher_hush_new_foreground.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

BIN
app/src/main/res/mipmap-xxhdpi/ic_launcher_hush_new_round.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

BIN
app/src/main/res/mipmap-xxxhdpi/ic_launcher_hush_new.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

BIN
app/src/main/res/mipmap-xxxhdpi/ic_launcher_hush_new_background.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

BIN
app/src/main/res/mipmap-xxxhdpi/ic_launcher_hush_new_foreground.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

BIN
app/src/main/res/mipmap-xxxhdpi/ic_launcher_hush_new_round.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Loading…
Cancel
Save