Show titlebar-buttonbox if it's last-child, and make it use --toolbar-color

Using --toolbar-color allow the icons to show up if the selected theme
has light tabs but dark toolbar, and vice versa. In 95 there is no
separate #window-controls for fullscreen, and thus the titlebar-buttonbox-container
becomes last-child which we don't want to hide.
This commit is contained in:
MrOtherGuy 2021-10-16 07:27:31 +03:00
parent 7801318d78
commit b1125f81ff

View file

@ -34,8 +34,8 @@ See the above repository for updates as well as full license text. */
}
/* macOS settings are further below */
:root[sizemode="fullscreen"] .titlebar-buttonbox-container{ display: none !important }
.titlebar-buttonbox, #window-controls{ color: var(--toolbar-color) }
:root[sizemode="fullscreen"] .titlebar-buttonbox-container:not(:last-child){ display: none !important }
:root[sizemode="fullscreen"] #navigator-toolbox { position: relative; }
:root[sizemode="fullscreen"] #window-controls{
position: absolute;