Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbijeet <abijeetpatro@gmail.com>2017-12-03 15:56:54 +0300
committerMorris Jobke <hey@morrisjobke.de>2017-12-08 12:42:41 +0300
commit81f34e224c0e28ebc37ecd9bd7ea7e607fb98486 (patch)
tree9e0be31109674bda8e890e43585228b2bd425865 /apps/theming/templates
parentef2b0969dd022ed900d01a7567c52635773d6509 (diff)
Allows adding of hex color to the theme-color
Fixes #7158. Adds a # on the color if missing. Increased maxlength, added hash:true for jscolor, and adding a # if not present on the change event. Since the input element now allows a hex code, changed values to hexcode. In addition, added a function to get RGB array from hex or rgb values. Calling it in both methods and using it to perform comparison. Also changed the way we were determining whether the jscolor component had loaded. Changed the control to use data-jscolor rather than defining opts in the class. Signed-off-by: Abijeet <abijeetpatro@gmail.com>
Diffstat (limited to 'apps/theming/templates')
-rw-r--r--apps/theming/templates/settings-admin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/theming/templates/settings-admin.php b/apps/theming/templates/settings-admin.php
index c7451e595d7..1b8ed87bb0d 100644
--- a/apps/theming/templates/settings-admin.php
+++ b/apps/theming/templates/settings-admin.php
@@ -62,7 +62,7 @@ style('theming', 'settings-admin');
<div>
<label>
<span><?php p($l->t('Color')) ?></span>
- <input id="theming-color" type="text" class="jscolor" maxlength="6" value="<?php p($_['color']) ?>" />
+ <input id="theming-color" type="text" class="jscolor" data-jscolor="{hash:true}" maxlength="7" value="<?php p($_['color']) ?>" />
<div data-setting="color" data-toggle="tooltip" data-original-title="<?php p($l->t('Reset to default')); ?>" class="theme-undo icon icon-history"></div>
</label>
</div>