diff options
Diffstat (limited to 'comm/calendar/base/themes/windows')
14 files changed, 419 insertions, 0 deletions
diff --git a/comm/calendar/base/themes/windows/calendar-daypicker.css b/comm/calendar/base/themes/windows/calendar-daypicker.css new file mode 100644 index 0000000000..a53eb8c612 --- /dev/null +++ b/comm/calendar/base/themes/windows/calendar-daypicker.css @@ -0,0 +1,18 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + +@import url(chrome://calendar/skin/shared/calendar-daypicker.css); + +button.calendar-daypicker { + border-top: 1px solid ThreeDShadow; + border-left: 1px solid ThreeDShadow; +} + +hbox:last-child > button.calendar-daypicker { + border-bottom: 1px solid ThreeDShadow; +} + +button.calendar-daypicker:last-child { + border-right: 1px solid ThreeDShadow; +} diff --git a/comm/calendar/base/themes/windows/calendar-task-tree.css b/comm/calendar/base/themes/windows/calendar-task-tree.css new file mode 100644 index 0000000000..dd23a40fb5 --- /dev/null +++ b/comm/calendar/base/themes/windows/calendar-task-tree.css @@ -0,0 +1,60 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +@import url(chrome://calendar/skin/shared/calendar-task-tree.css); + +.calendar-task-tree-col-priority > .treecol-icon { + padding-inline-end: 1px; +} + +/* Use on Win7 and up default theme a dark text color when selected focus */ +@media (-moz-windows-default-theme) { + .calendar-task-tree > treechildren::-moz-tree-row(inprogress, selected, focus) { + border-color: green !important; + } + + :root[lwt-tree-brighttext] .calendar-task-tree > treechildren::-moz-tree-row(inprogress, selected, focus) { + border-color: #00bd00 !important; + } + + .calendar-task-tree > treechildren::-moz-tree-cell-text(inprogress, selected, focus), + :root[lwt-tree-brighttext] .calendar-task-tree > treechildren::-moz-tree-cell-text(inprogress, selected, focus) { + color: white !important; + } + + .calendar-task-tree > treechildren::-moz-tree-row(overdue, selected, focus) { + border-color: red !important; + } + + :root[lwt-tree-brighttext] .calendar-task-tree > treechildren::-moz-tree-row(overdue, selected, focus) { + border-color: #ff7a7a !important; + } + + .calendar-task-tree > treechildren::-moz-tree-image(overdue, selected, focus), + .calendar-task-tree > treechildren::-moz-tree-cell-text(overdue, selected, focus), + :root[lwt-tree-brighttext] .calendar-task-tree > treechildren::-moz-tree-cell-text(overdue, selected, focus) { + color: white !important; + } + + @media (-moz-platform: windows-win7) { + .calendar-task-tree > treechildren::-moz-tree-row(inprogress, selected, focus) { + background: linear-gradient(rgba(0, 128, 0, .28), rgba(0, 128, 0, .5)); + } + + .calendar-task-tree > treechildren::-moz-tree-row(overdue, selected, focus) { + background: linear-gradient(rgba(255, 0, 0, .28), rgba(255, 0, 0, .5)); + } + } + + @media (-moz-platform: windows-win8), + (-moz-platform: windows-win10) { + .calendar-task-tree > treechildren::-moz-tree-row(inprogress, selected, focus) { + background: linear-gradient(rgba(0, 128, 0, .5), rgba(0, 128, 0, .5)); + } + + .calendar-task-tree > treechildren::-moz-tree-row(overdue, selected, focus) { + background: linear-gradient(rgba(255, 0, 0, .5), rgba(255, 0, 0, .5)); + } + } +} diff --git a/comm/calendar/base/themes/windows/calendar-task-view.css b/comm/calendar/base/themes/windows/calendar-task-view.css new file mode 100644 index 0000000000..b1ee37702c --- /dev/null +++ b/comm/calendar/base/themes/windows/calendar-task-view.css @@ -0,0 +1,58 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + +@import url(chrome://calendar/skin/shared/calendar-task-view.css); + +#calendar-task-details-container { + padding-top: 0; +} + +#task-text-filter-field { + margin-block: 5px; +} + +#task-text-filter-field .textbox-search-icons { + margin-bottom: -1px; +} + +/* ::::: task actions toolbar ::::: */ + +#calendar-add-task-button[disabled="true"] { + fill-opacity: 0.4; +} + +#view-task-edit-field, +#task-text-filter-field { + width: 15em; +} + +#calendar-task-box #calendar-task-view-splitter { + border-width: 0; + border-bottom: 1px solid var(--splitter-color); + min-height: 0; + height: 5px; + background-color: transparent; + margin-top: -5px; + position: relative; + z-index: 10; +} + +#task-addition-box { + height: 35px; +} + +@media not (prefers-color-scheme: dark) { + @media (-moz-windows-default-theme) { + #task-addition-box { + background-color: #f8f8f8; + } + } +} + +@media (-moz-platform: windows-win7) { + #view-task-edit-field, + #task-text-filter-field { + margin-block: 4px; + } +} diff --git a/comm/calendar/base/themes/windows/calendar-unifinder.css b/comm/calendar/base/themes/windows/calendar-unifinder.css new file mode 100644 index 0000000000..06f75998cd --- /dev/null +++ b/comm/calendar/base/themes/windows/calendar-unifinder.css @@ -0,0 +1,26 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + +@import url(chrome://calendar/skin/shared/calendar-unifinder.css); + +#bottom-events-box { + border-inline-start: 1px solid ThreeDShadow; +} + +#unifinder-searchBox { + height: 35px; + border-bottom: 1px solid ThreeDShadow; +} + +.unifinder-closebutton { + margin-inline-end: 2px; +} + +@media not (prefers-color-scheme: dark) { + @media (-moz-windows-default-theme) { + #unifinder-searchBox { + background-color: #f8f8f8; + } + } +} diff --git a/comm/calendar/base/themes/windows/calendar-views.css b/comm/calendar/base/themes/windows/calendar-views.css new file mode 100644 index 0000000000..7e6eb9eefc --- /dev/null +++ b/comm/calendar/base/themes/windows/calendar-views.css @@ -0,0 +1,16 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + +@import url(chrome://calendar/skin/shared/calendar-views.css); + +#calendar-view-box #calendar-view-splitter { + border: none; + border-bottom: 1px solid var(--splitter-color); + min-height: 0; + height: 5px; + background-color: transparent; + margin-top: -5px; + position: relative; + z-index: 10; +} diff --git a/comm/calendar/base/themes/windows/calendar.css b/comm/calendar/base/themes/windows/calendar.css new file mode 100644 index 0000000000..ffccb9513e --- /dev/null +++ b/comm/calendar/base/themes/windows/calendar.css @@ -0,0 +1,52 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +@import url(chrome://calendar/skin/shared/calendar.css); + +#calsidebar_splitter { + border-inline-start: 1px solid var(--splitter-color); + /* make only the splitter border visible */ + margin-inline-end: -5px; +} + +/* Calendar list rules */ +#calendar-panel { + padding-bottom: 5px; +} + +/* Today pane button in status bar */ +#calendar-status-todaypane-button, +#calendar-status-todaypane-button[checked="true"] { + padding: 0 2px !important; +} + +#calendar-status-todaypane-button[hideLabel] > stack { + margin-top: -2px; + margin-inline-start: 5px; +} + +#calendar-status-todaypane-button > stack > .toolbarbutton-day-text { + margin-top: 5px; +} + +/* shift the today pane button label up by one pixel to center it */ +#calendar-status-todaypane-button > .toolbarbutton-text { + margin: 0 0 1px !important; +} + +#calsidebar_splitter, +#today-splitter { + min-width: 0; + background-color: transparent; +} + +#today-splitter { + border-inline-end: 1px solid var(--splitter-color); + margin-inline-start: -5px; + position: relative; +} + +#today-splitter.calendar-sidebar-splitter:-moz-lwtheme { + background-image: none; +} diff --git a/comm/calendar/base/themes/windows/dialogs/calendar-alarm-dialog.css b/comm/calendar/base/themes/windows/dialogs/calendar-alarm-dialog.css new file mode 100644 index 0000000000..fd43d36911 --- /dev/null +++ b/comm/calendar/base/themes/windows/dialogs/calendar-alarm-dialog.css @@ -0,0 +1,19 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + +@import url(chrome://calendar/skin/shared/dialogs/calendar-alarm-dialog.css); + +.snooze-value-textbox { + padding: 0; +} + +@media not (-moz-windows-non-native-menus) { + menupopup[is="calendar-snooze-popup"] { + color-scheme: unset !important; + } +} + +menupopup[is="calendar-snooze-popup"] > menuitem { + padding: 2px 5px; +} diff --git a/comm/calendar/base/themes/windows/dialogs/calendar-event-dialog.css b/comm/calendar/base/themes/windows/dialogs/calendar-event-dialog.css new file mode 100644 index 0000000000..3d9e3b16d4 --- /dev/null +++ b/comm/calendar/base/themes/windows/dialogs/calendar-event-dialog.css @@ -0,0 +1,42 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#item-calendar > menupopup > menuitem .menu-iconic-left, +#calendar-ics-file-dialog-calendar-menu > menupopup > menuitem .menu-iconic-left { + margin-inline-end: 6px; +} + +#item-categories > menupopup > menuitem .menu-iconic-icon { + display: inline; +} + +/*-------------------------------------------------------------------- + * Event dialog keep duration button + *-------------------------------------------------------------------*/ + +#keepduration-button { + min-width: 18px; +} + +#timezone-endtime { + margin-inline-start: 16px; +} + +#percent-complete-textbox { + padding: 2px; +} + +@media not (-moz-windows-non-native-menus) { + #smileyPopup > menuitem > .menu-text, + #paragraphPopup > menuitem > .menu-text { + margin-inline-start: -1.45em !important; + } +} + +@media (-moz-windows-non-native-menus) { + #smileyPopup > menuitem, + #paragraphPopup > menuitem { + padding-inline-start: 14px; + } +} diff --git a/comm/calendar/base/themes/windows/dialogs/calendar-invitations-dialog.css b/comm/calendar/base/themes/windows/dialogs/calendar-invitations-dialog.css new file mode 100644 index 0000000000..8e1c074f73 --- /dev/null +++ b/comm/calendar/base/themes/windows/dialogs/calendar-invitations-dialog.css @@ -0,0 +1,5 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +@import url(chrome://calendar/skin/shared/dialogs/calendar-invitations-dialog.css); diff --git a/comm/calendar/base/themes/windows/imip.css b/comm/calendar/base/themes/windows/imip.css new file mode 100644 index 0000000000..2cf4d4e7ca --- /dev/null +++ b/comm/calendar/base/themes/windows/imip.css @@ -0,0 +1,5 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + +@import url(chrome://calendar/skin/shared/imip.css); diff --git a/comm/calendar/base/themes/windows/jar.mn b/comm/calendar/base/themes/windows/jar.mn new file mode 100644 index 0000000000..24fddf02fb --- /dev/null +++ b/comm/calendar/base/themes/windows/jar.mn @@ -0,0 +1,19 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +calendar.jar: +% skin calendar classic/1.0 %skin/classic/calendar/ os=WINNT +#include ../common/jar.inc.mn + skin/classic/calendar/calendar.css (calendar.css) + skin/classic/calendar/calendar-daypicker.css (calendar-daypicker.css) + skin/classic/calendar/calendar-task-tree.css (calendar-task-tree.css) + skin/classic/calendar/calendar-task-view.css (calendar-task-view.css) + skin/classic/calendar/calendar-unifinder.css (calendar-unifinder.css) + skin/classic/calendar/calendar-views.css (calendar-views.css) + skin/classic/calendar/calendar-alarm-dialog.css (dialogs/calendar-alarm-dialog.css) + skin/classic/calendar/calendar-event-dialog.css (dialogs/calendar-event-dialog.css) + skin/classic/calendar/calendar-invitations-dialog.css (dialogs/calendar-invitations-dialog.css) + skin/classic/calendar/imip.css (imip.css) + skin/classic/calendar/today-pane.css (today-pane.css) + skin/classic/calendar/widgets/calendar-widgets.css (widgets/calendar-widgets.css) diff --git a/comm/calendar/base/themes/windows/moz.build b/comm/calendar/base/themes/windows/moz.build new file mode 100644 index 0000000000..de5cd1bf81 --- /dev/null +++ b/comm/calendar/base/themes/windows/moz.build @@ -0,0 +1,6 @@ +# vim: set filetype=python: +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +JAR_MANIFESTS += ["jar.mn"] diff --git a/comm/calendar/base/themes/windows/today-pane.css b/comm/calendar/base/themes/windows/today-pane.css new file mode 100644 index 0000000000..8473cd1b15 --- /dev/null +++ b/comm/calendar/base/themes/windows/today-pane.css @@ -0,0 +1,64 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + +@import url(chrome://calendar/skin/shared/today-pane.css); + +#today-pane-splitter { + border-top-width: 0; + min-height: 0; + background-color: transparent; +} + +@media (-moz-platform: windows-win8) and (-moz-windows-default-theme), + (-moz-platform: windows-win10) and (-moz-windows-default-theme) { + #today-pane-panel:not(:-moz-lwtheme) { + --chrome-content-separator-color: #c2c2c2; + } +} + +#today-pane-panel > .sidebar-header { + height: 35px; +} + +@media (-moz-platform: windows-win7) { + #today-pane-panel > .sidebar-header { + box-shadow: 0 1px 0 rgba(253, 253, 253, 0.45) inset; + } +} + +#today-none-box { + border-top: 1px solid ThreeDShadow; +} + +#todaypane-new-event-button[disabled="true"] > .toolbarbutton-icon { + opacity: 0.4; +} + +@media (-moz-windows-default-theme) { + .sidebar-header > spacer { + min-height: 25px; + } +} + +@media all and (-moz-windows-compositor) { + @media not all and (-moz-platform: windows-win10) { + #messengerWindow[sizemode=normal] #today-pane-panel { + border-inline-end: 1px solid hsla(240, 5%, 5%, .3); + border-bottom: 1px solid hsla(240, 5%, 5%, .3); + background-clip: padding-box; + } + } + + .today-pane-cycler { + margin-top: -1px; + } +} + +@media (prefers-color-scheme: dark) { + :root:-moz-lwtheme #agenda { + list-style: none; + --selected-background: var(--dark-lwt-highlight-color); + --selected-foreground: var(--lwt-text-color); + } +} diff --git a/comm/calendar/base/themes/windows/widgets/calendar-widgets.css b/comm/calendar/base/themes/windows/widgets/calendar-widgets.css new file mode 100644 index 0000000000..b2cce88ebc --- /dev/null +++ b/comm/calendar/base/themes/windows/widgets/calendar-widgets.css @@ -0,0 +1,29 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + +@import url(chrome://calendar/skin/shared/widgets/calendar-widgets.css); + +#task-tree-filtergroup { + padding-inline-start: 12px; +} + +#calendar-list-pane #calendar-list richlistitem { + padding-inline-start: 14px; + padding-block: 2px; +} + +.toolbarbutton-icon-begin { + margin-inline-end: 5px; +} + +.toolbarbutton-icon-end { + margin-inline-start: 5px; +} + +@media (prefers-color-scheme: dark) { + :root:-moz-lwtheme #calendar-list > li.selected { + background-color: var(--dark-lwt-highlight-color); + color: var(--lwt-text-color); + } +} |