Skip to content

Commit c2b52ed

Browse files
author
Tom James Holub
committed
updated colors + buttons + headings | #77
1 parent 6c5acb3 commit c2b52ed

27 files changed

+81
-89
lines changed

FlowCrypt/src/main/java/com/flowcrypt/email/ui/activity/base/BaseSendingMessageActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public void onChangeMessageEncryptedType(MessageEncryptionType messageEncryption
189189
break;
190190

191191
case STANDARD:
192-
getAppBarLayout().setBackgroundColor(UIUtil.getColor(this, R.color.valencia));
192+
getAppBarLayout().setBackgroundColor(UIUtil.getColor(this, R.color.red));
193193
if (getSupportActionBar() != null) {
194194
getSupportActionBar().setTitle(getStandardTitle());
195195
}

FlowCrypt/src/main/java/com/flowcrypt/email/ui/activity/fragment/SecureComposeFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ private void initChipsView(View view) {
296296
SingleCharacterSpanChipTokenizer.CHIP_SEPARATOR_WHITESPACE));
297297
recipientEditTextView.setOnFocusChangeListener(this);
298298
recipientEditTextView.setChipBackground(
299-
ColorStateList.valueOf(UIUtil.getColor(getContext(), R.color.dusty_gray)));
299+
ColorStateList.valueOf(UIUtil.getColor(getContext(), R.color.gray)));
300300
}
301301

