Skip to content

Commit 4af6f1b

Browse files
kaan-escoberclaude
andcommitted
Implement Premium Theme-Aware Adaptive Icon
- Migrated launcher icon from static drawable to modern Adaptive Icon architecture - Implemented dynamic backgrounds: Tokyo Night Storm for Dark Mode, Tokyo Night Day for Light Mode - Processed foreground layer with proper safe-zone padding to prevent clipping - Generated legacy mipmap icons for compatibility with older Android versions - Updated LatinIME.java to use the new mipmap icon reference - Removed deprecated drawable icon assets 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 7ade4fb commit 4af6f1b

File tree

23 files changed

+12
-2
lines changed

23 files changed

+12
-2
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
android:hardwareAccelerated="true"
1515
android:killAfterRestore="false"
1616
android:theme="@style/Theme.HackerKeyboard"
17-
android:icon="@drawable/icon">
17+
android:icon="@mipmap/ic_launcher">
1818

1919
<service android:name="LatinIME"
2020
android:label="@string/english_ime_name"

app/src/main/java/org/pocketworkstation/pckeyboard/LatinIME.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ private void setNotification(boolean visible) {
474474

475475
if (visible && mNotificationReceiver == null) {
476476
createNotificationChannel();
477-
int icon = R.drawable.icon;
477+
int icon = R.mipmap.ic_launcher;
478478
CharSequence text = "Keyboard notification enabled.";
479479
long when = System.currentTimeMillis();
480480

-184 KB
Binary file not shown.
-184 KB
Binary file not shown.
-184 KB
Binary file not shown.
-184 KB
Binary file not shown.
-184 KB
Binary file not shown.
-184 KB
Binary file not shown.

app/src/main/res/drawable/icon.png

-184 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3+
<background android:drawable="@color/ic_launcher_background" />
4+
<foreground android:drawable="@mipmap/ic_launcher_foreground" />
5+
</adaptive-icon>

0 commit comments

Comments
 (0)