Skip to content
LoganthPPublic

About

πŸ“‚ Give any folder or shortcut a custom icon, including animated GIFs on the Windows desktop. Cross-platform desktop app built with Tauri, React and Rust.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎨 About

iconmorph turns real folders and shortcuts into characters, pixel friends, GIF frames and your own images. The icon is written through the operating system's own custom-icon mechanism, so you can close iconmorph completely and the icon stays. Nothing runs in the background for static icons.

iconmorph Studio

Pick, Morph, Preview, Apply, Verify, Done

✨ Features

🎑 Morph Wheel

Six ways to morph an item: Character, Image, Decorate, Shape, GIF frame and Original folder. Pick a mode with the mouse or press M, then 1–6.

πŸ–ŒοΈ Canvas-first Studio

Zoom, pan, drag to move / scale / rotate, snapping and guides, undo/redo and a contextual inspector that shows only what the current morph needs.

🧸 Character Shelf

My shelf (your emoji, uploads and pins) plus 12 collections: Kawaii, Pixel Friends, Woodland, Space, Retro Gaming, Botanical, Ocean, Fantasy, Technology, Productivity, Minimalist and Seasonal.

πŸ” Morph Reveal

Slider, side-by-side or toggle comparison against the plain folder, the applied icon or a pinned design, plus a native-size filmstrip (16–64 px at 1:1) with a loupe.

🎭 Desktop Theatre

A full-window simulation of your desktop with your real item names and wallpaper. Press T. Nothing is written until you apply.

πŸ—‚οΈ Themes

One look for many folders, with a character suggested from each folder's name. Batch apply with progress and cancel.

⏳ Time Capsule

Every original is kept. Step back through an item's earlier designs, restore several at once, or take desktop snapshots to return to.

🌈 Your look

Warm Studio, Sakura, Botanical, Coastal, Nordic, Midnight, Monochrome or System, plus Chameleon accents that adapt to the selected character.

🎞️ Live GIF icons (Windows, opt-in)

Play a whole GIF on a desktop icon with the small iconmorph Live helper. It has a tray icon, exits by itself, and never changes your files.

Also: ICO / ICNS / PNG export, a command palette (Ctrl K), keyboard shortcuts throughout, and reduced-motion / reduced-effects awareness.

🎑 The six morphs

Morph Result
Character The folder graphic disappears; the character is the icon. Double-click still opens the folder
Image Your PNG, SVG, JPEG, WebP or photo as the icon (kept in Personal, referenced in place)
Decorate The folder shape with the character on its front
Shape Character on a squircle, rounded square, circle, hexagon or capsule tile
GIF frame Scrub a GIF and pick a frame for the still icon. On Windows, optionally animate the whole GIF on the desktop
Original folder A restyled folder: classic, rounded or minimal; flat, gradient or glass; dots, stripes, grid or grain

πŸ–ΌοΈ Gallery

Home
Home
Desktop Theatre
Desktop Theatre
Explore
Explore
Time Capsule
Time Capsule
Themes
Themes
Studio in Midnight
Studio in Midnight

πŸ—οΈ Architecture

iconmorph is a thin Tauri 2 shell around a Rust engine. The React UI never draws icons itself: every preview comes from the same engine path that writes the real icon, so what you see is what gets applied.

flowchart TB
    subgraph UI["πŸ–₯️ React + TypeScript UI Β· src/"]
        direction LR
        H["Home"] ~~~ E["Explore"] ~~~ S["Studio"] ~~~ T["Theatre"] ~~~ TH["Themes"] ~~~ TC["Time Capsule"]
    end

    subgraph SHELL["πŸ¦€ src-tauri Β· thin command layer"]
        IPC["Typed IPC commands<br/>capability-gated"]
        LV["Live helper<br/>iconmorph --live Β· Windows Β· opt-in"]
    end

    subgraph CORE["βš™οΈ iconmorph-core Β· Rust engine"]
        EN["Engine<br/>orchestrator + journal"]
        IO["image_io<br/>safe decode Β· SVG Β· GIF"]
        CP["compose<br/>modes Β· shapes Β· effects"]
        EC["encode<br/>ICO Β· ICNS Β· PNG Β· SHA-256"]
        ST[("store<br/>SQLite Β· backups Β· history")]
        PF["platform adapters"]
    end

    subgraph OS["πŸͺŸπŸŽπŸ§ Native OS metadata"]
        WIN["Windows<br/>desktop.ini Β· .lnk Β· .url"]
        MAC["macOS<br/>NSWorkspace setIcon"]
        KDE["KDE<br/>.directory"]
        GIO["GNOME and friends<br/>gio metadata::custom-icon"]
    end

    UI -->|"invoke Β· spawn_blocking"| IPC
    IPC --> EN
    EN --> IO --> CP --> EC
    EN <--> ST
    EN --> PF
    PF --> WIN
    PF --> MAC
    PF --> KDE
    PF --> GIO
    IPC -.->|"opt-in"| LV

    classDef ui fill:#F7F5EF,stroke:#B7C9B2,color:#293B32
    classDef shell fill:#E3C1D6,stroke:#9b7a8d,color:#293B32
    classDef core fill:#B7C9B2,stroke:#5c7a62,color:#293B32
    classDef os fill:#E8A68C,stroke:#a8654a,color:#293B32
    class H,E,S,T,TH,TC ui
    class IPC,LV shell
    class EN,IO,CP,EC,ST,PF core
    class WIN,MAC,KDE,GIO os
Loading

πŸ”„ Every change is a transaction

Applying an icon follows Validate β†’ Generate β†’ Backup β†’ Apply β†’ Verify β†’ Commit. The original metadata is saved before the first change. Failures roll back, and a crash mid-change is undone the next time iconmorph starts.

sequenceDiagram
    autonumber
    actor U as You
    participant UI as React UI
    participant EN as Engine
    participant DB as SQLite store
    participant AD as Platform adapter
    participant OS as Operating system

    U->>UI: Press Apply
    UI->>EN: apply(target, spec)
    EN->>AD: classify(target)
    AD-->>EN: supported?
    EN->>EN: compose 1024 px master, encode, hash
    EN->>AD: read_state(target)
    EN->>DB: save original (first time) + journal "pending"
    EN->>AD: apply(target, icon file)
    AD->>OS: write native icon metadata
    EN->>AD: verify(target)
    AD->>OS: re-read metadata
    alt verified
        EN->>DB: commit + history "success"
        EN-->>UI: done
    else failed
        EN->>AD: restore(pre-state)
        EN->>DB: journal "rolled_back"
        EN-->>UI: error with a clear message
    end
    Note over EN,DB: On startup, any journal row still pending is rolled back
Loading

πŸ”Œ One adapter per desktop

Adding a desktop environment means adding one adapter. No image code is duplicated.

classDiagram
    class PlatformAdapter {
        <<trait>>
        +id() str
        +capabilities() Capabilities
        +desktop_dir() PathBuf
        +classify(path) Classification
        +read_state(target) Value
        +apply(target, icon_file)
        +restore(target, state)
        +verify(target, icon_file) bool
    }
    class WindowsAdapter {
        desktop_ini
        lnk_shortcuts
        url_shortcuts
    }
    class MacAdapter {
        NSWorkspace_setIcon
    }
    class KdeAdapter {
        directory_file
        desktop_launchers
    }
    class GioAdapter {
        custom_icon_metadata
        desktop_launchers
    }
    PlatformAdapter <|.. WindowsAdapter
    PlatformAdapter <|.. MacAdapter
    PlatformAdapter <|.. KdeAdapter
    PlatformAdapter <|.. GioAdapter
Loading

Read more in docs/ARCHITECTURE.md.

🧰 Tech Stack

Layer Technology Why it is here
Desktop shell Tauri Small native app with a typed, capability-gated IPC
Engine Rust image Β· resvg Β· ico Β· icns Safe image decoding, SVG rendering, ICO / ICNS / PNG encoding
Storage SQLite rusqlite (bundled) Backups, operation journal, history, snapshots, settings
Windows APIs windows crate Shell API for desktop.ini, IShellLinkW for .lnk, desktop host for Live GIFs
macOS APIs objc2 Β· objc2-app-kit NSWorkspace setIcon:forFile:
UI React TypeScript Typed front end
Build Vite Dev server on port 1420 and production bundle
Styling Tailwind culori OKLCH themes and Chameleon accents
Components Radix UI Β· lucide-react Β· motion Β· @tanstack/react-virtual Accessible dialogs, sliders, switches; virtualised character grid
State and validation zustand Β· zod App and Studio state; settings and IPC validation
Testing Rust tests Β· Vitest Β· Testing Library Engine on real temp folders, IPC contract, native adapter tests in CI, UI tests
Quality ESLint Β· rustfmt Β· clippy -D warnings Lint and format gates
CI/CD GitHub Actions Checks on Linux, Windows and macOS; releases for 6 targets; landing page deploy
Landing page React Β· Vite Β· Tailwind Β· GitHub Pages loganthp.github.io/IconMorph

