lanoxx / tilda

A Gtk based drop down terminal for Linux and Unix
GNU General Public License v2.0
1.28k stars 161 forks source link

style.css does not work #349

Closed seizazies closed 6 years ago

seizazies commented 6 years ago

I use the same style.css from my previous installation (version 1.3.1). But somehow it does not effecting the tab style, version 1.4.1

My style.css / background color of default tabs / GtkWindow#Main .notebook tab { padding: 5px; background-color: #5A5A5A; }

/* The following rules affect both the tilda window and the wizard.

/ Background color untuk tab bar / GtkBox { background-color: #5A5A5A; padding-left: 15px; padding-right: 15px; color: #ccc; }

/ background color of active tabs / GtkWindow#Main .notebook tab:active { background-color: #202020;
} / color of active tabs label / GtkWindow#Main .notebook tab GtkLabel.active-page { color: #fff; }

lanoxx commented 6 years ago

CSS Nodes are no longer classes but elements. Try replacing .notebook with notebook

lanoxx commented 6 years ago

This was a Gtk change as far as I can tell. The tilda code for loading user styles has not changed between the versions.

lanoxx commented 6 years ago

Here are some examples of how tilda can be styled with the recent GTK+, I am not quite sure, when this broke, maybe around 3.20 when some last major styling changes happened:

/* applies to active tabs both in tilda main window and in the wizard */
notebook tab:checked {} 

/* applies only to active tabs of the tilda main window */
GtkWindow#Main notebook tab:checked {}
seizazies commented 6 years ago

Thanks.

I managed to make the style as i wanted. Definitely not Tilda issue :)