fix: use app png for status bar icon

This commit is contained in:
baiqing committed 2026-04-27 15:17:12 +08:00
1 parent 8965fb4209
commit da14031c83
3 files changed
+2 -12

No files matched your search

@@ -1,10 +0,0 @@
<svg width="72" height="72" viewBox="0 0 72 72" fill="none" xmlns="http://www.w3.org/2000/svg">
<title>OpenLess Status Icon</title>
<rect x="6" y="6" width="60" height="60" rx="18" fill="white" fill-opacity="0.92"/>
<rect x="6.75" y="6.75" width="58.5" height="58.5" rx="17.25" stroke="#111827" stroke-opacity="0.10" stroke-width="1.5"/>
<path d="M51.2 18.2C47.1 14.4 41.7 12 35.8 12C22.7 12 12 22.7 12 35.8C12 48.9 22.7 59.6 35.8 59.6C45.2 59.6 53.4 54.1 57.2 46.2" stroke="#111827" stroke-width="8.8" stroke-linecap="round"/>
<path d="M49 36H63" stroke="#2F80FF" stroke-width="7" stroke-linecap="round"/>
<path d="M28.5 28.2V43.8" stroke="#111827" stroke-width="3.2" stroke-linecap="round"/>
<path d="M35.8 24.8V47.2" stroke="#111827" stroke-width="3.2" stroke-linecap="round"/>
<path d="M43.1 30.4V41.6" stroke="#111827" stroke-width="3.2" stroke-linecap="round"/>
</svg>

Before

Width:  |  Height:  |  Size: 891 B

+1 -1
View File
@@ -2,7 +2,7 @@ import AppKit
enum StatusBarIcon {
static func image() -> NSImage {
if let url = Bundle.main.url(forResource: "OpenLessStatusIcon", withExtension: "svg"),
if let url = Bundle.main.url(forResource: "AppIcon", withExtension: "png"),
let image = NSImage(contentsOf: url) {
image.size = NSSize(width: 18, height: 18)
image.isTemplate = false
+1 -1
View File
@@ -27,7 +27,7 @@ rm -rf "${APP_DIR}"
mkdir -p "${BIN_DIR}" "${RES_DIR}"
cp "${BIN_SRC}" "${BIN_DIR}/${APP_NAME}"
cp "Resources/AppIcon.icns" "${RES_DIR}/AppIcon.icns"
cp "Resources/StatusBar/OpenLessStatusIcon.svg" "${RES_DIR}/OpenLessStatusIcon.svg"
cp "Resources/AppIcon.png" "${RES_DIR}/AppIcon.png"
cat > "${APP_DIR}/Contents/Info.plist" <<EOF
<?xml version="1.0" encoding="UTF-8"?>