302302
/**

FlowCrypt/src/main/java/com/flowcrypt/email/ui/adapter/MessageListAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ private void updateItem(Context context, GeneralMessageDetails generalMessageDet
107107
changeViewsTypeface(viewHolder, Typeface.NORMAL);
108108

109109
viewHolder.textViewSenderAddress.setTextColor(UIUtil.getColor(context, R.color
110-
.scorpion));
110+
.dark));
111111
viewHolder.textViewSubject.setTextColor(UIUtil.getColor(context, R.color.gray));
112112
viewHolder.textViewDate.setTextColor(UIUtil.getColor(context, R.color.gray));
113113
} else {

FlowCrypt/src/main/java/com/flowcrypt/email/ui/widget/CustomChipSpanChipCreator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ public static void updateChipSpanBackground(Context context, @NonNull ChipSpan c
4747
boolean isHasPgp) {
4848
int color;
4949
if (isHasPgp) {
50-
color = UIUtil.getColor(context, R.color.la_palma);
50+
color = UIUtil.getColor(context, R.color.colorPrimary);
5151
} else {
52-
color = UIUtil.getColor(context, R.color.dusty_gray);
52+
color = UIUtil.getColor(context, R.color.gray);
5353
}
5454
chipSpan.setBackgroundColor(ColorStateList.valueOf(color));
5555
}

FlowCrypt/src/main/res/drawable/bg_message_part_other.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<item android:gravity="left">
2323
<shape>
2424
<size android:width="4dp" />
25-
<solid android:color="@color/dusty_gray" />
25+
<solid android:color="@color/gray" />
2626
</shape>
2727
</item>
2828

FlowCrypt/src/main/res/drawable/bg_message_part_pgp_message.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<item android:gravity="left">
2828
<shape>
2929
<size android:width="4dp" />
30-
<solid android:color="@color/la_palma" />
30+
<solid android:color="@color/colorPrimary" />
3131
</shape>
3232
</item>
3333

FlowCrypt/src/main/res/drawable/side_nav_bar.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
android:shape="rectangle">
99
<gradient
1010
android:angle="135"
11-
android:centerColor="@color/fruit_salad"
12-
android:endColor="@color/sea_green"
11+
android:centerColor="@color/colorPrimary"
12+
android:endColor="@color/colorPrimaryDark"
1313
android:startColor="@color/de_york"
1414
android:type="linear" />
1515
</shape>

FlowCrypt/src/main/res/layout/activity_check_keys.xml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,8 @@
1313

1414
<TextView
1515
android:id="@+id/textViewSetupFlowCrypt"
16-
android:layout_width="wrap_content"
17-
android:layout_height="wrap_content"
18-
android:layout_marginTop="@dimen/margin_top_setup_flow_crypt"
1916
android:text="@string/set_up_flow_crypt"
20-
android:textColor="@color/gray"
21-
android:textSize="@dimen/text_size_setup_flow_crypt"
22-
android:textStyle="bold"
17+
style="@style/ScreenHeading"
2318
app:layout_constraintLeft_toLeftOf="parent"
2419
app:layout_constraintRight_toRightOf="parent"
2520
app:layout_constraintTop_toTopOf="parent" />
@@ -77,7 +72,7 @@
7772
style="@style/AppWidget.Button"
7873
android:layout_width="0dp"
7974
android:layout_marginTop="@dimen/margin_top_load_account"
80-
android:theme="@style/AppWidget.Button.Raised.Green"
75+
android:theme="@style/AppWidget.Button.Green"
8176
app:layout_constraintHorizontal_bias="0.0"
8277
app:layout_constraintLeft_toLeftOf="@+id/guidelineLeft"
8378
app:layout_constraintRight_toLeftOf="@+id/guidelineRight"
@@ -89,7 +84,7 @@
8984
style="@style/AppWidget.Button"
9085
android:layout_width="0dp"
9186
android:layout_marginTop="@dimen/margin_top_button_select_another_account"
92-
android:theme="@style/AppWidget.Button.Raised.Grey"
87+
android:theme="@style/AppWidget.Button.White"
9388
app:layout_constraintHorizontal_bias="0.0"
9489
app:layout_constraintLeft_toLeftOf="@+id/guidelineLeft"
9590
app:layout_constraintRight_toLeftOf="@+id/guidelineRight"

FlowCrypt/src/main/res/layout/activity_create_or_import_key.xml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,37 +11,33 @@
1111

1212
<TextView
1313
android:id="@+id/textViewSetupFlowCrypt"
14-
android:layout_width="wrap_content"
15-
android:layout_height="wrap_content"
16-
android:layout_marginTop="@dimen/margin_top_setup_flow_crypt"
1714
android:text="@string/set_up_flow_crypt"
18-
android:textColor="@color/gray"
19-
android:textSize="@dimen/text_size_setup_flow_crypt"
20-
android:textStyle="bold"
15+
style="@style/ScreenHeading"
2116
app:layout_constraintLeft_toLeftOf="parent"
2217
app:layout_constraintRight_toRightOf="parent"
2318
app:layout_constraintTop_toTopOf="parent" />
2419

2520
<Button
2621
android:id="@+id/buttonCreateNewKey"
27-
style="@style/AppWidget.Button"
22+
style="@style/AppWidget.Button.Green"
2823
android:layout_width="0dp"
2924
android:layout_marginTop="@dimen/margin_top_first_button"
25+
android:alpha="0.5"
3026
android:enabled="false"
3127
android:text="@string/create_a_new_key"
32-
android:theme="@style/AppWidget.Button.Raised.Green"
28+
android:theme="@style/AppWidget.Button.Green"
3329
app:layout_constraintHorizontal_bias="0.0"
3430
app:layout_constraintLeft_toLeftOf="@+id/guidelineLeft"
3531
app:layout_constraintRight_toLeftOf="@+id/guidelineRight"
3632
app:layout_constraintTop_toBottomOf="@+id/textViewSetupFlowCrypt" />
3733

3834
<Button
3935
android:id="@+id/buttonImportMyKey"
40-
style="@style/AppWidget.Button"
36+
style="@style/AppWidget.Button.Green"
4137
android:layout_width="0dp"
4238
android:layout_marginTop="@dimen/margin_between_buttons"
4339
android:text="@string/import_my_key"
44-
android:theme="@style/AppWidget.Button.Raised.Green"
40+
android:theme="@style/AppWidget.Button.Green"
4541
app:layout_constraintHorizontal_bias="0.0"
4642
app:layout_constraintLeft_toLeftOf="@+id/guidelineLeft"
4743
app:layout_constraintRight_toLeftOf="@+id/guidelineRight"
@@ -53,7 +49,7 @@
5349
android:layout_width="0dp"
5450
android:layout_marginTop="@dimen/margin_between_buttons"
5551
android:text="@string/use_another_account"
56-
android:theme="@style/AppWidget.Button.Raised.Grey"
52+
android:theme="@style/AppWidget.Button.White"
5753
app:layout_constraintHorizontal_bias="0.0"
5854
app:layout_constraintLeft_toLeftOf="@+id/guidelineLeft"
5955
app:layout_constraintRight_toLeftOf="@+id/guidelineRight"

FlowCrypt/src/main/res/layout/activity_import_private_key.xml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,19 @@
1717

1818
<TextView
1919
android:id="@+id/textViewImportKeyTitle"
20-
android:layout_width="wrap_content"
21-
android:layout_height="wrap_content"
22-
android:layout_marginTop="@dimen/margin_top_setup_flow_crypt"
2320
android:text="@string/import_private_key"
24-
android:textColor="@color/gray"
25-
android:textSize="@dimen/text_size_setup_flow_crypt"
26-
android:textStyle="bold"
21+
style="@style/ScreenHeading"
2722
app:layout_constraintLeft_toLeftOf="parent"
28-
app:layout_constraintRight_toRightOf="parent"
29-
app:layout_constraintTop_toTopOf="parent" />
23+
app:layout_constraintTop_toTopOf="parent"
24+
app:layout_constraintRight_toRightOf="parent" />
3025

3126
<Button
3227
android:id="@+id/buttonLoadFromFile"
3328
style="@style/AppWidget.Button"
3429
android:layout_width="0dp"
3530
android:layout_marginTop="@dimen/margin_top_first_button"
3631
android:text="@string/load_from_a_file"
37-
android:theme="@style/AppWidget.Button.Raised.Green"
32+
android:theme="@style/AppWidget.Button.Green"
3833
app:layout_constraintHorizontal_bias="0.0"
3934
app:layout_constraintLeft_toLeftOf="@+id/guidelineLeft"
4035
app:layout_constraintRight_toLeftOf="@+id/guidelineRight"
@@ -46,7 +41,7 @@
4641
android:layout_width="0dp"
4742
android:layout_marginTop="@dimen/margin_between_buttons"
4843
android:text="@string/load_from_clipboard"
49-
android:theme="@style/AppWidget.Button.Raised.Green"
44+
android:theme="@style/AppWidget.Button.Green"
5045
app:layout_constraintHorizontal_bias="0.0"
5146
app:layout_constraintLeft_toLeftOf="@+id/guidelineLeft"
5247
app:layout_constraintRight_toLeftOf="@+id/guidelineRight"

0 commit comments

Comments
 (0)