From b1125f81ff32e989d516cc6ae7ace203465b5367 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Sat, 16 Oct 2021 07:27:31 +0300 Subject: [PATCH] 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. --- chrome/window_control_placeholder_support.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/window_control_placeholder_support.css b/chrome/window_control_placeholder_support.css index 89fcbdc..ff0ea7a 100644 --- a/chrome/window_control_placeholder_support.css +++ b/chrome/window_control_placeholder_support.css @@ -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;