From cfc05c1b22698280f32505e92f7516c5a5cee677 Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Sun, 27 Aug 2017 12:59:56 +0100 Subject: [PATCH] Improved primary color control in settings --- resources/views/partials/custom-styles.blade.php | 2 -- resources/views/settings/index.blade.php | 5 +++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/resources/views/partials/custom-styles.blade.php b/resources/views/partials/custom-styles.blade.php index ffa39c50a..c13051df4 100644 --- a/resources/views/partials/custom-styles.blade.php +++ b/resources/views/partials/custom-styles.blade.php @@ -1,5 +1,4 @@ \ No newline at end of file diff --git a/resources/views/settings/index.blade.php b/resources/views/settings/index.blade.php index 18d8b1307..cd6a25493 100644 --- a/resources/views/settings/index.blade.php +++ b/resources/views/settings/index.blade.php @@ -68,8 +68,8 @@

{!! trans('settings.app_primary_color_desc') !!}

- - + +
@@ -152,6 +152,7 @@ var hexVal = '#' + this.color.colors.HEX; var rgb = this.color.colors.RND.rgb; var rgbLightVal = 'rgba('+ [rgb.r, rgb.g, rgb.b, '0.15'].join(',') +')'; + // Set textbox color to hex color code. var isEmpty = $.trim($elm.val()).length === 0; if (!isEmpty) $elm.val(hexVal);