πŸ“ Project Structure

IconMorph/
β”œβ”€β”€ crates/iconmorph-core/      # Rust engine
β”‚   β”œβ”€β”€ src/                    #   compose Β· encode Β· image_io Β· store Β· live Β· engine
β”‚   β”‚   └── platform/           #   windows Β· macos Β· linux Β· desktop_entry Β· url_shortcut Β· windows_live
β”‚   β”œβ”€β”€ tests/                  #   engine (real temp folders) Β· ipc_contract Β· windows_native Β· macos_native
β”‚   └── examples/               #   render_samples Β· make_app_icons Β· bench_engine
β”œβ”€β”€ src-tauri/                  # Thin Tauri 2 shell: IPC commands, capabilities, bundling
β”œβ”€β”€ src/                        # React + TypeScript UI
β”‚   β”œβ”€β”€ features/               #   home Β· explore Β· icon-studio Β· desktop-theatre Β· theme-studio Β· time-capsule
β”‚   β”œβ”€β”€ lib/                    #   typed IPC Β· specs Β· collections Β· chameleon (OKLCH) Β· session
β”‚   β”œβ”€β”€ stores/                 #   zustand stores
β”‚   └── test/                   #   Vitest suites
β”œβ”€β”€ landing/                    # Landing page (React + Vite), deployed to GitHub Pages
β”œβ”€β”€ public/collections/         # Pixel Friends + Minimalist artwork (original, CC0)
β”œβ”€β”€ assets/                     # Brand mark, bundled characters, manifests, README artwork
β”œβ”€β”€ docs/                       # ARCHITECTURE Β· PLATFORMS Β· TESTING Β· screenshots
β”œβ”€β”€ benchmarks/                 # Memory and CPU profiling scripts and results
β”œβ”€β”€ scripts/                    # typecheck-native.sh Β· gen-collections.py
└── .github/workflows/          # ci.yml Β· release.yml Β· pages.yml

πŸ“¦ Install

Download an installer from Releases. Packaged builds need no Node.js, Rust or developer tools.

OS Installer First launch
πŸͺŸ Windows .msi or -setup.exe (x64 and ARM64) Builds are unsigned, so SmartScreen may warn: choose More info β†’ Run anyway. WebView2 is installed automatically if missing
🍎 macOS .dmg (Apple Silicon and Intel) Unsigned builds need right-click β†’ Open the first time
🐧 Linux .AppImage, .deb or .rpm (x64 and ARM64) GIO desktops need the gio tool (libglib2.0-bin / glib2), which most distributions ship

Verify downloads against SHA256SUMS.txt from the release.

Prefer building it yourself? Jump to Quick Start.

⚑ Quick Start

βœ… Prerequisites

Tool Version Get it
Node.js 22 LTS recommended (20.19+ works) nodejs.org
Rust stable, 1.89 or newer rustup.rs
Git any recent version git-scm.com
Tauri 2 system libraries see below Tauri prerequisites
πŸͺŸ Windows
  1. Install Microsoft C++ Build Tools and tick Desktop development with C++.
  2. WebView2 ships with Windows 11. On Windows 10 it is installed on demand.
  3. Install Rust with rustup, choosing the default MSVC toolchain.
winget install OpenJS.NodeJS.LTS
winget install Rustlang.Rustup
rustup update stable
🍎 macOS
xcode-select --install
brew install node
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup update stable
🐧 Linux (Debian / Ubuntu)
sudo apt update
sudo apt install -y libwebkit2gtk-4.1-dev build-essential libxdo-dev libssl-dev \
  libayatana-appindicator3-dev librsvg2-dev libglib2.0-bin
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup update stable

Install Node.js 22 from nodejs.org or with nvm.

Check everything is in place:

node --version      # v22.x (or 20.19+)
npm --version
rustc --version     # 1.89 or newer
cargo --version

1️⃣ Clone the repository

git clone https://github.com/LoganthP/IconMorph.git
cd IconMorph

2️⃣ Install dependencies

npm install

Rust crates are fetched automatically the first time you run or build the app.

3️⃣ Run the app in development mode

npm run tauri dev

This starts the Vite dev server on http://localhost:1420 and opens the desktop window with hot reload. The first run compiles the Rust crates, which can take several minutes. Later runs are fast.

πŸ’‘ Run npm run dev on its own only to work on the UI in a browser. Icons can be applied only inside the Tauri window, because the browser has no access to the Rust engine.

