Difference between revisions of "GTK3"

From GnuCash
Jump to: navigation, search
(testing link syntax)
m (adjusting the links and lists)
Line 5: Line 5:
 
As noted in [https://bugzilla.gnome.org/show_bug.cgi?id=791823 bug 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.
 
As noted in [https://bugzilla.gnome.org/show_bug.cgi?id=791823 bug 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
+
The overview of CSS customization of GTK3 is available at [https://developer.gnome.org/gtk3/stable/chap-css-overview.html Gnome Developer] site.
  
 
Sample GnuCash CSS files:
 
Sample GnuCash CSS files:
  
- https://github.com/Gnucash/gnucash/blob/master/gnucash/gnucash-310.css
+
* [https://github.com/Gnucash/gnucash/blob/master/gnucash/gnucash-310.css gnucash-310]
 +
* [https://github.com/Gnucash/gnucash/blob/master/gnucash/gnucash-320.css gnucash-320]
  
- https://github.com/Gnucash/gnucash/blob/master/gnucash/gnucash-320.css
+
To locate the UI elements for customization, you can use the [https://wiki.gnome.org/Projects/GTK%2B/Inspector GTK Inspector] tool.
  
To locate the UI elements for customization, you can use the GTK Inspector tool: https://wiki.gnome.org/Projects/GTK%2B/Inspector
+
To customize the GnuCash theme, create and/or modify the Cascading Style Sheets (CSS) file. The location of this file is explained in the following entry: [https://wiki.gnucash.org/wiki/FAQ#Q:_Where_can_I_find_the_gtk_resource_file.3F Where can I find the GTK resource file?]
 
 
To customize the GnuCash theme, create and/or modify the Cascading Style Sheets (CSS) file. The location of this file is explained in the following entry: https://wiki.gnucash.org/wiki/FAQ#Q:_Where_can_I_find_the_gtk_resource_file.3F
 
 
Note that, by default, no gtk-3.0.css file will be created so you have to create one manually. Then add the CSS rules or copy values from an existing theme.
 
Note that, by default, no gtk-3.0.css file will be created so you have to create one manually. Then add the CSS rules or copy values from an existing theme.
 
There are plenty of GTK3 theme resources caused by the fact that CSS is a widely-adopted standard for UI styling and many people are familiar with it.
 
There are plenty of GTK3 theme resources caused by the fact that CSS is a widely-adopted standard for UI styling and many people are familiar with it.
Line 21: Line 20:
 
Some GTK3 theme resource sites:
 
Some GTK3 theme resource sites:
  
- https://www.gnome-look.org/browse/cat/135/
+
* [https://www.gnome-look.org/browse/cat/135/ Gnome Look]
 
+
* [https://www.deviantart.com/customization/skins/linuxutil/desktopenv/gnome/gtk3/whats-hot/ Devian Art]
- https://www.deviantart.com/customization/skins/linuxutil/desktopenv/gnome/gtk3/whats-hot/
 
  
 
etc.
 
etc.
Line 29: Line 27:
 
Related wiki entries:
 
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:_How_do_I_change_the_register_colors.3F How do I change the register colors?]

Revision as of 08:44, 29 March 2018

With version 3.0, GnuCash has adopted GTK3 library.

Customization

As noted in bug 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.

The overview of CSS customization of GTK3 is available at Gnome Developer site.

Sample GnuCash CSS files:

To locate the UI elements for customization, you can use the GTK Inspector tool.

To customize the GnuCash theme, create and/or modify the Cascading Style Sheets (CSS) file. The location of this file is explained in the following entry: Where can I find the GTK resource file? Note that, by default, no gtk-3.0.css file will be created so you have to create one manually. Then add the CSS rules or copy values from an existing theme. There are plenty of GTK3 theme resources caused by the fact that CSS is a widely-adopted standard for UI styling and many people are familiar with it.

Some GTK3 theme resource sites:

etc.

Related wiki entries: