Bug 512007: Update the Windows Mobile theme to match the Maemo theme, r=gavin

This commit is contained in:
Mark Finkle 2009-08-25 14:18:42 -04:00
parent 9a3bab07a4
commit de227598d9
49 changed files with 324 additions and 81 deletions

View File

@ -23,7 +23,7 @@
<xul:description class="normal show-on-select" xbl:inherits="xbl:text=description" flex="1"/> <xul:description class="normal show-on-select" xbl:inherits="xbl:text=description" flex="1"/>
</xul:vbox> </xul:vbox>
</xul:hbox> </xul:hbox>
<xul:hbox class="show-on-select"> <xul:hbox class="show-on-select buttons-box">
<xul:button anonid="options-button" class="addon-options" label="&addonOptions.label;" <xul:button anonid="options-button" class="addon-options" label="&addonOptions.label;"
oncommand="document.getBindingParent(this).toggleOptions();"/> oncommand="document.getBindingParent(this).toggleOptions();"/>
<xul:spacer flex="1"/> <xul:spacer flex="1"/>

View File

@ -192,6 +192,11 @@ toolbarbutton.page-button {
-moz-box-orient: vertical; -moz-box-orient: vertical;
-moz-box-pack: center; -moz-box-pack: center;
} }
/* let the buttons in a selected addon wrap */
#addons-list > richlistitem .buttons-box {
display: block;
}
} }
/* console panel UI ------------------------------------------------------ */ /* console panel UI ------------------------------------------------------ */
@ -299,6 +304,10 @@ placeitem .button-text {
min-height: 7.2mm; /* row size */ min-height: 7.2mm; /* row size */
} }
#autocomplete_navbuttons autorepeatbutton {
display: none;
}
.autocomplete-items { .autocomplete-items {
background-color: white; background-color: white;
} }
@ -306,7 +315,7 @@ placeitem .button-text {
autocompleteresult { autocompleteresult {
padding: 0.25mm 0.1mm; padding: 0.25mm 0.1mm;
border-bottom: 0.05mm solid rgb(207,207,207); border-bottom: 0.05mm solid rgb(207,207,207);
min-height: 7.2mm; /* row size */ min-height: 9.2mm; /* row size */
} }
.autocompleteresult-selected { .autocompleteresult-selected {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 960 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 411 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 594 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 347 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 412 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 553 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 782 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 473 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 635 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 458 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 263 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 421 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 223 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 283 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 223 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 285 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 445 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 440 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 347 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 540 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 276 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 363 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 266 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 301 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 204 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 354 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 539 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 283 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 360 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 378 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 646 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 276 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 363 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 354 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 539 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 283 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 360 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 636 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 835 B

View File

@ -114,3 +114,47 @@ chrome.jar:
images/unlock-24.png (images/unlock-24.png) images/unlock-24.png (images/unlock-24.png)
images/fullscreen-close-24.png (images/fullscreen-close-24.png) images/fullscreen-close-24.png (images/fullscreen-close-24.png)
images/fullscreen-up-24.png (images/fullscreen-up-24.png) images/fullscreen-up-24.png (images/fullscreen-up-24.png)
images/toggleoff-active-64.png (images/toggleoff-active-64.png)
images/toggleoff-inactive-64.png (images/toggleoff-inactive-64.png)
images/toggleon-active-64.png (images/toggleon-active-64.png)
images/toggleon-inactive-64.png (images/toggleon-inactive-64.png)
images/toggleleft-active-64.png (images/toggleleft-active-64.png)
images/toggleleft-inactive-64.png (images/toggleleft-inactive-64.png)
images/togglemiddle-active-64.png (images/togglemiddle-active-64.png)
images/togglemiddle-inactive-64.png (images/togglemiddle-inactive-64.png)
images/toggleright-active-64.png (images/toggleright-active-64.png)
images/toggleright-inactive-64.png (images/toggleright-inactive-64.png)
images/toggledarkleft-active-64.png (images/toggledarkleft-active-64.png)
images/toggledarkleft-inactive-64.png (images/toggledarkleft-inactive-64.png)
images/toggledarkmiddle-active-64.png (images/toggledarkmiddle-active-64.png)
images/toggledarkmiddle-inactive-64.png (images/toggledarkmiddle-inactive-64.png)
images/toggledarkright-active-64.png (images/toggledarkright-active-64.png)
images/toggledarkright-inactive-64.png (images/toggledarkright-inactive-64.png)
images/button-default-64.png (images/button-default-64.png)
images/button-active-64.png (images/button-active-64.png)
images/buttondark-default-64.png (images/buttondark-default-64.png)
images/buttondark-active-64.png (images/buttondark-active-64.png)
images/toolbarbutton-default-64.png (images/toolbarbutton-default-64.png)
images/toolbarbutton-active-64.png (images/toolbarbutton-active-64.png)
images/toggleoff-active-36.png (images/toggleoff-active-36.png)
images/toggleoff-inactive-36.png (images/toggleoff-inactive-36.png)
images/toggleon-active-36.png (images/toggleon-active-36.png)
images/toggleon-inactive-36.png (images/toggleon-inactive-36.png)
images/toggleleft-active-36.png (images/toggleleft-active-36.png)
images/toggleleft-inactive-36.png (images/toggleleft-inactive-36.png)
images/togglemiddle-active-36.png (images/togglemiddle-active-36.png)
images/togglemiddle-inactive-36.png (images/togglemiddle-inactive-36.png)
images/toggleright-active-36.png (images/toggleright-active-36.png)
images/toggleright-inactive-36.png (images/toggleright-inactive-36.png)
images/toggledarkleft-active-36.png (images/toggledarkleft-active-36.png)
images/toggledarkleft-inactive-36.png (images/toggledarkleft-inactive-36.png)
images/toggledarkmiddle-active-36.png (images/toggledarkmiddle-active-36.png)
images/toggledarkmiddle-inactive-36.png (images/toggledarkmiddle-inactive-36.png)
images/toggledarkright-active-36.png (images/toggledarkright-active-36.png)
images/toggledarkright-inactive-36.png (images/toggledarkright-inactive-36.png)
images/button-default-36.png (images/button-default-36.png)
images/button-active-36.png (images/button-active-36.png)
images/buttondark-default-36.png (images/buttondark-default-36.png)
images/buttondark-active-36.png (images/buttondark-active-36.png)
images/toolbarbutton-default-36.png (images/toolbarbutton-default-36.png)
images/toolbarbutton-active-36.png (images/toolbarbutton-active-36.png)

View File

@ -48,7 +48,7 @@
.dialog-dark { .dialog-dark {
color: #fff; color: #fff;
background-color: #36373b; background-color: #36373b;
-moz-border-radius: 0 0 1.0mm 1.0mm; -moz-border-radius: 0 0 1mm 1mm;
padding: 8px; padding: 8px;
-moz-box-shadow: black 0 0.25mm 0.25mm; -moz-box-shadow: black 0 0.25mm 0.25mm;
} }
@ -57,43 +57,88 @@
.button-text, .button-text,
.toolbarbutton-text { .toolbarbutton-text {
font-weight: bold !important; font-weight: bold !important;
font-size: 9pt !important; font-size: 8pt !important;
} }
button { button {
min-width: 6.0mm !important; /* button size */ min-width: 6mm !important; /* button size */
min-height: 6.0mm !important; /* button size */ min-height: 6mm !important; /* button size */
color: #36373b; color: #000;
padding: 0.25mm 0.5mm; padding: 0.25mm 0.5mm;
-moz-border-radius: 1.0mm; -moz-appearance: none !important;
-moz-border-top-colors: -moz-initial;
-moz-border-right-colors: -moz-initial;
-moz-border-left-colors: -moz-initial;
-moz-border-bottom-colors: -moz-initial;
border: 0.05mm solid #36373b;
background: #efefef;
} }
button[disabled="true"] { button[disabled="true"] {
color: #ccc; color: #aaa !important;
-moz-border-top-colors: -moz-initial !important;
-moz-border-right-colors: -moz-initial !important;
-moz-border-left-colors: -moz-initial !important;
-moz-border-bottom-colors: -moz-initial !important;
border: 0.05mm solid #ccc;
background: #fff;
} }
/* XXX needs to be updated */ /* hi-res screens */
button:active { @media all and (min-device-width: 401px) {
-moz-border-top-colors: -moz-initial; button {
-moz-border-right-colors: -moz-initial; border-width: 8px !important;
-moz-border-left-colors: -moz-initial; -moz-border-image: url("chrome://browser/skin/images/button-default-64.png") 8 repeat repeat;
-moz-border-bottom-colors: -moz-initial; }
border: 0.05mm solid #aaa;
background: #ddd; button:not([disabled="true"]):active {
-moz-border-image: url("chrome://browser/skin/images/button-active-64.png") 8 repeat repeat;
}
} }
/* low-res screens */
@media all and (max-device-width: 400px) {
button {
border-width: 4px !important;
-moz-border-image: url("chrome://browser/skin/images/button-default-36.png") 4 repeat repeat;
}
button:not([disabled="true"]):active {
-moz-border-image: url("chrome://browser/skin/images/button-active-36.png") 4 repeat repeat;
}
}
/* dark buttons ------------------------------------------------------------ */
/*
we set notification buttons here as well, since the style can't be set in
scoped CSS file, like notification.css, when the buttons are added later
*/
button.button-dark,
notification button {
color: #fff !important;
background: transparent !important;
}
button.button-dark[disabled="true"] {
color: #ddd !important;
}
/* high-res screens */
@media all and (min-device-width: 401px) {
button.button-dark,
notification button {
-moz-border-image: url("chrome://browser/skin/images/buttondark-default-64.png") 8 repeat repeat;
}
button.button-dark:not([disabled="true"]):active,
notification button:not([disabled="true"]):active {
-moz-border-image: url("chrome://browser/skin/images/buttondark-active-64.png") 8 repeat repeat;
}
}
/* low-res screens */
@media all and (max-device-width: 400px) {
button.button-dark,
notification button {
-moz-border-image: url("chrome://browser/skin/images/buttondark-default-36.png") 4 repeat repeat;
}
button.button-dark:not([disabled="true"]):active,
notification button:not([disabled="true"]):active {
-moz-border-image: url("chrome://browser/skin/images/buttondark-active-36.png") 4 repeat repeat;
}
}
/* toolbar buttons --------------------------------------------------------- */
toolbarbutton { toolbarbutton {
-moz-appearance: none !important; -moz-appearance: none !important;
margin: 0; margin: 0;
@ -106,7 +151,7 @@ toolbarbutton:not(.show-text) .toolbarbutton-text {
toolbarbutton:not(.show-text) .toolbarbutton-icon, toolbarbutton:not(.show-text) .toolbarbutton-icon,
toolbarbutton:not([image]) .toolbarbutton-icon, toolbarbutton:not([image]) .toolbarbutton-icon,
toolbarbutton[image=''] .toolbarbutton-icon { toolbarbutton[image=""] .toolbarbutton-icon {
-moz-margin-end: 0; -moz-margin-end: 0;
} }
@ -118,47 +163,61 @@ toolbarbutton[open="true"] {
/* high-res screens */ /* high-res screens */
@media all and (min-device-width: 401px) { @media all and (min-device-width: 401px) {
toolbarbutton { toolbarbutton {
min-width: 64px !important; /* primary button size (match image pixels)*/ min-width: 64px !important; /* primary button size (match image pixels)*/
min-height: 64px !important; /* primary button size (match image pixels) */ min-height: 64px !important; /* primary button size (match image pixels) */
} }
} }
/* low-res screens */ /* low-res screens */
@media all and (max-device-width: 400px) { @media all and (max-device-width: 400px) {
toolbarbutton { toolbarbutton {
min-width: 36px !important; /* primary button size (match image pixels) */ min-width: 36px !important; /* primary button size (match image pixels) */
min-height: 36px !important; /* primary button size (match image pixels) */ min-height: 36px !important; /* primary button size (match image pixels) */
} }
} }
/* dark buttons ------------------------------------------------------------ */ /* dark buttons ------------------------------------------------------------ */
.button-dark { toolbarbutton.button-dark {
color: #fff; color: #fff;
padding: 0.25mm 0.5mm; padding: 0.25mm 0.5mm;
-moz-border-radius: 1.0mm;
border: 1px solid #777 !important;
background: #525252;
} }
.button-dark:active { toolbarbutton.button-dark[disabled="true"] {
border: 1px solid #202020 !important; color: #ddd;
background: #303030;
} }
.button-dark[disabled="true"], toolbarbutton.button-dark[checked="true"] {
.button-dark[disabled="true"]:active {
border: 1px solid #515151;
background: #36373b;
}
.button-dark[checked="true"] {
/* checked overrides */ /* checked overrides */
border: 0.05mm solid #202020 !important; border: 0.05mm solid #202020 !important;
background: #303030 !important; background: #303030 !important;
padding: 0.25mm 0.5mm !important; padding: 0.25mm 0.5mm !important;
} }
/* high-res screens */
@media all and (min-device-width: 401px) {
toolbarbutton.button-dark {
border-width: 10px;
-moz-border-image: url("chrome://browser/skin/images/toolbarbutton-default-64.png") 10 repeat repeat;
}
toolbarbutton.button-dark:not([disabled="true"]):active {
-moz-border-image: url("chrome://browser/skin/images/toolbarbutton-active-64.png") 10 repeat repeat;
}
}
/* low-res screens */
@media all and (max-device-width: 400px) {
toolbarbutton.button-dark {
border-width: 6px;
-moz-border-image: url("chrome://browser/skin/images/toolbarbutton-default-36.png") 6 repeat repeat;
}
toolbarbutton.button-dark:not([disabled="true"]):active {
-moz-border-image: url("chrome://browser/skin/images/toolbarbutton-active-36.png") 6 repeat repeat;
}
}
/* image buttons ----------------------------------------------------------- */ /* image buttons ----------------------------------------------------------- */
.button-image { .button-image {
padding: 0 !important; padding: 0 !important;
@ -173,61 +232,192 @@ radiogroup {
.radio-label { .radio-label {
font-weight: bold !important; font-weight: bold !important;
font-size: 9pt !important; font-size: 8pt !important;
} }
radio { radio {
min-width: 6.0mm !important; /* button size */
min-height: 6.0mm !important; /* button size */
color: #36373b; color: #36373b;
min-width: 6mm !important; /* button size */
min-height: 6mm !important; /* button size */
padding: 0.5mm 1.1mm 0.1mm 0.5mm !important; padding: 0.5mm 1.1mm 0.1mm 0.5mm !important;
margin: 0; margin: 0;
border: 0.05mm solid #36373b;
-moz-box-align: center; -moz-box-align: center;
-moz-appearance: none; -moz-appearance: none;
background: #fff;
} }
radio[selected] { radio .radio-icon, radio .radio-check {
color: #fff;
border: 0.05mm solid #91875a;
background-color: #DDC763;
}
radio .radio-check-box1, radio .radio-icon, radio .radio-check {
display: none; display: none;
} }
radio:first-child { radio[selected] {
-moz-border-radius-topleft: 1.0mm; color: #000;
-moz-border-radius-bottomleft: 1.0mm;
} }
radio:last-child { /* high-res screens */
-moz-border-radius-topright: 1.0mm; @media all and (min-device-width: 401px) {
-moz-border-radius-bottomright: 1.0mm; radio {
border-width: 8px;
-moz-border-image: url("chrome://browser/skin/images/togglemiddle-inactive-64.png") 8 repeat repeat;
}
radio[selected] {
-moz-border-image: url("chrome://browser/skin/images/togglemiddle-active-64.png") 8 repeat repeat;
}
radio:first-child {
-moz-border-image: url("chrome://browser/skin/images/toggleleft-inactive-64.png") 8 repeat repeat;
}
radio:first-child[selected] {
-moz-border-image: url("chrome://browser/skin/images/toggleleft-active-64.png") 8 repeat repeat;
}
radio:last-child {
-moz-border-image: url("chrome://browser/skin/images/toggleright-inactive-64.png") 8 repeat repeat;
}
radio:last-child[selected] {
-moz-border-image: url("chrome://browser/skin/images/toggleright-active-64.png") 8 repeat repeat;
}
} }
radiogroup[orient=vertical] radio:first-child { /* low-res screens */
-moz-border-radius-topright: 1.0mm; @media all and (max-device-width: 400px) {
-moz-border-radius-bottomleft: 0; radio {
border-width: 4px;
-moz-border-image: url("chrome://browser/skin/images/togglemiddle-inactive-36.png") 4 repeat repeat;
}
radio[selected] {
-moz-border-image: url("chrome://browser/skin/images/togglemiddle-active-36.png") 4 repeat repeat;
}
radio:first-child {
-moz-border-image: url("chrome://browser/skin/images/toggleleft-inactive-36.png") 4 repeat repeat;
}
radio:first-child[selected] {
-moz-border-image: url("chrome://browser/skin/images/toggleleft-active-36.png") 4 repeat repeat;
}
radio:last-child {
-moz-border-image: url("chrome://browser/skin/images/toggleright-inactive-36.png") 4 repeat repeat;
}
radio:last-child[selected] {
-moz-border-image: url("chrome://browser/skin/images/toggleright-active-36.png") 4 repeat repeat;
}
} }
radiogroup[orient=vertical] radio:last-child { /* checkbox radios --------------------------------------------------------- */
-moz-border-radius-bottomleft: 1.0mm; checkbox {
-moz-border-radius-topright: 0; margin: 1px 5px 2px 5px; /* match platform style for buttons */
}
radio.checkbox-radio-on[selected] {
color: #fff;
}
radio.checkbox-radio-on:not([selected]) .radio-label-box,
radio.checkbox-radio-off:not([selected]) .radio-label-box {
visibility: hidden;
}
/* high-res screens */
@media all and (min-device-width: 401px) {
radio.checkbox-radio-on {
-moz-border-image: url("chrome://browser/skin/images/toggleon-inactive-64.png") 8 repeat repeat;
}
radio.checkbox-radio-on[selected] {
-moz-border-image: url("chrome://browser/skin/images/toggleon-active-64.png") 8 repeat repeat;
}
radio.checkbox-radio-off {
-moz-border-image: url("chrome://browser/skin/images/toggleoff-inactive-64.png") 8 repeat repeat;
}
radio.checkbox-radio-off[selected] {
-moz-border-image: url("chrome://browser/skin/images/toggleoff-active-64.png") 8 repeat repeat;
}
}
/* low-res screens */
@media all and (max-device-width: 400px) {
radio.checkbox-radio-on {
-moz-border-image: url("chrome://browser/skin/images/toggleon-inactive-36.png") 4 repeat repeat;
}
radio.checkbox-radio-on[selected] {
-moz-border-image: url("chrome://browser/skin/images/toggleon-active-36.png") 4 repeat repeat;
}
radio.checkbox-radio-off {
-moz-border-image: url("chrome://browser/skin/images/toggleoff-inactive-36.png") 4 repeat repeat;
}
radio.checkbox-radio-off[selected] {
-moz-border-image: url("chrome://browser/skin/images/toggleoff-active-36.png") 4 repeat repeat;
}
} }
/* dark radios ------------------------------------------------------------- */ /* dark radios ------------------------------------------------------------- */
.toggle-dark radio { .toggle-dark radio {
color: #fff; color: #fff;
border: 0.05mm solid #777;
background-color: #525252;
} }
.toggle-dark radio[selected] { /* high-res screens */
border: 0.05mm solid #202020; @media all and (min-device-width: 401px) {
background-color: #303030; .toggle-dark radio {
-moz-border-image: url("chrome://browser/skin/images/toggledarkmiddle-inactive-64.png") 8 repeat repeat;
}
.toggle-dark radio[selected] {
-moz-border-image: url("chrome://browser/skin/images/toggledarkmiddle-active-64.png") 8 repeat repeat;
}
.toggle-dark radio:first-child {
-moz-border-image: url("chrome://browser/skin/images/toggledarkleft-inactive-64.png") 8 repeat repeat;
}
.toggle-dark radio:first-child[selected] {
-moz-border-image: url("chrome://browser/skin/images/toggledarkleft-active-64.png") 8 repeat repeat;
}
.toggle-dark radio:last-child {
-moz-border-image: url("chrome://browser/skin/images/toggledarkright-inactive-64.png") 8 repeat repeat;
}
.toggle-dark radio:last-child[selected] {
-moz-border-image: url("chrome://browser/skin/images/toggledarkright-active-64.png") 8 repeat repeat;
}
}
/* low-res screens */
@media all and (max-device-width: 400px) {
.toggle-dark radio {
-moz-border-image: url("chrome://browser/skin/images/toggledarkmiddle-inactive-36.png") 4 repeat repeat;
}
.toggle-dark radio[selected] {
-moz-border-image: url("chrome://browser/skin/images/toggledarkmiddle-active-36.png") 4 repeat repeat;
}
.toggle-dark radio:first-child {
-moz-border-image: url("chrome://browser/skin/images/toggledarkleft-inactive-36.png") 4 repeat repeat;
}
.toggle-dark radio:first-child[selected] {
-moz-border-image: url("chrome://browser/skin/images/toggledarkleft-active-36.png") 4 repeat repeat;
}
.toggle-dark radio:last-child {
-moz-border-image: url("chrome://browser/skin/images/toggledarkright-inactive-36.png") 4 repeat repeat;
}
.toggle-dark radio:last-child[selected] {
-moz-border-image: url("chrome://browser/skin/images/toggledarkright-active-36.png") 4 repeat repeat;
}
} }
/* richlistbox ------------------------------------------------------------- */ /* richlistbox ------------------------------------------------------------- */