icon

package
v0.0.0-...-c4606bf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

README

package icon

This package provides a set of icons that can be displayed in the system tray bar using the Indicator type.

  • package files are automatically generated with the help of the 2goarray tool that converts PNG images into Golang []byte. This is the format required by the systray package the Indicator exploits.

    • PNG source files are located under assets/tray-agent/icons/tray-bar/
$GOPATH/bin/2goarray <IcoVarName> icon < <myimage>.png > <IcoVarName>.go
  • a simple script make_icon.sh is already provided to ease the creation process. Execute this script to generate all the package files.
# EXECUTE THE SCRIPT FROM THE PROJECT ROOT
$ ./scripts/tray-agent/make_icon.sh
NOTE:

Given the small size of the icon shown in the tray bar, it is advisable to start from a picture of approximately 64x64 px or less, in order to reduce the amount of space.

Documentation

Overview

package icon provides a Liqo iconset used by https://github.com/liqotech/liqo-agent/internal/tray-agent/app-indicator/Indicator to display Liqo Agent's tray icons.

The icons are in the form of []byte, automatically generated using the https://github.com/cratonica/2goarray tool. This is the format required by the https://github.com/getlantern/systray package that Indicator exploits.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL