summaryrefslogtreecommitdiff
path: root/NxWidgets/Kconfig
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/Kconfig
parent9ae67a1db67f78aff7417d96e3e2a9a4871f515f (diff)
downloadpx4-nuttx-96c93d6499f93ac4baf0d892c3c3c6aaef8a11f9.tar.gz
px4-nuttx-96c93d6499f93ac4baf0d892c3c3c6aaef8a11f9.tar.bz2
px4-nuttx-96c93d6499f93ac4baf0d892c3c3c6aaef8a11f9.zip
NxWM: Can now configure to use small or large icons
Diffstat (limited to 'NxWidgets/Kconfig')
-rw-r--r--NxWidgets/Kconfig30
1 files changed, 24 insertions, 6 deletions
diff --git a/NxWidgets/Kconfig b/NxWidgets/Kconfig
index 7a903c335..8495d0908 100644
--- a/NxWidgets/Kconfig
+++ b/NxWidgets/Kconfig
@@ -313,13 +313,27 @@ if NXWM
menu "NxWM General settings"
-config NXWM_SYSTEM_CUSTOM_FONTID
+config NXWM_LARGE_ICONS
+ bool "Use large icons"
+ default n
+ ---help---
+ The default icons are nominally 25x25 pixels for a small
+ resolution/display, this is a good selection. For example, a
+ 320x240 display that is 4.5cm x 3.375 would have a resolution of
+ about 71 dots per cm. In this case, the icon would be 0.35cm.
+
+ If you use a larger display, these smaller icons may seem
+ inappropriately small. In this case, you have two options: (1)
+ Enable image scaling which will make the icons "fuzzy" looking, or
+ (2) select this option to enable use of larger icons.
+
+config NXWM_CUSTOM_FONTID
bool "Use Custom Default Font"
default n
---help---
Set to override the system default font id (NXFONT_DEFAULT).
-if NXWM_SYSTEM_CUSTOM_FONTID
+if NXWM_CUSTOM_FONTID
config NXWM_DEFAULT_FONTID
int "Font ID"
@@ -328,7 +342,7 @@ config NXWM_DEFAULT_FONTID
Use this NxWM default font ID instead of the system font ID
(NXFONT_DEFAULT). Default: 0
-endif # NXWM_SYSTEM_CUSTOM_FONTID
+endif # NXWM_CUSTOM_FONTID
config NXWM_UNITTEST
bool "NxWM Unit Test"
@@ -480,7 +494,8 @@ if NXWM_CUSTOM_TASKBAR_WIDTH
config NXWM_TASKBAR_WIDTH
int "Taskbar Width"
- default 29
+ default 29 if !NXWM_LARGE_ICONS
+ default 54 if !NXWM_LARGE_ICONS
---help---
Task bar thickness (either vertical or horizontal). Default: 25 + 2*2
@@ -532,16 +547,19 @@ config NXWM_CUSTOM_TOOLBAR_HEIGHT
---help---
Set to override the default tooldar height The default depends on
the selected horizontal or vertical spacing. Default: 21 + 2*spacing
+ or 42 + 2*spacing if large icons are selected
if NXWM_CUSTOM_TOOLBAR_HEIGHT
config NXWM_TOOLBAR_HEIGHT
int "Toolbar Height"
- default 25
+ default 25 if !NXWM_LARGE_ICONS
+ default 46 if NXWM_LARGE_ICONS
---help---
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. Default: 21 + 2*2
+ at least that size. Default: 21 + 2*2or 42 + 2*spacing if large
+ icons are selected
endif # NXWM_CUSTOM_TOOLBAR_HEIGHT
endmenu # NxWM Toolbar Configuration