Skip to content

Commit

Permalink
PAINTROID-399 Fix contrast of text color to background color
Browse files Browse the repository at this point in the history
Add new colors for satisfying contrast according to Google Play.
  • Loading branch information
foenabua committed Jan 13, 2023
1 parent 7d22e58 commit 5ab4f37
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@color/pocketpaint_colorAccent" android:state_checked="true" />
<item android:color="@color/pocketpaint_chip_selected_background_color" android:state_checked="true" />
<item android:color="@color/design_default_color_background" />
</selector>
10 changes: 6 additions & 4 deletions Paintroid/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
-->
<resources>
<!-- PocketPaint theme colors -->
<color name="pocketpaint_colorPrimary">#0097A7</color>
<color name="pocketpaint_colorPrimaryDark">#00838F</color>
<color name="pocketpaint_colorAccent">#33B5E5</color>
<color name="pocketpaint_text_color_link">#E68B00</color>
<color name="pocketpaint_colorPrimary">#138293</color>
<color name="pocketpaint_colorPrimaryDark">#0D6775</color>
<color name="pocketpaint_colorAccent">#157DA2</color>
<color name="pocketpaint_text_color_link">#157DA2</color>

<!-- PocketPaint main activity -->
<color name="pocketpaint_main_separator_color">#c8e8ff</color>
Expand All @@ -43,4 +43,6 @@
<color name="pocketpaint_lighter_gray">#DFDADA</color>
<!-- PocketPaint Highlight Merge Layer -->
<color name="pocketpaint_color_merge_layer">#33ac86</color>
<!-- PocketPaint Tool Highlights -->
<color name="pocketpaint_chip_selected_background_color">#33B5E5</color>
</resources>
8 changes: 4 additions & 4 deletions colorpicker/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<resources>
<color name="pocketpaint_color_picker_rgb_red">#FFEB4618</color>
<color name="pocketpaint_color_picker_rgb_green">#FF078707</color>
<color name="pocketpaint_color_picker_rgb_blue">#FF0284e7</color>
<color name="pocketpaint_color_picker_rgb_alpha">@color/pocketpaint_color_picker_hex_black</color>
<color name="pocketpaint_color_picker_rgb_red">#DA3D0E</color>
<color name="pocketpaint_color_picker_rgb_green">#138913</color>
<color name="pocketpaint_color_picker_rgb_blue">#0C78CB</color>
<color name="pocketpaint_color_picker_rgb_alpha">#787676</color>
<color name="pocketpaint_color_picker_blue1">#FF0074CD</color>
<color name="pocketpaint_color_picker_blue2">#FF00B4F1</color>
<color name="pocketpaint_color_picker_green1">#FF078707</color>
Expand Down

0 comments on commit 5ab4f37

Please sign in to comment.