Skip to content

A tiny friend in your Mac's notch and on your iPhone that keeps an eye on your AI coding agents: Claude Code, Codex, Cursor, Gemini CLI, Antigravity and more. Approve from the notch or your Lock Screen.

Android Widgets: icons and shared styles for buttons

Claude84a738f8a8d7
diff --git a/android/app/src/main/res/drawable/ic_widget_chat.xml b/android/app/src/main/res/drawable/ic_widget_chat.xml
new file mode 100644
index 00000000..14006cae
--- /dev/null
+++ b/android/app/src/main/res/drawable/ic_widget_chat.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Chat. A 24dp outline icon, 2dp stroke, in the Widgets' text colour (so the light variant follows the system). -->
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:pathData="M5,4.5 H19 A1.5,1.5 0 0 1 20.5,6 V15 A1.5,1.5 0 0 1 19,16.5 H11 L7,20 V16.5 H5 A1.5,1.5 0 0 1 3.5,15 V6 A1.5,1.5 0 0 1 5,4.5 Z"
+ android:strokeColor="@color/widget_text"
+ android:strokeWidth="2"
+ android:strokeLineCap="round"
+ android:strokeLineJoin="round" />
+</vector>
diff --git a/android/app/src/main/res/drawable/ic_widget_home.xml b/android/app/src/main/res/drawable/ic_widget_home.xml
new file mode 100644
index 00000000..f6e5f14e
--- /dev/null
+++ b/android/app/src/main/res/drawable/ic_widget_home.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Home. A 24dp outline icon, 2dp stroke, in the Widgets' text colour (so the light variant follows the system). -->
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:pathData="M3,11.5 L12,4 L21,11.5"
+ android:strokeColor="@color/widget_text"
+ android:strokeWidth="2"
+ android:strokeLineCap="round"
+ android:strokeLineJoin="round" />
+ <path
+ android:pathData="M5.5,10 V19.5 A0.5,0.5 0 0 0 6,20 H10 V14.5 H14 V20 H18 A0.5,0.5 0 0 0 18.5,19.5 V10"
+ android:strokeColor="@color/widget_text"
+ android:strokeWidth="2"
+ android:strokeLineCap="round"
+ android:strokeLineJoin="round" />
+</vector>
diff --git a/android/app/src/main/res/drawable/ic_widget_pair.xml b/android/app/src/main/res/drawable/ic_widget_pair.xml
new file mode 100644
index 00000000..02dcdb57
--- /dev/null
+++ b/android/app/src/main/res/drawable/ic_widget_pair.xml
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Pair again (a code to scan). A 24dp outline icon, 2dp stroke, in the Widgets' text colour (so the light variant follows the system). -->
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:pathData="M4,4 H10 V10 H4 Z"
+ android:strokeColor="@color/widget_text"
+ android:strokeWidth="2"
+ android:strokeLineCap="round"
+ android:strokeLineJoin="round" />
+ <path
+ android:pathData="M14,4 H20 V10 H14 Z"
+ android:strokeColor="@color/widget_text"
+ android:strokeWidth="2"
+ android:strokeLineCap="round"
+ android:strokeLineJoin="round" />
+ <path
+ android:pathData="M4,14 H10 V20 H4 Z"
+ android:strokeColor="@color/widget_text"
+ android:strokeWidth="2"
+ android:strokeLineCap="round"
+ android:strokeLineJoin="round" />
+ <path
+ android:pathData="M14,14 H16.5"
+ android:strokeColor="@color/widget_text"
+ android:strokeWidth="2"
+ android:strokeLineCap="round"
+ android:strokeLineJoin="round" />
+ <path
+ android:pathData="M20,14 V16.5"
+ android:strokeColor="@color/widget_text"
+ android:strokeWidth="2"
+ android:strokeLineCap="round"
+ android:strokeLineJoin="round" />
+ <path
+ android:pathData="M14,17.5 V20"
+ android:strokeColor="@color/widget_text"
+ android:strokeWidth="2"
+ android:strokeLineCap="round"
+ android:strokeLineJoin="round" />
+ <path
+ android:pathData="M17.5,20 H20"
+ android:strokeColor="@color/widget_text"
+ android:strokeWidth="2"
+ android:strokeLineCap="round"
+ android:strokeLineJoin="round" />
+</vector>
diff --git a/android/app/src/main/res/drawable/ic_widget_recent.xml b/android/app/src/main/res/drawable/ic_widget_recent.xml
new file mode 100644
index 00000000..eea7532c
--- /dev/null
+++ b/android/app/src/main/res/drawable/ic_widget_recent.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Recent decisions (a clock). A 24dp outline icon, 2dp stroke, in the Widgets' text colour (so the light variant follows the system). -->
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:pathData="M12,3.5 A8.5,8.5 0 1 1 12,20.5 A8.5,8.5 0 1 1 12,3.5 Z"
+ android:strokeColor="@color/widget_text"
+ android:strokeWidth="2"
+ android:strokeLineCap="round"
+ android:strokeLineJoin="round" />
+ <path
+ android:pathData="M12,7.5 V12 L15.2,14"
+ android:strokeColor="@color/widget_text"
+ android:strokeWidth="2"
+ android:strokeLineCap="round"
+ android:strokeLineJoin="round" />
+</vector>
diff --git a/android/app/src/main/res/drawable/ic_widget_session.xml b/android/app/src/main/res/drawable/ic_widget_session.xml
new file mode 100644
index 00000000..6aeaa534
--- /dev/null
+++ b/android/app/src/main/res/drawable/ic_widget_session.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Open the top agent. A 24dp outline icon, 2dp stroke, in the Widgets' text colour (so the light variant follows the system). -->
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:pathData="M13.5,4 H20 V10.5"
+ android:strokeColor="@color/widget_text"
+ android:strokeWidth="2"
+ android:strokeLineCap="round"
+ android:strokeLineJoin="round" />
+ <path
+ android:pathData="M20,4 L11,13"
+ android:strokeColor="@color/widget_text"
+ android:strokeWidth="2"
+ android:strokeLineCap="round"
+ android:strokeLineJoin="round" />
+ <path
+ android:pathData="M18,14.5 V18.5 A1.5,1.5 0 0 1 16.5,20 H5.5 A1.5,1.5 0 0 1 4,18.5 V7.5 A1.5,1.5 0 0 1 5.5,6 H9.5"
+ android:strokeColor="@color/widget_text"
+ android:strokeWidth="2"
+ android:strokeLineCap="round"
+ android:strokeLineJoin="round" />
+</vector>
diff --git a/android/app/src/main/res/drawable/ic_widget_settings.xml b/android/app/src/main/res/drawable/ic_widget_settings.xml
new file mode 100644
index 00000000..4d0ae6f0
--- /dev/null
+++ b/android/app/src/main/res/drawable/ic_widget_settings.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Settings. A 24dp outline icon, 2dp stroke, in the Widgets' text colour (so the light variant follows the system). -->
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:pathData="M12,5.6 A6.4,6.4 0 1 1 12,18.4 A6.4,6.4 0 1 1 12,5.6 Z"
+ android:strokeColor="@color/widget_text"
+ android:strokeWidth="2"
+ android:strokeLineCap="round"
+ android:strokeLineJoin="round" />
+ <path
+ android:pathData="M12,9.5 A2.5,2.5 0 1 1 12,14.5 A2.5,2.5 0 1 1 12,9.5 Z"
+ android:strokeColor="@color/widget_text"
+ android:strokeWidth="2"
+ android:strokeLineCap="round"
+ android:strokeLineJoin="round" />
+ <path
+ android:pathData="M18.40,12.00 L21.40,12.00 M16.53,16.53 L18.65,18.65 M12.00,18.40 L12.00,21.40 M7.47,16.53 L5.35,18.65 M5.60,12.00 L2.60,12.00 M7.47,7.47 L5.35,5.35 M12.00,5.60 L12.00,2.60 M16.53,7.47 L18.65,5.35"
+ android:strokeColor="@color/widget_text"
+ android:strokeWidth="2"
+ android:strokeLineCap="round"
+ android:strokeLineJoin="round" />
+</vector>
diff --git a/android/app/src/main/res/drawable/widget_button_bg.xml b/android/app/src/main/res/drawable/widget_button_bg.xml
new file mode 100644
index 00000000..e8073ede
--- /dev/null
+++ b/android/app/src/main/res/drawable/widget_button_bg.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- The round button of a Widget: a subtle lighter circle (darker in day mode) behind a white outline icon. -->
+<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval">
+ <solid android:color="@color/widget_button" />
+</shape>
diff --git a/android/app/src/main/res/drawable/widget_tile_bg.xml b/android/app/src/main/res/drawable/widget_tile_bg.xml
new file mode 100644
index 00000000..0b1b1801
--- /dev/null
+++ b/android/app/src/main/res/drawable/widget_tile_bg.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- The tile of a Widget button (icon above a label): a lighter rounded rectangle. -->
+<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
+ <solid android:color="@color/widget_button" />
+ <corners android:radius="@dimen/widget_tile_radius" />
+</shape>
diff --git a/android/app/src/main/res/drawable/widget_tile_bg_attention.xml b/android/app/src/main/res/drawable/widget_tile_bg_attention.xml
new file mode 100644
index 00000000..8eddea35
--- /dev/null
+++ b/android/app/src/main/res/drawable/widget_tile_bg_attention.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- The same tile while something waits for you: tinted orange with a thin orange border. -->
+<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
+ <solid android:color="@color/widget_tint_attention" />
+ <stroke android:width="1dp" android:color="@color/widget_tone_attention" />
+ <corners android:radius="@dimen/widget_tile_radius" />
+</shape>
diff --git a/android/app/src/main/res/values-notnight/colors.xml b/android/app/src/main/res/values-notnight/colors.xml
index d839d2cd..a97a7374 100644
--- a/android/app/src/main/res/values-notnight/colors.xml
+++ b/android/app/src/main/res/values-notnight/colors.xml
@@ -8,4 +8,5 @@
<color name="widget_text_secondary">#B31C1C1E</color>
<color name="widget_bubble">#FFFFFFFF</color>
<color name="widget_bubble_text">#FF1C1C1E</color>
+ <color name="widget_button">#14000000</color>
</resources>
diff --git a/android/app/src/main/res/values/colors.xml b/android/app/src/main/res/values/colors.xml
index d27a84b9..79967750 100644
--- a/android/app/src/main/res/values/colors.xml
+++ b/android/app/src/main/res/values/colors.xml
@@ -8,6 +8,8 @@
<color name="widget_text_secondary">#B3FFFFFF</color>
<color name="widget_bubble">#FFFFFFFF</color>
<color name="widget_bubble_text">#FF1C1C1E</color>
+ <!-- The lighter circle or tile behind a button. -->
+ <color name="widget_button">#1FFFFFFF</color>
<!-- The state palette: the same colours as Mochi's states (MochiConst) and WidgetTone. -->
<color name="widget_tone_muted">#FF94A2B8</color>
diff --git a/android/app/src/main/res/values/dimens.xml b/android/app/src/main/res/values/dimens.xml
index fca3ab8d..b506f326 100644
--- a/android/app/src/main/res/values/dimens.xml
+++ b/android/app/src/main/res/values/dimens.xml
@@ -5,6 +5,10 @@
<dimen name="widget_border_width">1dp</dimen>
<dimen name="widget_pad">12dp</dimen>
<dimen name="widget_row_min">48dp</dimen>
+ <dimen name="widget_button">36dp</dimen>
+ <dimen name="widget_button_pad">8dp</dimen>
+ <dimen name="widget_tile_radius">16dp</dimen>
+ <dimen name="widget_tile_height">52dp</dimen>
<dimen name="widget_dot">10dp</dimen>
<dimen name="widget_icon">18dp</dimen>
<dimen name="widget_text_name">16sp</dimen>
diff --git a/android/app/src/main/res/values/strings.xml b/android/app/src/main/res/values/strings.xml
index 886890cd..c26e7b11 100644
--- a/android/app/src/main/res/values/strings.xml
+++ b/android/app/src/main/res/values/strings.xml
@@ -37,6 +37,18 @@
<string name="widget_initial_title">Coucou</string>
<string name="widget_initial_line">Waiting for your agents</string>
<string name="widget_initial_count">0</string>
+ <string name="widget_btn_home">Home</string>
+ <string name="widget_btn_chat">Chat</string>
+ <string name="widget_btn_settings">Settings</string>
+ <string name="widget_btn_recent">Recent</string>
+ <string name="widget_btn_session">Top agent</string>
+ <string name="widget_btn_pair">Pair again</string>
+ <string name="widget_btn_home_cd">Open Coucou</string>
+ <string name="widget_btn_chat_cd">Open Chat</string>
+ <string name="widget_btn_settings_cd">Open Settings</string>
+ <string name="widget_btn_recent_cd">Open recent decisions</string>
+ <string name="widget_btn_session_cd">Open the top agent</string>
+ <string name="widget_btn_pair_cd">Pair again with your computer</string>
<string name="widget_sample_claude">Claude Code</string>
<string name="widget_sample_codex">Codex</string>
<string name="widget_sample_gemini">Gemini CLI</string>
diff --git a/android/i18n/app-strings.json b/android/i18n/app-strings.json
index 4fe3c99b..97f1f3b2 100644
--- a/android/i18n/app-strings.json
+++ b/android/i18n/app-strings.json
@@ -37,6 +37,18 @@
"widget_initial_title": "Coucou",
"widget_initial_line": "Waiting for your agents",
"widget_initial_count": "0",
+ "widget_btn_home": "Home",
+ "widget_btn_chat": "Chat",
+ "widget_btn_settings": "Settings",
+ "widget_btn_recent": "Recent",
+ "widget_btn_session": "Top agent",
+ "widget_btn_pair": "Pair again",
+ "widget_btn_home_cd": "Open Coucou",
+ "widget_btn_chat_cd": "Open Chat",
+ "widget_btn_settings_cd": "Open Settings",
+ "widget_btn_recent_cd": "Open recent decisions",
+ "widget_btn_session_cd": "Open the top agent",
+ "widget_btn_pair_cd": "Pair again with your computer",
"widget_sample_claude": "Claude Code",
"widget_sample_codex": "Codex",
"widget_sample_gemini": "Gemini CLI",