Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Plan9-Archive/libtheme
https://github.com/Plan9-Archive/libtheme
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/Plan9-Archive/libtheme
- Owner: Plan9-Archive
- Created: 2019-10-18T05:59:41.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2019-10-18T05:59:59.000Z (over 4 years ago)
- Last Synced: 2024-03-12T06:34:46.798Z (4 months ago)
- Language: C
- Size: 3.91 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Lists
- awesome-plan9 - libtheme - A theming library for the plan 9 graphics system (Libraries / Audio/music)
README
libtheme
========this is a theming library for the plan 9 graphics system.
theme files are in ndb format. there is a sample in lib/theme.
theme files are read from $home/lib/theme, or /lib/theme if there is no theme file in $home.
applications using the theme library should call `themeget` to find color values. for example:
```
ulong col = themeget("rio", "background", DBlack);
```this will look up an ndb record in the theme file that looks like this:
```
theme=rio
background=red
```if the key `background` doesn't exist, it will fall back to DBlack.
installation
============```
mk install
cp lib/theme $home/lib/theme
B $home/lib/theme
```color names
===========some predefined color names are in the library, taken from allocimage(2):
- black
- white
- red
- green
- blue
- cyan
- magenta
- paleyellow
- darkyellow
- darkgreen
- palegreen
- medgreen
- darkblue
- palebluegreen
- paleblue
- bluegreen
- greygreen
- palegreygreen
- yellowgreen
- medblue
- greyblue
- palegreyblue
- purplebluepatches for software
====================there are some patches available to make existing software use libtheme.
see [libtheme-patches](https://bitbucket.org/mischief/libtheme-patches) for details.