OmaPhoto 1.0.0: the Linux port of Compositor
Release / deb (push) Canceled after 0s
Release / rpm (push) Canceled after 0s
Release / arch (push) Canceled after 0s
Release / publish (push) Canceled after 0s

A layered image editor for Linux and Omarchy, ported from Compositor
(github.com/robbietilton/Compositor), whose Swift source is its
specification. It reads and writes Compositor's .comp projects.

Packages for Ubuntu, Fedora and Arch come from the release workflow;
scripts/install/ holds one install script per distribution family,
and flake.nix serves NixOS.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
雷电芽衣andClaude committed 2026-09-26 00:44:52 -04:00
commit c864304695
564 files changed
+100804

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
// Swift's SelectionClipboard extension: Copy, Copy Merged, Paste.
public:
// Ctrl+X: copy, then clear the selected pixels.
void cutSelection(std::function<void()> done = {});
// A copy above the layer, then placed; never a folder.
void duplicateActiveLayer();
bool duplicateLayer(QUuid id, std::optional<QUuid> parent, std::optional<QUuid> above = std::nullopt, bool atBottom = false);
std::optional<QRectF> selectionCopyRegion() const;
bool canCopyPixels() const;
std::optional<CopiedPixels> renderSelectedPixels(const ImageLayer &layer, bool mask) const;
bool canCopyMerged() const;
std::optional<CopiedPixels> renderMergedPixels() const;
void copyMergedSelection();
void copySelection();
bool canPaste() const;
void paste();
void layerViaCopy();
// A shape or text style is tied to its asset.
void addPixelLayer(const QImage &image, QPointF origin, const QString &name, const QString &editName, bool dropsSelection = true,
const std::optional<LayerShapeStyle> &shape = std::nullopt, const std::optional<LayerTextStyle> &text = std::nullopt);
QString nextLayerName() const;
private:
void store(const CopiedPixels &copied);