apple

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Translation between Apple's tag colors to simple color names used by tix

  • Apple stores tag colors as a single-digit number between 0 and 7
  • the RGB colors here were 'captured' manually
  • I strongly expect these specific colors to change over time
  • tix clients should interperet the colors as they see fit
  • tix ONLY uses the color names

| id | name | background | border | comment | | -- | ------ | ---------- | ------ | ------------------ | | 0 | none | 0000 | 0000 | transparent (RGBA) | | 1 | red | EF7163 | EB4E3E | | | 2 | orange | F4AE60 | F19D3B | | | 3 | yellow | F9D86B | F29F41 | | | 4 | green | 83D577 | 63C956 | | | 5 | blue | 5D93F9 | 3578F7 | | | 6 | purple | B679DF | A357D7 | | | 7 | grey | A5A4A8 | 98979C | |

Technical Reference:

https://eclecticlight.co/2017/12/27/xattr-com-apple-metadata_kmditemusertags-finder-tags/

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColorIDForName added in v0.0.10

func ColorIDForName(name string) string

func ColorNameForID added in v0.0.10

func ColorNameForID(colorID string) string

func SetTags

func SetTags(path string, tags tag.List) error

func Tags

func Tags(path string) (tag.List, error)

Types

type Decoder

type Decoder struct {
}

func (*Decoder) Decode

func (d *Decoder) Decode(bplist []byte) (tag.List, error)

type Encoder

type Encoder struct {
}

func (*Encoder) Encode

func (e *Encoder) Encode(tl tag.List) ([]byte, error)

Jump to

Keyboard shortcuts

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