Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: mobile/android/base/resources/drawable/tab_thumbnail.xml

Issue 29348083: Issue 3769 - UI colours gone bad (Closed)
Patch Set: Created July 21, 2016, 2:09 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- This Source Code Form is subject to the terms of the Mozilla Public 2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
3 - License, v. 2.0. If a copy of the MPL was not distributed with this 3 - License, v. 2.0. If a copy of the MPL was not distributed with this
4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> 4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
5 5
6 <selector xmlns:android="http://schemas.android.com/apk/res/android" 6 <selector xmlns:android="http://schemas.android.com/apk/res/android"
7 xmlns:gecko="http://schemas.android.com/apk/res-auto"> 7 xmlns:gecko="http://schemas.android.com/apk/res-auto">
8 8
9 <!-- Using ABB color palette. See https://issues.adblockplus.org/ticket/3769 -->
9 <item android:state_focused="true"> 10 <item android:state_focused="true">
10 11
11 <shape android:shape="rectangle"> 12 <shape android:shape="rectangle">
12 <!-- @color/fennec_ui_orange with alpha --> 13 <solid android:color="@color/abb_accent_dark_blue_alpha"/>
13 <solid android:color="#B3FF9500"/>
14 <corners android:radius="1dp"/> 14 <corners android:radius="1dp"/>
15 </shape> 15 </shape>
16 16
17 </item> 17 </item>
18 18
19 <item android:state_focused="true" 19 <item android:state_focused="true"
20 gecko:state_private="true"> 20 gecko:state_private="true">
21 21
22 <shape android:shape="rectangle"> 22 <shape android:shape="rectangle">
23 <!-- @color/private_browsing_purple with alpha --> 23 <solid android:color="@color/abb_private_purple_alpha"/>
24 <solid android:color="#B3CF68FF"/>
25 <corners android:radius="1dp"/> 24 <corners android:radius="1dp"/>
26 </shape> 25 </shape>
27 26
28 </item> 27 </item>
29 28
30 <item android:state_pressed="true" 29 <item android:state_pressed="true"
31 gecko:state_private="true"> 30 gecko:state_private="true">
32 31
33 <shape android:shape="rectangle"> 32 <shape android:shape="rectangle">
34 <!-- @color/private_browsing_purple with alpha --> 33 <solid android:color="@color/abb_private_purple_alpha"/>
35 <solid android:color="#B3CF68FF"/>
36 <corners android:radius="1dp"/> 34 <corners android:radius="1dp"/>
37 </shape> 35 </shape>
38 36
39 </item> 37 </item>
40 38
41 <item android:state_pressed="true"> 39 <item android:state_pressed="true">
42 40
43 <shape android:shape="rectangle"> 41 <shape android:shape="rectangle">
44 <!-- @color/fennec_ui_orange with alpha --> 42 <solid android:color="@color/abb_accent_dark_blue_alpha"/>
45 <solid android:color="#B3FF9500"/>
46 <corners android:radius="1dp"/> 43 <corners android:radius="1dp"/>
47 </shape> 44 </shape>
48 45
49 </item> 46 </item>
50 47
51 <item gecko:state_recording="true"> 48 <item gecko:state_recording="true">
52 49
53 <shape android:shape="rectangle"> 50 <shape android:shape="rectangle">
54 <solid android:color="#FFFF0000"/> 51 <solid android:color="#FFFF0000"/>
55 <corners android:radius="1dp"/> 52 <corners android:radius="1dp"/>
(...skipping 19 matching lines...) Expand all
75 android:state_checked="true" 72 android:state_checked="true"
76 gecko:state_recording="false"> 73 gecko:state_recording="false">
77 74
78 <shape android:shape="rectangle"> 75 <shape android:shape="rectangle">
79 <solid android:color="@color/fennec_ui_orange"/> 76 <solid android:color="@color/fennec_ui_orange"/>
80 <corners android:radius="1dp"/> 77 <corners android:radius="1dp"/>
81 </shape> 78 </shape>
82 79
83 </item> 80 </item>
84 81
85 <item android:drawable="@android:color/transparent"/> 82 <!-- Adding inset border to normal state in order to follow ABB design guide -->
83 <!-- See https://issues.adblockplus.org/ticket/3769 -->
84 <item>
85
86 <inset android:insetBottom="2dp" android:insetLeft="2dp" android:insetRi ght="2dp"
87 android:insetTop="2dp">
88
89 <shape android:shape="rectangle">
90 <solid android:color="@color/abb_border_grey" />
91 <corners android:radius="1dp" />
92 </shape>
93
94 </inset>
95
96 </item>
86 97
87 </selector> 98 </selector>
OLDNEW

Powered by Google App Engine
This is Rietveld