No description
Find a file
2026-02-04 15:56:44 +01:00
.zed feat: implement crop functionality with self-contained widget 2026-01-22 20:40:36 +01:00
DEVNOTE Complete Clean Architecture migration 2026-02-03 08:43:21 +01:00
docs docs: update 2026-01-18 20:42:46 +01:00
i18n/en Complete Clean Architecture migration 2026-02-03 08:43:21 +01:00
resources chore: remove unused panel icon resources 2026-01-15 19:04:58 +01:00
src Before UI simplification - Clean Architecture complete 2026-02-04 15:56:44 +01:00
.gitignore chore: initial commit 2026-01-07 20:22:49 +01:00
Cargo.lock feature: PDF and PDF thumbnails and refresh UI 2026-01-18 20:35:12 +01:00
Cargo.toml feat: implement crop functionality with self-contained widget 2026-01-22 20:40:36 +01:00
i18n.toml chore: initial commit 2026-01-07 20:22:49 +01:00
justfile Fix: correct metainfo path, icon destination, add post-install 2026-01-08 20:49:54 +01:00
LICENSE chore: initial commit 2026-01-07 20:22:49 +01:00
README.md Complete Clean Architecture migration 2026-02-03 08:43:21 +01:00
rustfmt.toml chore: initial commit 2026-01-07 20:22:49 +01:00

Noctua

An image viewer application for the COSMIC™ desktop

Screenshot

Features

  • Multi-format support: Raster images (PNG, JPEG, WebP, etc.), SVG vector graphics, and PDF documents
  • Navigation: Browse through folders with keyboard shortcuts
  • Transformations: Rotate, flip, and crop images
  • Zoom & Pan: Flexible viewing with zoom controls and panning
  • Multi-page documents: Navigate PDF pages with thumbnail previews
  • Metadata display: View EXIF data and file information
  • Wallpaper setting: Set images as desktop wallpaper (multi-DE support)

Architecture

Noctua follows Clean Architecture principles with clear separation of concerns:

src/
├── main.rs              # Application entry point
├── ui/                  # UI Layer (COSMIC interface)
│   ├── app.rs           # Application state & lifecycle
│   ├── model.rs         # UI state + cached render data
│   ├── update.rs        # Message handlers
│   ├── sync.rs          # Model synchronization
│   ├── views/           # View components
│   └── components/      # Reusable widgets
├── application/         # Application Layer (use cases)
│   ├── document_manager.rs  # Document orchestration
│   ├── commands/        # Write operations (Transform, Crop)
│   └── services/        # Shared services (Cache)
├── domain/              # Domain Layer (business logic)
│   ├── document/        # Document abstractions & operations
│   │   ├── core/        # Traits & types (Renderable, Transformable)
│   │   ├── types/       # Implementations (Raster, Vector, Portable)
│   │   └── operations/  # Transform, render, export operations
│   └── errors.rs        # Domain errors
└── infrastructure/      # Infrastructure Layer (external systems)
    ├── loaders/         # Document loading (image, SVG, PDF)
    ├── cache/           # Thumbnail caching
    ├── filesystem/      # File operations
    └── system/          # System integration (wallpaper)

Key Patterns:

  • MVU (Model-View-Update): Elm architecture via libcosmic
  • Command Pattern: All operations go through commands
  • Dependency Inversion: Domain has no dependencies on infrastructure
  • Type-Erased Documents: DocumentContent enum for unified handling

Installation

A justfile is included by default for the [casey/just][just] command runner.

  • just builds the application with the default just build-release recipe
  • just run builds and runs the application
  • just install installs the project into the system
  • just vendor creates a vendored tarball
  • just build-vendored compiles with vendored dependencies from that tarball
  • just check runs clippy on the project to check for linter warnings
  • just check-json can be used by IDEs that support LSP

Dependencies

Arch Linux

sudo pacman -S poppler-glib

Debian/Ubuntu

sudo apt install libpoppler-glib-dev

Fedora

sudo dnf install poppler-glib-devel

OpenSUSE

sudo zypper install poppler-glib-devel

Documentation

License

GPL-3.0-or-later