Add a workaround for Chrome(ium) CSD-mode titlebuttons (#62) (#63)

See details in nav_button_provider_gtk3.cc of Chromium source.
Those titlebutton sizes should be equal to Gtk.IconSize.MENU if
Gtk+ themes provided the customed titlebutton icon images.

 * Set min-width/height as 16px without any padding.
 * Move CSD-titlebutton horizontal spacing from padding to outer margins.

This should fix the issue: #62
pull/894/head
Tista 6 years ago committed by David Mohammed
parent 906add80b4
commit 1eee9b816f

@ -805,3 +805,15 @@ SwitchboardCategoryView .view:selected,
SwitchboardCategoryView .view:selected:focus {
color: $fg_color;
}
//
// Chromium
//
GtkWindow.background.chromium {
// See details in nav_button_provider_gtk3.cc
.header-bar.titlebar .button.titlebutton {
// move button spacing from padding to margin
margin: 0px ((24px - 16px) / 2);
padding: 0px;
}
}

@ -903,3 +903,17 @@ panel-toplevel.background {
//SwitchboardCategoryView .view:selected:focus {
// color: $fg_color;
//}
//
// Chromium
//
window.background.chromium {
// See details in nav_button_provider_gtk3.cc
headerbar.titlebar button.titlebutton {
min-width: 16px;
min-height: 16px;
// move button spacing from padding to margin
margin: 0px ((24px - 16px) / 2);
padding: 0px;
}
}

Loading…
Cancel
Save