4️⃣ Build an installer for your OS

npm run tauri build

The installers land in target/release/bundle/. The raw binary is at target/release/iconmorph (iconmorph.exe on Windows).

npm run tauri build -- --bundles deb     # Linux: only the .deb
npm run tauri build -- --bundles nsis    # Windows: only the setup.exe
npm run tauri build -- --bundles dmg     # macOS: only the .dmg

5️⃣ Try your first icon

  1. Make a test folder with a file inside.
  2. Open iconmorph and go to Explore, then click your folder.
  3. Pick a character from the shelf, for example 🐱.
  4. In the Morph Wheel choose Character and press Apply.
  5. Check your desktop or file manager. Close iconmorph: the icon stays.
  6. Reopen iconmorph, then Time Capsule β†’ Restore to get the original back.

🌐 Run the landing page

cd landing
npm install
npm run dev        # http://localhost:5173
npm run build      # production build in landing/dist

Pushes to main that touch landing/ redeploy the page to GitHub Pages through .github/workflows/pages.yml.

πŸ§ͺ Run the checks

# Front end
npm run lint
npm run typecheck
npm run test

# Rust engine
cargo fmt --all --check
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace

# Type-check the Windows and macOS adapters from Linux
./scripts/typecheck-native.sh

🧰 Handy commands

Command What it does
npm run tauri dev Run the desktop app with hot reload
npm run tauri build Build installers for the current OS
npm run dev Vite dev server only (UI in a browser)
npm run build Type-check and build the web bundle
npm run lint ESLint over src/
npm run typecheck tsc --noEmit
npm run test Vitest
cargo test --workspace All Rust tests
cargo run -p iconmorph-core --example render_samples -- assets/characters/cat.svg out.png Render every mode to a contact sheet
cargo run -p iconmorph-core --example make_app_icons Regenerate iconmorph's own app icons with the engine
cargo run -p iconmorph-core --example bench_engine Run the engine benchmark
python3 scripts/gen-collections.py Regenerate the Pixel Friends and Minimalist SVGs and manifest

🧭 Status: what works where

This is an honest matrix. Verified means the full apply β†’ verify β†’ restore cycle was run on that mechanism by automated tests and through the real UI. Built, not yet run means the code compiles against the real OS bindings and has native integration tests that run on that OS in CI, but it has not yet been exercised on real hardware by the maintainers.

Windows 10 / 11 macOS 11+ Linux Β· KDE Plasma Linux Β· GNOME, Cinnamon, MATE, XFCE, Budgie
Mechanism desktop.ini via SHGetSetFolderCustomSettings; .lnk via IShellLinkW; .url via its IconFile key NSWorkspace setIcon:forFile: Folder .directory file GIO metadata::custom-icon (gvfs)
Folders 🟑 Built, not yet run 🟑 Built, not yet run βœ… Verified 🟑 Built, not yet run on a real session
Shortcuts 🟑 .lnk and .url (Steam, Epic, web apps) 🟑 Aliases βœ… .desktop Verified βœ… .desktop Verified
Plain files ❌ Not possible (Windows limitation) 🟑 Built, not yet run ❌ Not possible (Dolphin limitation) 🟑 Built, not yet run
Icon written Multi-size ICO (16–256) ICNS (16–1024, @2x) PNG 512 PNG 512
Live GIF on desktop 🟑 Opt-in, built, not yet run ❌ Still frame ❌ Still frame ❌ Still frame

The app shows this information for the machine it is running on (the platform chip in the top bar and the chips on Home) and disables whatever is not supported there. Platform details are in docs/PLATFORMS.md.

πŸͺΆ How it stays lightweight

  • No tray icon, no autostart, no background service, no polling for static icons. Closing the window ends the process, and its WebView helpers exit within one second.
  • Generated icons are stored once, by content hash, in the per-user data folder (never a temp folder), because the OS keeps reading them after iconmorph exits.
  • Every change is Validate β†’ Generate β†’ Backup β†’ Apply β†’ Verify β†’ Commit, and a crash mid-change is rolled back on the next start.
  • Imported images, SVGs and GIFs are sniffed by magic bytes, size-limited and decoded with allocation limits. SVG external references are never resolved.

Measured numbers for a release build are in benchmarks/README.md.

🎞️ Animated icons and the "no background process" rule

