Compare commits
2 Commits
88989b143b
...
ec19ab3884
| Author | SHA1 | Date | |
|---|---|---|---|
| ec19ab3884 | |||
| 999ccb7300 |
+15
-15
@@ -26,13 +26,13 @@ import (
|
|||||||
// leaves the anti-aliased edge fully opaque as a light halo that reads as a
|
// leaves the anti-aliased edge fully opaque as a light halo that reads as a
|
||||||
// border on a dark taskbar/tray, so the background is removed with feathered
|
// border on a dark taskbar/tray, so the background is removed with feathered
|
||||||
// color-to-alpha instead):
|
// color-to-alpha instead):
|
||||||
// - gosentry-icon-big.png detailed large artwork (teal rounded-tile emblem)
|
// - gosentry-icon-large.png detailed large artwork (teal rounded-tile emblem)
|
||||||
// - gosentry-icon-16x16.png hand-tuned for legibility at 16px
|
// - gosentry-icon-small.png hand-tuned for legibility at 16px
|
||||||
// - gosentry.ico multi-size 16/32/48/256 (16 = the hand-tuned PNG,
|
// - gosentry.ico multi-size 16/32/48/256 (16 = the hand-tuned PNG,
|
||||||
// the rest downscaled from big). Embedded into the PE
|
// the rest downscaled from large). Embedded into the PE
|
||||||
// binary by windres (see scripts/build-windows.bat),
|
// binary by windres (see scripts/build-windows.bat),
|
||||||
// NOT via Go embed.
|
// NOT via Go embed.
|
||||||
// - gosentry-icon-16x16.ico single 16px frame, for the Windows tray
|
// - gosentry-icon-small.ico single 16px frame, for the Windows tray
|
||||||
//
|
//
|
||||||
// Windows:
|
// Windows:
|
||||||
// - Window titlebar + taskbar: the multi-size gosentry.ico, embedded by the .rc
|
// - Window titlebar + taskbar: the multi-size gosentry.ico, embedded by the .rc
|
||||||
@@ -54,20 +54,20 @@ import (
|
|||||||
// - Tray: SetSystemTrayIcon(Icon()). StatusNotifierItem renders 22-48px and takes
|
// - Tray: SetSystemTrayIcon(Icon()). StatusNotifierItem renders 22-48px and takes
|
||||||
// a PNG, so the big artwork scales down cleanly (the 16x16 would look tiny).
|
// a PNG, so the big artwork scales down cleanly (the 16x16 would look tiny).
|
||||||
|
|
||||||
//go:embed gosentry-icon-16x16.png
|
//go:embed gosentry-icon-small.png
|
||||||
var iconSmallBytes []byte
|
var iconSmallBytes []byte
|
||||||
|
|
||||||
//go:embed gosentry-icon-big.png
|
//go:embed gosentry-icon-large.png
|
||||||
var iconBytes []byte
|
var iconLargeBytes []byte
|
||||||
|
|
||||||
//go:embed gosentry-icon-16x16.ico
|
//go:embed gosentry-icon-small.ico
|
||||||
var iconSmallICOBytes []byte
|
var iconSmallICOBytes []byte
|
||||||
|
|
||||||
// IconSmall returns the hand-tuned 16x16 PNG. It is the Linux window-titlebar
|
// IconSmall returns the hand-tuned 16x16 PNG. It is the Linux window-titlebar
|
||||||
// icon (via a.SetIcon -> _NET_WM_ICON, which the WM renders at ~16px). On Windows
|
// icon (via a.SetIcon -> _NET_WM_ICON, which the WM renders at ~16px). On Windows
|
||||||
// the titlebar comes from gosentry.ico instead; see the package strategy above.
|
// the titlebar comes from gosentry.ico instead; see the package strategy above.
|
||||||
func IconSmall() fyne.Resource {
|
func IconSmall() fyne.Resource {
|
||||||
return fyne.NewStaticResource("gosentry-icon-16x16.png", iconSmallBytes)
|
return fyne.NewStaticResource("gosentry-icon-small.png", iconSmallBytes)
|
||||||
}
|
}
|
||||||
|
|
||||||
// IconSmallICO returns a single-frame 16x16 Windows .ico of the hand-tuned small
|
// IconSmallICO returns a single-frame 16x16 Windows .ico of the hand-tuned small
|
||||||
@@ -75,18 +75,18 @@ func IconSmall() fyne.Resource {
|
|||||||
// pinning a single 16x16 frame keeps the hand-tuned glyph crisp at tray size — a
|
// pinning a single 16x16 frame keeps the hand-tuned glyph crisp at tray size — a
|
||||||
// multi-size .ico lets the tray pick and downscale a larger, muddier frame.
|
// multi-size .ico lets the tray pick and downscale a larger, muddier frame.
|
||||||
func IconSmallICO() fyne.Resource {
|
func IconSmallICO() fyne.Resource {
|
||||||
return fyne.NewStaticResource("gosentry-icon-16x16.ico", iconSmallICOBytes)
|
return fyne.NewStaticResource("gosentry-icon-small.ico", iconSmallICOBytes)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Icon returns the large artwork PNG. It is the Linux tray icon (StatusNotifierItem
|
// Icon returns the large artwork PNG. It is the Linux tray icon (StatusNotifierItem
|
||||||
// renders 22-48px) and the source for the Linux .desktop dock icon via IconBytes.
|
// renders 22-48px) and the source for the Linux .desktop dock icon via IconBytes.
|
||||||
// The Windows window/taskbar icon comes from gosentry.ico, not this resource.
|
// The Windows window/taskbar icon comes from gosentry.ico, not this resource.
|
||||||
func Icon() fyne.Resource {
|
func Icon() fyne.Resource {
|
||||||
return fyne.NewStaticResource("gosentry-icon-big.png", iconBytes)
|
return fyne.NewStaticResource("gosentry-icon-large.png", iconLargeBytes)
|
||||||
}
|
}
|
||||||
|
|
||||||
// IconBytes is the large artwork as raw PNG bytes for InstallDesktopIcon, which
|
// IconBytes is the large artwork as raw PNG bytes for InstallDesktopIcon, which
|
||||||
// writes the Linux .desktop launcher/dock icon.
|
// writes the Linux .desktop launcher/dock icon.
|
||||||
func IconBytes() []byte {
|
func IconBytes() []byte {
|
||||||
return append([]byte(nil), iconBytes...)
|
return append([]byte(nil), iconLargeBytes...)
|
||||||
}
|
}
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 264 B After Width: | Height: | Size: 264 B |
|
Before Width: | Height: | Size: 242 B After Width: | Height: | Size: 242 B |
@@ -2,6 +2,12 @@
|
|||||||
|
|
||||||
All notable GoSentry changes are recorded in this file.
|
All notable GoSentry changes are recorded in this file.
|
||||||
|
|
||||||
|
## 0.10.1 - 2026-06-24
|
||||||
|
|
||||||
|
**Refactoring:**
|
||||||
|
- Unified icon asset naming from mixed scheme (big/16x16) to consistent
|
||||||
|
size-based names (large/small) for clarity and maintainability.
|
||||||
|
|
||||||
## 0.10.0 - 2026-06-24
|
## 0.10.0 - 2026-06-24
|
||||||
|
|
||||||
**Compact activity rows; per-job execution-time statistics seeded from log files.**
|
**Compact activity rows; per-job execution-time statistics seeded from log files.**
|
||||||
|
|||||||
+1
-1
@@ -3,4 +3,4 @@ package app
|
|||||||
// Version is the application version shown in the GUI and used by build
|
// Version is the application version shown in the GUI and used by build
|
||||||
// scripts in artifact names. It is a var rather than a const so release builds
|
// scripts in artifact names. It is a var rather than a const so release builds
|
||||||
// can override it with Go ldflags when CI tags a build.
|
// can override it with Go ldflags when CI tags a build.
|
||||||
var Version = "0.10.0"
|
var Version = "0.10.1"
|
||||||
|
|||||||
Reference in New Issue
Block a user