summaryrefslogtreecommitdiff
path: root/NxWidgets/nxwm/include
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-07-13 15:58:12 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-07-13 15:58:12 -0600
commit96c93d6499f93ac4baf0d892c3c3c6aaef8a11f9 (patch)
tree9fdb0554ae5db083c528d86a5189074a9d671cb9 /NxWidgets/nxwm/include
parent9ae67a1db67f78aff7417d96e3e2a9a4871f515f (diff)
downloadnuttx-96c93d6499f93ac4baf0d892c3c3c6aaef8a11f9.tar.gz
nuttx-96c93d6499f93ac4baf0d892c3c3c6aaef8a11f9.tar.bz2
nuttx-96c93d6499f93ac4baf0d892c3c3c6aaef8a11f9.zip
NxWM: Can now configure to use small or large icons
Diffstat (limited to 'NxWidgets/nxwm/include')
-rw-r--r--NxWidgets/nxwm/include/nxwmconfig.hxx22
1 files changed, 15 insertions, 7 deletions
diff --git a/NxWidgets/nxwm/include/nxwmconfig.hxx b/NxWidgets/nxwm/include/nxwmconfig.hxx
index b6c4d6da4..0f31e8d55 100644
--- a/NxWidgets/nxwm/include/nxwmconfig.hxx
+++ b/NxWidgets/nxwm/include/nxwmconfig.hxx
@@ -188,7 +188,8 @@
* CONFIG_NXWM_TASKBAR_RIGHT - Task bar is on the right side of the display
*
* CONFIG_NXWM_TASKBAR_WIDTH - Task bar thickness (either vertical or
- * horizontal). Default: 25 + 2*spacing
+ * horizontal). Default: 25 + 2*spacing unless large icons are selected.
+ * Then the default is 50 *spacing
*/
/**
@@ -226,7 +227,7 @@
// Taskbar ICON scaling
-#ifdef CONFIG_NXWM_TASKBAR_ICONSCALE
+#if defined(CONFIG_NXWM_TASKBAR_ICONSCALE)
# ifndef CONFIG_NXWM_TASKBAR_ICONWIDTH
# error Scaling requires CONFIG_NXWM_TASKBAR_ICONWIDTH
# define CONFIG_NXWM_TASKBAR_ICONWIDTH 50
@@ -235,11 +236,16 @@
# error Scaling requires CONFIG_NXWM_TASKBAR_ICONHEIGHT
# define CONFIG_NXWM_TASKBAR_ICONHEIGHT 42
# endif
+#elif defined(CONFIG_NXWM_LARGE_ICONS)
+# undef CONFIG_NXWM_TASKBAR_ICONWIDTH
+# define CONFIG_NXWM_TASKBAR_ICONWIDTH 50
+# undef CONFIG_NXWM_TASKBAR_ICONHEIGHT
+# define CONFIG_NXWM_TASKBAR_ICONHEIGHT 42
#else
# undef CONFIG_NXWM_TASKBAR_ICONWIDTH
-# define CONFIG_NXWM_TASKBAR_ICONWIDTH 25 // Used below
+# define CONFIG_NXWM_TASKBAR_ICONWIDTH 25
# undef CONFIG_NXWM_TASKBAR_ICONHEIGHT
-# define CONFIG_NXWM_TASKBAR_ICONHEIGHT 21 // Used below (NOT)
+# define CONFIG_NXWM_TASKBAR_ICONHEIGHT 21
#endif
/**
@@ -260,12 +266,14 @@
/* Tool Bar Configuration ***************************************************/
/**
* CONFIG_NXWM_TOOLBAR_HEIGHT. The height of the tool bar in each
- * application window. At present, all icons are 21 pixels in height and,
- * hence require a task bar of at least that size.
+ * application window. At present, all icons are 21 or 42 pixels in height
+ * (depending on the setting of CONFIG_NXWM_LARGE_ICONS) and, hence require
+ * a task bar of at least that size.
*/
#ifndef CONFIG_NXWM_TOOLBAR_HEIGHT
-# define CONFIG_NXWM_TOOLBAR_HEIGHT (21+2*CONFIG_NXWM_TASKBAR_HSPACING)
+# define CONFIG_NXWM_TOOLBAR_HEIGHT \
+ (CONFIG_NXWM_TASKBAR_ICONHEIGHT + 2*CONFIG_NXWM_TASKBAR_HSPACING)
#endif
/* Background Image **********************************************************/