Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4c7b4629 authored by Bill Lin's avatar Bill Lin
Browse files

Fix DocumentsUI did not meet Google Accessibility Rating (GAR) criteria

To meet GAR criteria contrast ratio should at least 4.5:1
1.Fine tune ToolBar Icon and Text Color to full 100% white #FFFFFFFF
2.Modify ToolBar, Drawer header background and CheckBox color to #FF1A73E8
3.Enlarge TextSize of Dropdown sort component from 14sp(56px) to 18sp(72px)
4.Enlarge arrow icon from 36dp to 48dp

Bug: 79710817
Test: atest DocumentsUITests
Change-Id: I60ec0888fb793142f0974647c5e43b0a07bf6080
parent b9373d05
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@
        android:paddingEnd="12dp"
        android:gravity="center"
        android:fontFamily="sans-serif-medium"
        android:textSize="14sp"
        android:textSize="@dimen/dropdown_sort_text_size"
        android:textColor="@color/sort_widget_text_color"/>

    <ImageView
+3 −2
Original line number Diff line number Diff line
@@ -25,8 +25,8 @@
    <color name="menu_search_background">@android:color/transparent</color>

    <color name="primary_dark">#ff254FAE</color>
    <color name="primary">@*android:color/Blue_700</color>
    <color name="accent">@*android:color/Blue_700</color>
    <color name="primary">@color/tool_bar_color</color>
    <color name="accent">@color/tool_bar_color</color>
    <color name="accent_dark">@*android:color/accent_device_default_dark</color>

    <color name="text_cursor">@*android:color/white</color>
@@ -48,6 +48,7 @@
    <color name="root_icon_color">#ff5a5a5a</color>
    <item name="root_icon_disabled_alpha" format="float" type="dimen">@*android:dimen/disabled_alpha_material_light</item>
    <color name="doc_icon_color">#ff5a5a5a</color>
    <color name="tool_bar_color">#ff1A73E8</color>

    <!-- TODO: Would be nice to move this to a color-set, but not sure how to support animation -->
    <color name="item_doc_title">#ff333333</color>
+2 −1
Original line number Diff line number Diff line
@@ -52,7 +52,8 @@
    <dimen name="doc_header_height">60dp</dimen>

    <dimen name="dropdown_sort_widget_margin">12dp</dimen>
    <dimen name="dropdown_sort_widget_size">36dp</dimen>
    <dimen name="dropdown_sort_widget_size">48dp</dimen>
    <dimen name="dropdown_sort_text_size">18sp</dimen>

    <dimen name="drop_icon_height">14dp</dimen>
    <dimen name="drop_icon_width">14dp</dimen>
+2 −0
Original line number Diff line number Diff line
@@ -17,11 +17,13 @@
<resources xmlns:android="http://schemas.android.com/apk/res/android">

    <style name="ActionBarTheme" parent="@*android:style/ThemeOverlay.Material.Dark.ActionBar">
        <item name="android:colorControlNormal">@android:color/white</item>
        <item name="android:textSelectHandle">@drawable/text_select_handle_middle</item>
        <item name="android:textSelectHandleLeft">@drawable/text_select_handle_left</item>
        <item name="android:textSelectHandleRight">@drawable/text_select_handle_right</item>
        <item name="android:textCursorDrawable">@drawable/text_cursor</item>
        <item name="android:textColorHighlight">@color/text_highlight</item>
        <item name="android:textColorPrimary">@android:color/white</item>
    </style>
    <style name="ActionBarPopupTheme" parent="@*android:style/ThemeOverlay.Material.Light" />