mirror of
https://github.com/ryanamay/pint.git
synced 2024-09-20 01:50:34 +00:00
bugfix: color group issues
This commit is contained in:
commit
e02e44a00d
3 changed files with 5 additions and 1 deletions
|
@ -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",
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue