New OOBE design: minor content update

BUG=141559

Review URL: https://chromiumcodereview.appspot.com/10854071

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151157 0039d316-1c4b-4281-b951-d872f2087c98
parent 9bfe548e
...@@ -240,9 +240,8 @@ html[oobe=old] #step-logo { ...@@ -240,9 +240,8 @@ html[oobe=old] #step-logo {
} }
html[oobe=new] #connect .step-contents { html[oobe=new] #connect .step-contents {
/* TODO(nkostylev): Update after content layout changes. */
-webkit-margin-after: 82px; -webkit-margin-after: 82px;
-webkit-margin-before: 82px; -webkit-margin-before: 33px;
-webkit-margin-start: 145px; -webkit-margin-start: 145px;
} }
...@@ -372,11 +371,11 @@ html[oobe=new] #progress-dots { ...@@ -372,11 +371,11 @@ html[oobe=new] #progress-dots {
.progdot { .progdot {
-webkit-margin-end: 12px; -webkit-margin-end: 12px;
background: black;
opacity: 0.4; opacity: 0.4;
} }
html[oobe=old] .progdot { html[oobe=old] .progdot {
background: black;
border-radius: 2px; border-radius: 2px;
height: 8px; height: 8px;
width: 8px; width: 8px;
...@@ -403,6 +402,7 @@ html[oobe=new] .progdot { ...@@ -403,6 +402,7 @@ html[oobe=new] .progdot {
} }
.menu-control { .menu-control {
color: #444;
font-family: inherit; font-family: inherit;
line-height: 20px; line-height: 20px;
position: relative; position: relative;
...@@ -748,6 +748,7 @@ html[oobe=old] .step-controls { ...@@ -748,6 +748,7 @@ html[oobe=old] .step-controls {
#oobe.connect #connect-dot, #oobe.connect #connect-dot,
#oobe.eula #eula-dot, #oobe.eula #eula-dot,
#oobe.update #update-dot,
#oobe.signin #signin-dot, #oobe.signin #signin-dot,
#oobe.gaia-signin #gaia-signin-dot, #oobe.gaia-signin #gaia-signin-dot,
#oobe.enrollment #signin-dot, #oobe.enrollment #signin-dot,
...@@ -760,11 +761,17 @@ html[oobe=old] .step-controls { ...@@ -760,11 +761,17 @@ html[oobe=old] .step-controls {
#account-picker-dot, #account-picker-dot,
#enrollment-dot, #enrollment-dot,
#oauth-enrollment-dot, #oauth-enrollment-dot {
#update-dot {
display: none; display: none;
} }
#welcome-message {
color: #444;
font-size: 16px;
margin-bottom: 30px;
width: 435px;
}
#connect table { #connect table {
margin: 7em auto; margin: 7em auto;
} }
...@@ -817,8 +824,7 @@ html[dir=rtl] #security-tpm { ...@@ -817,8 +824,7 @@ html[dir=rtl] #security-tpm {
right: 49px; right: 49px;
} }
html[oobe=old] #update div, html[oobe=old] #update div {
#update #update-screen-curtain {
width: 32em; width: 32em;
} }
...@@ -833,22 +839,28 @@ html[oobe=old] #update div { ...@@ -833,22 +839,28 @@ html[oobe=old] #update div {
#update #update-screen-curtain { #update #update-screen-curtain {
-webkit-box-align: start; -webkit-box-align: start;
-webkit-box-pack: center; -webkit-box-pack: center;
}
#update #update-checking-progress {
-webkit-box-align: start;
-webkit-box-pack: center;
color: #9c9c9c;
display: -webkit-box; display: -webkit-box;
} }
html[oobe=old] #update #update-screen-curtain { html[oobe=old] #update #update-screen-curtain {
margin: 9em auto; margin: 9em auto;
} }
html[oobe=new] #update #update-screen-curtain { html[oobe=new] #update #update-screen-curtain {
margin: 120px auto; margin: 87px 45px;
} }
html[oobe=new] #update-screen-main { html[oobe=new] #update-screen-main {
/* TODO(nkostylev): Update after strings are updated. */ margin: 85px 45px;
margin: 85px auto;
min-height: 114px; min-height: 114px;
width: 448px; text-align: center;
} }
#update #update-checking-ellipsis { #update #update-checking-ellipsis {
...@@ -888,15 +900,23 @@ html[oobe=new][dir=rtl] #update #update-cancel-hint { ...@@ -888,15 +900,23 @@ html[oobe=new][dir=rtl] #update #update-cancel-hint {
-webkit-margin-after: 4px; -webkit-margin-after: 4px;
} }
#update #checking-updates-label {
-webkit-margin-after: 34px;
}
#update #update-bottom-label { #update #update-bottom-label {
-webkit-margin-after: 4px; -webkit-margin-after: 4px;
-webkit-margin-before: 4px; -webkit-margin-before: 4px;
text-align: left;
}
html[oobe=old] #update progress {
-webkit-margin-start: 74px;
} }
#update progress { #update progress {
-webkit-margin-after: 4px; -webkit-margin-after: 4px;
-webkit-margin-before: 34px; -webkit-margin-before: 34px;
-webkit-margin-start: 74px;
height: 15px; height: 15px;
width: 300px; width: 300px;
} }
...@@ -906,7 +926,7 @@ html[oobe=new][dir=rtl] #update #update-cancel-hint { ...@@ -906,7 +926,7 @@ html[oobe=new][dir=rtl] #update #update-cancel-hint {
} }
#update #update-estimated-time-left { #update #update-estimated-time-left {
color: #666; color: #a3a3a3;
font-size: 13px; font-size: 13px;
text-align: center; text-align: center;
} }
......
<div class="step hidden animated" id="connect"> <div class="step hidden animated" id="connect">
<div class="step-contents"> <div class="step-contents">
<div id="welcome-message" i18n-content="networkScreenGreeting">
</div>
<div class="control-with-label"> <div class="control-with-label">
<label for="language-select" i18n-content="selectLanguage" <label for="language-select" i18n-content="selectLanguage"
class="label menu-control"></label> class="label menu-control"></label>
......
...@@ -4,8 +4,12 @@ ...@@ -4,8 +4,12 @@
<p i18n-content="cancelUpdateHint"></p> <p i18n-content="cancelUpdateHint"></p>
</div> </div>
<div id="update-screen-curtain"> <div id="update-screen-curtain">
<p i18n-content="checkingForUpdates"></p> <div id="checking-updates-label" i18n-content="checkingForUpdatesMsg">
<p id="update-checking-ellipsis"></p> </div>
<div id="update-checking-progress">
<p i18n-content="checkingForUpdates"></p>
<p id="update-checking-ellipsis"></p>
</div>
</div> </div>
<div id="update-screen-main" hidden> <div id="update-screen-main" hidden>
<p id="update-upper-label"></p> <p id="update-upper-label"></p>
......
...@@ -112,6 +112,8 @@ void NetworkScreenHandler::EnableContinue(bool enabled) { ...@@ -112,6 +112,8 @@ void NetworkScreenHandler::EnableContinue(bool enabled) {
void NetworkScreenHandler::GetLocalizedStrings( void NetworkScreenHandler::GetLocalizedStrings(
base::DictionaryValue* localized_strings) { base::DictionaryValue* localized_strings) {
localized_strings->SetString("networkScreenGreeting",
l10n_util::GetStringUTF16(IDS_WELCOME_SCREEN_GREETING));
localized_strings->SetString("networkScreenTitle", localized_strings->SetString("networkScreenTitle",
l10n_util::GetStringUTF16(IDS_WELCOME_SCREEN_TITLE)); l10n_util::GetStringUTF16(IDS_WELCOME_SCREEN_TITLE));
localized_strings->SetString("selectLanguage", localized_strings->SetString("selectLanguage",
......
...@@ -34,12 +34,18 @@ UpdateScreenHandler::~UpdateScreenHandler() { ...@@ -34,12 +34,18 @@ UpdateScreenHandler::~UpdateScreenHandler() {
void UpdateScreenHandler::GetLocalizedStrings( void UpdateScreenHandler::GetLocalizedStrings(
DictionaryValue *localized_strings) { DictionaryValue *localized_strings) {
const string16 short_product_name =
l10n_util::GetStringUTF16(IDS_SHORT_PRODUCT_NAME);
localized_strings->SetString("checkingForUpdatesMsg",
l10n_util::GetStringFUTF16(IDS_CHECKING_FOR_UPDATE_MSG,
short_product_name));
localized_strings->SetString("updateScreenTitle", localized_strings->SetString("updateScreenTitle",
l10n_util::GetStringUTF16(IDS_UPDATE_SCREEN_TITLE)); l10n_util::GetStringUTF16(IDS_UPDATE_SCREEN_TITLE));
localized_strings->SetString("checkingForUpdates", localized_strings->SetString("checkingForUpdates",
l10n_util::GetStringUTF16(IDS_CHECKING_FOR_UPDATES)); l10n_util::GetStringUTF16(IDS_CHECKING_FOR_UPDATES));
localized_strings->SetString("installingUpdateDesc", localized_strings->SetString("installingUpdateDesc",
l10n_util::GetStringUTF16(IDS_INSTALLING_UPDATE_DESC)); l10n_util::GetStringFUTF16(IDS_UPDATE_MSG,
short_product_name, short_product_name));
localized_strings->SetString("downloadingTimeLeftLong", localized_strings->SetString("downloadingTimeLeftLong",
l10n_util::GetStringUTF16(IDS_DOWNLOADING_TIME_LEFT_LONG)); l10n_util::GetStringUTF16(IDS_DOWNLOADING_TIME_LEFT_LONG));
localized_strings->SetString("downloadingTimeLeftStatusOneHour", localized_strings->SetString("downloadingTimeLeftStatusOneHour",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment