diff options
author | Lauri Ojansivu <x@xet7.org> | 2019-07-06 04:59:17 -0400 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2019-07-06 04:59:17 -0400 |
commit | 289e78dbd29cca9d97d3b5787c3368583d43b40f (patch) | |
tree | b383a16fd9fffbea4bd63a89342bbce27a20d968 | |
parent | 6dd63db16cda92da128b5757044266e6d6173293 (diff) | |
download | wekan-289e78dbd29cca9d97d3b5787c3368583d43b40f.tar.gz wekan-289e78dbd29cca9d97d3b5787c3368583d43b40f.tar.bz2 wekan-289e78dbd29cca9d97d3b5787c3368583d43b40f.zip |
Add Corteza theme. In progress.
Thanks to xet7 !
-rw-r--r-- | client/components/boards/boardColors.styl | 35 | ||||
-rw-r--r-- | models/boards.js | 3 | ||||
-rw-r--r-- | server/migrations.js | 1 |
3 files changed, 38 insertions, 1 deletions
diff --git a/client/components/boards/boardColors.styl b/client/components/boards/boardColors.styl index 8c7af037..3e865628 100644 --- a/client/components/boards/boardColors.styl +++ b/client/components/boards/boardColors.styl @@ -229,3 +229,38 @@ setBoardColor(color) .list border-left: 1px dotted #000000 + +.board-color-corteza + setBoardColor(#568BA2) + + /* + Wekan for Corteza https://cortezaproject.org + + Theme to match Corteza colors from: + https://github.com/cortezaproject/corteza-webapp-messaging/blob/master/src/assets/sass/variables.scss + + // Paths + $fonts_dir : './assets/fonts/'; + $icomoon-font-path: $fonts_dir + 'icomoon' !default; + $icomoon-font-family: "icomoon" !default; + + // Typography + $regular: 'nunito_sansregular'; + $bold: 'nunito_sansbold'; + $semibold: 'nunito_sanssemibold'; + + // Color system + $white: #fff !default; + $black: #000 !default; + $primary: #568ba2; + $secondary: #90A3B1; + $success: #719430; + $warning: #F5D380; + $danger: #E85568; + $light: #F3F3F5; + $dark: #1e2224; + $currentmymessagebgcolor : #a7d0e3; + */ + + //.header-quick-access + // backgroud-color: #568ba2 diff --git a/models/boards.js b/models/boards.js index 3750473e..2346ecb6 100644 --- a/models/boards.js +++ b/models/boards.js @@ -244,6 +244,7 @@ Boards.attachSchema( 'midnight', 'dark', 'relax', + 'corteza', ], // eslint-disable-next-line consistent-return autoValue() { @@ -1229,7 +1230,7 @@ if (Meteor.isServer) { * * The color has to be chosen between `belize`, `nephritis`, `pomegranate`, * `pumpkin`, `wisteria`, `moderatepink`, `strongcyan`, - * `limegreen`, `midnight`, `dark`, `relax`: + * `limegreen`, `midnight`, `dark`, `relax`, `corteza`: * * <img src="https://wekan.github.io/board-colors.png" width="40%" alt="Wekan logo" /> * diff --git a/server/migrations.js b/server/migrations.js index 752111e1..f3776edd 100644 --- a/server/migrations.js +++ b/server/migrations.js @@ -118,6 +118,7 @@ Migrations.add('use-css-class-for-boards-colors', () => { '#4BBF6B': 'limegreen', '#2C3E51': 'dark', '#27AE61': 'relax', + '#568BA2': 'corteza', }; Boards.find().forEach(board => { const oldBoardColor = board.background.color; |