mirror of https://github.com/xwiki-labs/cryptpad
Add instance color presets
This commit is contained in:
parent
d06ad0d5b2
commit
4e3e3543d7
|
@ -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 {
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue