Skip to content

Commit

Permalink
Prefixing sherlock to all colors used in sherlock
Browse files Browse the repository at this point in the history
  • Loading branch information
ajitsing committed Apr 24, 2017
1 parent 75303f1 commit 50785f1
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void report(CrashViewModel crashViewModel) {
.setAutoCancel(true);

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
notificationBuilder.setColor(ContextCompat.getColor(context, R.color.colorAccent));
notificationBuilder.setColor(ContextCompat.getColor(context, R.color.sherlock_colorAccent));
}

NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
Expand Down
2 changes: 1 addition & 1 deletion sherlock/src/main/res/layout/app_info_row.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
android:layout_height="wrap_content"
android:layout_gravity="start"
android:text="@{appInfo.attr}"
android:textColor="@color/colorAccent"/>
android:textColor="@color/sherlock_colorAccent"/>

<TextView
android:layout_width="match_parent"
Expand Down
8 changes: 4 additions & 4 deletions sherlock/src/main/res/layout/crash_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:text="@{viewModel.exactLocationOfCrash}"
android:textColor="@color/colorAccent"
android:textColor="@color/sherlock_colorAccent"
android:textSize="15sp"
android:textStyle="bold"
tools:text="Place of crash"/>
Expand Down Expand Up @@ -102,7 +102,7 @@
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:text="@string/stack_trace"
android:textColor="@color/colorAccent"
android:textColor="@color/sherlock_colorAccent"
android:textSize="15sp"
android:textStyle="bold"/>

Expand Down Expand Up @@ -146,7 +146,7 @@
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:text="@string/about_phone"
android:textColor="@color/colorAccent"
android:textColor="@color/sherlock_colorAccent"
android:textSize="15sp"
android:textStyle="bold"/>

Expand Down Expand Up @@ -183,7 +183,7 @@
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:text="@string/about_app"
android:textColor="@color/colorAccent"
android:textColor="@color/sherlock_colorAccent"
android:textSize="15sp"
android:textStyle="bold"/>

Expand Down
2 changes: 1 addition & 1 deletion sherlock/src/main/res/layout/crash_card.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:text="@{viewModel.place}"
android:textColor="@color/colorAccent"/>
android:textColor="@color/sherlock_colorAccent"/>

<TextView
android:layout_width="wrap_content"
Expand Down
2 changes: 1 addition & 1 deletion sherlock/src/main/res/layout/crash_list_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
android:visibility="@{viewModel.crashNotFoundViewState.visibility}"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:background="@color/sherlock_white"
android:orientation="vertical"
android:paddingTop="50dp">

Expand Down
6 changes: 3 additions & 3 deletions sherlock/src/main/res/layout/device_info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
android:layout_height="wrap_content"
android:layout_gravity="start"
android:text="@string/name"
android:textColor="@color/colorAccent"/>
android:textColor="@color/sherlock_colorAccent"/>

<TextView
android:layout_width="match_parent"
Expand All @@ -48,7 +48,7 @@
android:layout_height="wrap_content"
android:layout_gravity="start"
android:text="@string/brand"
android:textColor="@color/colorAccent"/>
android:textColor="@color/sherlock_colorAccent"/>

<TextView
android:layout_width="match_parent"
Expand All @@ -70,7 +70,7 @@
android:layout_height="wrap_content"
android:layout_gravity="start"
android:text="@string/android_api_version"
android:textColor="@color/colorAccent"/>
android:textColor="@color/sherlock_colorAccent"/>

<TextView
android:layout_width="match_parent"
Expand Down
10 changes: 4 additions & 6 deletions sherlock/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#D32F2F</color>
<color name="colorPrimaryDark">#B71C1C</color>
<color name="colorAccent">#5B3758</color>
<color name="sherlock_colorPrimary">#D32F2F</color>
<color name="sherlock_colorPrimaryDark">#B71C1C</color>
<color name="sherlock_colorAccent">#5B3758</color>

<color name="white">#FFFFFF</color>
<color name="light_black">#2e2828</color>
<color name="grey">#ededed</color>
<color name="sherlock_white">#FFFFFF</color>
</resources>
8 changes: 4 additions & 4 deletions sherlock/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
<style name="Sherlock.Base" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="windowNoTitle">true</item>
<item name="windowActionBar">false</item>
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="colorPrimary">@color/sherlock_colorPrimary</item>
<item name="colorPrimaryDark">@color/sherlock_colorPrimaryDark</item>
<item name="colorAccent">@color/sherlock_colorAccent</item>
</style>

<style name="CardViewStyle" parent="Theme.AppCompat.Light">
Expand All @@ -18,6 +18,6 @@
<item name="contentPaddingTop">12dp</item>
<item name="contentPaddingLeft">8dp</item>
<item name="contentPaddingRight">8dp</item>
<item name="cardBackgroundColor">@color/white</item>
<item name="cardBackgroundColor">@color/sherlock_white</item>
</style>
</resources>

0 comments on commit 50785f1

Please sign in to comment.