diff --git a/css/icons.scss b/css/icons.scss index cea81462a..e8ca7e7f9 100644 --- a/css/icons.scss +++ b/css/icons.scss @@ -77,4 +77,7 @@ opacity: 1; background-size: 20px; background-position: center center; -} \ No newline at end of file +} +.icon-colorpicker { + background-image: url('../img/color_picker.svg'); +} diff --git a/package.json b/package.json index f98b29aad..7a102e223 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "nextcloud-vue": "^0.10.0", "vue": "^2.5.16", "vue-click-outside": "^1.0.7", + "vue-color": "^2.7.0", "vue-infinite-loading": "^2.4.1", "vue-router": "^3.0.1", "vue-smooth-dnd": "^0.8.0", diff --git a/src/components/ColorPicker.vue b/src/components/ColorPicker.vue new file mode 100644 index 000000000..a279ddaa2 --- /dev/null +++ b/src/components/ColorPicker.vue @@ -0,0 +1,100 @@ + + + + + + + + diff --git a/src/components/navigation/AppNavigationAddBoard.vue b/src/components/navigation/AppNavigationAddBoard.vue index 765c24346..889a867c1 100644 --- a/src/components/navigation/AppNavigationAddBoard.vue +++ b/src/components/navigation/AppNavigationAddBoard.vue @@ -28,27 +28,31 @@ -
+
+
+ diff --git a/src/services/BoardApi.js b/src/services/BoardApi.js index 56fbbc077..ebb493168 100644 --- a/src/services/BoardApi.js +++ b/src/services/BoardApi.js @@ -56,9 +56,8 @@ export class BoardApi { /** * Creates a new board. * - * @param {{String title, String color, String hashedColor}} boardData The board data to send. - * hashedColor is the color in hex format, e.g. "#ff0000" - * color is the same color without the "#" + * @param {{String title, String color}} boardData The board data to send. + * color the hexadecimal color value formated /[0-9A-F]{6}/i * @return Promise */ createBoard(boardData) {