Skip to content

Commit c87e1af

Browse files
committed
Merge branch 'develop' into dk/batch-of-fixes
2 parents 86c29fb + ae3b06b commit c87e1af

File tree

29 files changed

+452
-116
lines changed

29 files changed

+452
-116
lines changed

.stylelintrc.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"extends": "stylelint-config-standard",
3+
"rules": {
4+
"indentation": 4,
5+
"value-keyword-case": null,
6+
"selector-combinator-space-after": null,
7+
"no-descending-specificity": null,
8+
"at-rule-no-unknown": [true, {
9+
"ignoreAtRules": ["extend"]
10+
}],
11+
"selector-type-no-unknown": [true, {
12+
"ignoreTypes": ["first-child"]
13+
}]
14+
}
15+
16+
}

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1616
- Better validation of labels and attributes in raw viewer (<https://github.com/opencv/cvat/pull/1727>)
1717
- ClamAV antivirus integration (<https://github.com/opencv/cvat/pull/1712>)
1818
- Added canvas background color selector (<https://github.com/opencv/cvat/pull/1705>)
19+
- SCSS files linting with Stylelint tool (<https://github.com/opencv/cvat/pull/1766>)
1920
- Supported import and export or single boxes in MOT format (https://github.com/opencv/cvat/pull/1764)
2021
- [Datumaro] Added `stats` command, which shows some dataset statistics like image mean and std (https://github.com/opencv/cvat/pull/1734)
2122
- Add option to upload annotations upon task creation on CLI

CONTRIBUTING.md

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ for development
7474
- [Debugger for Chrome](https://marketplace.visualstudio.com/items?itemName=msjsdiag.debugger-for-chrome)
7575
- [Python](https://marketplace.visualstudio.com/items?itemName=ms-python.python)
7676
- [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)
77+
- [Stylelint](https://marketplace.visualstudio.com/items?itemName=stylelint.vscode-stylelint)
7778
- [vscode-remark-lint](https://marketplace.visualstudio.com/items?itemName=drewbourne.vscode-remark-lint)
7879
- [licenser](https://marketplace.visualstudio.com/items?itemName=ymotongpoo.licenser)
7980
- [Trailing Spaces](https://marketplace.visualstudio.com/items?itemName=shardulm94.trailing-spaces)

cvat-canvas/src/scss/canvas.scss

+35-13
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ polyline.cvat_shape_drawing_opacity {
4242
fill: white;
4343
cursor: default;
4444
font-family: Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif;
45-
text-shadow: 0px 0px 4px black;
45+
text-shadow: 0 0 4px black;
4646
user-select: none;
4747
pointer-events: none;
4848
}
@@ -54,47 +54,55 @@ polyline.cvat_shape_drawing_opacity {
5454
.cvat_canvas_shape_grouping {
5555
@extend .cvat_shape_action_dasharray;
5656
@extend .cvat_shape_action_opacity;
57+
5758
fill: darkmagenta;
5859
}
5960

6061
polyline.cvat_canvas_shape_grouping {
6162
@extend .cvat_shape_action_dasharray;
6263
@extend .cvat_shape_action_opacity;
64+
6365
stroke: darkmagenta;
6466
}
6567

6668
.cvat_canvas_shape_merging {
6769
@extend .cvat_shape_action_dasharray;
6870
@extend .cvat_shape_action_opacity;
71+
6972
fill: blue;
7073
}
7174

7275
polyline.cvat_canvas_shape_merging {
7376
@extend .cvat_shape_action_dasharray;
7477
@extend .cvat_shape_action_opacity;
78+
7579
stroke: blue;
7680
}
7781

7882
polyline.cvat_canvas_shape_splitting {
7983
@extend .cvat_shape_action_dasharray;
8084
@extend .cvat_shape_action_opacity;
85+
8186
stroke: dodgerblue;
8287
}
8388

8489
.cvat_canvas_shape_splitting {
8590
@extend .cvat_shape_action_dasharray;
8691
@extend .cvat_shape_action_opacity;
92+
8793
fill: dodgerblue;
8894
}
8995

9096
.cvat_canvas_shape_drawing {
9197
@extend .cvat_shape_drawing_opacity;
98+
9299
fill: white;
93100
stroke: black;
94101
}
95102

96103
.cvat_canvas_zoom_selection {
97104
@extend .cvat_shape_action_dasharray;
105+
98106
stroke: #096dd9;
99107
fill-opacity: 0;
100108
}
@@ -103,7 +111,8 @@ polyline.cvat_canvas_shape_splitting {
103111
stroke-dasharray: 5;
104112
}
105113

106-
.cvat_canvas_shape .svg_select_points, .cvat_canvas_shape .cvat_canvas_cuboid_projections {
114+
.cvat_canvas_shape .svg_select_points,
115+
.cvat_canvas_shape .cvat_canvas_cuboid_projections {
107116
stroke-dasharray: none;
108117
}
109118

@@ -130,20 +139,24 @@ polyline.cvat_canvas_shape_splitting {
130139
pointer-events: none;
131140
}
132141

133-
.svg_select_points_lb:hover, .svg_select_points_rt:hover {
142+
.svg_select_points_lb:hover,
143+
.svg_select_points_rt:hover {
134144
cursor: nesw-resize;
135145
}
136146

137-
.svg_select_points_lt:hover, .svg_select_points_rb:hover {
147+
.svg_select_points_lt:hover,
148+
.svg_select_points_rb:hover {
138149
cursor: nwse-resize;
139150
}
140151

141-
.svg_select_points_l:hover, .svg_select_points_r:hover,
152+
.svg_select_points_l:hover,
153+
.svg_select_points_r:hover,
142154
.svg_select_points_ew:hover {
143155
cursor: ew-resize;
144156
}
145157

146-
.svg_select_points_t:hover, .svg_select_points_b:hover {
158+
.svg_select_points_t:hover,
159+
.svg_select_points_b:hover {
147160
cursor: ns-resize;
148161
}
149162

@@ -202,7 +215,6 @@ polyline.cvat_canvas_shape_splitting {
202215
pointer-events: none;
203216
width: 100%;
204217
height: 100%;
205-
pointer-events: none;
206218
}
207219

208220
#cvat_canvas_background {
@@ -211,7 +223,7 @@ polyline.cvat_canvas_shape_splitting {
211223
background-repeat: no-repeat;
212224
width: 100%;
213225
height: 100%;
214-
box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.75);
226+
box-shadow: 2px 2px 5px 0 rgba(0, 0, 0, 0.75);
215227
}
216228

217229
#cvat_canvas_bitmap {
@@ -221,7 +233,7 @@ polyline.cvat_canvas_shape_splitting {
221233
background: black;
222234
width: 100%;
223235
height: 100%;
224-
box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.75);
236+
box-shadow: 2px 2px 5px 0 rgba(0, 0, 0, 0.75);
225237
}
226238

227239
#cvat_canvas_grid {
@@ -230,7 +242,6 @@ polyline.cvat_canvas_shape_splitting {
230242
pointer-events: none;
231243
width: 100%;
232244
height: 100%;
233-
pointer-events: none;
234245
}
235246

236247
#cvat_canvas_grid_pattern {
@@ -248,7 +259,18 @@ polyline.cvat_canvas_shape_splitting {
248259
}
249260

250261
@keyframes loadingAnimation {
251-
0% {stroke-dashoffset: 1; stroke: #09c;}
252-
50% {stroke-dashoffset: 100; stroke: #f44;}
253-
100% {stroke-dashoffset: 300; stroke: #09c;}
262+
0% {
263+
stroke-dashoffset: 1;
264+
stroke: #09c;
265+
}
266+
267+
50% {
268+
stroke-dashoffset: 100;
269+
stroke: #f44;
270+
}
271+
272+
100% {
273+
stroke-dashoffset: 300;
274+
stroke: #09c;
275+
}
254276
}

cvat-core/src/enums.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,11 @@
224224
* @readonly
225225
*/
226226
const colors = [
227-
'#FF355E', '#E936A7', '#FD5B78', '#FF007C', '#FF00CC', '#66FF66',
228-
'#50BFE6', '#CCFF00', '#FFFF66', '#FF9966', '#FF6037', '#FFCC33',
229-
'#AAF0D1', '#FF3855', '#FFF700', '#A7F432', '#FF5470', '#FAFA37',
230-
'#FF7A00', '#FF9933', '#AFE313', '#00CC99', '#FF5050', '#733380',
227+
'#33ddff', '#fa3253', '#34d1b7', '#ff007c', '#ff6037', '#ddff33',
228+
'#24b353', '#b83df5', '#66ff66', '#32b7fa', '#ffcc33', '#83e070',
229+
'#fafa37', '#5986b3', '#8c78f0', '#ff6a4d', '#f078f0', '#2a7dd1',
230+
'#b25050', '#cc3366', '#cc9933', '#aaf0d1', '#ff00cc', '#3df53d',
231+
'#fa32b7', '#fa7dbb', '#ff355e', '#f59331', '#3d3df5', '#733380',
231232
];
232233

233234
module.exports = {

cvat-ui/src/base.scss

+13-13
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,26 @@
22
//
33
// SPDX-License-Identifier: MIT
44

5-
$header-color: #D8D8D8;
5+
$header-color: #d8d8d8;
66
$text-color: #303030;
7-
$hover-menu-color: rgba(24,144,255,0.05);
8-
$completed-progress-color: #61C200;
9-
$inprogress-progress-color: #1890FF;
10-
$pending-progress-color: #C1C1C1;
7+
$hover-menu-color: rgba(24, 144, 255, 0.05);
8+
$completed-progress-color: #61c200;
9+
$inprogress-progress-color: #1890ff;
10+
$pending-progress-color: #c1c1c1;
1111
$border-color-1: #c3c3c3;
1212
$border-color-2: #d9d9d9;
1313
$border-color-3: #242424;
1414
$border-color-hover: #40a9ff;
1515
$background-color-1: white;
16-
$background-color-2: #F1F1F1;
16+
$background-color-2: #f1f1f1;
1717
$transparent-color: rgba(0, 0, 0, 0);
1818
$player-slider-color: #979797;
1919
$player-buttons-color: #242424;
20-
$danger-icon-color: #FF4136;
21-
$info-icon-color: #0074D9;
22-
$objects-bar-tabs-color: #BEBEBE;
23-
$objects-bar-icons-color: #242424; // #6E6E6E
24-
$active-object-item-background-color: #D8ECFF;
25-
$slider-color: #1890FF;
20+
$danger-icon-color: #ff4136;
21+
$info-icon-color: #0074d9;
22+
$objects-bar-tabs-color: #bebebe;
23+
$objects-bar-icons-color: #242424; // #6e6e6e
24+
$active-object-item-background-color: #d8ecff;
25+
$slider-color: #1890ff;
2626

27-
$monospaced-fonts-stack: Consolas,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New, monospace;
27+
$monospaced-fonts-stack: Consolas, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace;

cvat-ui/src/components/actions-menu/styles.scss

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
@import '../../base.scss';
66

77
.ant-menu.cvat-actions-menu {
8-
box-shadow: 0 0 17px rgba(0,0,0,0.2);
8+
box-shadow: 0 0 17px rgba(0, 0, 0, 0.2);
99

1010
> li:hover {
1111
background-color: $hover-menu-color;
1212
}
1313

1414
.ant-menu-submenu-title {
15-
margin: 0px;
15+
margin: 0;
1616
width: 13em;
1717
}
1818
}
@@ -30,10 +30,10 @@
3030
}
3131

3232
.ant-menu-item.cvat-menu-load-submenu-item {
33-
margin: 0px;
34-
padding: 0px;
33+
margin: 0;
34+
padding: 0;
3535

36-
> span > .ant-upload {
36+
> span > .ant-upload {
3737
width: 100%;
3838
height: 100%;
3939

cvat-ui/src/components/annotation-page/attribute-annotation-workspace/styles.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
align-items: center;
3737
justify-content: space-between;
3838
font-size: 18px;
39-
margin: 10px 0px;
39+
margin: 10px 0;
4040
}
4141

4242
.attribute-annotations-sidebar-not-found-wrapper {
@@ -45,7 +45,7 @@
4545
}
4646

4747
.attribute-annotation-sidebar-attr-list-wrapper {
48-
margin: 10px 0px 10px 10px;
48+
margin: 10px 0 10px 10px;
4949
}
5050

5151
.attribute-annotation-sidebar-attr-elem-wrapper {

0 commit comments

Comments
 (0)