NOW MANAGED ON CODEBERG
Improved primary color control in settings
Dan Browncfc05c1b2269
diff --git a/resources/views/partials/custom-styles.blade.php b/resources/views/partials/custom-styles.blade.phpindex ffa39c50a..c13051df4 100644--- a/resources/views/partials/custom-styles.blade.php+++ b/resources/views/partials/custom-styles.blade.php@@ -1,5 +1,4 @@<style id="custom-styles" data-color="{{ setting('app-color') }}" data-color-light="{{ setting('app-color-light') }}">- @if(setting('app-color'))header, [back-to-top], .primary-background {background-color: {{ setting('app-color') }} !important;}@@ -18,5 +17,4 @@.text-primary, p.primary, p .primary, span.primary:hover, .text-primary:hover, a, a:hover, a:focus, .text-button, .text-button:hover, .text-button:focus {color: {{ setting('app-color') }};}- @endif</style>\ No newline at end of filediff --git a/resources/views/settings/index.blade.php b/resources/views/settings/index.blade.phpindex 18d8b1307..cd6a25493 100644--- a/resources/views/settings/index.blade.php+++ b/resources/views/settings/index.blade.php@@ -68,8 +68,8 @@<div class="form-group" id="color-control"><label for="setting-app-color">{{ trans('settings.app_primary_color') }}</label><p class="small">{!! trans('settings.app_primary_color_desc') !!}</p>- <input type="text" value="{{ setting('app-color', '') }}" name="setting-app-color" id="setting-app-color" placeholder="#0288D1">- <input type="hidden" value="{{ setting('app-color-light', '') }}" name="setting-app-color-light" id="setting-app-color-light" placeholder="rgba(21, 101, 192, 0.15)">+ <input type="text" value="{{ setting('app-color') }}" name="setting-app-color" id="setting-app-color" placeholder="#0288D1">+ <input type="hidden" value="{{ setting('app-color-light') }}" name="setting-app-color-light" id="setting-app-color-light"></div></div>@@ -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);