Use foreground color with alpha for dividers

pull/413/head
Alex Baker 8 years ago
parent ad4b311f74
commit 84fe2b697a

@ -21,10 +21,9 @@
android:layout_marginBottom="5dip" />
<View
android:layout_width="fill_parent"
android:layout_height="1px"
android:padding="5dip"
android:background="@android:drawable/divider_horizontal_dark"/>
style="@style/horizontal_divider"
android:padding="5dip" />
<ListView
android:id="@+id/existingTags"
android:layout_width="fill_parent"

@ -36,11 +36,7 @@
android:textColor="?attr/asTextColor" />
</LinearLayout>
<View
android:id="@+id/TEA_Separator"
android:layout_width="fill_parent"
android:layout_height="1px"
android:background="?android:attr/listDivider" />
<View style="@style/horizontal_divider" />
<!-- elapsed time -->
<LinearLayout

@ -26,6 +26,7 @@
android:paddingEnd="@dimen/keyline_second"
android:paddingRight="@dimen/keyline_second"
android:paddingTop="@dimen/task_edit_drawable_padding_top_bottom"
android:paddingBottom="@dimen/task_edit_drawable_padding_top_bottom"
android:scaleType="center" />
<EditText
@ -45,7 +46,7 @@
</LinearLayout>
<include layout="@layout/task_edit_divider" />
<View style="@style/horizontal_divider"/>
</LinearLayout>

@ -7,9 +7,6 @@
android:paddingTop="8dp"
android:focusable="false">
<View
android:layout_width="match_parent"
android:layout_height="2px"
android:background="?attr/asListDividerColor" />
<View style="@style/horizontal_divider" />
</LinearLayout>

@ -5,11 +5,8 @@
android:orientation="vertical"
android:paddingTop="8dp">
<View
android:layout_width="match_parent"
android:layout_height="2px"
android:layout_gravity="top"
android:background="?attr/asListDividerColor" />
<View style="@style/horizontal_divider"
android:layout_gravity="top" />
<TextView
android:paddingLeft="@dimen/keyline_first"

@ -36,7 +36,7 @@
</FrameLayout>
<View style="@style/double_pane_divider" />
<View style="@style/vertical_divider" />
</LinearLayout>

@ -1,4 +0,0 @@
<View xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="?attr/separatorHeight"
android:background="?attr/asSeparator" />

@ -102,9 +102,6 @@
</RelativeLayout>
<View
android:layout_width="fill_parent"
android:layout_height="1px"
android:background="?attr/asListDividerColor" />
<View style="@style/horizontal_divider" />
</LinearLayout>

@ -1,14 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:paddingTop="@dimen/task_edit_padding_top_bottom"
android:layout_marginTop="@dimen/task_edit_padding_top_bottom">
<View
android:layout_width="match_parent"
android:layout_height="1px"
android:background="?attr/task_edit_divider"
android:layout_gravity="end|bottom" />
</LinearLayout>

@ -4,7 +4,7 @@
<style name="priority_button" parent="priority_button_base">
</style>
<style name="double_pane_divider">
<style name="vertical_divider">
<item name="android:layout_width">0dp</item>
<item name="android:layout_height">0dp</item>
<item name="android:visibility">gone</item>

@ -8,17 +8,13 @@
<!-- theme attributes -->
<attr name="drawer_background" format="color" />
<attr name="drawer_background_selected" format="color" />
<attr name="task_edit_divider" format="color" />
<attr name="asContentBackground" format="color" />
<attr name="asTextColor" format="color" />
<attr name="asTextColorHint" format="color" />
<attr name="asDetailsColor" format="color" />
<attr name="asDueDateColor" format="color" />
<attr name="asDueDateCompletedColor" format="color" />
<attr name="asSeparator" format="color" />
<attr name="asListDividerColor" format="color" />
<attr name="asEditTextBackground" format="reference" />
<attr name="separatorHeight" format="dimension" />
<attr name="popup_theme" format="reference" />
<attr name="alpha_primary" format="dimension" />

