Skip to content

Screenshots, hung out to dry. A tiny native macOS app that hangs every screenshot on a line at the top of your screen.

Swift

README images in docs/images

Alejandro Buján762a93d69437
diff --git a/README.md b/README.md
index bf04e49..72b26d9 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
<picture>
- <source media="(prefers-color-scheme: dark)" srcset="docs/hero-dark.png">
- <img src="docs/hero-light.png" alt="Tendedero. Screenshots, hung out to dry. Three screenshots in glass frames hang from a thin line under the macOS menu bar.">
+ <source media="(prefers-color-scheme: dark)" srcset="docs/images/hero-dark.png">
+ <img src="docs/images/hero-light.png" alt="Tendedero. Screenshots, hung out to dry. Three screenshots in glass frames hang from a thin line under the macOS menu bar.">
</picture>
<p align="center">
@@ -19,8 +19,8 @@ Every screenshot you take hangs on a line just above your screen.
Rest the pointer in the menu bar and it glides down. Move away and it's gone.
<picture>
- <source media="(prefers-color-scheme: dark)" srcset="docs/demo-dark.gif">
- <img src="docs/demo-light.gif" alt="The pointer rests against the top edge, the line slides down with three screenshots swinging gently, a click copies one, and the line tucks away when the pointer leaves.">
+ <source media="(prefers-color-scheme: dark)" srcset="docs/images/demo-dark.gif">
+ <img src="docs/images/demo-light.gif" alt="The pointer rests against the top edge, the line slides down with three screenshots swinging gently, a click copies one, and the line tucks away when the pointer leaves.">
</picture>
<br>
@@ -29,8 +29,8 @@ Rest the pointer in the menu bar and it glides down. Move away and it's gone.
## A gesture for everything.
<picture>
- <source media="(prefers-color-scheme: dark)" srcset="docs/bento-dark.png">
- <img src="docs/bento-light.png" alt="Click to copy. Hold to mark up. Drag to share. Let it go.">
+ <source media="(prefers-color-scheme: dark)" srcset="docs/images/bento-dark.png">
+ <img src="docs/images/bento-light.png" alt="Click to copy. Hold to mark up. Drag to share. Let it go.">
</picture>
<br>
@@ -145,7 +145,7 @@ language. `swift scripts/check-strings.swift` checks that none is missing.
<br>
<p align="center">
- <img src="docs/icon.png" width="64" height="64" alt="">
+ <img src="docs/images/icon.png" width="64" height="64" alt="">
<br>
<sub>The code is MIT licensed. The Tendedero name and icon are not, so forks need their own. See <a href="LICENSE">LICENSE</a>.</sub>
<br>
diff --git a/docs/bento-dark.png b/docs/images/bento-dark.png
similarity index 100%
rename from docs/bento-dark.png
rename to docs/images/bento-dark.png
diff --git a/docs/bento-light.png b/docs/images/bento-light.png
similarity index 100%
rename from docs/bento-light.png
rename to docs/images/bento-light.png
diff --git a/docs/demo-dark.gif b/docs/images/demo-dark.gif
similarity index 100%
rename from docs/demo-dark.gif
rename to docs/images/demo-dark.gif
diff --git a/docs/demo-light.gif b/docs/images/demo-light.gif
similarity index 100%
rename from docs/demo-light.gif
rename to docs/images/demo-light.gif
diff --git a/docs/hero-dark.png b/docs/images/hero-dark.png
similarity index 100%
rename from docs/hero-dark.png
rename to docs/images/hero-dark.png
diff --git a/docs/hero-light.png b/docs/images/hero-light.png
similarity index 100%
rename from docs/hero-light.png
rename to docs/images/hero-light.png
diff --git a/docs/icon.png b/docs/images/icon.png
similarity index 100%
rename from docs/icon.png
rename to docs/images/icon.png
diff --git a/scripts/make-readme-art.swift b/scripts/make-readme-art.swift
index 80eaf3d..9914a7d 100644
--- a/scripts/make-readme-art.swift
+++ b/scripts/make-readme-art.swift
@@ -3,12 +3,12 @@
// demo-*.gif the reveal: pointer to the top edge, line slides down, a
// click copies, the pointer leaves and the line tucks away
// bento-*.png four gestures as tiles with SF Symbols
-// Usage: swift scripts/make-readme-art.swift docs/
+// Usage: swift scripts/make-readme-art.swift docs/images/
import AppKit
import ImageIO
import UniformTypeIdentifiers
-let outDir = CommandLine.arguments.dropFirst().first ?? "docs"
+let outDir = CommandLine.arguments.dropFirst().first ?? "docs/images"
func color(_ r: CGFloat, _ g: CGFloat, _ b: CGFloat, _ a: CGFloat = 1) -> NSColor {
NSColor(srgbRed: r / 255, green: g / 255, blue: b / 255, alpha: a)