Commit Graph

18417 Commits

Author SHA1 Message Date
Robert Fewell
08d7830f7b Move function is_color_light to gnc-gtk-utils and rename
Move is_color_light and rename to gnc_is_dark_theme and update required
files where used.
2017-08-30 11:23:28 +01:00
Robert Fewell
b81a4a559d Change the background colours of the import-main-matcher
Use the same procedure as that used in the dense calendar to change the
background colours in the import main matcher to be based on the
brightness of the foreground colour.
2017-08-28 10:25:34 +01:00
Robert Fewell
659d3b9582 Change colour function to is_color_light in gnc-dense-cal
Change colour function to is_color_light and correct syntax and also
change some character strings.
2017-08-28 10:21:44 +01:00
Robert Fewell
d3e6a9c53b Change comment in fallback css file for emphasize-label 2017-08-24 09:02:18 +01:00
Robert Fewell
da9a57eef3 Rename the colour defines to closely match the text in import matcher 2017-08-23 17:31:42 +01:00
Robert Fewell
f7a4fa6fb0 Rename direction boolean to arrow_down 2017-08-23 16:58:28 +01:00
Robert Fewell
efaa7dbb1a Change the way dense calendar background colours are sourced
Defined the three colours and function to decide if the foreground
colour is light and make the colours darker. Also changed the colour of
the grid to based on border colour.
2017-08-23 16:53:34 +01:00
Robert Fewell
4cdae2481e Improve marker alignment depending on row height being odd or even 2017-08-23 16:51:59 +01:00
Robert Fewell
3a04e8b937 Fix some lines with spaces on them 2017-08-23 16:50:38 +01:00
Robert Fewell
94d538d233 Change glade comment in css file 2017-08-23 15:47:12 +01:00
Robert Fewell
1051847e2b Use GTK_STYLE_PROVIDER_PRIORITY_FALLBACK for fallback css file 2017-08-22 14:22:11 +01:00
Robert Fewell
e8f8e56127 Use the css class defines in the import matcher help dialog 2017-08-22 13:35:03 +01:00
Robert Fewell
d4a248a244 Minor fix to gnc-tree-model-account, removal of double ; 2017-08-22 13:35:03 +01:00
Robert Fewell
2c5e2f7ade These variables are not required any more in gnc-dense-cal 2017-08-22 13:35:03 +01:00
Robert Fewell
cdfdfb48c1 Change the css for the primary label in dialog account
Renamed the css class used and moved to the fallback css file.
2017-08-22 13:35:03 +01:00
Robert Fewell
ffe9a23ca5 Change the Register2 css to be from the fallback file 2017-08-22 13:34:42 +01:00
Robert Fewell
908e3f3fc0 Do not set the foreground colour in Import Matcher
Let the theme set the foreground colour which is more relevant on dark
themes
2017-08-22 13:32:11 +01:00
Robert Fewell
e18d56dfc4 Rework the Import Matcher colours to be from the fallback css file
Rename the css classes used and make sure the import matcher used them.
2017-08-22 13:32:01 +01:00
Robert Fewell
3be453649d Rename css class negative-color to negative-numbers 2017-08-22 13:31:51 +01:00
Robert Fewell
94841d9e64 The summary bar never respected the use of a negative colour
Changed the summary bar to use the css negative colour if required. This
involved adding a boolean columns to the model for the result of
checking values for being negative and changing to use the 'markup'
property to display the negative values in the negative colour.
2017-08-22 13:31:47 +01:00
Robert Fewell
f034fd6467 Change the account treeview to use the css negative color 2017-08-22 13:31:47 +01:00
Robert Fewell
2475193120 Rework the negative label colour
Changed the class name to negative-color and moved the default to the
fallback css file.
2017-08-22 13:31:41 +01:00
Robert Fewell
501671dca7 Replace toggle arrow with a theme drawn one 2017-08-22 13:31:18 +01:00
Robert Fewell
f7556b6094 Add draw arrow call back to various widgets 2017-08-22 13:31:17 +01:00
Robert Fewell
ec8e52e87e Add a draw callback to draw a theme based up/down arrow 2017-08-22 13:31:17 +01:00
Robert Fewell
16a42799c0 Change the dense calender to use css so that it can be themed
Change the dense calender so that it is based on css and can be made
similar to the basic calender.
2017-08-22 13:31:08 +01:00
Robert Fewell
404214b793 Add CSS provider of a lesser priority than themes
Add a css provider that has a lesser priority than themes so that it
can be over-ridden by the theme. This may turn out to be the only one
required but for now keep the application one also.
2017-08-22 13:28:30 +01:00
Robert Fewell
8d8073aafa Remove the rules hint from gnc-tree-view to align with current setting 2017-08-21 16:37:39 +01:00
Geert Janssens
f28896fbde Fix cmake run on Ubuntu 16.04 (and possibly other distros)
Apparently that platform trips over a missing newline at the end of the generated POTFILES.in.in file.
Adding one allows cmake to complete configuration and appears to be fine on Fedora as well
(although it worked fine without the newline too).