@ -99,7 +99,6 @@
<color name="white_text_hint">#eee</color>
<color name="black_text">#000</color>
<color name="black_text_hint">#535353</color>
<color name="task_edit_divider">#b6b6b6</color>
<color name="importance_1">@color/red_500</color>
<color name="importance_2">@color/amber_500</color>

@ -67,19 +67,24 @@
<style name="TaskListView" parent="ListView" />
<style name="double_pane_divider">
<style name="divider">
<item name="android:background">?android:attr/colorForeground</item>
<item name="android:alpha">?attr/alpha_divider</item>
</style>
<style name="vertical_divider" parent="divider">
<item name="android:layout_height">match_parent</item>
<item name="android:layout_width">1px</item>
<item name="android:background">?attr/asListDividerColor</item>
<item name="android:minWidth">1px</item>
<item name="android:layout_width">1dp</item>
</style>
<style name="horizontal_divider" parent="divider">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">1dp</item>
</style>
<style name="task_edit_row_divider">
<style name="task_edit_row_divider" parent="horizontal_divider">
<item name="android:layout_marginLeft">@dimen/keyline_content_inset</item>
<item name="android:layout_marginStart">@dimen/keyline_content_inset</item>
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">1px</item>
<item name="android:background">?attr/task_edit_divider</item>
<item name="android:layout_gravity">end|bottom</item>
</style>

@ -9,15 +9,11 @@
<item name="drawer_background">@color/drawer_background_dark</item>
<item name="drawer_background_selected">@color/drawer_background_selected_dark</item>
<item name="asDueDateCompletedColor">#ff777777</item>
<item name="asSeparator">@android:color/transparent</item>
<item name="separatorHeight">1px</item>
<item name="asContentBackground">@color/md_dark_background</item>
<item name="asTextColor">@android:color/white</item>
<item name="asTextColorHint">@android:color/darker_gray</item>
<item name="asDetailsColor">#6666aa</item>
<item name="asDueDateColor">#c3c3c3</item>
<item name="asListDividerColor">#dddddd</item>
<item name="task_edit_divider">@color/task_edit_divider</item>
<item name="android:spinnerItemStyle">@style/SpinnerNoPadding</item>
<item name="android:actionModeBackground">?attr/colorPrimary</item>
<item name="alertDialogTheme">@style/DialogBaseDark</item>
@ -34,7 +30,6 @@
<item name="android:windowMinWidthMinor">@android:dimen/dialog_min_width_minor</item>
<item name="android:windowMinWidthMajor">@android:dimen/dialog_min_width_major</item>
<item name="asTextColor">@android:color/white</item>
<item name="asListDividerColor">#dddddd</item>
</style>
</resources>

@ -9,15 +9,11 @@
<item name="drawer_background">@color/drawer_background</item>
<item name="drawer_background_selected">@color/drawer_background_selected</item>
<item name="asDueDateCompletedColor">#ff777777</item>
<item name="asSeparator">#888888</item>
<item name="separatorHeight">1px</item>
<item name="asContentBackground">@color/md_light_background</item>
<item name="asTextColor">@android:color/black</item>
<item name="asTextColorHint">@android:color/darker_gray</item>
<item name="asDetailsColor">#6666aa</item>
<item name="asDueDateColor">#878787</item>
<item name="asListDividerColor">#dddddd</item>
<item name="task_edit_divider">@color/task_edit_divider</item>
<item name="android:spinnerItemStyle">@style/SpinnerNoPadding</item>
<item name="android:actionModeBackground">?attr/colorPrimary</item>
<item name="alertDialogTheme">@style/LightDialogBase</item>
@ -34,7 +30,6 @@
<item name="android:windowMinWidthMinor">@android:dimen/dialog_min_width_minor</item>
<item name="android:windowMinWidthMajor">@android:dimen/dialog_min_width_major</item>
<item name="asTextColor">@android:color/black</item>
<item name="asListDividerColor">#dddddd</item>
</style>
</resources>
Loading…
Cancel
Save