summaryrefslogtreecommitdiff
path: root/NxWidgets/nxwm/include/nxwmconfig.hxx
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-30 20:38:44 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-04-30 20:38:44 +0000
commit9384da7066d128ab6a0fb7616a671047c374cd4a (patch)
tree4f4f27a4c48bebaa41673da9518e25f6afc3ad2a /NxWidgets/nxwm/include/nxwmconfig.hxx
parent284cd6923b521898c0927992fab77593ad797b4a (diff)
downloadnuttx-9384da7066d128ab6a0fb7616a671047c374cd4a.tar.gz
nuttx-9384da7066d128ab6a0fb7616a671047c374cd4a.tar.bz2
nuttx-9384da7066d128ab6a0fb7616a671047c374cd4a.zip
Completes first cut at task bar
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4678 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'NxWidgets/nxwm/include/nxwmconfig.hxx')
-rw-r--r--NxWidgets/nxwm/include/nxwmconfig.hxx51
1 files changed, 43 insertions, 8 deletions
diff --git a/NxWidgets/nxwm/include/nxwmconfig.hxx b/NxWidgets/nxwm/include/nxwmconfig.hxx
index 178cc37a2..d416bf8f0 100644
--- a/NxWidgets/nxwm/include/nxwmconfig.hxx
+++ b/NxWidgets/nxwm/include/nxwmconfig.hxx
@@ -91,7 +91,7 @@
#endif
/**
- * Default selected forecround color
+ * Default selected foreground color
*/
#ifndef CONFIG_NXWM_DEFAULT_SELECTEDFOREGROUNDCOLOR
@@ -99,6 +99,18 @@
#endif
/**
+ * Border colors
+ */
+
+#ifndef CONFIG_NXWM_DEFAULT_SHINEEDGECOLOR
+# define CONFIG_NXWM_DEFAULT_SHINEEDGECOLOR MKRGB(248,248,248)
+#endif
+
+#ifndef CONFIG_NXWM_DEFAULT_SHADOWEDGECOLOR
+# define CONFIG_NXWM_DEFAULT_SHADOWEDGECOLOR MKRGB(0,0,0)
+#endif
+
+/**
* The default font color
*/
@@ -115,15 +127,21 @@
#endif
/* Task Bar Configuation ***************************************************/
-/* At present, all icons are 25 pixels in "widgth" and, hence require a
- * task bar of at least that size.
+/**
+ * Horizontal and vertical spacing of icons in the task bar.
*/
-#ifndef CONFIG_NXWM_TASKBAR_WIDTH
-# define CONFIG_NXWM_TASKBAR_WIDTH (25+2*2)
+#ifndef CONFIG_NXWM_TASKBAR_VSPACING
+# define CONFIG_NXWM_TASKBAR_VSPACING (2)
#endif
-/* Check task bar location */
+#ifndef CONFIG_NXWM_TASKBAR_HSPACING
+# define CONFIG_NXWM_TASKBAR_HSPACING (2)
+#endif
+
+/**
+ * Check task bar location
+ */
#if defined(CONFIG_NXWM_TASKBAR_TOP)
# if defined(CONFIG_NXWM_TASKBAR_BOTTOM) || defined (CONFIG_NXWM_TASKBAR_LEFT) || defined (CONFIG_NXWM_TASKBAR_RIGHT)
@@ -142,12 +160,29 @@
# define CONFIG_NXWM_TASKBAR_TOP 1
#endif
+/**
+ * At present, all icons are 25 pixels in "widgth" and, hence require a
+ * task bar of at least that size.
+ */
+
+#ifndef CONFIG_NXWM_TASKBAR_WIDTH
+# if defined(CONFIG_NXWM_TASKBAR_TOP) || defined(CONFIG_NXWM_TASKBAR_BOTTOM)
+# define CONFIG_NXWM_TASKBAR_WIDTH (25+2*CONFIG_NXWM_TASKBAR_HSPACING)
+# else
+# define CONFIG_NXWM_TASKBAR_WIDTH (25+2*CONFIG_NXWM_TASKBAR_VSPACING)
+# endif
+#endif
+
+/* Background Image **********************************************************/
+
+#ifndef CONFIG_NXWM_BACKGROUND_IMAGE
+# define CONFIG_NXWM_BACKGROUND_IMAGE NXWidgets::g_nuttxBitmap
+#endif
+
/* Tool Bar Configuration ***************************************************/
#ifndef CONFIG_NXWM_TOOLBAR_HEIGHT
# define CONFIG_NXWM_TOOLBAR_HEIGHT CONFIG_NXWM_TASKBAR_WIDTH
#endif
-/* Colors *******************************************************************/
-
#endif // __INCLUDE_NXWMCONFIG_HXX