~golfish/netbook-remix-launcher/desktop

« back to all changes in this revision

Viewing changes to src/launcher-defines.h

  • Committer: Neil J. Patel
  • Date: 2008-04-16 11:31:15 UTC
  • Revision ID: njpatel@gmail.com-20080416113115-ztljg0qms79anijd
* Inital import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2008 Canonical Ltd
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or
 
5
 * modify it under the terms of the GNU General Public
 
6
 * License as published by the Free Software Foundation; either
 
7
 * version 2 of the License, or (at your option) any later version.
 
8
 *
 
9
 * This library is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
12
 * Lesser General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU General Public
 
15
 * License along with this library; if not, write to the
 
16
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
17
 * Boston, MA 02111-1307, USA.
 
18
 *
 
19
 * Authored by Neil Jagdish Patel <neil.patel@canonical.com>
 
20
 *
 
21
 */
 
22
 
 
23
#ifndef _LAUNCHER_DEFINES_H_
 
24
#define _LAUNCHER_DEFINES_H_
 
25
 
 
26
#define CSW() (CLUTTER_STAGE_WIDTH ())
 
27
#define CSH() (CLUTTER_STAGE_HEIGHT ())
 
28
 
 
29
#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)
 
50
 
 
51
#endif /* _LAUNCHER_DEFINES_H_ */