From 5bd6d0b552f6cc3a158bb2cf75515a996839734f Mon Sep 17 00:00:00 2001 From: Jadowyne Ulve Date: Tue, 12 Aug 2025 14:23:25 -0500 Subject: [PATCH] Added customizable primary color to all templates --- application/administration/templates/admin_index.html | 5 +++++ application/items/templates/item_new.html | 5 +++++ application/items/templates/itemlink.html | 5 +++++ application/items/templates/transaction.html | 5 +++++ application/items/templates/transactions.html | 5 +++++ application/meal_planner/templates/meal_planner.html | 5 +++++ application/poe/templates/receipts.html | 5 +++++ application/poe/templates/scanner.html | 5 +++++ application/receipts/templates/receipt.html | 6 +++++- application/receipts/templates/receipts_index.html | 5 +++++ application/recipes/templates/recipe_edit.html | 5 +++++ application/recipes/templates/recipe_view.html | 6 ++++++ application/recipes/templates/recipes_index.html | 5 +++++ application/shoppinglists/templates/edit.html | 5 +++++ application/shoppinglists/templates/lists.html | 5 +++++ application/shoppinglists/templates/view.html | 5 +++++ application/site_management/templates/site_management.html | 5 +++++ 17 files changed, 86 insertions(+), 1 deletion(-) diff --git a/application/administration/templates/admin_index.html b/application/administration/templates/admin_index.html index 503aea5..246a4c7 100644 --- a/application/administration/templates/admin_index.html +++ b/application/administration/templates/admin_index.html @@ -17,6 +17,11 @@ {% endif %} + {% if session['user']['flags']['darkmode'] %} {% else %} diff --git a/application/items/templates/item_new.html b/application/items/templates/item_new.html index 500efcd..6d52797 100644 --- a/application/items/templates/item_new.html +++ b/application/items/templates/item_new.html @@ -40,6 +40,11 @@ background-color: whitesmoke; } + {% if session['user']['flags']['darkmode'] %} {% else %} diff --git a/application/items/templates/itemlink.html b/application/items/templates/itemlink.html index c37a42b..b3724bd 100644 --- a/application/items/templates/itemlink.html +++ b/application/items/templates/itemlink.html @@ -22,6 +22,11 @@ + {% if session['user']['flags']['darkmode'] %} {% else %} diff --git a/application/items/templates/transaction.html b/application/items/templates/transaction.html index c8ea573..1c3c6ea 100644 --- a/application/items/templates/transaction.html +++ b/application/items/templates/transaction.html @@ -26,6 +26,11 @@ cursor: pointer; } + {% if session['user']['flags']['darkmode'] %} {% else %} diff --git a/application/items/templates/transactions.html b/application/items/templates/transactions.html index 139839b..1f5a0c5 100644 --- a/application/items/templates/transactions.html +++ b/application/items/templates/transactions.html @@ -24,6 +24,11 @@ + {% if session['user']['flags']['darkmode'] %} {% else %} diff --git a/application/meal_planner/templates/meal_planner.html b/application/meal_planner/templates/meal_planner.html index a9b8b83..07324aa 100644 --- a/application/meal_planner/templates/meal_planner.html +++ b/application/meal_planner/templates/meal_planner.html @@ -21,6 +21,11 @@ + {% if session['user']['flags']['darkmode'] %} {% else %} diff --git a/application/poe/templates/receipts.html b/application/poe/templates/receipts.html index 27307c6..0b15262 100644 --- a/application/poe/templates/receipts.html +++ b/application/poe/templates/receipts.html @@ -41,6 +41,11 @@ flex-shrink: 0; } + + {% if session['user']['flags']['darkmode'] %} diff --git a/application/poe/templates/scanner.html b/application/poe/templates/scanner.html index d40e67e..970eb2d 100644 --- a/application/poe/templates/scanner.html +++ b/application/poe/templates/scanner.html @@ -25,6 +25,11 @@ cursor: pointer; } + {% if session['user']['flags']['darkmode'] %} {% else %} diff --git a/application/receipts/templates/receipt.html b/application/receipts/templates/receipt.html index 2607854..518f990 100644 --- a/application/receipts/templates/receipt.html +++ b/application/receipts/templates/receipt.html @@ -24,7 +24,11 @@ - + {% if session['user']['flags']['darkmode'] %} {% else %} diff --git a/application/receipts/templates/receipts_index.html b/application/receipts/templates/receipts_index.html index 6f4cc69..9674041 100644 --- a/application/receipts/templates/receipts_index.html +++ b/application/receipts/templates/receipts_index.html @@ -23,6 +23,11 @@ + {% if session['user']['flags']['darkmode'] %} {% else %} diff --git a/application/recipes/templates/recipe_edit.html b/application/recipes/templates/recipe_edit.html index ae277d2..769a4aa 100644 --- a/application/recipes/templates/recipe_edit.html +++ b/application/recipes/templates/recipe_edit.html @@ -23,6 +23,11 @@ + {% if session['user']['flags']['darkmode'] %} {% else %} diff --git a/application/recipes/templates/recipe_view.html b/application/recipes/templates/recipe_view.html index 30587aa..c2dd946 100644 --- a/application/recipes/templates/recipe_view.html +++ b/application/recipes/templates/recipe_view.html @@ -29,6 +29,12 @@ height:200px; border-radius: 50%; } + + + {% if session['user']['flags']['darkmode'] %} diff --git a/application/recipes/templates/recipes_index.html b/application/recipes/templates/recipes_index.html index fa86500..c43e38d 100644 --- a/application/recipes/templates/recipes_index.html +++ b/application/recipes/templates/recipes_index.html @@ -23,6 +23,11 @@ + {% if session['user']['flags']['darkmode'] %} {% else %} diff --git a/application/shoppinglists/templates/edit.html b/application/shoppinglists/templates/edit.html index 06ae517..b50979e 100644 --- a/application/shoppinglists/templates/edit.html +++ b/application/shoppinglists/templates/edit.html @@ -24,6 +24,11 @@ + {% if session['user']['flags']['darkmode'] %} {% else %} diff --git a/application/shoppinglists/templates/lists.html b/application/shoppinglists/templates/lists.html index bfa2b0f..2d883d1 100644 --- a/application/shoppinglists/templates/lists.html +++ b/application/shoppinglists/templates/lists.html @@ -24,6 +24,11 @@ + {% if session['user']['flags']['darkmode'] %} {% else %} diff --git a/application/shoppinglists/templates/view.html b/application/shoppinglists/templates/view.html index 00422ea..ad07cc2 100644 --- a/application/shoppinglists/templates/view.html +++ b/application/shoppinglists/templates/view.html @@ -24,6 +24,11 @@ + {% if session['user']['flags']['darkmode'] %} {% else %} diff --git a/application/site_management/templates/site_management.html b/application/site_management/templates/site_management.html index 211756e..3a7c6f4 100644 --- a/application/site_management/templates/site_management.html +++ b/application/site_management/templates/site_management.html @@ -16,6 +16,11 @@ {% endif %} + {% if session['user']['flags']['darkmode'] %} {% else %}