Added themes and made struct names more generic.

This commit is contained in:
Johannes Findeisen 2023-03-09 03:58:04 +01:00
commit 7154b7c29e
5 changed files with 750 additions and 428 deletions

View file

@ -1,9 +1,8 @@
SpaceAPI-GTK
============
spacetray
=========
A panel Applet using GTK2 for showing the Status of a Hackerspace. Compatible with the SpaceAPI version 0.13.
A panel Applet using GTK2 for showing the Status of a Hackerspace. Compatible with the SpaceAPI version >= 0.13.
Original source: [https://github.com/ccchh/dooris-gtk](https://github.com/ccchh/dooris-gtk) (I moved to $HOME from $CCCHH... ;))
Installation:
-------------
@ -55,7 +54,7 @@ Usage:
Run spacetray with:
./spacetray &
./spacetray &
Or if in your $PATH:
@ -66,3 +65,34 @@ Status Icon "Pesthoernchen" colors:
- Red = Door closed
- Yellow = Door open
Themes:
-------
You can create your own icon theme by generating a C header file containing the icons as "static const GdkPixdata" data structure.
This can be done using the following commands:
gdk-pixbuf-csource --struct PATH_TO_OPEN_IMAGE > ./themes/THEME_NAME.h
gdk-pixbuf-csource --struct PATH_TO_CLOSED_IMAGE >> ./themes/THEME_NAME.h
Afterwards you need to rename the first generated struct to:
icon_open_pixbuf
The second must be renamed to:
icon_closed_pixbuf
in:
./themes/THEME_NAME.h
You can then use your custom icon theme when changing the line:
#include "themes/lock.h"
to:
#include "themes/THEME_NAME.h"