[GNC] Trying to customize GTK CSS: issue with #gnc-id-dense-calendar
Richard Ullger
rullger at protonmail.com
Tue Jan 21 11:40:16 EST 2025
On Tue, 21 Jan 2025 10:49:27 -0300
Gregório Miranda <gregoriomirandapsi at gmail.com> wrote:
> Hi all,
> I'm customizing my GTK3 style sheets and have been relatively
> successful at making a dark everforest theme (see CSS in the
> attachments), but I just can't do much with the calendar shown inside
> the scheduled transactions tab
> <https://github.com/ggio/gnucash_dark_everforest/blob/main/calendar_issue.png>(#gnc-id-dense-calendar).
> I've searched a lot, read the docs and tweaked extensively with GTK
> inspector, but I'm still lost.
>
> The calendar is still ugly as hell and the options given in the doc's
> CSS sample file aren't helping at all. I got to change the header's
> background and the focused background (but not the focused text).
>
> Would appreciate it if someone can show me the right track.
>
> Specially, I would like to customize:
>
> - The *primary and secondary month background colors *(the
> "#gnc-id-dense-calendar .primary" and "... .secondary" options
> within the CSS sample simply doesn't work);
> - The *background color of empty cells*;
> - The *text at the highlighted/focused dates* (currently whithish
> in a yellow background).
>
> Gregório
I have this in ~/.config/gnucash/gtk-3.0.css for the dark theme I'm
using on Arch Linux
#gnc-id-dense-calendar .primary-dark {
background-color: #383C4A;
}
#gnc-id-dense-calendar .secondary-dark {
background-color: #404552;
}
#gnc-id-dense-calendar .markers-dark {
background-color: #53728e;
}
Regards,
Richard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
URL: <http://lists.gnucash.org/pipermail/gnucash-user/attachments/20250121/f6f4af48/attachment.sig>
More information about the gnucash-user
mailing list