Segmentation fault when using custom css
I'm currently building up a custom theme using the new CSS variables and I noticed that the libadwaita demo started to segfault using the following css in ~/.config/gtk-4.0/gtk.css
:
:root {
--accent-blue: #006088;
--accent-teal: #006560;
--accent-green: #00682b;
--accent-yellow: #804f00;
--accent-orange: #804f00;
--accent-red: #af201f;
--accent-pink: #5a5192;
--accent-purple: #5a5192;
--accent-slate: #e7e8ee;
--accent-color: #006088;
--accent-bg-color: #006088;
--accent-fg-color: #72e4ff;
--destructive-color: #af201f;
--destructive-bg-color: #af201f;
--destructive-fg-color: #ffc7be;
--success-color: #00682b;
--success-bg-color: #00682b;
--success-fg-color: #5cf090;
--warning-color: #804f00;
--warning-bg-color: #804f00;
--warning-fg-color: #ffcd6d;
--error-color: #af201f;
--error-bg-color: #af201f;
--error-fg-color: #ffc7be;
--window-bg-color: #eff0f6;
--window-fg-color: #121315;
--view-bg-color: #eff0f6;
--view-fg-color: #000000;
--headerbar-bg-color: #ebecf2;
--headerbar-fg-color: #121315;
--headerbar-border-color: #ebecf2;
--headerbar-backdrop-color: #eff0f6;
--headerbar-shade-color: var(--shade-color);
--headerbar-darker-shade-color: var(--shade-color);
--sidebar-bg-color: #ebecf2;
--sidebar-fg-color: #121315;
--sidebar-backdrop-color: #eff0f6;
--sidebar-border-color: #ebecf2;
--sidebar-shade-color: var(--shade-color); /* comment out this line and it starts working */
}
As stated in the comment, commenting out the last declaration stops the segfault.
Edited by Suyash S