From d413d579a6ef47e61e6747200f86b9240b079b14 Mon Sep 17 00:00:00 2001 From: Santiago Botta Date: Wed, 20 Mar 2024 02:19:42 -0300 Subject: [PATCH] Add dark styles to all public screens --- assets/js/app.js | 2 +- assets/js/charts/line_chart.js | 3 + .../components/core_components.ex | 15 +++-- .../components/custom_components.ex | 4 +- .../custom_components/presence_disclaimer.ex | 4 +- .../components/layouts/app.html.heex | 14 ++-- .../components/layouts/root.html.heex | 14 ++-- .../controllers/page_html/home.html.heex | 64 +++++++++---------- .../cedears/cedears_live/index.html.heex | 28 +++++--- .../cedears/cedears_live/show.html.heex | 56 ++++++++++------ .../live/public/currency_live/index.html.heex | 33 +++++----- .../live/public/currency_live/show.html.heex | 25 ++++---- 12 files changed, 144 insertions(+), 118 deletions(-) diff --git a/assets/js/app.js b/assets/js/app.js index f409537..f042a8a 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -47,7 +47,7 @@ const liveSocket = new LiveSocket("/live", Socket, { ) // Show progress bar on live navigation and form submits -topbar.config({barColors: {0: "#29d"}, shadowColor: "rgba(0, 0, 0, .3)"}) +topbar.config({barColors: {0: "#FD4F00"}, shadowColor: "rgba(0, 0, 0, .3)"}) window.addEventListener("phx:page-loading-start", () => topbar.show(300)) window.addEventListener("phx:page-loading-stop", () => topbar.hide()) diff --git a/assets/js/charts/line_chart.js b/assets/js/charts/line_chart.js index d998104..2f9dae9 100644 --- a/assets/js/charts/line_chart.js +++ b/assets/js/charts/line_chart.js @@ -4,6 +4,9 @@ // html#bundlers-webpack-rollup-etc import Chart from 'chart.js/auto' +Chart.defaults.color = '#71717acc'; +Chart.defaults.borderColor = '#71717a44'; + // A wrapper of Chart.js that configures the realtime line chart. export default class { constructor(ctx) { diff --git a/lib/ex_finance_web/components/core_components.ex b/lib/ex_finance_web/components/core_components.ex index 5c0be2c..34c442b 100644 --- a/lib/ex_finance_web/components/core_components.ex +++ b/lib/ex_finance_web/components/core_components.ex @@ -363,7 +363,7 @@ defmodule ExFinanceWeb.CoreComponents do ~H"""
-