Skip to content

star-tek-mb/zig-tray

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zig-tray

zig-tray is a library for creating tray applications. Supports tray and notifications.

Features

  • tray witch .ico support!
  • left click callback support
  • right click callback support
  • sending notification and notification click callback support

Supported platforms

  • Windows
  • Linux
  • MacOS

Installation

Zig 0.12 \ 0.13.0

  1. Add to build.zig.zon
# It is recommended to replace the following branch with commit id
zig fetch --save https://github.com/star-tek-mb/zig-tray/archive/master.tar.gz
# Of course, you can also use git+https to fetch this package!
  1. Config build.zig

Add this:

// To standardize development, maybe you should use `lazyDependency()` instead of `dependency()`
// more info to see: https://ziglang.org/download/0.12.0/release-notes.html#toc-Lazy-Dependencies
const zig_tray = b.dependency("zig-tray", .{
    .target = target,
    .optimize = optimize,
});

// add module
exe.root_module.addImport("zig-tray", zig_tray.module("tray"));

Example

see folder example!

Credits

https://github.com/zserge/tray - for initial C library https://github.com/glfw/glfw/blob/master/src/win32_window.c#L102 - for icon creating from rgba

About

Create tray applications with zig

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages