summary history branches tags files
commit:61305a0133153a3fa68fa389c600ef967ad83251
author:Trevor Bentley
committer:Trevor Bentley
date:Sat May 13 17:56:55 2017 +0200
parents:34898dc22718fc175fe307e4363c09744e9cca5b
Created and switched to Connectr icon
diff --git a/connectr.ico b/connectr.ico
line changes: +0/-0
index 0000000..3ad4c1b
--- /dev/null
+++ b/connectr.ico

diff --git a/connectr.xcf b/connectr.xcf
line changes: +0/-0
index 0000000..27f3ce5
--- /dev/null
+++ b/connectr.xcf

diff --git a/connectr_80px_300dpi.png b/connectr_80px_300dpi.png
line changes: +0/-0
index 0000000..9186bb6
--- /dev/null
+++ b/connectr_80px_300dpi.png

diff --git a/docs/icons.md b/docs/icons.md
line changes: +8/-0
index 0000000..980b449
--- /dev/null
+++ b/docs/icons.md
@@ -0,0 +1,8 @@
+# Regenerating icon files
+
+The Connectr menu bar icon is saved in Gimp's XCF format, as _connectr.xcf_.
+
+The OS X icons are generated from the XCF by resizing it down to 80px with a 300 DPI and saving it as a PNG, _connectr_80px_300dpi.png_.  OS X does actually use the DPI, so setting it is critical to getting sharp rendering at the right size on Retina displays.  The menu bar itself is 22px high, so a 20px @ 72dpi icon looks ideal.  To handle Retina displays, this means bumping to 40px @ 150dpi.  However, you can keep doubling, and I find 80px @ 300dpi to be nicer to work with, so I went with that.
+
+The Windows icon is generated from the OS X PNG, mostly because Gimp is an idiot and doesn't like exporting XCF->ICO directly.  Just open _connectr_80px_300dpi.png_ and export it as _connectr.ico_ without any changes.
+

diff --git a/spotify.ico b/spotify.ico
line changes: +0/-0
index 301b371..0000000
--- a/spotify.ico
+++ /dev/null

diff --git a/spotify.png b/spotify.png
line changes: +0/-0
index 0b949bb..0000000
--- a/spotify.png
+++ /dev/null

diff --git a/src/win/mod.rs b/src/win/mod.rs
line changes: +1/-1
index 44acff7..a7bd1cd
--- a/src/win/mod.rs
+++ b/src/win/mod.rs
@@ -30,7 +30,7 @@ impl TStatusBar for WindowsStatusBar {
         };
         {
             let ref mut win = &mut bar.app.window;
-            let _ = win.set_icon_from_file(&"spotify.ico".to_string());
+            let _ = win.set_icon_from_file(&"connectr.ico".to_string());
         }
         bar
     }