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
|
@ -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
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue