From: Dan Brown Date: Sun, 27 Aug 2017 11:59:56 +0000 (+0100) Subject: Improved primary color control in settings X-Git-Tag: v0.18.0~1^2~25 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/cfc05c1b22698280f32505e92f7516c5a5cee677 Improved primary color control in settings --- 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);