Robert Fewell
9973bbe6eb
Change the register to be based on CSS
...
Change the colours of the register to be based on CSS. Use the register
default colours or by using the preference setting user / theme set
ones can be used.
2017-09-28 14:31:12 +01:00
Robert Fewell
2d213363f0
Change tabs to spaces in gnucash-style.c
2017-09-28 14:31:12 +01:00
Robert Fewell
87c5a95211
Remove trailing white space from gnucash-sheet.c
2017-09-28 14:31:12 +01:00
Robert Fewell
23e1ed6904
Remove trailing white space from gnucash-item-edit.c
2017-09-28 14:31:12 +01:00
Robert Fewell
69dffac564
This dialog-invoice.glade file had missing changes, corrected.
2017-09-28 14:31:12 +01:00
Robert Fewell
70d696ef31
This change is needed after all, used when header is resized
2017-09-28 14:31:12 +01:00
Robert Fewell
92766a2785
Remove white space and change tabs to spaces in gnucash-register.c
2017-09-28 14:31:12 +01:00
Robert Fewell
04c80ddd8e
Rework the item-edit pop up to use sheet width and not move about
...
The width of an auto width pop up is based on the sheet width and is
anchored to the column it popped from so horizontal scrolls are aligned.
2017-09-28 14:31:11 +01:00
Robert Fewell
841ff5cc92
Change gnc_item_edit_update to be used in an idle add function
...
When columns are being resized, there is too much going on for the
position of the item-edit to be updated so use g_idle_add to delay these
updates.
2017-09-28 14:31:11 +01:00
Robert Fewell
1ec2817c77
Move inline css for padding to gnucash.css
2017-09-28 14:31:11 +01:00
Robert Fewell
03dd7ab399
Remove an obsolete source comment in gnucash-item-list.c
2017-09-28 14:31:11 +01:00
Robert Fewell
dff337d72f
Remove white space and change tabs to spaces in datecell-gnome.c
2017-09-28 14:31:11 +01:00
Robert Fewell
9382278b5e
Rename various forms of Get Popup Height to Popup Get Height
...
Change GetPopupHeight to PopupGetHeight and get_popup_height to
popup_get_height to match other related functions.
2017-09-28 14:31:11 +01:00
Robert Fewell
64563cae50
Move another couple of functions used more than once to gnc-gtk-utils
2017-08-30 11:23:45 +01:00
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
Robert Fewell
6ca85450a8
Move gnc-gdate-utils functions to gnc-date and remove files.
...
Also update related files to reflect move of gnc-gdate-util functions
2017-08-20 14:07:30 +01:00
Robert Fewell
b485206378
Change tabs to spaces and remove some blank lines
2017-08-20 14:07:30 +01:00
Robert Fewell
047bc8d69b
Rename gnc_pricedb_remove_old_prices_keep_last
...
Rename gnc_pricedb_remove_old_prices_keep_last to reflect that there is
an option to keep none so new name is gnc_pricedb_process_removal_list
2017-08-20 14:07:23 +01:00
Robert Fewell
a7abc312a9
Rename save_cloned_price to clone_price
...
Renamed save_clone_price to clone_price and changed to pass the address
of the cloned_price variable instead of returning it.
2017-08-20 14:06:10 +01:00
Robert Fewell
89dbc09410
Added second if clause for completeness.
2017-08-20 14:06:09 +01:00
Robert Fewell
e1d4075273
Remove the 'if else' blocks by using boolean variable.
2017-08-20 14:06:09 +01:00
Robert Fewell
f16f202204
Rename function to be plural as more than one commodity returned in list
2017-08-20 14:06:09 +01:00
Robert Fewell
c3466b79ef
Move gnc-gdate-utils.c/h from app-utils to engine
2017-08-20 14:05:05 +01:00
Robert Fewell
576b1d077c
Fix some missing id's in the glade file
2017-08-20 09:50:31 +01:00
Robert Fewell
42915a42d1
Modify the unit tests to reflect changes.
2017-08-20 09:50:31 +01:00
Robert Fewell
667f175757
This change modifies the way old prices can be removed.
...
There are now options to specify which commodities to remove prices
from as well as options to leave none or the last one for the week,
month, Quarter, year and a scaled option.
2017-08-20 09:50:31 +01:00
Robert Fewell
86613ace5f
Missed changing the GncItemEdit alignment for the first row
2017-08-03 18:02:59 +01:00
Robert Fewell
386309d8c8
Change how the widgets are named for CSS
...
Changed the names of the register parts and added to the class_init
function gtk_widget_class_set_css_name for use with Gtk+ 3.20 and also
a procedure to use gtk_style_context_add_class for earlier versions of
Gtk+
2017-08-03 16:45:11 +01:00
Robert Fewell
64d4ec3fd1
Replace the thicker lower line for the cursor, removed by mistake
2017-08-03 16:43:50 +01:00
Robert Fewell
efe2aef6f4
When drawing the cursor, remove the requirement to test for first row
2017-08-03 16:42:29 +01:00
Robert Fewell
8ebdc7b1d2
Change the divider line back to 3px
...
Make divider line 3px but make it straddle two rows centrally.
2017-08-03 16:39:07 +01:00
Robert Fewell
e0e1ccc1c4
Revert change to text vertical offset
2017-08-03 16:38:11 +01:00
Robert Fewell
66aa691a98
Do not make the first row height smaller
...
Change the first row to be like all others, top and bottom borders to
be offset by - 0.5 and so use the header border as the top border of
first row.
2017-08-03 16:34:38 +01:00
Robert Fewell
64b9872e36
Return the vertical split borders to light
2017-08-03 15:34:46 +01:00
Robert Fewell
54677d37c4
Change the hatching draw fix to use a relative move
2017-08-03 08:22:12 +01:00
Robert Fewell
a2fa9eeff3
Fix a problem with the arrows when register first loads
...
After the register is loaded, when you first click on a arrow button
the popup appears but the arrow disappears, subsequent pressing and the
arrow toggles as expected. To fix this pack both arrows on the button
and hide the one not active.
2017-08-01 10:38:21 +01:00
Robert Fewell
4bef3a59e0
Fix the place the popup appears when above the row
...
There may be more to do here after more testing.
2017-08-01 09:17:34 +01:00
Robert Fewell
64639a57ad
To update the toggle arrow it needs to be removed from the container
2017-08-01 09:16:20 +01:00
Robert Fewell
9318ed9f30
Change the cursor grid coordinates to reflect the other changes
2017-08-01 09:13:34 +01:00
Robert Fewell
ea24c7b87c
Change the cursor grid coordinates to reflect the other changes
2017-08-01 09:11:48 +01:00
Robert Fewell
22d1d488b5
Remove some blank lines from the header source file
2017-08-01 09:06:33 +01:00
Robert Fewell
8468783ad8
Add css style classes to parts of the register
2017-08-01 09:05:30 +01:00
Robert Fewell
60ff88041d
Change the cell grid lines slightly
...
Grid lines will be generally be drawn by subtracting 0.5 from the x and
y values apart from the left border of the first column cell has 0.5
added to the x value and the first row cell has 0.5 added to the top
border y value. By doing this the overall dimensions does not change
and all borders are visible.
2017-08-01 09:00:41 +01:00
Robert Fewell
9b582c386a
Make the header align with the sheet when scrolled horizontally
2017-08-01 08:28:49 +01:00
Robert Fewell
25cf1d91c0
Change the layout to show left border of first cell
2017-08-01 08:27:45 +01:00
Robert Fewell
0456b8ae84
Update the register grid
2017-08-01 08:26:38 +01:00
Robert Fewell
64675b64eb
These files have the QofLogModule defined but never used
...
In two minds on this, comment the line out or add macro to stop it
showing up as defined but never used, chose the latter.
2017-07-23 16:00:00 -07:00
Robert Fewell
b264a060bf
Comment out some unused variables while register is still in flux
2017-07-23 16:00:00 -07:00
Robert Fewell
258a5fb9ca
Add some additional REGISTER2_ENABLED code blocks
...
Stop some additional functions showing up when checking for defined but
not used when register2 not enabled.
2017-07-23 16:00:00 -07:00
Robert Fewell
f31516a0f2
Code clean up, comment out some additional static defines
...
These functions are commented out in the code and so not used so stop
them showing up for defined but not used.
2017-07-23 15:59:59 -07:00
Robert Fewell
1002576cef
Code clean up on register2 files
...
Remove unused, unused set variables and also comment out some additional
code
2017-07-23 15:59:59 -07:00
Robert Fewell
3e7235070f
Code clean up, remove unused variable
2017-07-23 15:59:59 -07:00
Robert Fewell
583935cc2b
Add a gtk version check for gnc-cell-renderer-popup
...
The event variable is only used when it is Gtk3.22 or higher
2017-07-23 15:59:59 -07:00
Robert Fewell
2c23f78d8c
Code clean up, remove some variables that were set but never used
2017-07-23 15:59:59 -07:00
Robert Fewell
64a4e6b1bc
Code clean up, remove some static defines and redundant code
2017-07-23 15:59:59 -07:00
Robert Fewell
fbd9a36415
Code clean up, remove unused variables
2017-07-23 15:59:59 -07:00
Robert Fewell
39232d9ef9
Code clean up, remove unused variables
2017-07-23 15:59:59 -07:00
Robert Fewell
0d4bf85718
Code clean up, remove unused variables
2017-07-23 15:59:58 -07:00
Robert Fewell
69e927a3a9
Code clean up, remove unused variables
2017-07-23 15:59:58 -07:00
Robert Fewell
e7d35b8309
Move static inline CSS to gnucash.css file
2017-07-23 15:59:58 -07:00
Robert Fewell
8ab3aadffa
Add an application specific CSS file
...
Add the ability to load an application specific CSS file called from
share/gnucash/ui/gnucash.css
2017-07-23 15:59:58 -07:00
Robert Fewell
8fa2b0a67d
Fix problem with gbv_treeview_resized_cb
...
If you have a budget page open and then open the preference dialog this
callback would be actioned and you will get invalid tree column error
in the trace file, add check to verify we have a tree view column.
2017-07-23 15:59:58 -07:00
Robert Fewell
64b934f2be
Fix error in use of AccountFilterDialog structure in budgets
...
The filter_override variable was not being set and causing multiple
errors in the trace file.
2017-07-23 15:59:58 -07:00
Robert Fewell
ae5512e663
Fix typo of version, should be 3.10
2017-07-23 15:59:58 -07:00
Robert Fewell
bbd29b69c6
Fix critical error when Gnucash closes with report pages open
...
Prior to Gtk version 3.20, when using gtk_container_remove the removed
widget was required to be the direct child of the container.
2017-07-23 15:59:58 -07:00
Robert Fewell
338e10aade
Fix missing id values for GtkTreeSelection in glade files
2017-07-15 14:06:28 -07:00
Robert Fewell
6c4c82267e
Remove redundant GTK_CHECK_VERSION's
2017-07-15 14:06:28 -07:00
Robert Fewell
503aa28a08
Replace deprecated stock-id with icon-name
2017-07-15 14:06:28 -07:00
Robert Fewell
5ef645b8d0
Replace some missed GTK_STOCK_ items
2017-07-15 14:06:28 -07:00
Robert Fewell
5a7a8d8d9b
Add function to add the color background data function to account column
...
Some tree views based on GncTreeViewAccount specify there own columns
and when displayed you can end up with the Account column background
color set and the new ones uncolored which can look odd. Added a
function to add the color data function to the new columns.
2017-07-15 14:06:28 -07:00
Robert Fewell
fc0e25e7b2
Replace Gtk3 deprecated widgets in currency_accounting_widget
...
Deprecated widgets in gnc_option_create_currency_accounting_widget
have been replaced with current ones which mainly was GtkTable to
GtkGrid.
2017-07-15 14:06:28 -07:00
Robert Fewell
4df714037b
Add function to clear the display of the currency edit widget
...
When first created, the display is blank and in this position will
return the default currency. If a currency is selected, there is no way
to go back to this state. The only way to do this is destroy the widget
and create a new one so added a function to do this without destroying
the widget. This is used in the next commit.
2017-07-15 14:06:28 -07:00
Robert Fewell
0b33a66326
Modify the Account color button
...
Specify the default account color when loading the gui for account
colors that have not been set as the color button defaults to black.
2017-07-15 14:06:28 -07:00