mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 18:52:57 +00:00
[BOOTDATA][SETUPLIB] Don't hardcode FreeLdr's UI defaults in the freeldr.ini files.
This includes: - the default TimeText; - the default colors. They can however be changed by the user at one's convenience, by explicitly specifying different values.
This commit is contained in:
parent
d215039216
commit
ea4cfcfa12
5 changed files with 10 additions and 155 deletions
|
@ -228,94 +228,21 @@ CreateCommonFreeLdrSections(
|
||||||
|
|
||||||
BootStore->OptionsIniSection = IniSection;
|
BootStore->OptionsIniSection = IniSection;
|
||||||
|
|
||||||
/* Timeout=0 */
|
/* TimeOut */
|
||||||
IniCacheInsertKey(BootStore->OptionsIniSection, NULL, INSERT_LAST,
|
IniCacheInsertKey(BootStore->OptionsIniSection, NULL, INSERT_LAST,
|
||||||
L"TimeOut", L"0");
|
L"TimeOut", L"0");
|
||||||
|
|
||||||
/* Create "Display" section */
|
/* Create "Display" section */
|
||||||
IniSection = IniCacheAppendSection(BootStore->IniCache, L"Display");
|
IniSection = IniCacheAppendSection(BootStore->IniCache, L"Display");
|
||||||
|
|
||||||
/* TitleText=ReactOS Boot Manager */
|
/* TitleText */
|
||||||
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
|
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
|
||||||
L"TitleText", L"ReactOS Boot Manager");
|
L"TitleText", L"ReactOS Boot Manager");
|
||||||
|
|
||||||
/* StatusBarColor=Cyan */
|
/* MinimalUI */
|
||||||
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
|
|
||||||
L"StatusBarColor", L"Cyan");
|
|
||||||
|
|
||||||
/* StatusBarTextColor=Black */
|
|
||||||
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
|
|
||||||
L"StatusBarTextColor", L"Black");
|
|
||||||
|
|
||||||
/* BackdropTextColor=White */
|
|
||||||
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
|
|
||||||
L"BackdropTextColor", L"White");
|
|
||||||
|
|
||||||
/* BackdropColor=Blue */
|
|
||||||
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
|
|
||||||
L"BackdropColor", L"Blue");
|
|
||||||
|
|
||||||
/* BackdropFillStyle=Medium */
|
|
||||||
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
|
|
||||||
L"BackdropFillStyle", L"Medium");
|
|
||||||
|
|
||||||
/* TitleBoxTextColor=White */
|
|
||||||
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
|
|
||||||
L"TitleBoxTextColor", L"White");
|
|
||||||
|
|
||||||
/* TitleBoxColor=Red */
|
|
||||||
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
|
|
||||||
L"TitleBoxColor", L"Red");
|
|
||||||
|
|
||||||
/* MessageBoxTextColor=White */
|
|
||||||
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
|
|
||||||
L"MessageBoxTextColor", L"White");
|
|
||||||
|
|
||||||
/* MessageBoxColor=Blue */
|
|
||||||
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
|
|
||||||
L"MessageBoxColor", L"Blue");
|
|
||||||
|
|
||||||
/* MenuTextColor=White */
|
|
||||||
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
|
|
||||||
L"MenuTextColor", L"Default");
|
|
||||||
|
|
||||||
/* MenuColor=Blue */
|
|
||||||
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
|
|
||||||
L"MenuColor", L"Black");
|
|
||||||
|
|
||||||
/* TextColor=Yellow */
|
|
||||||
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
|
|
||||||
L"TextColor", L"Default");
|
|
||||||
|
|
||||||
/* SelectedTextColor=Black */
|
|
||||||
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
|
|
||||||
L"SelectedTextColor", L"Black");
|
|
||||||
|
|
||||||
/* SelectedColor=Default */
|
|
||||||
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
|
|
||||||
L"SelectedColor", L"Default");
|
|
||||||
|
|
||||||
/* ShowTime=Yes */
|
|
||||||
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
|
|
||||||
L"ShowTime", L"No");
|
|
||||||
|
|
||||||
/* MenuBox=Yes */
|
|
||||||
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
|
|
||||||
L"MenuBox", L"No");
|
|
||||||
|
|
||||||
/* CenterMenu=Yes */
|
|
||||||
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
|
|
||||||
L"CenterMenu", L"No");
|
|
||||||
|
|
||||||
/* MinimalUI=No */
|
|
||||||
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
|
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
|
||||||
L"MinimalUI", L"Yes");
|
L"MinimalUI", L"Yes");
|
||||||
|
|
||||||
/* TimeText=Your text goes here... */
|
|
||||||
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
|
|
||||||
L"TimeText",
|
|
||||||
L"Seconds until highlighted choice will be started automatically: ");
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Cache the "Operating Systems" section for our future usage.
|
* Cache the "Operating Systems" section for our future usage.
|
||||||
*/
|
*/
|
||||||
|
@ -876,15 +803,15 @@ CreateNTOSEntry(
|
||||||
{
|
{
|
||||||
PNTOS_OPTIONS Options = (PNTOS_OPTIONS)&BootEntry->OsOptions;
|
PNTOS_OPTIONS Options = (PNTOS_OPTIONS)&BootEntry->OsOptions;
|
||||||
|
|
||||||
/* BootType= */
|
/* BootType */
|
||||||
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
|
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
|
||||||
L"BootType", L"Windows2003");
|
L"BootType", L"Windows2003");
|
||||||
|
|
||||||
/* SystemPath= */
|
/* SystemPath */
|
||||||
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
|
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
|
||||||
L"SystemPath", (PWSTR)Options->OsLoadPath);
|
L"SystemPath", (PWSTR)Options->OsLoadPath);
|
||||||
|
|
||||||
/* Options= */
|
/* Options */
|
||||||
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
|
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
|
||||||
L"Options", (PWSTR)Options->OsLoadOptions);
|
L"Options", (PWSTR)Options->OsLoadOptions);
|
||||||
}
|
}
|
||||||
|
@ -897,19 +824,19 @@ CreateNTOSEntry(
|
||||||
{
|
{
|
||||||
PBOOT_SECTOR_OPTIONS Options = (PBOOT_SECTOR_OPTIONS)&BootEntry->OsOptions;
|
PBOOT_SECTOR_OPTIONS Options = (PBOOT_SECTOR_OPTIONS)&BootEntry->OsOptions;
|
||||||
|
|
||||||
/* BootType= */
|
/* BootType */
|
||||||
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
|
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
|
||||||
L"BootType", L"BootSector");
|
L"BootType", L"BootSector");
|
||||||
|
|
||||||
/* BootDrive= */
|
/* BootDrive */
|
||||||
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
|
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
|
||||||
L"BootDrive", (PWSTR)Options->Drive);
|
L"BootDrive", (PWSTR)Options->Drive);
|
||||||
|
|
||||||
/* BootPartition= */
|
/* BootPartition */
|
||||||
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
|
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
|
||||||
L"BootPartition", (PWSTR)Options->Partition);
|
L"BootPartition", (PWSTR)Options->Partition);
|
||||||
|
|
||||||
/* BootSector= */
|
/* BootSector */
|
||||||
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
|
IniCacheInsertKey(IniSection, NULL, INSERT_LAST,
|
||||||
L"BootSectorFile", (PWSTR)Options->BootSectorFileName);
|
L"BootSectorFile", (PWSTR)Options->BootSectorFileName);
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,25 +4,7 @@ TimeOut=0
|
||||||
|
|
||||||
[Display]
|
[Display]
|
||||||
TitleText=ReactOS Setup
|
TitleText=ReactOS Setup
|
||||||
StatusBarColor=Cyan
|
|
||||||
StatusBarTextColor=Black
|
|
||||||
BackdropTextColor=White
|
|
||||||
BackdropColor=Blue
|
|
||||||
BackdropFillStyle=Medium
|
|
||||||
TitleBoxTextColor=White
|
|
||||||
TitleBoxColor=Red
|
|
||||||
MessageBoxTextColor=White
|
|
||||||
MessageBoxColor=Blue
|
|
||||||
MenuTextColor=Default
|
|
||||||
MenuColor=Black
|
|
||||||
TextColor=Default
|
|
||||||
SelectedTextColor=Black
|
|
||||||
SelectedColor=Default
|
|
||||||
ShowTime=No
|
|
||||||
MenuBox=No
|
|
||||||
CenterMenu=No
|
|
||||||
MinimalUI=Yes
|
MinimalUI=Yes
|
||||||
TimeText=Seconds until highlighted choice will be started automatically:
|
|
||||||
|
|
||||||
[Operating Systems]
|
[Operating Systems]
|
||||||
Setup="Setup"
|
Setup="Setup"
|
||||||
|
|
|
@ -4,25 +4,7 @@ TimeOut=5
|
||||||
|
|
||||||
[Display]
|
[Display]
|
||||||
TitleText=ReactOS CD boot
|
TitleText=ReactOS CD boot
|
||||||
StatusBarColor=Cyan
|
|
||||||
StatusBarTextColor=Black
|
|
||||||
BackdropTextColor=White
|
|
||||||
BackdropColor=Blue
|
|
||||||
BackdropFillStyle=Medium
|
|
||||||
TitleBoxTextColor=White
|
|
||||||
TitleBoxColor=Red
|
|
||||||
MessageBoxTextColor=White
|
|
||||||
MessageBoxColor=Blue
|
|
||||||
MenuTextColor=Default
|
|
||||||
MenuColor=Black
|
|
||||||
TextColor=Default
|
|
||||||
SelectedTextColor=Black
|
|
||||||
SelectedColor=Default
|
|
||||||
ShowTime=No
|
|
||||||
MenuBox=No
|
|
||||||
CenterMenu=No
|
|
||||||
MinimalUI=Yes
|
MinimalUI=Yes
|
||||||
TimeText=Seconds until highlighted choice will be started automatically:
|
|
||||||
|
|
||||||
[Operating Systems]
|
[Operating Systems]
|
||||||
Setup="Setup"
|
Setup="Setup"
|
||||||
|
|
|
@ -4,25 +4,7 @@ TimeOut=5
|
||||||
|
|
||||||
[Display]
|
[Display]
|
||||||
TitleText=ReactOS Hybrid-CD
|
TitleText=ReactOS Hybrid-CD
|
||||||
StatusBarColor=Cyan
|
|
||||||
StatusBarTextColor=Black
|
|
||||||
BackdropTextColor=White
|
|
||||||
BackdropColor=Blue
|
|
||||||
BackdropFillStyle=Medium
|
|
||||||
TitleBoxTextColor=White
|
|
||||||
TitleBoxColor=Red
|
|
||||||
MessageBoxTextColor=White
|
|
||||||
MessageBoxColor=Blue
|
|
||||||
MenuTextColor=Default
|
|
||||||
MenuColor=Black
|
|
||||||
TextColor=Default
|
|
||||||
SelectedTextColor=Black
|
|
||||||
SelectedColor=Default
|
|
||||||
ShowTime=No
|
|
||||||
MenuBox=No
|
|
||||||
CenterMenu=No
|
|
||||||
MinimalUI=Yes
|
MinimalUI=Yes
|
||||||
TimeText=Seconds until highlighted choice will be started automatically:
|
|
||||||
|
|
||||||
[Operating Systems]
|
[Operating Systems]
|
||||||
Setup="Setup"
|
Setup="Setup"
|
||||||
|
|
|
@ -4,25 +4,7 @@ TimeOut=5
|
||||||
|
|
||||||
[Display]
|
[Display]
|
||||||
TitleText=ReactOS LiveCD
|
TitleText=ReactOS LiveCD
|
||||||
StatusBarColor=Cyan
|
|
||||||
StatusBarTextColor=Black
|
|
||||||
BackdropTextColor=White
|
|
||||||
BackdropColor=Blue
|
|
||||||
BackdropFillStyle=Medium
|
|
||||||
TitleBoxTextColor=White
|
|
||||||
TitleBoxColor=Red
|
|
||||||
MessageBoxTextColor=White
|
|
||||||
MessageBoxColor=Blue
|
|
||||||
MenuTextColor=Default
|
|
||||||
MenuColor=Black
|
|
||||||
TextColor=Default
|
|
||||||
SelectedTextColor=Black
|
|
||||||
SelectedColor=Default
|
|
||||||
ShowTime=No
|
|
||||||
MenuBox=No
|
|
||||||
CenterMenu=No
|
|
||||||
MinimalUI=Yes
|
MinimalUI=Yes
|
||||||
TimeText=Seconds until highlighted choice will be started automatically:
|
|
||||||
|
|
||||||
[Operating Systems]
|
[Operating Systems]
|
||||||
LiveCD="LiveCD"
|
LiveCD="LiveCD"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue