~mike82/netbook-remix-launcher/fixes

« back to all changes in this revision

Viewing changes to src/launcher-defines.h

  • Committer: Neil J. Patel
  • Date: 2008-04-16 13:50:57 UTC
  • Revision ID: njpatel@gmail.com-20080416135057-uwf4gyqvdmn9xnpu
* Inital check-in of the category bar

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#define CSW() (CLUTTER_STAGE_WIDTH ())
27
27
#define CSH() (CLUTTER_STAGE_HEIGHT ())
28
28
 
 
29
#define CAW(obj) (clutter_actor_get_width(obj))
 
30
#define CAH(obj) (clutter_actor_get_height(obj))
 
31
 
29
32
#define PANEL_HEIGHT 24
30
 
#define DECORATION_SIZE 30
31
 
#define DECORATION_PADDING 10
32
 
#define TOP_OFFSET (PANEL_HEIGHT+DECORATION_SIZE)
33
 
 
34
 
#define MAX_CATS 5
35
 
#define MAX_ITEMS 6
36
 
 
37
 
#define FONT "Sans"
38
 
 
39
 
#define CAT_ICON_SIZE (CSH()*0.11)
40
 
#define APP_ICON_SIZE (CSH()*0.07)
41
 
 
42
 
#define HILIGHT_MAX_OPACITY 60
43
 
#define HILIGHT_SIZE_FACTOR 2.2
44
 
 
45
 
#define PAGE_SIZE_FACTOR 0.1
46
 
#define PAGE_ACTIVE_SCALE 1.3
47
 
#define PAGE_INACTIVE_OPACITY 160
48
 
 
49
 
#define CAT_BAR_WIDTH ((CAT_ICON_SIZE*HILIGHT_SIZE_FACTOR)*MAX_CATS)
 
33
 
 
34
#define CAT_PADDING 8
 
35
#define CAT_FONT "URW Gothic L 8"
 
36
#define N_CATS 6
 
37
#define CAT_SIZE() ((CSH()-PANEL_HEIGHT*5)/N_CATS)
 
38
 
 
39
#define CAT_ICON_SIZE (CAT_SIZE())
 
40
#define APP_ICON_SIZE (CAT_SIZE())
50
41
 
51
42
#endif /* _LAUNCHER_DEFINES_H_ */