The app itself never stays running. The one exception is opt-in: if you turn on Animate on the desktop for a GIF design (Windows), the separate iconmorph Live helper runs while something is animating. It shows a notification-area icon (Pause / Open / Stop), never changes files, and quits by itself when nothing is left to animate. Start with Windows is off unless you tick it.

πŸ“‚ Where your data lives

OS Data folder
Windows %APPDATA%\IconMorph\IconMorph\data
macOS ~/Library/Application Support/dev.IconMorph.IconMorph
Linux $XDG_DATA_HOME/iconmorph (usually ~/.local/share/iconmorph)

Uninstalling the app does not delete this folder, so applied icons keep working. To remove everything, use Time Capsule β†’ Restore all, then Remove unused icons, then delete the folder.

πŸ› οΈ Troubleshooting

❌ npm run tauri dev fails with a Rust or linker error

Check rustc --version is 1.89 or newer and run rustup update stable. On Windows, make sure Desktop development with C++ is installed. On Linux, install the packages from the prerequisites above.

❌ Port 1420 is already in use

The dev server uses a fixed port (strictPort). Stop whatever is using port 1420 and run the command again.

⏳ The first build takes a long time

That is normal. The first build compiles every Rust dependency, including the SQLite and image libraries. Later builds reuse the cache.

πŸ›‘οΈ Windows SmartScreen or macOS Gatekeeper blocks the installer

Builds are unsigned. On Windows choose More info β†’ Run anyway. On macOS right-click the app and choose Open.

🐧 Linux: the icon does not change on GNOME / XFCE

GIO desktops need the gio tool (libglib2.0-bin) and the gvfs metadata daemon of a normal desktop session. Launchers (.desktop) may need Allow Launching again after editing.

πŸͺŸ A Windows shortcut says it can't be customized

Shortcuts installed for all users live in C:\Users\Public\Desktop and need administrator rights to change. iconmorph marks them and explains this. Plain programs (.exe, .jar) cannot hold their own icon without being modified, so customize their shortcut instead.

🎞️ The animated GIF doesn't play on my desktop

Animation works on Windows only, for items on the desktop itself (not inside Explorer folder windows). Check that Animate on the desktop was ticked before you pressed Apply and that the iconmorph Live icon is in the notification area. Elsewhere the GIF's chosen frame is the icon.

⚠️ Known limitations

  • On Linux WebKitGTK, View Transitions are turned off because they crash the web process (WebKitGTK 2.52). Workspaces cross-fade instead.
  • Studio's Layers popover lists the fixed character / folder stack. Free multi-layer editing is on the roadmap.
  • A GIF with transparent areas shows the still frame behind those areas.
  • Windows and macOS builds compile against the real APIs and have native tests in CI, but have not been run on real hardware by the maintainers yet. Help is welcome: see the manual test checklist.

πŸ—ΊοΈ Roadmap

  • Verify Windows and macOS on real hardware, then flip the matrix entries to Verified
  • Show the item's real native icon in Explore and as "Before" in Studio
  • .iconpack import / export
  • Save, duplicate, export and import Themes
  • Text overlays and multi-layer editing in Studio
  • CLI: iconmorph apply <path> --emoji 🐱 --mode full
  • Context-menu entry in Explorer, Finder and Nautilus
  • WinGet, Scoop, Homebrew and AUR packages

Full list in ROADMAP.md. Release notes are in CHANGELOG.md.

🀝 Contributing

Issues and pull requests are welcome. Good first areas: platform adapters, icon collections, translations and editor tools.

  1. Fork the repo and create a branch.
  2. Run the checks before opening a pull request.
  3. Read CONTRIBUTING.md, SECURITY.md and the Code of Conduct.

Testing on a real Windows, macOS or Linux machine is one of the most useful contributions. Follow docs/TESTING.md and report the result in an issue.

🎭 Characters and licensing

The character library draws emoji with your system's colour-emoji font (Segoe UI Emoji, Apple Color Emoji, Noto Color Emoji) at the moment you pick one, so iconmorph redistributes no third-party emoji artwork. Bundled artwork under assets/ and public/collections/ is original and listed in assets/manifests/assets.json, and each shelf item shows its source and licence. Do not add copyrighted anime, film or game characters. You can import your own images.

πŸ“„ License

Code is released under the MIT License. See THIRD_PARTY_LICENSES.md for dependencies.

If iconmorph gave your desktop some personality, a ⭐ on the repo is much appreciated.

About

πŸ“‚ Give any folder or shortcut a custom icon, including animated GIFs on the Windows desktop. Cross-platform desktop app built with Tauri, React and Rust.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages