mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1055536 - Consolidate divider colors (r=margaret)
This commit is contained in:
parent
ce58b9d224
commit
1fcf632550
@ -6,7 +6,7 @@
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
|
||||
<solid android:color="#D7D9DB"/>
|
||||
<solid android:color="@color/divider_light"/>
|
||||
<size android:height="1dp" />
|
||||
|
||||
</shape>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
|
||||
<solid android:color="#D7D9DB"/>
|
||||
<solid android:color="@color/divider_light"/>
|
||||
<size android:width="1dp" />
|
||||
|
||||
</shape>
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
<shape android:shape="rectangle" >
|
||||
<stroke android:width="1px"
|
||||
android:color="@color/doorhanger_divider_light" />
|
||||
android:color="@color/divider_light" />
|
||||
|
||||
<solid android:color="#00000000" />
|
||||
</shape>
|
||||
|
@ -59,7 +59,7 @@
|
||||
<!-- DropDown List View -->
|
||||
<style name="DropDownListView" parent="@android:style/Widget.Holo.ListView.DropDown">
|
||||
<item name="android:listSelector">@drawable/action_bar_button</item>
|
||||
<item name="android:divider">#FFD7D9DB</item>
|
||||
<item name="android:divider">@color/divider_light</item>
|
||||
<item name="android:dividerHeight">1dp</item>
|
||||
</style>
|
||||
|
||||
|
@ -69,6 +69,10 @@
|
||||
<!-- Link colors -->
|
||||
<color name="text_color_link">#22629E</color>
|
||||
|
||||
<!-- Divider colors -->
|
||||
<color name="divider_light">#FFD7D9DB</color>
|
||||
<color name="divider_dark">#FFB3C2CE</color>
|
||||
|
||||
<color name="splash_background">#000000</color>
|
||||
<color name="splash_msgfont">#ffffff</color>
|
||||
<color name="splash_urlfont">#000000</color>
|
||||
@ -76,8 +80,6 @@
|
||||
|
||||
<color name="doorhanger_text">#FF222222</color>
|
||||
<color name="doorhanger_link">#FF2AA1FE</color>
|
||||
<color name="doorhanger_divider_light">#FFD7D9DB</color>
|
||||
<color name="doorhanger_divider_dark">#FFB3C2CE</color>
|
||||
<color name="doorhanger_background_dark">#FFDDE4EA</color>
|
||||
|
||||
<color name="validation_message_text">#ffffff</color>
|
||||
@ -120,6 +122,5 @@
|
||||
<color name="toast_background">#DD363B40</color>
|
||||
<color name="toast_button_background">#00000000</color>
|
||||
<color name="toast_button_pressed">#DD2C3136</color>
|
||||
<color name="toast_button_divider">#FFD7D9DB</color>
|
||||
<color name="toast_button_text">#FFFFFFFF</color>
|
||||
</resources>
|
||||
|
@ -45,7 +45,7 @@
|
||||
</style>
|
||||
|
||||
<style name="Widget.ListView" parent="Widget.BaseListView">
|
||||
<item name="android:divider">#D7D9DB</item>
|
||||
<item name="android:divider">@color/divider_light</item>
|
||||
<item name="android:dividerHeight">1dp</item>
|
||||
<item name="android:cacheColorHint">@android:color/transparent</item>
|
||||
<item name="android:listSelector">@drawable/action_bar_button</item>
|
||||
@ -686,7 +686,7 @@
|
||||
</style>
|
||||
|
||||
<style name="ToastDividerBase">
|
||||
<item name="android:background">@color/toast_button_divider</item>
|
||||
<item name="android:background">@color/divider_light</item>
|
||||
<item name="android:layout_width">1dp</item>
|
||||
<item name="android:layout_height">match_parent</item>
|
||||
</style>
|
||||
|
@ -121,10 +121,10 @@ public class DoorHanger extends LinearLayout {
|
||||
if (theme == Theme.LIGHT) {
|
||||
// The default styles declared in doorhanger.xml are light-themed, so we just
|
||||
// need to set the divider color that we'll use in addButton.
|
||||
mDividerColor = mResources.getColor(R.color.doorhanger_divider_light);
|
||||
mDividerColor = mResources.getColor(R.color.divider_light);
|
||||
|
||||
} else if (theme == Theme.DARK) {
|
||||
mDividerColor = mResources.getColor(R.color.doorhanger_divider_dark);
|
||||
mDividerColor = mResources.getColor(R.color.divider_dark);
|
||||
|
||||
// Set a dark background, and use a smaller text size for dark-themed DoorHangers.
|
||||
setBackgroundColor(mResources.getColor(R.color.doorhanger_background_dark));
|
||||
|
Loading…
Reference in New Issue
Block a user