Skip to content
Permalink
Browse files

Fix hex input color in Custom theme settings

  • Loading branch information...
Eliastik committed Aug 13, 2019
1 parent 3ef3d54 commit cab708ce9f9201727bd241a19007256c1e480640
Showing with 8 additions and 6 deletions.
  1. +0 −2 src/css/colpick.css
  2. +8 −4 src/js/options.js
@@ -24,8 +24,6 @@ colpick Color Picker / colpick.com
-ms-user-select: none;
-o-user-select: none;
user-select: none;

z-index: 9999;
}
/*Color selection box with gradients*/
.colpick .colpick_color {
@@ -384,8 +384,9 @@ $(document).ready(function() {

$('#colorpicker1').colpick({
layout:'hex',
submit:0,
submit: false,
color: '000000',
appendTo: $("#customTheme"),
onChange:function(hsb,hex,rgb,el,bySetColor) {
$("#colorpicker1").css("background-color", "#"+hex);
$("#previsualisationDiv").css("background-color", "#"+hex);
@@ -395,8 +396,9 @@ $(document).ready(function() {

$('#colorpicker2').colpick({
layout:'hex',
submit:0,
submit: false,
color: 'FFFFFF',
appendTo: $("#customTheme"),
onChange:function(hsb,hex,rgb,el,bySetColor) {
$("#colorpicker2").css("background-color", "#"+hex);
$("#textPreview").css("color", "#"+hex);
@@ -406,8 +408,9 @@ $(document).ready(function() {

$('#colorpicker3').colpick({
layout:'hex',
submit:0,
submit: false,
color: '1E90FF',
appendTo: $("#customTheme"),
onChange:function(hsb,hex,rgb,el,bySetColor) {
$("#colorpicker3").css("background-color", "#"+hex);
$("#linkPreview").css("color", "#"+hex);
@@ -417,8 +420,9 @@ $(document).ready(function() {

$('#colorpicker4').colpick({
layout:'hex',
submit:0,
submit: false,
color: '800080',
appendTo: $("#customTheme"),
onChange:function(hsb,hex,rgb,el,bySetColor) {
$("#colorpicker4").css("background-color", "#"+hex);
$("#linkVisitedPreview").css("color", "#"+hex);

0 comments on commit cab708c

Please sign in to comment.
You can’t perform that action at this time.