зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1397265 - Add a titlebar-placeholder on the right-hand side of the tabs. r=dao
MozReview-Commit-ID: 326Nz1XS4lD --HG-- extra : rebase_source : 82d868b219f5f4e7a28ec922b4e987fb2b324804
This commit is contained in:
Родитель
f1f5fc7cf5
Коммит
dc292195d8
|
@ -240,6 +240,9 @@ window:not([chromehidden~="toolbar"]) #nav-bar[nonemptyoverflow] > .overflow-but
|
||||||
|
|
||||||
|
|
||||||
%ifdef CAN_DRAW_IN_TITLEBAR
|
%ifdef CAN_DRAW_IN_TITLEBAR
|
||||||
|
%ifdef MENUBAR_CAN_AUTOHIDE
|
||||||
|
#toolbar-menubar:not([autohide=true]) ~ #TabsToolbar > .titlebar-placeholder,
|
||||||
|
%endif
|
||||||
#main-window:not([chromemargin]) > #titlebar,
|
#main-window:not([chromemargin]) > #titlebar,
|
||||||
#main-window[inFullscreen] > #titlebar,
|
#main-window[inFullscreen] > #titlebar,
|
||||||
#main-window[inFullscreen] .titlebar-placeholder,
|
#main-window[inFullscreen] .titlebar-placeholder,
|
||||||
|
|
|
@ -634,7 +634,7 @@
|
||||||
|
|
||||||
#ifdef CAN_DRAW_IN_TITLEBAR
|
#ifdef CAN_DRAW_IN_TITLEBAR
|
||||||
<hbox class="titlebar-placeholder" type="pre-tabs"
|
<hbox class="titlebar-placeholder" type="pre-tabs"
|
||||||
skipintoolbarset="true"/>
|
skipintoolbarset="true"/>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
<tabs id="tabbrowser-tabs"
|
<tabs id="tabbrowser-tabs"
|
||||||
|
@ -681,6 +681,12 @@
|
||||||
</menupopup>
|
</menupopup>
|
||||||
</toolbarbutton>
|
</toolbarbutton>
|
||||||
|
|
||||||
|
#ifdef CAN_DRAW_IN_TITLEBAR
|
||||||
|
<hbox class="titlebar-placeholder" type="post-tabs"
|
||||||
|
ordinal="1000"
|
||||||
|
skipintoolbarset="true"/>
|
||||||
|
#endif
|
||||||
|
|
||||||
<button class="accessibility-indicator" tooltiptext="&accessibilityIndicator.tooltip;"
|
<button class="accessibility-indicator" tooltiptext="&accessibilityIndicator.tooltip;"
|
||||||
ordinal="1000"
|
ordinal="1000"
|
||||||
aria-live="polite" skipintoolbarset="true"/>
|
aria-live="polite" skipintoolbarset="true"/>
|
||||||
|
|
|
@ -528,21 +528,15 @@ tabbrowser {
|
||||||
|
|
||||||
/* Tab separators */
|
/* Tab separators */
|
||||||
|
|
||||||
%ifdef CAN_DRAW_IN_TITLEBAR
|
.titlebar-placeholder[type="pre-tabs"],
|
||||||
/* Add space for dragging the window */
|
.titlebar-placeholder[type="post-tabs"] {
|
||||||
%ifdef MOZ_WIDGET_COCOA
|
|
||||||
:root[tabsintitlebar]:not([sizemode=fullscreen]) .titlebar-placeholder[type="pre-tabs"]
|
|
||||||
%elifdef MENUBAR_CAN_AUTOHIDE
|
|
||||||
:root[tabsintitlebar][sizemode=normal] #toolbar-menubar[autohide=true] ~ #TabsToolbar > .titlebar-placeholder[type="pre-tabs"]
|
|
||||||
%else
|
|
||||||
:root[tabsintitlebar][sizemode=normal] #TabsToolbar > .titlebar-placeholder[type="pre-tabs"]
|
|
||||||
%endif
|
|
||||||
{
|
|
||||||
width: 40px;
|
width: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.titlebar-placeholder[type="pre-tabs"] {
|
||||||
border-inline-end: 1px solid;
|
border-inline-end: 1px solid;
|
||||||
opacity: 0.2;
|
opacity: 0.2;
|
||||||
}
|
}
|
||||||
%endif
|
|
||||||
|
|
||||||
.tabbrowser-tab::after,
|
.tabbrowser-tab::after,
|
||||||
.tabbrowser-tab::before {
|
.tabbrowser-tab::before {
|
||||||
|
|
|
@ -296,10 +296,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.titlebar-placeholder[type="caption-buttons"] {
|
|
||||||
margin-left: 22px; /* space needed for Aero Snap */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* titlebar command buttons */
|
/* titlebar command buttons */
|
||||||
|
|
||||||
#titlebar-min {
|
#titlebar-min {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче