bugfix: color group issues

This commit is contained in:
Jariel Que 2022-08-03 15:06:07 +08:00 committed by GitHub
commit e02e44a00d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 1 deletions

View file

@ -19,7 +19,7 @@
"default_popup": "index.html" "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": { "author": {
"name": "Jariel Que", "name": "Jariel Que",

View file

@ -30,6 +30,7 @@ import chroma from "chroma-js";
import { FcIdea } from "react-icons/fc"; import { FcIdea } from "react-icons/fc";
import { BiReset } from "react-icons/bi"; import { BiReset } from "react-icons/bi";
import * as baseSettings from "../../methods/config/settings"; import * as baseSettings from "../../methods/config/settings";
import { updateOpacity } from "../../methods/helpers/opacityHelper";
var defaultValue = "#c0ffee"; var defaultValue = "#c0ffee";
@ -210,6 +211,7 @@ export default function Sidebar(props: Props) {
pintGetUpdate(settings.cg60_a371f7[0], setScalePurple); pintGetUpdate(settings.cg60_a371f7[0], setScalePurple);
pintGetUpdate(settings.cg19_26a641[0], setScaleCalendar); pintGetUpdate(settings.cg19_26a641[0], setScaleCalendar);
pintGetUpdate(settings.cg106_ffffff[0], setScaleText); pintGetUpdate(settings.cg106_ffffff[0], setScaleText);
updateOpacity();
setColor(color); setColor(color);
} }

View file

@ -27,6 +27,7 @@ import * as settings from "../../methods/config/colorGroups.js";
import * as scales from "../../methods/helpers/scaleHelper.js"; import * as scales from "../../methods/helpers/scaleHelper.js";
import chroma from "chroma-js"; import chroma from "chroma-js";
import { FcIdea } from "react-icons/fc"; import { FcIdea } from "react-icons/fc";
import { updateOpacity } from "../../methods/helpers/opacityHelper";
var defaultValue = "#c0ffee"; var defaultValue = "#c0ffee";
@ -196,6 +197,7 @@ export default function QuickChange() {
pintGetUpdate(settings.cg60_a371f7[0], setScalePurple); pintGetUpdate(settings.cg60_a371f7[0], setScalePurple);
pintGetUpdate(settings.cg19_26a641[0], setScaleCalendar); pintGetUpdate(settings.cg19_26a641[0], setScaleCalendar);
pintGetUpdate(settings.cg106_ffffff[0], setScaleText); pintGetUpdate(settings.cg106_ffffff[0], setScaleText);
updateOpacity();
chrome.tabs.reload(); chrome.tabs.reload();
} }