Thanks go to Michael Jung <gnucash-devel@mailinglists.mjung.org> for reporting this and proposing the fix.
2017-08-21 16:41:08 +02:00
Geert Janssens
3e1a1b262c Fix missing Find... functionality
It got lost during migration of business-gnome to gnome.
Spotted and solved by Robert Fewell.
2017-08-21 11:14:28 +02:00
John Ralls
115d61e7f3 Remove test for transaction set-date diagnostic message.
Since we removed the diagnostic, testing for it fails.
2017-08-20 23:25:56 +02:00
John Ralls
71e3703087 Use time64 GncDateTime constructor instead of struct tm constructor.
It's substantially faster and we do a lot of time64->gdate conversions.
2017-08-20 21:49:04 +02:00
John Ralls
f7ce8bcbb3 Disable creating a date string to maybe use in a PINFO message.
Creating a date string occupied nearly all of the time required to
set a date on a transaction, generally to no benefit at all.
2017-08-20 21:31:07 +02:00
John Ralls
1e0a9a0ef8 Parse date strings into a struct tm and construct GDateTime with that.
Instead of using the more generic string constructor. The struct tm
constructor is several times faster and this change speeds up
transaction loading by 2x.
2017-08-20 21:28:09 +02:00
John Ralls
82d891a202 Test features to see if they're already set before setting them.
Setting a feature writes to KVP which in the SQL backend causes the book
to be written out, which is rather expensive. Doing this in a loop (as
is the case in convert_imap_account, is quite slow, and this change
afforded a 4x speedup.
2017-08-20 21:24:02 +02:00
John Ralls
4fc61b2ac8 Commit imap conversions once per account instead of per import map slot.
Commits are expensive in the SQL backend; this resulted in a >40x
speedup in loading a database with 3400 import map slots (>2 hours to 3
minutes).
2017-08-19 20:25:57 +02:00
John Ralls
c6a72cc596 Revert "Fix mac looking in wrong directory for libgncmod-backend-dbi.dylib."
This reverts commit 6a359f86a0.
2017-08-19 20:25:04 +02:00
John Ralls
7e7d42847c Fix load string KVP memory error. 2017-08-19 17:15:49 +02:00
John Ralls
639d52f916 Fix typo, broke build on Mac. 2017-08-19 17:15:49 +02:00
John Ralls
6a359f86a0 Fix mac looking in wrong directory for libgncmod-backend-dbi.dylib. 2017-08-19 17:15:49 +02:00
Geert Janssens
4d5a37d292 Minor cleanupus in .gitignore 2017-08-17 15:26:54 +02:00
Geert Janssens
f943ba61ae Rename directory for code from external projects
'lib' is also being used by the cmake build, so there was a
theoretical risk for file conflicts. The new name is 'borrowed'.
2017-08-17 15:25:49 +02:00
Geert Janssens
a25001dfe6 Win32: drop goffice directory from path
Gnucash is not using goffice any more
2017-08-17 13:05:02 +02:00
Geert Janssens
7fd38c88a5 Improve a comment
My Ingrish is pretty poor at times...
2017-08-17 12:36:48 +02:00
Geert Janssens
a96a68fd4e Add as many values as there are fields in the list
This wasn't causing trouble, but it looks more correct this way.
2017-08-17 12:33:08 +02:00
Geert Janssens
0946b0315f Use another way to fix backend loading on OS X 2017-08-17 10:10:50 +02:00
John Ralls
cc39a04f6f Fix mac looking in wrong directory for libgncmod-backend-dbi.dylib. 2017-08-16 23:17:07 +02:00
John Ralls
e9ac71c0f9 Fix time-string format in backend for GncDateTime(std::string).
Also provide a simple test of that ctor.
2017-08-16 23:17:07 +02:00
John Ralls
43df1ccc3a Fix the most serious backend memory leaks. 2017-08-16 23:17:07 +02:00
Geert Janssens
1883d8ec31 Fix a number of test mismatches between cmake and autotools
cmake:
- add test-app-utils
- rename test-link-module to test-link-module-app-utils
- add gtest-import-map
autotools:
- move gtest-import-map from TEST_PROGS to TESTS (autotools) so it shows up in the colored results list
2017-08-16 12:40:38 +02:00