|
@@ -209,6 +209,18 @@ function ui_setup_color_selector() {
|
209
|
209
|
ui_set_card_color(value);
|
210
|
210
|
}
|
211
|
211
|
});
|
|
212
|
+ $('#foreground_color_selector').colorselector({
|
|
213
|
+ callback: function (value, color, title) {
|
|
214
|
+ $("#foreground-color").val(title);
|
|
215
|
+ ui_set_foreground_color(value);
|
|
216
|
+ }
|
|
217
|
+ });
|
|
218
|
+ $('#background_color_selector').colorselector({
|
|
219
|
+ callback: function (value, color, title) {
|
|
220
|
+ $("#background-color").val(title);
|
|
221
|
+ ui_set_background_color(value);
|
|
222
|
+ }
|
|
223
|
+ });
|
212
|
224
|
|
213
|
225
|
// Styling
|
214
|
226
|
$(".dropdown-colorselector").addClass("input-group-addon color-input-addon");
|
|
@@ -219,6 +231,14 @@ function ui_set_default_color(color) {
|
219
|
231
|
ui_render_selected_card();
|
220
|
232
|
}
|
221
|
233
|
|
|
234
|
+function ui_set_foreground_color(color) {
|
|
235
|
+ card_options.foreground_color = color;
|
|
236
|
+}
|
|
237
|
+
|
|
238
|
+function ui_set_background_color(color) {
|
|
239
|
+ card_options.background_color = color;
|
|
240
|
+}
|
|
241
|
+
|
222
|
242
|
function ui_change_option() {
|
223
|
243
|
var property = $(this).attr("data-option");
|
224
|
244
|
var value = $(this).val();
|
|
@@ -390,6 +410,7 @@ $(document).ready(function () {
|
390
|
410
|
$("#page-columns").change(ui_change_option);
|
391
|
411
|
$("#card-arrangement").change(ui_change_option);
|
392
|
412
|
$("#card-size").change(ui_change_option);
|
|
413
|
+ $("#background-color").change(ui_change_option);
|
393
|
414
|
|
394
|
415
|
$("#default-color").change(ui_change_default_color);
|
395
|
416
|
$("#default-icon").change(ui_change_default_icon);
|