Difference between revisions of "GTK3"
m (description) |
(GTK Inspector, thanks Geert) |
||
Line 12: | Line 12: | ||
- https://github.com/Gnucash/gnucash/blob/master/gnucash/gnucash-320.css | - https://github.com/Gnucash/gnucash/blob/master/gnucash/gnucash-320.css | ||
+ | |||
+ | To locate the UI elements for customization, you can use the GTK Inspector tool: https://wiki.gnome.org/Projects/GTK%2B/Inspector | ||
Related wiki entries: | Related wiki entries: |
Revision as of 08:02, 29 March 2018
With version 3.0, GnuCash has adopted GTK3 library.
Customization
As noted in bug 791823 (https://bugzilla.gnome.org/show_bug.cgi?id=791823), there is no GTK theming tool available for GTK3. However, this is relatively easy to resolve manually by using a CSS file and placing it at the correct location.
Overview of CSS customization of GTK3: https://developer.gnome.org/gtk3/stable/chap-css-overview.html
Sample GnuCash CSS files:
- https://github.com/Gnucash/gnucash/blob/master/gnucash/gnucash-310.css
- https://github.com/Gnucash/gnucash/blob/master/gnucash/gnucash-320.css
To locate the UI elements for customization, you can use the GTK Inspector tool: https://wiki.gnome.org/Projects/GTK%2B/Inspector
Related wiki entries:
- https://wiki.gnucash.org/wiki/FAQ#Q:_How_do_I_change_the_register_colors.3F
- https://wiki.gnucash.org/wiki/FAQ#Q:_Where_can_I_find_the_gtk_resource_file.3F