Merge pull request #23 from fuwaa/restyled/dev

This commit is contained in:
Jariel Que 2022-07-23 09:06:55 +08:00 committed by GitHub
commit 8d99fbf1e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 13 deletions

View file

@ -55,4 +55,4 @@ inset 0 0.15em 0.3em #01040926 => __color_btn_shadow_active
inset 0 1px 0 #ffffff07 => __color_btn_outline_hover_inset_shadow
screen => __color_diff_blob_selected_line_highlight_mix_blend_mode
screen => __color_diff_blob_selected_line_highlight_mix_blend_mode

View file

@ -1,12 +1,14 @@
import chroma from "chroma-js";
import { pintGetUpdate, updateMultiple } from "./storageHelper.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.
// can someone please help me find a way of implementing this better because this looks like shit.
// it's like this because of the goddamn chrome extension limitation
// PLEASE FILE AN ISSUE OR PR IF YOU HAVE A WAY TO MAKE THIS HANDLE BETTER BECAUSE GOD
// I AM DYING LOOKING AND MAINTAINING THIS SPAGHETTI CODE
// can someone please help me find a way of implementing this better because
// this looks like shit. it's like this because of the goddamn chrome extension
// limitation PLEASE FILE AN ISSUE OR PR IF YOU HAVE A WAY TO MAKE THIS HANDLE
// BETTER BECAUSE GOD I AM DYING LOOKING AND MAINTAINING THIS SPAGHETTI CODE
function setCG1(value) {
updateMultiple(settings.cg1a_19, chroma(value).alpha(0.1).hex());

View file

@ -1,12 +1,14 @@
import chroma from "chroma-js";
import { pintGetUpdate, updateMultiple } from "./storageHelper.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.
// can someone please help me find a way of implementing this better because this looks like shit.
// it's like this because of the goddamn chrome extension limitation
// PLEASE FILE AN ISSUE OR PR IF YOU HAVE A WAY TO MAKE THIS HANDLE BETTER BECAUSE GOD
// I AM DYING LOOKING AND MAINTAINING THIS SPAGHETTI CODE
// can someone please help me find a way of implementing this better because
// this looks like shit. it's like this because of the goddamn chrome extension
// limitation PLEASE FILE AN ISSUE OR PR IF YOU HAVE A WAY TO MAKE THIS HANDLE
// BETTER BECAUSE GOD I AM DYING LOOKING AND MAINTAINING THIS SPAGHETTI CODE
function setCG1(value) {
updateMultiple(settings.cg1a_19, chroma(value).alpha(0.1).hex());

View file

@ -1,10 +1,10 @@
/*global chrome*/
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 { updateOpacity } from "./helpers/opacityHelper.js";
import { pintSetNoReload, updateMultiple } from "./helpers/storageHelper.js";
import * as qs from "./quickScheme.js";
// function to convert hex to rgb
export function hexToRgb(hex) {