diff --git a/Contrib/Modern UI/Readme.html b/Contrib/Modern UI/Readme.html index af027b5e..65d56771 100644 --- a/Contrib/Modern UI/Readme.html +++ b/Contrib/Modern UI/Readme.html @@ -206,9 +206,9 @@ will also help you to learn more about the Modern UI.

To configure a page, you can define the page settings before inserting a page macro.

General Page Settings

-

MUI_PAGE_HEADER_TEXT
+

MUI_PAGE_HEADER_TEXT text
Custom text to display on the header of the page.

-

MUI_PAGE_HEADER_SUBTEXT
+

MUI_PAGE_HEADER_SUBTEXT text
Custom subtext to display on the header of the page.

Welcome Page Settings

@@ -439,15 +439,7 @@ will also help you to learn more about the Modern UI.

MUI_FONTSIZE_TITLE font_size
MUI_FONTSTYLE_TITLE weight [/ITALIC] [/UNDERLINE] [/STRIKE]
The font for the title on the Welcome and Finish page.

- -

Customize other texts

-
-

To customize button texts, use the following defines.

-

- MUI_BUTTONTEXT_BACK text
- MUI_BUTTONTEXT_NEXT text
- MUI_BUTTONTEXT_CANCEL text -

+

Note: Page texts can be changed using page settings.

Language selection dialog

@@ -646,7 +638,7 @@ ReserveFile "${NSISDIR}\Contrib\Icons\modern-header.bmp" ;Your header bitmap

If you want add your own code to functions inserted by the Modern UI, such as the .onGUIInit function and the Page functions, create your own function and let the Modern UI functions call them. Use the defines - to define the name of your functions. Add the defines before the MUI_LANGUAGE macros.

+ to define the name of your functions.

Example:

 !define MUI_CUSTOMFUNCTION_GUIINIT myGuiInit
@@ -657,16 +649,17 @@ FunctionEnd
 

General Custom Functions

-

MUI_CUSTOMFUNCTION_GUIINIT
- MUI_CUSTOMFUNCTION_UNGUIINIT
- MUI_CUSTOMFUNCTION_ABORT

+

These defines should be set before inserting a the language macros.

+

MUI_CUSTOMFUNCTION_GUIINIT function
+ MUI_CUSTOMFUNCTION_UNGUIINIT function
+ MUI_CUSTOMFUNCTION_ABORT function

Page Custom Functions

These defines should be set before inserting a page macro.

-

MUI_PAGE_CUSTOMFUNCTION_PRE
- MUI_PAGE_CUSTOMFUNCTION_SHOW
- MUI_PAGE_CUSTOMFUNCTION_LEAVE

+

MUI_PAGE_CUSTOMFUNCTION_PRE function
+ MUI_PAGE_CUSTOMFUNCTION_SHOW function
+ MUI_PAGE_CUSTOMFUNCTION_LEAVE function

Notes: