Add alpha attributes

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

@ -5,7 +5,7 @@
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="1"
android:alpha="@dimen/alpha_secondary_text_icons"
android:alpha="?attr/alpha_secondary"
android:background="?attr/selectableItemBackgroundBorderless"
android:clickable="true"
android:src="@drawable/ic_cancel_24dp"

@ -19,7 +19,7 @@
android:layout_height="wrap_content"
android:layout_gravity="top"
android:tint="?attr/colorControlNormal"
android:alpha="@dimen/alpha_secondary_text_icons"
android:alpha="?attr/alpha_secondary"
android:paddingRight="@dimen/keyline_second"
android:paddingEnd="@dimen/keyline_second"
tools:ignore="ContentDescription" />

@ -20,7 +20,7 @@
android:layout_height="wrap_content"
android:textColor="?attr/asTextColor"
android:text="@string/TEA_timer_controls"
android:alpha="@dimen/alpha_secondary_text_icons"
android:alpha="?attr/alpha_secondary"
android:textSize="@dimen/task_edit_text_size" />
</LinearLayout>
@ -40,7 +40,7 @@
android:gravity="center_vertical|center_horizontal"
android:paddingLeft="5dip"
android:paddingRight="5dip"
android:alpha="@dimen/alpha_secondary_text_icons"
android:alpha="?attr/alpha_secondary"
android:scaleType="centerInside"
android:tint="?attr/colorControlNormal" />
@ -51,7 +51,7 @@
android:layout_weight="2"
android:gravity="center_horizontal"
android:textColor="?attr/asTextColor"
android:alpha="@dimen/alpha_secondary_text_icons"
android:alpha="?attr/alpha_secondary"
android:textSize="10sp"
android:visibility="visible" />
</LinearLayout>

@ -10,7 +10,7 @@
android:layout_height="fill_parent"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:alpha="@dimen/alpha_secondary_text_icons"
android:alpha="?attr/alpha_secondary"
android:fontFamily="@string/font_fontFamily_medium"
android:gravity="center_vertical|end"
android:minEms="3"
@ -35,7 +35,7 @@
android:layout_width="56dp"
android:layout_height="wrap_content"
android:tint="?attr/colorControlNormal"
android:alpha="@dimen/alpha_secondary_text_icons"
android:alpha="?attr/alpha_secondary"
android:scaleType="fitStart" />
<!-- filter name -->
@ -44,7 +44,7 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:alpha="@dimen/alpha_text"
android:alpha="?attr/alpha_primary"
android:checked="false"
android:ellipsize="end"
android:fontFamily="@string/font_fontFamily_medium"

@ -19,7 +19,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:alpha="@dimen/alpha_disabled_hint_text"
android:alpha="?attr/alpha_disabled"
android:src="@drawable/ic_inbox_168px"
android:tint="?attr/colorControlNormal" />
@ -28,7 +28,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:alpha="@dimen/alpha_disabled_hint_text"
android:alpha="?attr/alpha_disabled"
android:text="@string/TLA_no_items"
android:textColor="?attr/asTextColor"
android:textSize="20sp" />

@ -21,6 +21,11 @@
<attr name="separatorHeight" format="dimension" />
<attr name="popup_theme" format="reference" />
<attr name="alpha_primary" format="dimension" />
<attr name="alpha_secondary" format="dimension" />
<attr name="alpha_disabled" format="dimension" />
<attr name="alpha_divider" format="dimension" />
<declare-styleable name="TimePreference">
<attr name="summary" format="string" />
</declare-styleable>

@ -14,10 +14,16 @@
<dimen name="task_edit_double_padding_top_bottom">18dp</dimen>
<dimen name="task_edit_drawable_padding_top_bottom">17dp</dimen>
<dimen name="task_edit_text_size">16sp</dimen>
<item name="alpha_text" format="float" type="dimen">0.87</item>
<item name="alpha_secondary_text_icons" format="float" type="dimen">0.54</item>
<item name="alpha_disabled_hint_text" format="float" type="dimen">0.38</item>
<item name="alpha_dividers" format="float" type="dimen">0.12</item>
<item name="alpha_primary_light" format="float" type="dimen">0.87</item>
<item name="alpha_secondary_light" format="float" type="dimen">0.54</item>
<item name="alpha_disabled_light" format="float" type="dimen">0.38</item>
<item name="alpha_primary_dark" format="float" type="dimen">1.0</item>
<item name="alpha_secondary_dark" format="float" type="dimen">0.70</item>
<item name="alpha_disabled_dark" format="float" type="dimen">0.50</item>
<item name="alpha_divider" format="float" type="dimen">0.12</item>
<dimen name="elevation_toolbar">8dp</dimen>
<dimen name="elevation_task_list">6dp</dimen>

@ -21,6 +21,10 @@
<item name="android:spinnerItemStyle">@style/SpinnerNoPadding</item>
<item name="android:actionModeBackground">?attr/colorPrimary</item>
<item name="alertDialogTheme">@style/DialogBaseDark</item>
<item name="alpha_primary">@dimen/alpha_primary_dark</item>
<item name="alpha_secondary">@dimen/alpha_secondary_dark</item>
<item name="alpha_disabled">@dimen/alpha_disabled_dark</item>
<item name="alpha_divider">@dimen/alpha_divider</item>
</style>
<style name="DarkOverride" parent="DarkBase">

@ -21,6 +21,10 @@
<item name="android:spinnerItemStyle">@style/SpinnerNoPadding</item>
<item name="android:actionModeBackground">?attr/colorPrimary</item>
<item name="alertDialogTheme">@style/LightDialogBase</item>
<item name="alpha_primary">@dimen/alpha_primary_light</item>
<item name="alpha_secondary">@dimen/alpha_secondary_light</item>
<item name="alpha_disabled">@dimen/alpha_disabled_light</item>
<item name="alpha_divider">@dimen/alpha_divider</item>
</style>
<style name="LightOverride" parent="LightBase">

Loading…
Cancel
Save