fix(ui): make the Gradient tool icon show a visible ramp

This commit is contained in:
Codex committed 2026-12-01 22:43:28 +02:00
1 parent 91b4cd689d
commit d7234fdb14
4 files changed
+12 -1

No files matched your search

+1
View File
@@ -17,6 +17,7 @@ next to them.
| `assets/icons/{arrow-left-right,circle-dashed,ellipsis,file-plus,folder-plus,grid-2x2,house,link-2,message-square,panel-left,pipette,rectangle-horizontal,rectangle-vertical,redo-2,square-dashed,square-dashed-mouse-pointer,triangle-alert,type,x}.svg` | Lucide icons | Lucide Icons and Contributors | <https://github.com/lucide-icons/lucide> (`icons/<name>.svg`) | ISC, [`assets/icons/LICENSE-lucide.txt`](assets/icons/LICENSE-lucide.txt) |
| `assets/icons/{link-2,type,x}.svg` | Lucide icons derived from Feather (subset of the row above) | Cole Bemis (Feather), Lucide Contributors | <https://github.com/feathericons/feather> via Lucide | MIT (Feather) and ISC (Lucide), [`assets/icons/LICENSE-lucide.txt`](assets/icons/LICENSE-lucide.txt) |
| `assets/icons/vector-shape.svg` | Vector path shape-layer glyph with four anchor points | @superplay2021 | Original work for PhotoCraft | MIT OR Apache-2.0 |
| `assets/icons/gradient-tool.svg` | Gradient tool glyph with a horizontal opacity ramp | PhotoCraft contributors | Original work | MIT OR Apache-2.0 |
| `assets/icons/spirit-level.svg` | Straighten tool glyph: a spirit level with its vial and bubble under a dotted arc | PhotoCraft contributors | Original work | MIT OR Apache-2.0 |
| `assets/icons/type-vertical.svg` | Vertical Type tool glyph: Lucide `type`'s T, drawn narrower to make room for a downward arrow of our own at its left | Lucide Icons and Contributors; arrow by PhotoCraft contributors | Derived from <https://github.com/lucide-icons/lucide> `icons/type.svg` | ISC, [`assets/icons/LICENSE-lucide.txt`](assets/icons/LICENSE-lucide.txt) |
| `assets/icons/path-op-{new-layer,combine,subtract,intersect,exclude,merge}.svg` | Path Operations glyphs (Pen options bar): a single square for New Layer, and two overlapping squares showing the area each operation keeps (union, back minus front, overlap, everything but the overlap, the merged outline), drawn on Lucide's 24 px grid and stroke | PhotoCraft contributors | Original work | MIT OR Apache-2.0 |
+9
View File
@@ -0,0 +1,9 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<defs>
<linearGradient id="ramp" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0" stop-color="#000" stop-opacity="0"/>
<stop offset="1" stop-color="#000" stop-opacity=".85"/>
</linearGradient>
</defs>
<rect x="3" y="5" width="18" height="14" rx="2" fill="url(#ramp)" stroke="#000" stroke-width="2"/>
</svg>

After

Width:  |  Height:  |  Size: 397 B

+1
View File
@@ -23,6 +23,7 @@ pub static ICONS: &[(&str, &[u8])] = &[
("ellipsis", include_bytes!("../../../assets/icons/ellipsis.svg")),
("file-plus", include_bytes!("../../../assets/icons/file-plus.svg")),
("folder-plus", include_bytes!("../../../assets/icons/folder-plus.svg")),
("gradient-tool", include_bytes!("../../../assets/icons/gradient-tool.svg")),
("grid-2x2", include_bytes!("../../../assets/icons/grid-2x2.svg")),
("history-brush", include_bytes!("../../../assets/icons/history-brush.svg")),
("house", include_bytes!("../../../assets/icons/house.svg")),
+1 -1
View File
@@ -63,7 +63,7 @@ pub(crate) enum ToolCommand {
BackgroundEraser,
#[command(label = "Magic Eraser Tool", icon = "eraser_magic", kind = "tool", group = "E", default = "E", alias = "tools.select.magicEraser")]
MagicEraser,
#[command(label = "Gradient Tool", icon = "gradient", kind = "tool", group = "G", default = "G", alias = "tools.select.gradient")]
#[command(label = "Gradient Tool", icon = "gradient-tool", kind = "tool", group = "G", default = "G", alias = "tools.select.gradient")]
Gradient,
#[command(label = "Paint Bucket Tool", icon = "paint_bucket", kind = "tool", group = "G", default = "G", alias = "tools.select.paintBucket")]
PaintBucket,