~ubuntu-branches/ubuntu/oneiric/nux/oneiric

« back to all changes in this revision

Viewing changes to Nux/WidgetMetrics.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-11-18 19:17:32 UTC
  • Revision ID: james.westby@ubuntu.com-20101118191732-rn35790vekj6o4my
Tags: upstream-0.9.4
ImportĀ upstreamĀ versionĀ 0.9.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2010 Inalogic Inc.
 
3
 *
 
4
 * This program is free software: you can redistribute it and/or modify it
 
5
 * under the terms of the GNU Lesser General Public License version 3, as
 
6
 * published by the  Free Software Foundation.
 
7
 *
 
8
 * This program is distributed in the hope that it will be useful, but
 
9
 * WITHOUT ANY WARRANTY; without even the implied warranties of
 
10
 * MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
 
11
 * PURPOSE.  See the applicable version of the GNU Lesser General Public
 
12
 * License for more details.
 
13
 *
 
14
 * You should have received a copy of both the GNU Lesser General Public
 
15
 * License version 3 along with this program.  If not, see
 
16
 * <http://www.gnu.org/licenses/>
 
17
 *
 
18
 * Authored by: Jay Taoko <jay.taoko_AT_gmail_DOT_com>
 
19
 *
 
20
 */
 
21
 
 
22
 
 
23
#include "Nux.h"
 
24
#include "WidgetMetrics.h"
 
25
 
 
26
namespace nux
 
27
{
 
28
 
 
29
  const Color COLOR_BLACK = Color (0xFF000000);
 
30
  const Color COLOR_RED =   Color (0xFFFF0000);
 
31
  const Color COLOR_GREEN = Color (0xFF00FF00);
 
32
  const Color COLOR_BLUE =  Color (0xFF0000FF);
 
33
  const Color COLOR_WHITE = Color (0xFFFFFFFF);
 
34
 
 
35
 
 
36
  const Color COLOR_BACKGROUND_PRIMARY = Color (0xFF4D4D4D);
 
37
  const Color COLOR_BACKGROUND_SECONDARY = Color (0xFF868686);
 
38
  const Color COLOR_FOREGROUND_PRIMARY = Color (0xFF424242); //0xFFCFCFCF;
 
39
  const Color COLOR_FOREGROUND_SECONDARY = Color (0xFFEFEFEF);
 
40
 
 
41
 
 
42
  const Color COLOR_SELECTION_SECONDARY = Color (0xFFAAAAAA);
 
43
 
 
44
// Text color
 
45
  const Color COLOR_TEXTEDIT_BACKGROUNG = Color (0xFF9F9F9F);
 
46
  const Color COLOR_TEXTSTATIC_BACKGROUNG = Color (0xFF909090);
 
47
 
 
48
// General background color
 
49
  const Color  COLOR_WIDGET_BACKGROUND     = Color (0xFF6E6E6E);
 
50
  const Color  COLOR_WIDGET_MOUSEOVER      = Color (0xFF969664);
 
51
  const Color  COLOR_WINDOW_BACKGROUND     = Color (0xFFa0a0a0);
 
52
 
 
53
// Widget control background color
 
54
  const Color  COLOR_PRIMARY_LEFT          = Color (0xFFC0C0C0);
 
55
  const Color  COLOR_PRIMARY_RIGHT         = Color (0xFF7D7D7D);
 
56
 
 
57
// ScrollBar color
 
58
  const Color COLOR_SCROLLBAR_TRACK     = Color (0xFF636363);
 
59
  const Color COLOR_SCROLLBAR_SLIDER    = Color (0xFF373737);
 
60
 
 
61
  const Color COLOR_DARK_0     = Color (0xFF575757);
 
62
  const Color COLOR_LIGHT_0    = Color (0xFF737373);
 
63
 
 
64
 
 
65
  const int   BASEOBJECT_MINWIDTH     = 1;
 
66
  const int   BASEOBJECT_MAXWIDTH     = 0xFFFF;
 
67
  const int   BASEOBJECT_MINHEIGHT    = 1;
 
68
  const int   BASEOBJECT_MAXHEIGHT    = 0xFFFF;
 
69
 
 
70
  const int   DEFAULT_WIDGET_HEIGHT   = 8;
 
71
  const int   PRACTICAL_WIDGET_HEIGHT   = 18;
 
72
  const int   DEFAULT_WIDGET_WIDTH    = 32;
 
73
  const int   PRACTICAL_WIDGET_WIDTH   = 32;
 
74
  const int   DEFAULT_TEXT_X_MARGIN   = 0;
 
75
  const int   DEFAULT_TEXT_Y_MARGIN   = 0;
 
76
  const float DEFAULT_REPEAT_DELAY    = 150; //milliseconds
 
77
 
 
78
 
 
79
 
 
80
}