Skip to content

Commit 4fad082

Browse files
committed
update the used check icon
1 parent de79e0c commit 4fad082

File tree

7 files changed

+51
-3
lines changed

7 files changed

+51
-3
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
android:width="24dp"
19+
android:height="24dp"
20+
android:viewportWidth="24"
21+
android:viewportHeight="24">
22+
<path
23+
android:pathData="M12,2C6.477,2 2,6.477 2,12s4.477,10 10,10 10,-4.477 10,-10S17.523,2 12,2Z"
24+
android:fillColor="?attr/daxColorAccentBlue"/>
25+
<path
26+
android:pathData="M16.775,9.214c0.296,0.29 0.3,0.765 0.011,1.06l-4.494,4.589c-0.785,0.8 -2.074,0.8 -2.859,0l-2.219,-2.265a0.75,0.75 0,0 1,1.072 -1.05l2.219,2.265c0.196,0.2 0.519,0.2 0.715,0l4.494,-4.588a0.75,0.75 0,0 1,1.061 -0.01Z"
27+
android:fillColor="?attr/daxColorAccentContentPrimary"/>
28+
</vector>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="24dp"
3+
android:height="24dp"
4+
android:viewportWidth="24"
5+
android:viewportHeight="24">
6+
<path
7+
android:pathData="M12,2C17.523,2 22,6.477 22,12C22,17.523 17.523,22 12,22C6.477,22 2,17.523 2,12C2,6.477 6.477,2 12,2ZM12,3.5C7.306,3.5 3.5,7.306 3.5,12C3.5,16.694 7.306,20.5 12,20.5C16.694,20.5 20.5,16.694 20.5,12C20.5,7.306 16.694,3.5 12,3.5Z"
8+
android:fillColor="?attr/daxColorIconDisabled"
9+
android:fillType="evenOdd"/>
10+
</vector>

common/common-ui/src/main/res/values/design-experiments-colors.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
<!-- Inside each category there are different colors, which define where are applied -->
2222

2323
<!-- Dark Palette -->
24+
<!-- Accents -->
25+
<color name="accent_content_primary_dark">@color/blue80</color>
26+
2427
<!-- Backgrounds -->
2528
<color name="background_background_dark">#27282A</color>
2629
<color name="background_surface_dark">#333538</color>
@@ -47,6 +50,9 @@
4750
<color name="controls_decoration_tertiary_dark">#B8F9F9F9</color>
4851

4952
<!-- Light Palette -->
53+
<!-- Accents -->
54+
<color name="accent_content_primary_light">@color/white</color>
55+
5056
<!-- Backgrounds -->
5157
<color name="background_background_light">#F2F2F2</color>
5258
<color name="background_surface_light">#F9F9F9</color>

common/common-ui/src/main/res/values/design-system-colors.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
<attr name="daxColorLines" format="color"/>
6161
<attr name="daxColorAccentBlue" format="color"/>
6262
<attr name="daxColorAccentYellow" format="color"/>
63+
<attr name="daxColorAccentContentPrimary" format="color"/>
6364
<attr name="daxColorContainerDisabled" format="color"/>
6465
<attr name="daxColorTextDisabled" format="color"/>
6566
<attr name="daxColorRipple" format="color"/>
@@ -192,6 +193,7 @@
192193
<color name="blue50_14">#243969EF</color>
193194
<color name="blue60">#2B55CA</color>
194195
<color name="blue70">#1E42A4</color>
196+
<color name="blue80">#14307E</color>
195197

196198
<color name="black84">#D6000000</color>
197199
<color name="black60">#99000000</color>

common/common-ui/src/main/res/values/design-system-theming.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@
181181
<item name="daxColorLines">@color/white9</item>
182182
<item name="daxColorAccentBlue">@color/blue30</item>
183183
<item name="daxColorAccentYellow">@color/yellow50</item>
184+
<item name="daxColorAccentContentPrimary">@color/accent_content_primary_dark</item>
184185
<item name="daxColorRipple">@color/white12</item>
185186
<item name="daxLogoTitleText">@color/white</item>
186187
<item name="daxOmnibarTextColorHighlight">@color/blue30_20</item>
@@ -289,6 +290,7 @@
289290
<item name="daxColorLines">@color/black9</item>
290291
<item name="daxColorAccentBlue">@color/blue50</item>
291292
<item name="daxColorAccentYellow">@color/yellow50</item>
293+
<item name="daxColorAccentContentPrimary">@color/accent_content_primary_light</item>
292294
<item name="daxColorRipple">@color/black6</item>
293295
<item name="daxLogoTitleText">@color/gray85</item>
294296
<item name="daxOmnibarTextColorHighlight">@color/blue50_20</item>

duckchat/duckchat-impl/src/main/java/com/duckduckgo/duckchat/impl/ui/settings/DuckChatSettingsActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,9 @@ class DuckChatSettingsActivity : DuckDuckGoActivity() {
210210
abstract val imageRes: Int
211211

212212
val checkRes: Int = if (isActive) {
213-
CommonR.drawable.ic_check_blue_round_24
213+
CommonR.drawable.ic_check_accent_24
214214
} else {
215-
CommonR.drawable.ic_shape_circle_24
215+
CommonR.drawable.ic_shape_circle_disabled_24
216216
}
217217

218218
class WithoutAi(isActive: Boolean, isLightMode: Boolean) : InputScreenToggleButton(isActive) {

duckchat/duckchat-impl/src/main/res/layout/activity_duck_chat_settings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
android:layout_width="wrap_content"
132132
android:layout_height="wrap_content"
133133
android:layout_marginTop="6dp"
134-
android:src="@drawable/ic_check_blue_round_24" />
134+
android:src="@drawable/ic_check_accent_24" />
135135

136136
</LinearLayout>
137137

0 commit comments

Comments
 (0)