Skip to content

Commit

Permalink
Styled the receive spinners.
Browse files Browse the repository at this point in the history
Reformatted fragment_send_success.
Chenaged the eye's color on the password prompt.
  • Loading branch information
SmajeNz0 committed Dec 31, 2020
1 parent 5d45d8f commit e00ea50
Show file tree
Hide file tree
Showing 28 changed files with 119 additions and 68 deletions.
8 changes: 4 additions & 4 deletions app/src/main/java/com/m2049r/xmrwallet/WalletActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,10 @@ public boolean onPrepareOptionsMenu(Menu menu) {
MenuItem streetmodeItem = menu.findItem(R.id.action_streetmode);
if (streetmodeItem != null)
if (isStreetMode()) {
toolbar.setBackgroundResource(R.drawable.backgound_toolbar_streetmode);
toolbar.setBackgroundResource(R.drawable.toolbar_background_streetmode);
streetmodeItem.setIcon(R.drawable.ic_logo_secondary_light_32dp);
} else {
toolbar.setBackgroundResource(R.drawable.backgound_toolbar_normalmode);
toolbar.setBackgroundResource(R.drawable.toolbar_background_normalmode);
streetmodeItem.setIcon(R.drawable.ic_logo_brand_32dp);
}
return super.onPrepareOptionsMenu(menu);
Expand Down Expand Up @@ -274,9 +274,9 @@ public boolean onOptionsItemSelected(MenuItem item) {

private void updateStreetMode() {
if (isStreetMode()) {
toolbar.setBackgroundResource(R.drawable.backgound_toolbar_streetmode);
toolbar.setBackgroundResource(R.drawable.toolbar_background_streetmode);
} else {
toolbar.setBackgroundResource(R.drawable.backgound_toolbar_normalmode);
toolbar.setBackgroundResource(R.drawable.toolbar_background_normalmode);
showNet();
}
invalidateOptionsMenu();
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/com/m2049r/xmrwallet/WalletFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container,
ivSynced = view.findViewById(R.id.ivSynced);

sCurrency = view.findViewById(R.id.sCurrency);
ArrayAdapter currencyAdapter = ArrayAdapter.createFromResource(getContext(), R.array.currency, R.layout.item_spinner_balance);
currencyAdapter.setDropDownViewResource(R.layout.item_spinner_dropdown_item);
ArrayAdapter currencyAdapter = ArrayAdapter.createFromResource(getContext(), R.array.currency, R.layout.spinner_item_balance);
currencyAdapter.setDropDownViewResource(R.layout.spinner_item_dropdown_item);
sCurrency.setAdapter(currencyAdapter);

bSend = view.findViewById(R.id.bSend);
Expand Down
17 changes: 10 additions & 7 deletions app/src/main/java/com/m2049r/xmrwallet/widget/ExchangeView.java
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,18 @@ protected void onFinishInflate() {
super.onFinishInflate();
etAmount = findViewById(R.id.etAmount);
tvAmountB = findViewById(R.id.tvAmountB);

ArrayAdapter adapterA = ArrayAdapter.createFromResource(getContext(), R.array.currency, R.layout.spinner_item_receive_primary_dark);

adapterA.setDropDownViewResource(R.layout.spinner_item_dropdown_item);
sCurrencyA = findViewById(R.id.sCurrencyA);
ArrayAdapter adapter = ArrayAdapter.createFromResource(getContext(), R.array.currency, R.layout.item_spinner);
adapter.setDropDownViewResource(R.layout.item_spinner_dropdown_item);
sCurrencyA.setAdapter(adapter);
sCurrencyA.setAdapter(adapterA);

ArrayAdapter adapterB = ArrayAdapter.createFromResource(getContext(), R.array.currency, R.layout.spinner_item_receive_secondary_dark);
adapterB.setDropDownViewResource(R.layout.spinner_item_dropdown_item);
sCurrencyB = findViewById(R.id.sCurrencyB);
sCurrencyB.setAdapter(adapter);
sCurrencyB.setAdapter(adapterB);

evExchange = findViewById(R.id.evExchange);
pbExchange = findViewById(R.id.pbExchange);

Expand Down Expand Up @@ -199,9 +205,6 @@ public void onItemSelected(final AdapterView<?> parentView, View selectedItemVie
if (position != 0) { // if not XMR, select XMR on other
sCurrencyA.setSelection(0, true);
}
parentView.post(() -> {
((TextView) parentView.getChildAt(0)).setTextColor(ContextCompat.getColor(getContext(), R.color.colorSec));
});
doExchange();
}

Expand Down
Binary file removed app/src/main/res/drawable/arqma_notification.png
Binary file not shown.
File renamed without changes.
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
android:top="8dp" />
<stroke
android:width="2dp"
android:color="@color/grey" />
android:color="@color/colorSecDark" />
</shape>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/gradient_primary" />
<item android:drawable="@drawable/gradient_rectangle_primary" />
<item
android:height="?attr/actionBarSize"
android:drawable="@drawable/texture_cash" />
android:drawable="@drawable/img_texture_cash" />
</layer-list>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/gradient_secondary" />
<item android:drawable="@drawable/gradient_rectangle_secondary" />
<item
android:height="?attr/actionBarSize"
android:drawable="@drawable/texture_cash" />
android:drawable="@drawable/img_texture_cash" />
</layer-list>
4 changes: 2 additions & 2 deletions app/src/main/res/layout/activity_login.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/backgound_all"
android:background="@drawable/background_all"
android:gravity="center_horizontal"
android:orientation="vertical">

Expand All @@ -11,7 +11,7 @@
style="@style/ToolBarStyle.Event"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="@drawable/backgound_toolbar_normalmode"
android:background="@drawable/toolbar_background_normalmode"
android:minHeight="?attr/actionBarSize" />

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout/activity_wallet.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/backgound_all"
android:background="@drawable/background_all"
android:gravity="center_horizontal"
android:orientation="vertical">

Expand All @@ -18,7 +18,7 @@
style="@style/ToolBarStyle.Event"
android:layout_width="match_parent"
android:layout_height="?android:attr/actionBarSize"
android:background="@drawable/backgound_toolbar_normalmode"
android:background="@drawable/toolbar_background_normalmode"
android:minHeight="?android:attr/actionBarSize" />

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/fragment_review.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/data_top"
android:background="@drawable/backgound_seed"
android:background="@drawable/background_seed"
android:textAlignment="center"
tools:text="tucks slackens vehicle doctor oaks aloof balding knife rays wise haggled cuisine navy ladder suitcase dusted last thorn pixels karate ticket nibs violin zapped slackens" />
</LinearLayout>
Expand Down
12 changes: 11 additions & 1 deletion app/src/main/res/layout/fragment_send_confirm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
style="@style/MoneroText.Confirm.Label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="8dp"
android:text="@string/label_send_address"
android:textAlignment="textStart" />

Expand All @@ -21,7 +22,9 @@
style="@style/MoneroText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:layout_marginBottom="16dp"
android:layout_marginTop="8dp"
android:textAlignment="textStart"
tools:text="ar46iCiw5uB7SjnYhL5EJLP1LpqGkZbCcWhWgdbLL1c4DicNuYi3ZeRJPi8FFmEhYnagbxRyaQKyTYBA95JqmPcr1XZytK9o3" />
Expand All @@ -30,12 +33,14 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:layout_marginBottom="16dp"
android:orientation="horizontal">

<TextView
style="@style/MoneroText.Confirm.Label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="8dp"
android:text="@string/label_send_payment_id"
android:textAlignment="textStart" />

Expand All @@ -53,12 +58,14 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:layout_marginBottom="16dp"
android:orientation="horizontal">

<TextView
style="@style/MoneroText.Confirm.Label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="8dp"
android:text="@string/label_send_notes"
android:textAlignment="textStart" />

Expand Down Expand Up @@ -112,6 +119,7 @@
style="@style/MoneroLabel.Gray"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:paddingLeft="8dp"
android:layout_weight="1"
android:text="@string/send_amount_label"
android:textAlignment="textStart" />
Expand All @@ -137,6 +145,7 @@
style="@style/MoneroLabel.Gray"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:paddingLeft="8dp"
android:layout_weight="1"
android:text="@string/send_fee_label"
android:textAlignment="textStart" />
Expand All @@ -162,6 +171,7 @@
style="@style/MoneroLabel.Caps.Black"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:paddingLeft="8dp"
android:layout_weight="1"
android:text="@string/send_total_label"
android:textAlignment="textStart" />
Expand Down
17 changes: 13 additions & 4 deletions app/src/main/res/layout/fragment_send_success.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@
android:orientation="vertical">

<TextView
style="@style/MoneroText.Success"
style="@style/MoneroText.SuccessPrimary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:text="@string/label_send_success" />

<TextView
android:id="@+id/tvTxAmount"
style="@style/MoneroText.Balance.PriDark"
style="@style/MoneroText.SuccessPrimary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="2"
Expand Down Expand Up @@ -68,6 +68,7 @@
style="@style/MoneroText.Confirm.Label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="8dp"
android:text="@string/label_send_txid"
android:textAlignment="textStart" />

Expand All @@ -86,7 +87,9 @@
style="@style/MoneroText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:layout_marginBottom="16dp"
android:layout_marginTop="4dp"
android:textAlignment="textStart"
tools:text="fcb12cbe9f43d4e8b9ee54f48d450a89a6937946db856506820df0539571801d" />
Expand All @@ -95,6 +98,8 @@
style="@style/MoneroText.Confirm.Label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:text="@string/label_send_address"
android:textAlignment="textStart" />

Expand All @@ -103,7 +108,9 @@
style="@style/MoneroText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:layout_marginBottom="16dp"
android:layout_marginTop="4dp"
android:textAlignment="textStart"
tools:text="ar46iCiw5uB7SjnYhL5EJLP1LpqGkZbCcWhWgdbLL1c4DicNuYi3ZeRJPi8FFmEhYnagbxRyaQKyTYBA95JqmPcr1XZytK9o3" />
Expand All @@ -119,6 +126,8 @@
style="@style/MoneroText.Confirm.Label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="8dp"

android:text="@string/label_send_payment_id" />

<TextView
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/fragment_wallet.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@

<Spinner
android:id="@+id/sCurrency"
style="@style/SpinnerPrimaryDark"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
Expand All @@ -78,7 +79,7 @@
android:paddingTop="0dp"
android:paddingEnd="4dp"
android:paddingBottom="2dp"
tools:listitem="@layout/item_spinner_balance" />
tools:listitem="@layout/spinner_item_balance" />
</LinearLayout>
</FrameLayout>

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/nav_header.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="192dp"
android:background="@drawable/backgound_toolbar_normalmode"
android:background="@drawable/toolbar_background_normalmode"
android:orientation="vertical"
android:padding="16dp">

Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/prompt_password.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:passwordToggleEnabled="true"
app:passwordToggleTint="@color/colorPri"
app:errorEnabled="true">

<com.google.android.material.textfield.TextInputEditText
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@android:id/text1"
style="@style/MoneroSpinnerItem.Balance"
style="@style/SpinnerItemBalancePrimaryDark"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="marquee"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@android:id/text1"
style="?android:attr/spinnerItemStyle"
style="@style/SpinnerItemReceivePrimaryDark"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:gravity="center"
android:singleLine="true"
android:textAlignment="center"
tools:text="ARQ" />
11 changes: 11 additions & 0 deletions app/src/main/res/layout/spinner_item_receive_secondary_dark.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@android:id/text1"
style="@style/SpinnerItemReceiveSecondaryDark"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:singleLine="true"
android:textAlignment="center"
tools:text="ARQ" />
Loading

0 comments on commit e00ea50

Please sign in to comment.