From 7eaa7c6eb18384c1fe5dd09a67c28c3122033336 Mon Sep 17 00:00:00 2001 From: fuwaa Date: Wed, 3 Aug 2022 15:05:15 +0800 Subject: [PATCH] bugfix: color group issues --- public/manifest.json | 2 +- src/components/options/Sidebar.tsx | 2 ++ src/components/popup/QuickChange.tsx | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/public/manifest.json b/public/manifest.json index b9a499c..827a1cc 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -19,7 +19,7 @@ "default_popup": "index.html" }, - "description": "pint is a browser extension that makes your github experience colorful, just the way you like it", + "description": "Pint for GitHub is a theming engine that allows you to customize and theme your developer experience on GitHub.", "author": { "name": "Jariel Que", diff --git a/src/components/options/Sidebar.tsx b/src/components/options/Sidebar.tsx index 7b996fb..377391d 100644 --- a/src/components/options/Sidebar.tsx +++ b/src/components/options/Sidebar.tsx @@ -30,6 +30,7 @@ import chroma from "chroma-js"; import { FcIdea } from "react-icons/fc"; import { BiReset } from "react-icons/bi"; import * as baseSettings from "../../methods/config/settings"; +import { updateOpacity } from "../../methods/helpers/opacityHelper"; var defaultValue = "#c0ffee"; @@ -210,6 +211,7 @@ export default function Sidebar(props: Props) { pintGetUpdate(settings.cg60_a371f7[0], setScalePurple); pintGetUpdate(settings.cg19_26a641[0], setScaleCalendar); pintGetUpdate(settings.cg106_ffffff[0], setScaleText); + updateOpacity(); setColor(color); } diff --git a/src/components/popup/QuickChange.tsx b/src/components/popup/QuickChange.tsx index 5c3290d..6b8d3fb 100644 --- a/src/components/popup/QuickChange.tsx +++ b/src/components/popup/QuickChange.tsx @@ -27,6 +27,7 @@ import * as settings from "../../methods/config/colorGroups.js"; import * as scales from "../../methods/helpers/scaleHelper.js"; import chroma from "chroma-js"; import { FcIdea } from "react-icons/fc"; +import { updateOpacity } from "../../methods/helpers/opacityHelper"; var defaultValue = "#c0ffee"; @@ -196,6 +197,7 @@ export default function QuickChange() { pintGetUpdate(settings.cg60_a371f7[0], setScalePurple); pintGetUpdate(settings.cg19_26a641[0], setScaleCalendar); pintGetUpdate(settings.cg106_ffffff[0], setScaleText); + updateOpacity(); chrome.tabs.reload(); }