From 4e3e3543d74e79445cf0e138dad4027bc6945dc9 Mon Sep 17 00:00:00 2001 From: David Benque Date: Mon, 24 Jun 2024 10:53:51 +0100 Subject: [PATCH] Add instance color presets --- customize.dist/src/less2/include/admin.less | 7 ++++--- www/admin/inner.js | 2 +- www/install/onboardscreen.js | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/customize.dist/src/less2/include/admin.less b/customize.dist/src/less2/include/admin.less index 13fe5360e..137e42318 100644 --- a/customize.dist/src/less2/include/admin.less +++ b/customize.dist/src/less2/include/admin.less @@ -12,11 +12,12 @@ --LessLoader_require: LessLoader_currentFile(); } & { - // XXX Instance accent color presets + // Instance accent color presets @palette-colors: @cryptpad_color_brand, - #ffee00, - #FF0073; + #de0064, + #8c52bc, + #3d7672; div.cp-palette-container { diff --git a/www/admin/inner.js b/www/admin/inner.js index 574cbb800..4ac6f8a8e 100644 --- a/www/admin/inner.js +++ b/www/admin/inner.js @@ -974,7 +974,7 @@ define([ setColor('', () => {}); }); - var colors = UIElements.makePalette(8, (color, $color) => { + var colors = UIElements.makePalette(4, (color, $color) => { // onselect let rgb = $color.css('background-color'); let hex = Util.rgbToHex(rgb); diff --git a/www/install/onboardscreen.js b/www/install/onboardscreen.js index 6272da418..9540862fa 100644 --- a/www/install/onboardscreen.js +++ b/www/install/onboardscreen.js @@ -221,8 +221,8 @@ define([ var getColorBlock = function () { - // XXX Number of accent color presets - var colors = UIElements.makePalette(5, (color, $color) => { + // Number of accent color presets + var colors = UIElements.makePalette(4, (color, $color) => { let rgb = $color.css('background-color'); let hex = Util.rgbToHex(rgb); if (hex) {