From b33de3866d3568342af566b7fc341212599568d5 Mon Sep 17 00:00:00 2001 From: joostverburg Date: Fri, 12 Dec 2003 21:26:21 +0000 Subject: [PATCH] fixed finish page link positioning, color (standard RRGGBB hex format) git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3269 212acab6-be3b-0410-9dea-997c60f758d6 --- Contrib/Modern UI/Readme.html | 6 +++--- Contrib/Modern UI/System.nsh | 12 +++++++----- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/Contrib/Modern UI/Readme.html b/Contrib/Modern UI/Readme.html index 138494f1..1d59b28c 100644 --- a/Contrib/Modern UI/Readme.html +++ b/Contrib/Modern UI/Readme.html @@ -552,10 +552,10 @@ Text for a link on the which the user can click to view a website or file.

MUI_FINISHPAGE_LINK_LOCATION file/url
Website or file which the user can select to view using the link. You don't need to put quotes around the filename when it contains spaces.

-

MUI_FINISHPAGE_LINK_COLOR (color: 0xBBGGRR -hexadecimal)
+

MUI_FINISHPAGE_LINK_COLOR (color: RRGGBB hexadecimal) +
Text color for the link on the Finish page.
-Default: 0x800000

+Default: 000080

MUI_FINISHPAGE_NOREBOOTSUPPORT
Disables support for the page that allows the user to reboot the system. Define this option to save diff --git a/Contrib/Modern UI/System.nsh b/Contrib/Modern UI/System.nsh index 0123133b..519aca36 100644 --- a/Contrib/Modern UI/System.nsh +++ b/Contrib/Modern UI/System.nsh @@ -917,8 +917,7 @@ Var MUI_TEMP2 !insertmacro MUI_DEFAULT MUI_FINISHPAGE_TEXT_REBOOTLATER "$(MUI_TEXT_FINISH_REBOOTLATER)" !insertmacro MUI_DEFAULT MUI_FINISHPAGE_RUN_TEXT "$(MUI_${MUI_PAGE_UNINSTALLER_PREFIX}TEXT_FINISH_RUN)" !insertmacro MUI_DEFAULT MUI_FINISHPAGE_SHOWREADME_TEXT "$(MUI_${MUI_PAGE_UNINSTALLER_PREFIX}TEXT_FINISH_SHOWREADME)" - - !insertmacro MUI_DEFAULT MUI_FINISHPAGE_LINK_COLOR "0x800000" + !insertmacro MUI_DEFAULT MUI_FINISHPAGE_LINK_COLOR "000080" !ifndef MUI_VAR_HWND Var MUI_HWND @@ -1383,7 +1382,11 @@ Var MUI_TEMP2 !endif !endif !else - !insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 3" "Bottom" "185" + !ifndef MUI_FINISHPAGE_LINK + !insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 3" "Bottom" "185" + !else + !insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 3" "Bottom" "175" + !endif !endif !ifndef MUI_FINISHPAGE_NOREBOOTSUPPORT @@ -1558,7 +1561,6 @@ Var MUI_TEMP2 !insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field ${MUI_FINISHPAGE_CURFIELD_NO}" "Top" "175" !insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field ${MUI_FINISHPAGE_CURFIELD_NO}" "Bottom" "185" !insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field ${MUI_FINISHPAGE_CURFIELD_NO}" "State" "${MUI_FINISHPAGE_LINK_LOCATION}" - !insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field ${MUI_FINISHPAGE_CURFIELD_NO}" "TxtColor" "${MUI_FINISHPAGE_LINK_COLOR}" !endif @@ -1654,7 +1656,7 @@ Var MUI_TEMP2 !else GetDlgItem $MUI_TEMP1 $MUI_HWND 1203 !endif - SetCtlColors $MUI_TEMP1 "" "${MUI_BGCOLOR}" + SetCtlColors $MUI_TEMP1 "${MUI_FINISHPAGE_LINK_COLOR}" "${MUI_BGCOLOR}" !endif !ifndef MUI_FINISHPAGE_NOREBOOTSUPPORT