From 94b6872810a03b80b04c636448e2e3bd685ecd36 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Mon, 6 Apr 2026 08:20:39 +0000
Subject: [PATCH 1/3] Add system theme support, pin emoji icon, and compact
toolbar
Agent-Logs-Url: https://github.com/SillyLittleTech/PinStick/sessions/5ea3e041-441d-4423-ba10-869b412daca5
Co-authored-by: kiyarose <75678535+kiyarose@users.noreply.github.com>
---
PinStickApp.swift | 5 +--
cross-platform/src/index.html | 2 +-
cross-platform/src/main.js | 4 ++-
cross-platform/src/styles.css | 61 +++++++++++++++++++++++++++++------
4 files changed, 59 insertions(+), 13 deletions(-)
diff --git a/PinStickApp.swift b/PinStickApp.swift
index 5924431..8a64e56 100644
--- a/PinStickApp.swift
+++ b/PinStickApp.swift
@@ -82,9 +82,11 @@ struct ContentView: View {
Button(action: togglePin) {
Image(systemName: isPinned ? "pin.slash" : "pin")
.help(isPinned ? "Unpin Window" : "Pin Window")
+ .font(.system(size: 12))
}
.buttonStyle(PlainButtonStyle())
- .padding(6)
+ .padding(.horizontal, 8)
+ .padding(.vertical, 4)
Spacer()
}
@@ -95,7 +97,6 @@ struct ContentView: View {
TextEditor(text: $text)
.padding(8)
.font(.system(size: 16, design: .monospaced))
- .background(Color.white)
}
.frame(maxWidth: .infinity, maxHeight: .infinity)
.onChange(of: text) { oldValue, newValue in
diff --git a/cross-platform/src/index.html b/cross-platform/src/index.html
index f317d6f..13a7231 100644
--- a/cross-platform/src/index.html
+++ b/cross-platform/src/index.html
@@ -9,7 +9,7 @@
-
+
Ready
diff --git a/cross-platform/src/main.js b/cross-platform/src/main.js
index b5dc044..8cae3cc 100644
--- a/cross-platform/src/main.js
+++ b/cross-platform/src/main.js
@@ -41,7 +41,9 @@ async function togglePin() {
result && Object.prototype.hasOwnProperty.call(result, "pinned")
? result.pinned
: false;
- pinBtn.textContent = pinned ? "Unpin" : "Pin";
+ pinBtn.classList.toggle("pinned", pinned);
+ pinBtn.title = pinned ? "Unpin window" : "Pin window";
+ pinBtn.setAttribute("aria-label", pinned ? "Unpin window" : "Pin window");
setStatus(pinned ? "Pinned on top" : "Not pinned");
} catch (err) {
console.error(err);
diff --git a/cross-platform/src/styles.css b/cross-platform/src/styles.css
index 6f1cdaa..4fd2447 100644
--- a/cross-platform/src/styles.css
+++ b/cross-platform/src/styles.css
@@ -16,28 +16,39 @@ header {
display: flex;
align-items: center;
justify-content: space-between;
- padding: 10px;
+ padding: 3px 8px;
background: #ffffff;
border-bottom: 1px solid #e0e0e0;
}
header button {
- padding: 6px 12px;
+ padding: 2px 6px;
font-size: 14px;
- border: 1px solid #ccc;
- background: #fff;
- border-radius: 6px;
+ border: 1px solid transparent;
+ background: transparent;
+ border-radius: 5px;
cursor: pointer;
+ line-height: 1.4;
+ transition: background 0.15s;
+}
+
+header button:hover {
+ background: rgba(0, 0, 0, 0.07);
+}
+
+header button.pinned {
+ background: rgba(0, 0, 0, 0.1);
+ border-color: rgba(0, 0, 0, 0.15);
}
header button:disabled {
- opacity: 0.6;
+ opacity: 0.4;
cursor: not-allowed;
}
main {
flex: 1;
- padding: 10px;
+ padding: 8px;
}
textarea {
@@ -50,9 +61,41 @@ textarea {
border: 1px solid #d0d0d0;
border-radius: 8px;
background: #ffffff;
+ color: #222;
}
#status {
- font-size: 12px;
- color: #555;
+ font-size: 11px;
+ color: #666;
+}
+
+@media (prefers-color-scheme: dark) {
+ body {
+ background: #1e1e1e;
+ color: #e0e0e0;
+ }
+
+ header {
+ background: #2a2a2a;
+ border-bottom-color: #3a3a3a;
+ }
+
+ header button:hover {
+ background: rgba(255, 255, 255, 0.1);
+ }
+
+ header button.pinned {
+ background: rgba(255, 255, 255, 0.15);
+ border-color: rgba(255, 255, 255, 0.2);
+ }
+
+ textarea {
+ background: #2a2a2a;
+ color: #e0e0e0;
+ border-color: #3a3a3a;
+ }
+
+ #status {
+ color: #888;
+ }
}
From 40df11281fb3e10bbba487b0441ea2bd29fd750c Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Mon, 6 Apr 2026 08:45:00 +0000
Subject: [PATCH 2/3] Bump version to 2.6.0 and fix macOS icon list in
tauri.conf.json
Agent-Logs-Url: https://github.com/SillyLittleTech/PinStick/sessions/9e0ce4fb-d00a-4ff1-aafc-4b303ca81665
Co-authored-by: kiyarose <75678535+kiyarose@users.noreply.github.com>
---
cross-platform/package.json | 2 +-
cross-platform/src-tauri/Cargo.lock | 2 +-
cross-platform/src-tauri/Cargo.toml | 2 +-
cross-platform/src-tauri/tauri.conf.json | 7 +++++--
4 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/cross-platform/package.json b/cross-platform/package.json
index 7f4e7ec..49c5c33 100644
--- a/cross-platform/package.json
+++ b/cross-platform/package.json
@@ -1,6 +1,6 @@
{
"name": "pinstick-cross",
- "version": "2.5.8",
+ "version": "2.6.0",
"private": true,
"type": "module",
"scripts": {
diff --git a/cross-platform/src-tauri/Cargo.lock b/cross-platform/src-tauri/Cargo.lock
index 9dc3e3d..9b60cdd 100644
--- a/cross-platform/src-tauri/Cargo.lock
+++ b/cross-platform/src-tauri/Cargo.lock
@@ -2000,7 +2000,7 @@ checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
[[package]]
name = "pinstick"
-version = "2.5.8"
+version = "2.6.0"
dependencies = [
"serde",
"serde_json",
diff --git a/cross-platform/src-tauri/Cargo.toml b/cross-platform/src-tauri/Cargo.toml
index f565fbe..daa7b77 100644
--- a/cross-platform/src-tauri/Cargo.toml
+++ b/cross-platform/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "pinstick"
-version = "2.5.8"
+version = "2.6.0"
description = "PinStick cross-platform note pinning app"
authors = ["SillyLittleTech"]
edition = "2021"
diff --git a/cross-platform/src-tauri/tauri.conf.json b/cross-platform/src-tauri/tauri.conf.json
index 0832723..5d211c2 100644
--- a/cross-platform/src-tauri/tauri.conf.json
+++ b/cross-platform/src-tauri/tauri.conf.json
@@ -8,7 +8,7 @@
},
"package": {
"productName": "PinStick",
- "version": "2.5.8"
+ "version": "2.6.0"
},
"tauri": {
"security": {
@@ -21,7 +21,10 @@
"signingIdentity": "-"
},
"icon": [
- "icons/icon.png",
+ "icons/32x32.png",
+ "icons/128x128.png",
+ "icons/128x128@2x.png",
+ "icons/icon.icns",
"icons/icon.ico"
]
},
From 1d080f3fba61838dd9c3ef89004084cdab188724 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Mon, 6 Apr 2026 09:02:58 +0000
Subject: [PATCH 3/3] Add version display on launch; revert icon list to
committed files
Agent-Logs-Url: https://github.com/SillyLittleTech/PinStick/sessions/7fd7730e-4650-4868-8030-54e0d47b8e85
Co-authored-by: kiyarose <75678535+kiyarose@users.noreply.github.com>
---
cross-platform/src-tauri/tauri.conf.json | 5 +----
cross-platform/src/main.js | 7 +++++++
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/cross-platform/src-tauri/tauri.conf.json b/cross-platform/src-tauri/tauri.conf.json
index 5d211c2..48c197d 100644
--- a/cross-platform/src-tauri/tauri.conf.json
+++ b/cross-platform/src-tauri/tauri.conf.json
@@ -21,10 +21,7 @@
"signingIdentity": "-"
},
"icon": [
- "icons/32x32.png",
- "icons/128x128.png",
- "icons/128x128@2x.png",
- "icons/icon.icns",
+ "icons/icon.png",
"icons/icon.ico"
]
},
diff --git a/cross-platform/src/main.js b/cross-platform/src/main.js
index 8cae3cc..7d84f1e 100644
--- a/cross-platform/src/main.js
+++ b/cross-platform/src/main.js
@@ -58,6 +58,13 @@ function init() {
if (!invoke) {
pinBtn.disabled = true;
setStatus("Tauri API unavailable");
+ } else if (TAURI && TAURI.app) {
+ // Briefly show the app version so users can verify which build is running
+ TAURI.app.getVersion().then((version) => {
+ const previous = statusEl.textContent;
+ setStatus(`v${version}`);
+ setTimeout(() => setStatus(previous), 2000);
+ }).catch(() => { /* non-critical */ });
}
noteEl.addEventListener("input", (e) => {