mirror of
https://github.com/ryanamay/pint.git
synced 2024-09-20 01:50:34 +00:00
Merge pull request #23 from fuwaa/restyled/dev
This commit is contained in:
commit
8d99fbf1e4
4 changed files with 17 additions and 13 deletions
|
@ -1,12 +1,14 @@
|
||||||
import chroma from "chroma-js";
|
import chroma from "chroma-js";
|
||||||
import { pintGetUpdate, updateMultiple } from "./storageHelper.js";
|
|
||||||
import * as settings from "../config/colorGroups.js";
|
import * as settings from "../config/colorGroups.js";
|
||||||
|
|
||||||
|
import { pintGetUpdate, updateMultiple } from "./storageHelper.js";
|
||||||
|
|
||||||
// may god have mercy if you are working with this spaghetti code.
|
// may god have mercy if you are working with this spaghetti code.
|
||||||
// can someone please help me find a way of implementing this better because this looks like shit.
|
// can someone please help me find a way of implementing this better because
|
||||||
// it's like this because of the goddamn chrome extension limitation
|
// this looks like shit. it's like this because of the goddamn chrome extension
|
||||||
// PLEASE FILE AN ISSUE OR PR IF YOU HAVE A WAY TO MAKE THIS HANDLE BETTER BECAUSE GOD
|
// limitation PLEASE FILE AN ISSUE OR PR IF YOU HAVE A WAY TO MAKE THIS HANDLE
|
||||||
// I AM DYING LOOKING AND MAINTAINING THIS SPAGHETTI CODE
|
// BETTER BECAUSE GOD I AM DYING LOOKING AND MAINTAINING THIS SPAGHETTI CODE
|
||||||
|
|
||||||
function setCG1(value) {
|
function setCG1(value) {
|
||||||
updateMultiple(settings.cg1a_19, chroma(value).alpha(0.1).hex());
|
updateMultiple(settings.cg1a_19, chroma(value).alpha(0.1).hex());
|
||||||
|
|
|
@ -1,12 +1,14 @@
|
||||||
import chroma from "chroma-js";
|
import chroma from "chroma-js";
|
||||||
import { pintGetUpdate, updateMultiple } from "./storageHelper.js";
|
|
||||||
import * as settings from "../config/colorGroups.js";
|
import * as settings from "../config/colorGroups.js";
|
||||||
|
|
||||||
|
import { pintGetUpdate, updateMultiple } from "./storageHelper.js";
|
||||||
|
|
||||||
// may god have mercy if you are working with this spaghetti code.
|
// may god have mercy if you are working with this spaghetti code.
|
||||||
// can someone please help me find a way of implementing this better because this looks like shit.
|
// can someone please help me find a way of implementing this better because
|
||||||
// it's like this because of the goddamn chrome extension limitation
|
// this looks like shit. it's like this because of the goddamn chrome extension
|
||||||
// PLEASE FILE AN ISSUE OR PR IF YOU HAVE A WAY TO MAKE THIS HANDLE BETTER BECAUSE GOD
|
// limitation PLEASE FILE AN ISSUE OR PR IF YOU HAVE A WAY TO MAKE THIS HANDLE
|
||||||
// I AM DYING LOOKING AND MAINTAINING THIS SPAGHETTI CODE
|
// BETTER BECAUSE GOD I AM DYING LOOKING AND MAINTAINING THIS SPAGHETTI CODE
|
||||||
|
|
||||||
function setCG1(value) {
|
function setCG1(value) {
|
||||||
updateMultiple(settings.cg1a_19, chroma(value).alpha(0.1).hex());
|
updateMultiple(settings.cg1a_19, chroma(value).alpha(0.1).hex());
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
/*global chrome*/
|
/*global chrome*/
|
||||||
import chroma from "chroma-js";
|
import chroma from "chroma-js";
|
||||||
|
|
||||||
import { pintSetNoReload, updateMultiple } from "./helpers/storageHelper.js";
|
|
||||||
import * as qs from "./quickScheme.js";
|
|
||||||
import * as settings from "./config/colorGroups.js";
|
import * as settings from "./config/colorGroups.js";
|
||||||
import { updateOpacity } from "./helpers/opacityHelper.js";
|
import { updateOpacity } from "./helpers/opacityHelper.js";
|
||||||
|
import { pintSetNoReload, updateMultiple } from "./helpers/storageHelper.js";
|
||||||
|
import * as qs from "./quickScheme.js";
|
||||||
|
|
||||||
// function to convert hex to rgb
|
// function to convert hex to rgb
|
||||||
export function hexToRgb(hex) {
|
export function hexToRgb(hex) {
|
||||||
|
|
Loading…
Reference in a new issue