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.
Swift ai-agentsanthropicantigravityclaudeclaude-codecodexcursordynamic-islandgemini-cliiosiphonlinuxmacosmacos-appmenubar-appnotchopen-sourceswiftswiftuiwindows
Android Widgets: Mochi Big preview in the new look
Claudef7ee06a33c4f
diff --git a/android/app/src/main/res/drawable/preview_bar_done.xml b/android/app/src/main/res/drawable/preview_bar_done.xmlnew file mode 100644index 00000000..f1a9ded8--- /dev/null+++ b/android/app/src/main/res/drawable/preview_bar_done.xml@@ -0,0 +1,6 @@+<?xml version="1.0" encoding="utf-8"?>+<!-- The green fill of a plan-usage bar in the Widget picker (green up to 75%). -->+<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">+ <solid android:color="@color/widget_tone_done" />+ <corners android:radius="3dp" />+</shape>diff --git a/android/app/src/main/res/drawable/preview_bar_track.xml b/android/app/src/main/res/drawable/preview_bar_track.xmlnew file mode 100644index 00000000..a9053ad4--- /dev/null+++ b/android/app/src/main/res/drawable/preview_bar_track.xml@@ -0,0 +1,6 @@+<?xml version="1.0" encoding="utf-8"?>+<!-- The faint track of a plan-usage bar in the Widget picker (the real bar is drawn to a bitmap by BarBitmap). -->+<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">+ <solid android:color="#40808080" />+ <corners android:radius="3dp" />+</shape>diff --git a/android/app/src/main/res/drawable/widget_bubble.xml b/android/app/src/main/res/drawable/widget_bubble.xmldeleted file mode 100644index 32e7d695..00000000--- a/android/app/src/main/res/drawable/widget_bubble.xml+++ /dev/null@@ -1,5 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">- <solid android:color="@color/widget_bubble" />- <corners android:radius="18dp" />-</shape>diff --git a/android/app/src/main/res/drawable/widget_bubble_tail.xml b/android/app/src/main/res/drawable/widget_bubble_tail.xmldeleted file mode 100644index 7f8de2ab..00000000--- a/android/app/src/main/res/drawable/widget_bubble_tail.xml+++ /dev/null@@ -1,9 +0,0 @@-<?xml version="1.0" encoding="utf-8"?>-<!-- The little point under Mochi's speech bubble. -->-<vector xmlns:android="http://schemas.android.com/apk/res/android"- android:width="20dp"- android:height="10dp"- android:viewportWidth="20"- android:viewportHeight="10">- <path android:fillColor="@color/widget_bubble" android:pathData="M0,0 L20,0 L10,10 Z" />-</vector>diff --git a/android/app/src/main/res/drawable/widget_preview_image_big.xml b/android/app/src/main/res/drawable/widget_preview_image_big.xmlindex 68990515..e2acd65b 100644--- a/android/app/src/main/res/drawable/widget_preview_image_big.xml+++ b/android/app/src/main/res/drawable/widget_preview_image_big.xml@@ -7,12 +7,12 @@android:top="1dp"android:right="1dp"android:bottom="1dp"- android:drawable="@drawable/widget_tint_attention" />+ android:drawable="@drawable/widget_tint_working" /><itemandroid:width="170dp"android:height="170dp"android:left="0dp"android:top="10dp"android:gravity="center"- android:drawable="@drawable/preview_mochi_waiting" />+ android:drawable="@drawable/preview_mochi_working" /></layer-list>diff --git a/android/app/src/main/res/layout/widget_preview_big.xml b/android/app/src/main/res/layout/widget_preview_big.xmlindex 1f569ac7..c4818343 100644--- a/android/app/src/main/res/layout/widget_preview_big.xml+++ b/android/app/src/main/res/layout/widget_preview_big.xml@@ -1,5 +1,6 @@<?xml version="1.0" encoding="utf-8"?>-<!-- Preview of Mochi Big: a waiting Mochi with a speech bubble, the status line and the six buttons, tinted orange while something waits.+<!-- Preview of Mochi Big: on the left a working Mochi with his glow, Claude Code and Working; on the right plan usage (Claude 68% and Codex+ 41%, each with a thin bar); under them the six button tiles.A still picture for the Widget picker (android:previewLayout): sample text, no ids, nothing from the app, no runtime bitmap.It uses the same card, border, gradient, type scale, buttons and state colours as the real Widget, so the picker shows what you will get. --><FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"@@ -11,267 +12,337 @@android:layout_width="match_parent"android:layout_height="match_parent"android:layout_margin="1dp"- android:background="@drawable/widget_tint_attention" />+ android:background="@drawable/widget_tint_working" /><LinearLayoutandroid:layout_width="match_parent"android:layout_height="match_parent"- android:gravity="center_horizontal"android:orientation="vertical"android:padding="12dp">- <TextView- android:layout_width="wrap_content"- android:layout_height="wrap_content"- android:background="@drawable/widget_bubble"- android:ellipsize="end"- android:gravity="center"- android:maxLines="2"- android:paddingStart="16dp"- android:paddingTop="8dp"- android:paddingEnd="16dp"- android:paddingBottom="8dp"- android:text="@string/widget_sample_bubble_waiting"- android:textColor="@color/widget_bubble_text"- android:textSize="@dimen/widget_text_name"- android:textStyle="bold" />-- <ImageView- android:layout_width="20dp"- android:layout_height="10dp"- android:importantForAccessibility="no"- android:src="@drawable/widget_bubble_tail" />-- <ImageView+ <LinearLayoutandroid:layout_width="match_parent"android:layout_height="0dp"android:layout_weight="1"- android:importantForAccessibility="no"- android:scaleType="fitCenter"- android:src="@drawable/preview_mochi_waiting" />-- <LinearLayout- android:layout_width="wrap_content"- android:layout_height="wrap_content"- android:gravity="center_vertical"android:orientation="horizontal">- <ImageView- android:layout_width="@dimen/widget_dot"- android:layout_height="@dimen/widget_dot"- android:importantForAccessibility="no"- android:src="@drawable/widget_dot"- android:tint="@color/widget_tone_attention" />- <TextView- android:layout_width="wrap_content"- android:layout_height="wrap_content"- android:layout_marginStart="8dp"- android:ellipsize="end"- android:maxLines="1"- android:text="@string/widget_sample_claude"- android:textColor="@color/widget_text"- android:textSize="@dimen/widget_text_name"- android:textStyle="bold" />- <TextView- android:layout_width="wrap_content"- android:layout_height="wrap_content"- android:layout_marginStart="8dp"- android:ellipsize="end"- android:maxLines="1"- android:text="@string/widget_sample_waiting"- android:textColor="@color/widget_text_secondary"- android:textSize="@dimen/widget_text_state" />- </LinearLayout>-- <LinearLayout- android:layout_width="match_parent"- android:layout_height="wrap_content"- android:layout_marginTop="8dp"- android:orientation="vertical">-- <LinearLayout- android:layout_width="match_parent"- android:layout_height="@dimen/widget_tile_height"- android:orientation="horizontal">-<LinearLayoutandroid:layout_width="0dp"android:layout_height="match_parent"- android:layout_marginStart="3dp"- android:layout_marginEnd="3dp"- android:layout_weight="1"- android:background="@drawable/widget_tile_bg_attention"- android:gravity="center"+ android:layout_weight="45"+ android:gravity="center_horizontal"android:orientation="vertical"><ImageView- android:layout_width="22dp"- android:layout_height="22dp"+ android:layout_width="match_parent"+ android:layout_height="0dp"+ android:layout_weight="1"android:importantForAccessibility="no"- android:src="@drawable/ic_widget_home" />+ android:scaleType="fitCenter"+ android:src="@drawable/preview_mochi_working" />- <TextView+ <LinearLayoutandroid:layout_width="wrap_content"android:layout_height="wrap_content"- android:ellipsize="end"- android:maxLines="1"- android:text="@string/widget_btn_home"- android:textColor="@color/widget_text"- android:textSize="@dimen/widget_text_secondary" />- </LinearLayout>+ android:gravity="center_vertical"+ android:orientation="horizontal">- <LinearLayout- android:layout_width="0dp"- android:layout_height="match_parent"- android:layout_marginStart="3dp"- android:layout_marginEnd="3dp"- android:layout_weight="1"- android:background="@drawable/widget_tile_bg_attention"- android:gravity="center"- android:orientation="vertical">+ <ImageView+ android:layout_width="@dimen/widget_dot"+ android:layout_height="@dimen/widget_dot"+ android:importantForAccessibility="no"+ android:src="@drawable/widget_dot"+ android:tint="@color/widget_tone_working" />- <ImageView- android:layout_width="22dp"- android:layout_height="22dp"- android:importantForAccessibility="no"- android:src="@drawable/ic_widget_chat" />+ <TextView+ android:layout_width="wrap_content"+ android:layout_height="wrap_content"+ android:layout_marginStart="6dp"+ android:ellipsize="end"+ android:maxLines="1"+ android:text="@string/widget_sample_claude"+ android:textColor="@color/widget_text"+ android:textSize="@dimen/widget_text_name"+ android:textStyle="bold" />+ </LinearLayout><TextView- android:layout_width="wrap_content"+ android:layout_width="match_parent"android:layout_height="wrap_content"android:ellipsize="end"+ android:gravity="center"android:maxLines="1"- android:text="@string/widget_btn_chat"- android:textColor="@color/widget_text"- android:textSize="@dimen/widget_text_secondary" />+ android:text="@string/widget_sample_working"+ android:textColor="@color/widget_text_secondary"+ android:textSize="@dimen/widget_text_state" /></LinearLayout><LinearLayoutandroid:layout_width="0dp"android:layout_height="match_parent"- android:layout_marginStart="3dp"- android:layout_marginEnd="3dp"- android:layout_weight="1"- android:background="@drawable/widget_tile_bg_attention"- android:gravity="center"+ android:layout_marginStart="8dp"+ android:layout_weight="55"+ android:gravity="center_vertical"android:orientation="vertical">- <ImageView- android:layout_width="22dp"- android:layout_height="22dp"- android:importantForAccessibility="no"- android:src="@drawable/ic_widget_settings" />+ <LinearLayout+ android:layout_width="match_parent"+ android:layout_height="wrap_content"+ android:layout_marginTop="0dp"+ android:orientation="vertical"><TextView- android:layout_width="wrap_content"+ android:layout_width="match_parent"android:layout_height="wrap_content"android:ellipsize="end"android:maxLines="1"- android:text="@string/widget_btn_settings"- android:textColor="@color/widget_text"+ android:text="@string/widget_sample_ring_label"+ android:textColor="@color/widget_text_secondary"android:textSize="@dimen/widget_text_secondary" />++ <TextView+ android:layout_width="match_parent"+ android:layout_height="wrap_content"+ android:maxLines="1"+ android:text="@string/widget_sample_pct_a"+ android:textColor="@color/widget_text"+ android:textSize="@dimen/widget_text_big"+ android:textStyle="bold" />++ <LinearLayout+ android:layout_width="match_parent"+ android:layout_height="6dp"+ android:layout_marginTop="2dp"+ android:background="@drawable/preview_bar_track"+ android:orientation="horizontal"+ android:weightSum="100">++ <ImageView+ android:layout_width="0dp"+ android:layout_height="match_parent"+ android:layout_weight="68"+ android:importantForAccessibility="no"+ android:src="@drawable/preview_bar_done" />+ </LinearLayout></LinearLayout><LinearLayout- android:layout_width="0dp"- android:layout_height="match_parent"- android:layout_marginStart="3dp"- android:layout_marginEnd="3dp"- android:layout_weight="1"- android:background="@drawable/widget_tile_bg_attention"- android:gravity="center"+ android:layout_width="match_parent"+ android:layout_height="wrap_content"+ android:layout_marginTop="8dp"android:orientation="vertical">- <ImageView- android:layout_width="22dp"- android:layout_height="22dp"- android:importantForAccessibility="no"- android:src="@drawable/ic_widget_recent" />-<TextView- android:layout_width="wrap_content"+ android:layout_width="match_parent"android:layout_height="wrap_content"android:ellipsize="end"android:maxLines="1"- android:text="@string/widget_btn_recent"- android:textColor="@color/widget_text"+ android:text="@string/widget_sample_codex_week"+ android:textColor="@color/widget_text_secondary"android:textSize="@dimen/widget_text_secondary" />++ <TextView+ android:layout_width="match_parent"+ android:layout_height="wrap_content"+ android:maxLines="1"+ android:text="@string/widget_sample_pct_b"+ android:textColor="@color/widget_text"+ android:textSize="@dimen/widget_text_big"+ android:textStyle="bold" />++ <LinearLayout+ android:layout_width="match_parent"+ android:layout_height="6dp"+ android:layout_marginTop="2dp"+ android:background="@drawable/preview_bar_track"+ android:orientation="horizontal"+ android:weightSum="100">++ <ImageView+ android:layout_width="0dp"+ android:layout_height="match_parent"+ android:layout_weight="41"+ android:importantForAccessibility="no"+ android:src="@drawable/preview_bar_done" />+ </LinearLayout></LinearLayout></LinearLayout>+ </LinearLayout>++ <LinearLayout+ android:layout_width="match_parent"+ android:layout_height="wrap_content"+ android:layout_marginTop="8dp"+ android:orientation="vertical"><LinearLayoutandroid:layout_width="match_parent"android:layout_height="@dimen/widget_tile_height"- android:layout_marginTop="6dp"android:orientation="horizontal">- <LinearLayout- android:layout_width="0dp"- android:layout_height="match_parent"- android:layout_marginStart="3dp"- android:layout_marginEnd="3dp"- android:layout_weight="1"- android:background="@drawable/widget_tile_bg_attention"- android:gravity="center"- android:orientation="vertical">+ <LinearLayout+ android:layout_width="0dp"+ android:layout_height="match_parent"+ android:layout_marginStart="3dp"+ android:layout_marginEnd="3dp"+ android:layout_weight="1"+ android:background="@drawable/widget_tile_bg"+ android:gravity="center"+ android:orientation="vertical">- <ImageView- android:layout_width="22dp"- android:layout_height="22dp"- android:importantForAccessibility="no"- android:src="@drawable/ic_widget_session" />+ <ImageView+ android:layout_width="22dp"+ android:layout_height="22dp"+ android:importantForAccessibility="no"+ android:src="@drawable/ic_widget_home" />- <TextView- android:layout_width="wrap_content"- android:layout_height="wrap_content"- android:ellipsize="end"- android:maxLines="1"- android:text="@string/widget_btn_session"- android:textColor="@color/widget_text"- android:textSize="@dimen/widget_text_secondary" />+ <TextView+ android:layout_width="wrap_content"+ android:layout_height="wrap_content"+ android:ellipsize="end"+ android:maxLines="1"+ android:text="@string/widget_btn_home"+ android:textColor="@color/widget_text"+ android:textSize="@dimen/widget_text_secondary" />+ </LinearLayout>++ <LinearLayout+ android:layout_width="0dp"+ android:layout_height="match_parent"+ android:layout_marginStart="3dp"+ android:layout_marginEnd="3dp"+ android:layout_weight="1"+ android:background="@drawable/widget_tile_bg"+ android:gravity="center"+ android:orientation="vertical">++ <ImageView+ android:layout_width="22dp"+ android:layout_height="22dp"+ android:importantForAccessibility="no"+ android:src="@drawable/ic_widget_chat" />++ <TextView+ android:layout_width="wrap_content"+ android:layout_height="wrap_content"+ android:ellipsize="end"+ android:maxLines="1"+ android:text="@string/widget_btn_chat"+ android:textColor="@color/widget_text"+ android:textSize="@dimen/widget_text_secondary" />+ </LinearLayout>++ <LinearLayout+ android:layout_width="0dp"+ android:layout_height="match_parent"+ android:layout_marginStart="3dp"+ android:layout_marginEnd="3dp"+ android:layout_weight="1"+ android:background="@drawable/widget_tile_bg"+ android:gravity="center"+ android:orientation="vertical">++ <ImageView+ android:layout_width="22dp"+ android:layout_height="22dp"+ android:importantForAccessibility="no"+ android:src="@drawable/ic_widget_settings" />++ <TextView+ android:layout_width="wrap_content"+ android:layout_height="wrap_content"+ android:ellipsize="end"+ android:maxLines="1"+ android:text="@string/widget_btn_settings"+ android:textColor="@color/widget_text"+ android:textSize="@dimen/widget_text_secondary" />+ </LinearLayout></LinearLayout><LinearLayout- android:layout_width="0dp"- android:layout_height="match_parent"- android:layout_marginStart="3dp"- android:layout_marginEnd="3dp"- android:layout_weight="1"- android:background="@drawable/widget_tile_bg_attention"- android:gravity="center"- android:orientation="vertical">+ android:layout_width="match_parent"+ android:layout_height="@dimen/widget_tile_height"+ android:layout_marginTop="6dp"+ android:orientation="horizontal">- <ImageView- android:layout_width="22dp"- android:layout_height="22dp"- android:importantForAccessibility="no"- android:src="@drawable/ic_widget_pair" />+ <LinearLayout+ android:layout_width="0dp"+ android:layout_height="match_parent"+ android:layout_marginStart="3dp"+ android:layout_marginEnd="3dp"+ android:layout_weight="1"+ android:background="@drawable/widget_tile_bg"+ android:gravity="center"+ android:orientation="vertical">- <TextView- android:layout_width="wrap_content"- android:layout_height="wrap_content"- android:ellipsize="end"- android:maxLines="1"- android:text="@string/widget_btn_pair"- android:textColor="@color/widget_text"- android:textSize="@dimen/widget_text_secondary" />- </LinearLayout>+ <ImageView+ android:layout_width="22dp"+ android:layout_height="22dp"+ android:importantForAccessibility="no"+ android:src="@drawable/ic_widget_recent" />++ <TextView+ android:layout_width="wrap_content"+ android:layout_height="wrap_content"+ android:ellipsize="end"+ android:maxLines="1"+ android:text="@string/widget_btn_recent"+ android:textColor="@color/widget_text"+ android:textSize="@dimen/widget_text_secondary" />+ </LinearLayout>++ <LinearLayout+ android:layout_width="0dp"+ android:layout_height="match_parent"+ android:layout_marginStart="3dp"+ android:layout_marginEnd="3dp"+ android:layout_weight="1"+ android:background="@drawable/widget_tile_bg"+ android:gravity="center"+ android:orientation="vertical">++ <ImageView+ android:layout_width="22dp"+ android:layout_height="22dp"+ android:importantForAccessibility="no"+ android:src="@drawable/ic_widget_session" />++ <TextView+ android:layout_width="wrap_content"+ android:layout_height="wrap_content"+ android:ellipsize="end"+ android:maxLines="1"+ android:text="@string/widget_btn_session"+ android:textColor="@color/widget_text"+ android:textSize="@dimen/widget_text_secondary" />+ </LinearLayout>++ <LinearLayout+ android:layout_width="0dp"+ android:layout_height="match_parent"+ android:layout_marginStart="3dp"+ android:layout_marginEnd="3dp"+ android:layout_weight="1"+ android:background="@drawable/widget_tile_bg"+ android:gravity="center"+ android:orientation="vertical">++ <ImageView+ android:layout_width="22dp"+ android:layout_height="22dp"+ android:importantForAccessibility="no"+ android:src="@drawable/ic_widget_pair" />++ <TextView+ android:layout_width="wrap_content"+ android:layout_height="wrap_content"+ android:ellipsize="end"+ android:maxLines="1"+ android:text="@string/widget_btn_pair"+ android:textColor="@color/widget_text"+ android:textSize="@dimen/widget_text_secondary" />+ </LinearLayout></LinearLayout></LinearLayout></LinearLayout>-- <TextView- android:layout_width="wrap_content"- android:layout_height="wrap_content"- android:layout_gravity="top|end"- android:layout_margin="12dp"- android:background="@drawable/widget_badge_bg"- android:gravity="center"- android:minWidth="22dp"- android:paddingStart="6dp"- android:paddingEnd="6dp"- android:text="@string/widget_sample_one"- android:textColor="#FF1C1C1E"- android:textSize="@dimen/widget_text_secondary"- android:textStyle="bold" /></FrameLayout>diff --git a/android/app/src/main/res/values-notnight/colors.xml b/android/app/src/main/res/values-notnight/colors.xmlindex a97a7374..68b8c167 100644--- a/android/app/src/main/res/values-notnight/colors.xml+++ b/android/app/src/main/res/values-notnight/colors.xml@@ -6,7 +6,5 @@<color name="widget_text">#FF1C1C1E</color><color name="widget_text_soft">#D91C1C1E</color><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.xmlindex 79967750..22e9418b 100644--- a/android/app/src/main/res/values/colors.xml+++ b/android/app/src/main/res/values/colors.xml@@ -6,8 +6,6 @@<color name="widget_text">#FFFFFFFF</color><color name="widget_text_soft">#D9FFFFFF</color><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>diff --git a/android/app/src/main/res/values/strings.xml b/android/app/src/main/res/values/strings.xmlindex 42b50321..e809c6b2 100644--- a/android/app/src/main/res/values/strings.xml+++ b/android/app/src/main/res/values/strings.xml@@ -63,15 +63,16 @@<string name="widget_sample_header">Waiting for you</string><string name="widget_sample_one">1</string><string name="widget_sample_two_waiting">2 waiting</string>- <string name="widget_sample_bubble">Claude Code is working</string><string name="widget_sample_ring_pct">70%</string><string name="widget_sample_ring_label">Claude · 5 h</string>+ <string name="widget_sample_pct_a">68%</string>+ <string name="widget_sample_pct_b">41%</string>+ <string name="widget_sample_codex_week">Codex · week</string><string name="widget_sample_today">5</string><string name="widget_sample_two_agents">2 agents working</string><string name="widget_sample_thinking">Thinking</string><string name="widget_sample_idle">Idle</string><string name="widget_sample_waiting">Waiting</string>- <string name="widget_sample_bubble_waiting">Claude Code is waiting for you</string><string name="status_connected">Connected</string><string name="status_connecting">Connecting…</string><string name="status_not_connected">Not connected</string>diff --git a/android/i18n/app-strings.json b/android/i18n/app-strings.jsonindex 241ac3ee..d2713db6 100644--- a/android/i18n/app-strings.json+++ b/android/i18n/app-strings.json@@ -63,15 +63,16 @@"widget_sample_header": "Waiting for you","widget_sample_one": "1","widget_sample_two_waiting": "2 waiting",- "widget_sample_bubble": "Claude Code is working","widget_sample_ring_pct": "70%","widget_sample_ring_label": "Claude · 5 h",+ "widget_sample_pct_a": "68%",+ "widget_sample_pct_b": "41%",+ "widget_sample_codex_week": "Codex · week","widget_sample_today": "5","widget_sample_two_agents": "2 agents working","widget_sample_thinking": "Thinking","widget_sample_idle": "Idle","widget_sample_waiting": "Waiting",- "widget_sample_bubble_waiting": "Claude Code is waiting for you","status_connected": "Connected","status_connecting": "Connecting…","status_not_connected": "Not connected",