penny-lib-0.4.0.0: Extensible double-entry accounting system - library

Safe HaskellSafe-Infered

Penny.Cabin.Colors

Synopsis

Documentation

data DrCrColors Source

The colors for debits and credits. These are used for the entry's amount and for the total amounts that accompany each entry. Here, even and odd refer to the the posting's visible number. Zero is for the balance entries whose balance is zero.

data BaseColors Source

The colors for all fields other than entries and totals.

Constructors

BaseColors 

colors :: VisibleNum -> BaseColors -> TextSpecSource

Change a BaseColors to a TextSpec.

drCrToBaseColors :: DrCr -> DrCrColors -> BaseColorsSource

Change a DrCrColors to a BaseColors; you can then use colors to change that to a TextSpec.

bottomLineToBaseColors :: DrCrColors -> BottomLine -> BaseColorsSource

Change a DrCrColors to a BaseColors, based on a balance (unlike entries, balances might be zero.)

noBalanceColors :: VisibleNum -> DrCrColors -> TextSpecSource

TextSpec to use when showing the lack of a balance.