mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
helper: Added createPalette, and a Palette interface change
This commit is contained in:
parent
6567639465
commit
21166a044f
6 changed files with 32 additions and 16 deletions
|
@ -25,7 +25,6 @@
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <cmake.h>
|
||||
#include <Palette.h>
|
||||
#include <Composite.h>
|
||||
#include <Color.h>
|
||||
#include <Range.h>
|
||||
|
@ -54,10 +53,7 @@ int CmdReportDay (
|
|||
auto excluded = timeline.excluded (rules);
|
||||
|
||||
// Create a color palette.
|
||||
Palette palette;
|
||||
palette.initialize (rules);
|
||||
palette.enabled = rules.getBoolean ("color");
|
||||
|
||||
auto palette = createPalette (rules);
|
||||
Color colorExc (palette.enabled ? rules.get ("theme.colors.exclusion") : "");
|
||||
Color colorLabel (palette.enabled ? rules.get ("theme.colors.label") : "");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue