Skip to content

Commit

Permalink
Merge pull request Tapadoo#70 from bolder5/master
Browse files Browse the repository at this point in the history
Removed hard coded colors and added resources that can be overridden
  • Loading branch information
kpmmmurphy authored Jul 4, 2017
2 parents 2a88a9b + 2cbe341 commit 358c37e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 1 addition & 3 deletions alerter/src/main/res/layout/alerter_alert_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
android:maxHeight="@dimen/alerter_alert_icn_size"
android:maxWidth="@dimen/alerter_alert_icn_size"
android:src="@drawable/alerter_ic_notifications"
android:tint="@android:color/white"/>
android:tint="@color/alert_default_icon_color"/>

<LinearLayout
android:id="@+id/llAlertTextContainer"
Expand All @@ -59,7 +59,6 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="@style/AlertTextAppearance.Title"
android:textColor="@android:color/white"
android:visibility="gone"
tools:text="Title"
tools:visibility="visible"/>
Expand All @@ -71,7 +70,6 @@
android:paddingBottom="@dimen/alerter_padding_small"
android:paddingTop="@dimen/alerter_padding_small"
android:textAppearance="@style/AlertTextAppearance.Text"
android:textColor="@android:color/white"
android:visibility="gone"
tools:text="Text"
tools:visibility="visible"/>
Expand Down
2 changes: 1 addition & 1 deletion alerter/src/main/res/values-v16/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<resources>
<style name="AlertTextAppearance">
<item name="android:fontFamily">sans-serif</item>
<item name="android:textColor">@android:color/white</item>
<item name="android:textColor">@color/alert_default_text_color</item>
</style>
</resources>
2 changes: 2 additions & 0 deletions alerter/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
<resources>
<color name="alerter_default_success_background">#4CAF50</color>
<color name="alert_default_error_background">#F44336</color>
<color name="alert_default_text_color">@android:color/white</color>
<color name="alert_default_icon_color">@android:color/white</color>
</resources>
2 changes: 1 addition & 1 deletion alerter/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</style>

<style name="AlertTextAppearance">
<item name="android:textColor">@android:color/white</item>
<item name="android:textColor">@color/alert_default_text_color</item>
</style>

<style name="AlertTextAppearance.Title">
Expand Down

0 comments on commit 358c37e

Please sign in to comment.