Commit f75ba3c
authored
feat: create component - top app bar (#954)
* Add OudsTopAppBar
# Conflicts:
# NOTICE.txt
# core/src/main/java/com/orange/ouds/core/component/OudsTag.kt
# theme-contract/src/main/java/com/orange/ouds/theme/OudsDrawableResources.kt
# theme-orange/src/main/java/com/orange/ouds/theme/orange/OrangeDrawableResources.kt
# theme-sosh/src/main/java/com/orange/ouds/theme/sosh/SoshDrawableResources.kt
# theme-wireframe/src/main/java/com/orange/ouds/theme/wireframe/WireframeDrawableResources.kt
# Conflicts:
# core/src/main/java/com/orange/ouds/core/component/OudsTag.kt
* Add design version to navigation and top app bars
* Add top app bar demo
* Add translucent parameter to top app bar
* Integrate OudsTopAppBar into the demo app
* Add snapshot tests
* Add instrumented tests
* Rename NavigationBar to Bar in OudsVersion
* Monogram is now limited to a single letter and does not take user font scale into account
* Fix a crash in typography tokens screen
* Review: Fix KDoc
* Review: Rename size parameter of Title method to topAppBarSize to avoid confusion
* Review: It is now possible to customize the top app bar demo with all kind of navigation icons
* Review: Replace hardcoded 48dp with minInteractiveArea token value
* Review: Remove empty line
* Review: Factorize top padding and window insets of top bars
* feat(top-app-bar): add the option to add a badge on an icon in the top app bar (#969)
* Add OudsComponentIconBadge and an icon badge parameter in OudsButton
* Add snapshot tests for OudsButton with icon badge
* Add OudsBadgedIcon and use it in OudsNavigationBarItem
* Add snapshot tests for OudsBadgedIcon
* Add OudsTopAppBarActionBadge
* Add top app bar action badge to the demo screen
* Add KDoc to OudsBadgedIcon
* Fix accessibility on OudsBadgedIcon
* Various fixes
* Fix layout of standard OudsBadgedIcon in RTL
* Review: Remove guard condition in when
* Review: Change appearance of button to minimal in icon badge preview1 parent 4ff46ee commit f75ba3c
File tree
344 files changed
+2892
-515
lines changed- app/src/main
- java/com/orange/ouds/app/ui
- about
- components
- coloredbackground
- tag
- topappbar
- tokens
- utilities
- composable
- res
- drawable
- values-ar
- values
- buildSrc/src/main/kotlin/com/orange/ouds/gradle
- core-test/src/main/java/com/orange/ouds/core/test
- core
- src
- androidTest/java/com/orange/ouds/core/component
- main
- java/com/orange/ouds/core
- component
- content
- samples
- theme
- utilities
- res/values
- test
- java/com/orange/ouds/core/component
- snapshots/images
- theme-contract/src/main/java/com/orange/ouds/theme
- theme-orange/src
- main
- java/com/orange/ouds/theme/orange
- res/drawable
- test/snapshots/images
- theme-sosh/src
- main
- java/com/orange/ouds/theme/sosh
- res/drawable
- test/snapshots/images
- theme-wireframe/src
- main
- java/com/orange/ouds/theme/wireframe
- res/drawable
- test/snapshots/images
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
344 files changed
+2892
-515
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
115 | 118 | | |
116 | 119 | | |
117 | 120 | | |
| |||
126 | 129 | | |
127 | 130 | | |
128 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
129 | 135 | | |
130 | 136 | | |
131 | 137 | | |
| |||
145 | 151 | | |
146 | 152 | | |
147 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
148 | 157 | | |
149 | 158 | | |
150 | 159 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
| |||
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
49 | | - | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
| |||
63 | 66 | | |
64 | 67 | | |
65 | 68 | | |
66 | | - | |
| 69 | + | |
67 | 70 | | |
68 | 71 | | |
69 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
103 | | - | |
104 | 102 | | |
105 | 103 | | |
106 | 104 | | |
107 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
113 | 114 | | |
| 115 | + | |
114 | 116 | | |
115 | 117 | | |
116 | 118 | | |
| |||
124 | 126 | | |
125 | 127 | | |
126 | 128 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
| 129 | + | |
131 | 130 | | |
132 | 131 | | |
133 | 132 | | |
| |||
137 | 136 | | |
138 | 137 | | |
139 | 138 | | |
140 | | - | |
| 139 | + | |
141 | 140 | | |
142 | 141 | | |
143 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | 22 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | 23 | | |
30 | 24 | | |
31 | | - | |
| 25 | + | |
32 | 26 | | |
33 | 27 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | 28 | | |
38 | 29 | | |
| 30 | + | |
39 | 31 | | |
40 | 32 | | |
41 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
42 | 37 | | |
43 | 38 | | |
44 | 39 | | |
45 | 40 | | |
46 | 41 | | |
47 | 42 | | |
48 | | - | |
| 43 | + | |
| 44 | + | |
49 | 45 | | |
50 | 46 | | |
| 47 | + | |
51 | 48 | | |
52 | 49 | | |
53 | 50 | | |
| |||
63 | 60 | | |
64 | 61 | | |
65 | 62 | | |
66 | | - | |
| 63 | + | |
| 64 | + | |
67 | 65 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
89 | 76 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | 77 | | |
94 | 78 | | |
95 | 79 | | |
96 | 80 | | |
97 | 81 | | |
98 | 82 | | |
99 | 83 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
124 | 91 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
130 | 100 | | |
131 | | - | |
132 | | - | |
133 | | - | |
| 101 | + | |
| 102 | + | |
134 | 103 | | |
135 | 104 | | |
136 | 105 | | |
| |||
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
21 | 24 | | |
| 25 | + | |
| 26 | + | |
22 | 27 | | |
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
26 | 31 | | |
27 | 32 | | |
28 | 33 | | |
| 34 | + | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
| |||
37 | 43 | | |
38 | 44 | | |
39 | 45 | | |
40 | | - | |
| 46 | + | |
| 47 | + | |
41 | 48 | | |
42 | 49 | | |
43 | 50 | | |
44 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
45 | 54 | | |
46 | 55 | | |
47 | 56 | | |
48 | 57 | | |
49 | 58 | | |
50 | 59 | | |
51 | 60 | | |
52 | | - | |
| 61 | + | |
53 | 62 | | |
54 | 63 | | |
55 | 64 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
149 | 150 | | |
| 151 | + | |
150 | 152 | | |
151 | 153 | | |
152 | 154 | | |
| |||
167 | 169 | | |
168 | 170 | | |
169 | 171 | | |
170 | | - | |
| 172 | + | |
| 173 | + | |
171 | 174 | | |
172 | 175 | | |
173 | 176 | | |
| |||
Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
26 | 32 | | |
27 | 33 | | |
28 | 34 | | |
29 | 35 | | |
| 36 | + | |
30 | 37 | | |
31 | 38 | | |
32 | 39 | | |
| |||
42 | 49 | | |
43 | 50 | | |
44 | 51 | | |
| 52 | + | |
45 | 53 | | |
| 54 | + | |
46 | 55 | | |
47 | 56 | | |
48 | 57 | | |
| |||
80 | 89 | | |
81 | 90 | | |
82 | 91 | | |
83 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
84 | 99 | | |
85 | 100 | | |
86 | 101 | | |
| |||
0 commit comments