Add instance color presets

This commit is contained in:
David Benque 2024-06-24 10:53:51 +01:00
parent d06ad0d5b2
commit 4e3e3543d7
3 changed files with 7 additions and 6 deletions

View File

@ -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 {

View File

@ -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);

View File

@ -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) {