OmaPhoto 1.0.0: the Linux port of Compositor
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:
commit
c864304695
564 files changed
+100804
No files matched your search
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
#include "Document/LayerAdjustment.h"
|
||||
#include <QColor>
|
||||
#include <QPainter>
|
||||
#include <QPixmap>
|
||||
|
||||
// The layers panel's icons, drawn: SF Symbols have no twin.
|
||||
enum class LayerIcon {
|
||||
eye, eyeSlash, chevronRight, chevronDown, folder, link, newLayer, newFolder, addMask, trash, layers, text,
|
||||
halfFilledCircle, sliders, curvePath, plusMinusCircle, paintPalette, circleGrid, sparkles
|
||||
};
|
||||
|
||||
namespace LayerIcons {
|
||||
// Paints the icon into a `side` point square, one colour.
|
||||
void paint(QPainter &painter, LayerIcon icon, QPointF origin, double side, const QColor &colour);
|
||||
// The icon as a button's pixmap at a pixel ratio.
|
||||
QPixmap pixmap(LayerIcon icon, double side, const QColor &colour, double ratio);
|
||||
// Swift's AdjustmentKind.symbol: the glyph that names each kind.
|
||||
LayerIcon symbol(AdjustmentKind kind);
|
||||
// An adjustment row's 36-point thumbnail: its glyph 1.2 times up.
|
||||
QPixmap adjustmentThumbnail(AdjustmentKind kind, const QColor &colour, double ratio);
|
||||
}
|
||||
Reference in new issue
Block a user