Skip to content

Commit

Permalink
Add support for Epyrus 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
fofajardo committed Jan 27, 2023
1 parent 786f072 commit 108370c
Show file tree
Hide file tree
Showing 12 changed files with 666 additions and 206 deletions.
Binary file added src/chrome/messenger/appmenu-dropmarker.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
121 changes: 121 additions & 0 deletions src/chrome/messenger/icons/caption-buttons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
79 changes: 11 additions & 68 deletions src/chrome/messenger/mailWindow1.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
@import url("chrome://messenger/skin/folderPane.css");
@import url("chrome://messenger/skin/tagColors.css");
@import url("chrome://messenger/skin/shared/mailWindow1.css");
@import url("chrome://os_target/skin/mailWindow1.css");

@media (-moz-windows-classic) {
#messengerWindow[sizemode="normal"] > #titlebar > #titlebar-content > #appmenu-button-container {
margin-top: 4px;
}
}

/* Don't use the listbox appearance as that gives us a blue-grey top border
that collides with the primary toolbar border */
Expand Down Expand Up @@ -342,10 +349,6 @@ treechildren::-moz-tree-image(subjectCol, imapdeleted) {
-moz-binding: url("chrome://global/content/bindings/general.xml#windowdragbox");
}

#messengerWindow:not([tabsintitlebar]) #titlebar {
visibility: collapse;
}

#titlebar-spacer {
pointer-events: none;
}
Expand Down Expand Up @@ -385,78 +388,18 @@ treechildren::-moz-tree-image(subjectCol, imapdeleted) {
-moz-appearance: -moz-window-button-close;
}

#messengerWindow[tabsintitlebar] .titlebar-placeholder[type="caption-buttons"] {
margin-left: 10px; /* additional space for Aero Snap */
#messengerWindow[tabsintitlebar] .titlebar-placeholder[type="appmenu-button"] {
margin-right: 4px;
}

@media (-moz-os-version: windows-win10) {
#messengerWindow[tabsintitlebar] .titlebar-placeholder[type="caption-buttons"] {
min-width: 143px; /* Bug 1193721, hardcode the width for scaled screens */
}
#messengerWindow[tabsintitlebar] .titlebar-placeholder[type="caption-buttons"] {
margin-left: 10px; /* additional space for Aero Snap */
}

#messengerWindow:not([tabsintitlebar]) .titlebar-placeholder {
visibility: collapse;
}

/* Render a window top border for lwthemes on WinXP modern themes: */
@media (-moz-windows-theme: luna-blue) {
#messengerWindow[tabsintitlebar][sizemode="normal"]
#titlebar-content:-moz-lwtheme {
background-image: linear-gradient(to bottom, rgb(8, 49, 216) 0,
rgb(8, 49, 216) 1px, rgb(15, 77, 227) 1px,
rgb(15, 77, 227) 2px, rgb(22, 106, 238) 2px,
rgb(22, 106, 238) 3px, rgb(8, 85, 221) 3px,
rgb(8, 85, 221) 4px, transparent 4px);
}

#messengerWindow[tabsintitlebar][sizemode="normal"]
#titlebar-content:-moz-lwtheme:-moz-window-inactive {
background-image: linear-gradient(to bottom, rgb(91, 104, 205) 0,
rgb(91, 104, 205) 1px, rgb(116, 128, 220) 1px,
rgb(116, 128, 220) 2px, rgb(117, 140, 221) 2px,
rgb(117, 140, 221) 4px, transparent 4px);
}
}

@media (-moz-windows-theme: luna-silver) {
#messengerWindow[tabsintitlebar][sizemode="normal"]
#titlebar-content:-moz-lwtheme {
background-image: linear-gradient(to bottom, rgb(102,102,126) 0,
rgb(102, 102, 126) 1px, rgb(168, 167, 191) 1px,
rgb(168, 167, 191) 2px, white 2px, white 3px,
rgb(188, 188, 207) 3px, rgb(188, 188, 207) 4px,
transparent 4px);
}

#messengerWindow[tabsintitlebar][sizemode="normal"]
#titlebar-content:-moz-lwtheme:-moz-window-inactive {
background-image: linear-gradient(to bottom, rgb(186, 186, 197) 0,
rgb(186, 186, 197) 1px, rgb(236, 238, 245) 1px,
rgb(236, 238, 245) 2px, white 2px, white 3px,
rgb(215, 215, 227) 3px, rgb(215, 215, 227) 4px,
transparent 4px);
}
}

@media (-moz-windows-theme: luna-olive) {
#messengerWindow[tabsintitlebar][sizemode="normal"]
#titlebar-content:-moz-lwtheme {
background-image: linear-gradient(to bottom, rgb(139, 161, 105) 0,
rgb(139, 161, 105) 1px, rgb(171, 189, 133) 1px,
rgb(171, 189, 133) 2px, rgb(164, 178, 127) 2px,
rgb(164, 178, 127) 3px, transparent 3px);
}

#messengerWindow[tabsintitlebar][sizemode="normal"]
#titlebar-content:-moz-lwtheme:-moz-window-inactive {
background-image: linear-gradient(to bottom, rgb(207, 214, 188) 0,
rgb(207, 214, 188) 1px, rgb(224, 226, 200) 1px,
rgb(224, 226, 200) 2px, rgb(214, 216, 190) 2px,
rgb(214, 216, 190) 3px, transparent 3px);
}
}

#viewPicker > .menulist-label-box > .menulist-icon,
#locationFolders > .menulist-label-box > .menulist-icon {
min-height: 16px;
Expand Down
66 changes: 66 additions & 0 deletions src/chrome/messenger/messenger.css
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,69 @@ menulist.folderMenuItem menu:not(.folderMenuItem) {
padding-top: 2px;
padding-bottom: 2px;
}

/* ::::: app menu button ::::: */

#appmenu-button {
-moz-appearance: none;
background-clip: padding-box;
border: 1px solid ThreeDHighlight;
border-top: none;
color: #000;
font-weight: bold;
padding: 0 1.5em .05em;
margin: 1px 1px 2px;
box-shadow: inset 0px 0px 0px 1px ThreeDDarkShadow;
}

@media (-moz-windows-classic) {
#appmenu-button {
margin-bottom: 1px;
}
}

#appmenu-button:hover:not(:active):not([open]) {
color: #0000FF;
}

#appmenu-button:hover:active,
#appmenu-button[open] {
color: #000080;
}

#appmenu-button > .button-box {
border-style: none;
padding: 0;
}

#appmenu-button > .button-box > .button-menu-dropmarker {
list-style-image: url("appmenu-dropmarker.png");
padding: 0;
margin: 0;
margin-inline-start: .5em;
}

@media (-moz-windows-compositor) {
@media (-moz-os-version: windows-win10) {
#appmenu-button {
margin-top: -1px;
margin-bottom: 5px;
}
}
}

/* ::::: App Menu on Tabbar ::::: */

#appmenu-toolbar-button:not(:hover):not([open]):not(:-moz-lwtheme) {
color: inherit;
}

#appmenu-toolbar-button > .toolbarbutton-text,
#appmenu-toolbar-button > .toolbarbutton-menu-dropmarker {
margin-top: -2px !important;
margin-bottom: -2px !important;
}

#wrapper-appmenu-toolbar-button {
opacity: .3;
}
Loading

0 comments on commit 108370c

Please sign in to comment.