Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix hex input color in Custom theme settings
  • Loading branch information
Eliastik committed Aug 13, 2019
1 parent 3ef3d54 commit cab708c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/css/colpick.css
Expand Up @@ -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 {
Expand Down
12 changes: 8 additions & 4 deletions src/js/options.js
Expand Up @@ -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);
Expand All @@ -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);
Expand All @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit cab708c

Please sign in to comment.