gtk: Remove old workaround for Electron
The recent version of Electron seems to support RGBA of themes.
The recent version of Electron seems to support RGBA of themes.
by roundabout, Saturday, 13 April 2019, 10:03:29 (1555149809), pushed by roundabout, Sunday, 11 May 2025, 13:22:35 (1746969755)
Author identity: nana-4 <hnmaigo@gmail.com>
3fa82a3d95c3fc17e2739eea8b8e87023e9be952
$titlebar-divider: on($titlebar, divider);
$titlebar-fill: on($titlebar, fill);
// workaround for Electron menu which doesn't allow translucent colors
$solid-text: if($variant == 'light', $grey-900, $white);
$solid-text-secondary: if($variant == 'light', $grey-600, mix($white, $surface, percentage(0.7)));
$solid-text-disabled: if($variant == 'light', $grey-500, mix($white, $surface, percentage(0.5)));
$solid-divider: if($variant == 'light', $grey-300, mix($white, $surface, percentage(0.12)));
// workaround for GTK3 @placeholder_text_color which doesn't allow translucent colors
$placeholder_text_color: if($variant == 'light', $grey-600, mix($white, $base, percentage(0.7)));
&:disabled accelerator { color: $text-secondary-disabled; }
}
// FIXME: THIS IS A REALLY UGLY WORKAROUND!
// Electron/Atom render all translucent colors in opaque colors.
// It's a very critical issue for this theme and should be fixed by upstream...
.popup:not(.csd) menu {
menuitem {
color: $solid-text;
&:hover { background-color: $solid-divider; }
&:disabled { color: $solid-text-disabled; } // separator/border also use this color.
}
// FIXME: not working this
accelerator { color: $solid-text-secondary; }
}
/************
* Popovers *