Styling Tryton gtk client

How to style the GTK client is documented at Client Usage — Tryton desktop client

I went about finding the particular selectors by checking gtk documentation,
and running tryton like this: GTK_DEBUG=interactive tryton, allowing my to dynamically edit CSS and see it’s effects.

For me the following theme.css matches a terminal with black background and white text while maximizing the amount of information which can fit on my screen.

I am not suggesting anyone use this exact style, I expect most will consider this particular style quite ugly, but I am leaving the following in hope that it helps someone find some of the selectors.

* {
    padding:0;
    font-size:small;
    min-height:0;
}

treeview:not(:selected), notebook > *, entry, toolbar, textview > * {
    background-color: black;
}

What I have been unable to style are:

  • button and headerbar.profile-<name>, I only get the color behind the text to change color, not the entire thing.
  • The bright red color used in trees for overdue sums.

Those colors are configured in the tryton.conf in [tree] colors as a comma separated list of RGB colors following the order muted, success, warning and danger.

1 Like