Skip to content

Commit c3e2378

Browse files
authored
Add Duck.ai RMF icon (#6021)
Task/Issue URL: https://app.asana.com/1/137249556945/project/488551667048375/task/1210185019902173?focus=true ### Description - Adds the Duck.ai icon to RMF. ### Steps to test this PR _Change the remote config endpoint to the one linked in the task_ - [ ] Launch the app - [ ] Verify that the Duck.ai icon is shown in RMF ### UI changes ![duck_ai_rmf_mk2 copy](https://github.com/user-attachments/assets/3ea6bb4a-d137-4691-bcb6-940d2151823c)
1 parent a604649 commit c3e2378

File tree

4 files changed

+87
-0
lines changed

4 files changed

+87
-0
lines changed

app/src/main/java/com/duckduckgo/app/browser/remotemessage/RemoteMessageMapper.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import com.duckduckgo.remote.messaging.api.Content.Placeholder.ANNOUNCE
2727
import com.duckduckgo.remote.messaging.api.Content.Placeholder.APP_UPDATE
2828
import com.duckduckgo.remote.messaging.api.Content.Placeholder.CRITICAL_UPDATE
2929
import com.duckduckgo.remote.messaging.api.Content.Placeholder.DDG_ANNOUNCE
30+
import com.duckduckgo.remote.messaging.api.Content.Placeholder.DUCK_AI
3031
import com.duckduckgo.remote.messaging.api.Content.Placeholder.MAC_AND_WINDOWS
3132
import com.duckduckgo.remote.messaging.api.Content.Placeholder.PRIVACY_SHIELD
3233
import com.duckduckgo.remote.messaging.api.Content.PromoSingleAction
@@ -79,5 +80,6 @@ private fun Placeholder.drawable(): Int {
7980
APP_UPDATE -> R.drawable.ic_app_update
8081
MAC_AND_WINDOWS -> R.drawable.desktop_promo_artwork
8182
PRIVACY_SHIELD -> R.drawable.ic_privacy_pro
83+
DUCK_AI -> R.drawable.ic_duck_ai
8284
}
8385
}
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
<!--
2+
~ Copyright (c) 2025 DuckDuckGo
3+
~
4+
~ Licensed under the Apache License, Version 2.0 (the "License");
5+
~ you may not use this file except in compliance with the License.
6+
~ You may obtain a copy of the License at
7+
~
8+
~ http://www.apache.org/licenses/LICENSE-2.0
9+
~
10+
~ Unless required by applicable law or agreed to in writing, software
11+
~ distributed under the License is distributed on an "AS IS" BASIS,
12+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
~ See the License for the specific language governing permissions and
14+
~ limitations under the License.
15+
-->
16+
17+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
18+
xmlns:aapt="http://schemas.android.com/aapt"
19+
android:width="72dp"
20+
android:height="72dp"
21+
android:viewportWidth="96"
22+
android:viewportHeight="96">
23+
24+
<path android:pathData="M26.702,79.23c0.295,0.025 0.608,0.006 0.932,-0.066 10.154,-2.248 26.61,-6.188 34.398,-9.68C72.043,65.07 79,55.32 79,44c0,-15.14 -12.447,-27.475 -28,-27.984V16h-7v0.6C30.863,19.268 21,30.522 21,44c0,8.941 4.34,16.904 11.099,22.03l-7.28,8.32a3.2,3.2 0,0 0,-0.443 0.65H22v4.23z">
25+
26+
<aapt:attr name="android:fillColor">
27+
28+
<gradient
29+
android:endX="50"
30+
android:endY="79.24"
31+
android:startX="50"
32+
android:startY="16"
33+
android:type="linear">
34+
35+
<item
36+
android:color="#FF876ECB"
37+
android:offset="0" />
38+
39+
<item
40+
android:color="#FF2B55CA"
41+
android:offset="1" />
42+
43+
</gradient>
44+
45+
</aapt:attr>
46+
47+
</path>
48+
49+
<path android:pathData="M24.649,63.947c1.26,1.2 1.476,3.195 0.331,4.504l-5.161,5.899c-1.887,2.157 0.017,5.433 2.816,4.814 10.154,-2.248 26.61,-6.188 34.398,-9.68C67.043,65.07 74,55.32 74,44c0,-15.464 -12.984,-28 -29,-28S16,28.536 16,44c0,7.808 3.31,14.87 8.649,19.947">
50+
51+
<aapt:attr name="android:fillColor">
52+
53+
<gradient
54+
android:endX="45"
55+
android:endY="79.24"
56+
android:startX="45"
57+
android:startY="16"
58+
android:type="linear">
59+
60+
<item
61+
android:color="#FFC7B9EE"
62+
android:offset="0" />
63+
64+
<item
65+
android:color="#FFA0A8F2"
66+
android:offset="0.638" />
67+
68+
<item
69+
android:color="#FF7295F6"
70+
android:offset="1" />
71+
72+
</gradient>
73+
74+
</aapt:attr>
75+
76+
</path>
77+
78+
<path
79+
android:fillColor="#fff"
80+
android:pathData="M43.727,28.712c0.332,-1.325 2.215,-1.325 2.546,0l1.236,4.944a10.93,10.93 0,0 0,7.955 7.955l4.945,1.236c1.325,0.332 1.325,2.215 0,2.546l-4.945,1.236a10.93,10.93 0,0 0,-7.955 7.955l-1.236,4.945c-0.331,1.325 -2.214,1.325 -2.546,0l-1.236,-4.945a10.93,10.93 0,0 0,-7.955 -7.955l-4.945,-1.236c-1.325,-0.331 -1.325,-2.214 0,-2.546l4.945,-1.236a10.93,10.93 0,0 0,7.955 -7.955z" />
81+
82+
</vector>

remote-messaging/remote-messaging-api/src/main/java/com/duckduckgo/remote/messaging/api/RemoteMessage.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ sealed class Content(val messageType: MessageType) {
8282
APP_UPDATE("AppUpdate"),
8383
MAC_AND_WINDOWS("NewForMacAndWindows"),
8484
PRIVACY_SHIELD("PrivacyShield"),
85+
DUCK_AI("Duck.ai"),
8586
;
8687

8788
companion object {

remote-messaging/remote-messaging-impl/src/main/java/com/duckduckgo/remote/messaging/impl/mappers/RemoteMessageMapper.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import com.duckduckgo.remote.messaging.api.Content.Placeholder.ANNOUNCE
2727
import com.duckduckgo.remote.messaging.api.Content.Placeholder.APP_UPDATE
2828
import com.duckduckgo.remote.messaging.api.Content.Placeholder.CRITICAL_UPDATE
2929
import com.duckduckgo.remote.messaging.api.Content.Placeholder.DDG_ANNOUNCE
30+
import com.duckduckgo.remote.messaging.api.Content.Placeholder.DUCK_AI
3031
import com.duckduckgo.remote.messaging.api.Content.Placeholder.MAC_AND_WINDOWS
3132
import com.duckduckgo.remote.messaging.api.Content.Placeholder.PRIVACY_SHIELD
3233
import com.duckduckgo.remote.messaging.api.Content.PromoSingleAction
@@ -79,5 +80,6 @@ private fun Placeholder.drawable(): Int {
7980
APP_UPDATE -> R.drawable.ic_app_update
8081
MAC_AND_WINDOWS -> R.drawable.desktop_promo_artwork
8182
PRIVACY_SHIELD -> R.drawable.ic_privacy_pro
83+
DUCK_AI -> R.drawable.ic_duck_ai
8284
}
8385
}

0 commit comments

Comments
 (0)