summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2020-07-14 19:21:57 (GMT)
committerfvogel <fvogelnew1@free.fr>2020-07-14 19:21:57 (GMT)
commitb0ccde46840d0f2c5fe2b0caa40095bd53e029e0 (patch)
tree6dd115761b1c25b55d488ff643c65fea12f309d9
parentb794d17b77c6a6901f129c37b58aed8a5253ff87 (diff)
downloadtk-b0ccde46840d0f2c5fe2b0caa40095bd53e029e0.zip
tk-b0ccde46840d0f2c5fe2b0caa40095bd53e029e0.tar.gz
tk-b0ccde46840d0f2c5fe2b0caa40095bd53e029e0.tar.bz2
Correctly use a system placeholder color on Windows.
-rw-r--r--win/tkWinColor.c1
-rw-r--r--win/tkWinDefault.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/win/tkWinColor.c b/win/tkWinColor.c
index 78e3b6c..ab43304 100644
--- a/win/tkWinColor.c
+++ b/win/tkWinColor.c
@@ -58,6 +58,7 @@ static const SystemColorEntry sysColors[] = {
{"InfoText", COLOR_INFOTEXT},
{"Menu", COLOR_MENU},
{"MenuText", COLOR_MENUTEXT},
+ {"PlaceHolderText", COLOR_GRAYTEXT},
{"Scrollbar", COLOR_SCROLLBAR},
{"Window", COLOR_WINDOW},
{"WindowFrame", COLOR_WINDOWFRAME},
diff --git a/win/tkWinDefault.h b/win/tkWinDefault.h
index 12af282..eaceb42 100644
--- a/win/tkWinDefault.h
+++ b/win/tkWinDefault.h
@@ -158,7 +158,7 @@
#define DEF_ENTRY_INSERT_WIDTH "2"
#define DEF_ENTRY_JUSTIFY "left"
#define DEF_ENTRY_PLACEHOLDER ""
-#define DEF_ENTRY_PLACEHOLDERFG "COLOR_GRAYTEXT"
+#define DEF_ENTRY_PLACEHOLDERFG "SystemPlaceHolderText"
#define DEF_ENTRY_READONLY_BG_COLOR "SystemButtonFace"
#define DEF_ENTRY_READONLY_BG_MONO WHITE
#define DEF_ENTRY_RELIEF "sunken"