From 7ec301bb198157e592aad34a108107d23e894b23 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Fri, 18 Jan 2019 16:10:16 -0700 Subject: [PATCH] Make note color palette a configurable setting --- lib/Colors.lib.php | 52 +++++++++++++++++++++++++++++++++++++++++++ pages/home.php | 36 ++---------------------------- settings.template.php | 32 ++++++++++++++++++++++++++ 3 files changed, 86 insertions(+), 34 deletions(-) create mode 100644 lib/Colors.lib.php diff --git a/lib/Colors.lib.php b/lib/Colors.lib.php new file mode 100644 index 0000000..3012dbb --- /dev/null +++ b/lib/Colors.lib.php @@ -0,0 +1,52 @@ + 0) { + Colors::$colors = $SETTINGS['note_colors']; + } + } + +} + +Colors::init(); \ No newline at end of file diff --git a/pages/home.php b/pages/home.php index dab21e9..c34b742 100644 --- a/pages/home.php +++ b/pages/home.php @@ -31,38 +31,6 @@ if ($notequotaset) {