Commit 25ecf3b 1 parent 8ddf0c8 commit 25ecf3b Copy full SHA for 25ecf3b
File tree 7 files changed +57
-35
lines changed
applications/editor/components
7 files changed +57
-35
lines changed Original file line number Diff line number Diff line change 188
188
"toggle-layers" : " Choose the types of elements to display" ,
189
189
"osrd-layers" : " Data layers" ,
190
190
"speed-limits" : " Speed limits" ,
191
- "map-layers" : " Map layers "
191
+ "map-layers" : " Map settings "
192
192
},
193
193
"obj-types" : {
194
194
"BufferStop" : " Buffer stop" ,
Original file line number Diff line number Diff line change 188
188
"toggle-layers" : " Choisir les types d'éléments à afficher" ,
189
189
"osrd-layers" : " Couches de données" ,
190
190
"speed-limits" : " Limitations de vitesse" ,
191
- "map-layers" : " Couches cartographiques"
191
+ "map-layers" : " Paramètres cartographiques"
192
192
},
193
193
"obj-types" : {
194
194
"BufferStop" : " Heurtoir" ,
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import { getMap } from 'reducers/map/selectors';
23
23
import { getInfraID } from 'reducers/osrdconf/selectors' ;
24
24
import { osrdEditoastApi } from 'common/api/osrdEditoastApi' ;
25
25
import { updateLayersSettings } from 'reducers/map' ;
26
+ import MapSettingsMapStyle from 'common/Map/Settings/MapSettingsMapStyle' ;
26
27
27
28
export const LAYERS : Array < { layers : LayerType [ ] ; icon : string | JSX . Element } > = [
28
29
{ layers : [ 'track_sections' ] , icon : trackSectionsIcon } ,
@@ -198,6 +199,7 @@ const LayersModal: FC<LayersModalProps> = ({
198
199
< div >
199
200
< h4 > { t ( 'Editor.nav.map-layers' ) } </ h4 >
200
201
</ div >
202
+ < MapSettingsMapStyle />
201
203
< MapSettingsBackgroundSwitches />
202
204
</ div >
203
205
Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ const colors: Record<string, Theme> = {
23
23
electricbox : {
24
24
text : '#b42222' ,
25
25
} ,
26
+ error : {
27
+ color : '#ff0000' ,
28
+ text : '#ff0000' ,
29
+ } ,
26
30
kp : {
27
31
circle : '#162873' ,
28
32
text : '#4d4f53' ,
@@ -143,10 +147,6 @@ const colors: Record<string, Theme> = {
143
147
color : '#4b4b4b' ,
144
148
text : '#164721' ,
145
149
} ,
146
- error : {
147
- color : '#ff0000' ,
148
- text : '#ff0000' ,
149
- } ,
150
150
warning : {
151
151
color : '#FF8C00' ,
152
152
text : '#FF8C00' ,
@@ -175,6 +175,10 @@ const colors: Record<string, Theme> = {
175
175
electricbox : {
176
176
text : '#b42222' ,
177
177
} ,
178
+ error : {
179
+ color : '#ff0000' ,
180
+ text : '#ff0000' ,
181
+ } ,
178
182
kp : {
179
183
circle : '#8338ec' ,
180
184
text : '#8338ec' ,
@@ -295,6 +299,10 @@ const colors: Record<string, Theme> = {
295
299
color : '#ffbe0b' ,
296
300
text : '#ffbe0b' ,
297
301
} ,
302
+ warning : {
303
+ color : '#FF8C00' ,
304
+ text : '#FF8C00' ,
305
+ } ,
298
306
} ,
299
307
/* ***************************************************************************
300
308
*
@@ -319,6 +327,10 @@ const colors: Record<string, Theme> = {
319
327
electricbox : {
320
328
text : bpLight ,
321
329
} ,
330
+ error : {
331
+ color : '#ff0000' ,
332
+ text : '#ff0000' ,
333
+ } ,
322
334
kp : {
323
335
circle : bpLight ,
324
336
text : bpLight ,
@@ -439,6 +451,10 @@ const colors: Record<string, Theme> = {
439
451
color : bpMedium ,
440
452
text : bpMedium ,
441
453
} ,
454
+ warning : {
455
+ color : '#FF8C00' ,
456
+ text : '#FF8C00' ,
457
+ } ,
442
458
} ,
443
459
/* ***************************************************************************
444
460
*
@@ -463,6 +479,10 @@ const colors: Record<string, Theme> = {
463
479
electricbox : {
464
480
text : '#b42222' ,
465
481
} ,
482
+ error : {
483
+ color : '#ff0000' ,
484
+ text : '#ff0000' ,
485
+ } ,
466
486
kp : {
467
487
circle : '#162873' ,
468
488
text : '#4d4f53' ,
@@ -583,10 +603,6 @@ const colors: Record<string, Theme> = {
583
603
color : '#4b4b4b' ,
584
604
text : '#164721' ,
585
605
} ,
586
- error : {
587
- color : '#ff0000' ,
588
- text : '#ff0000' ,
589
- } ,
590
606
warning : {
591
607
color : '#FF8C00' ,
592
608
text : '#FF8C00' ,
Original file line number Diff line number Diff line change 33
33
@media screen and (min-width : 640px ) {
34
34
max-width : 50% ;
35
35
}
36
- button .mapstyle-style-select {
37
- border : none ;
38
- background-color : #f2f2f2 ;
39
- padding : 0 ;
40
- display : flex ;
41
- align-items : center ;
42
- text-align : left ;
43
- border-radius : 8px ;
44
- margin-right : 1rem ;
45
- padding-right : 0.5rem ;
46
- img {
47
- width : 5rem ;
48
- border-radius : 8px 0 0 8px ;
49
- margin-right : 0.5rem ;
50
- }
51
- font-size : 0.9rem ;
52
- & :hover ,
53
- & .active {
54
- background-color : #333 ;
55
- color : #fff ;
56
- }
57
- }
58
-
59
36
.sub-section-title {
60
37
cursor : pointer ;
61
38
i {
122
99
border-color : var (--coolgray13 );
123
100
}
124
101
}
102
+
103
+ .mapstyle {
104
+ button .mapstyle-style-select {
105
+ border : none ;
106
+ background-color : #f2f2f2 ;
107
+ padding : 0 ;
108
+ display : flex ;
109
+ align-items : center ;
110
+ text-align : left ;
111
+ border-radius : 8px ;
112
+ margin-right : 1rem ;
113
+ padding-right : 0.5rem ;
114
+ img {
115
+ width : 5rem ;
116
+ border-radius : 8px 0 0 8px ;
117
+ margin-right : 0.5rem ;
118
+ }
119
+ font-size : 0.9rem ;
120
+ & :hover ,
121
+ & .active {
122
+ background-color : #333 ;
123
+ color : #fff ;
124
+ }
125
+ }
126
+ }
127
+
125
128
.map-search-marker {
126
129
/* Circle center */
127
130
margin-left : -16px ;
Original file line number Diff line number Diff line change 1
1
import React , { FC , useState } from 'react' ;
2
+ import { useTranslation } from 'react-i18next' ;
3
+
2
4
import MapSettingsLayers from 'common/Map/Settings/MapSettingsLayers' ;
3
5
import MapSettingsMapStyle from 'common/Map/Settings/MapSettingsMapStyle' ;
4
6
import MapSettingsBackgroundSwitches from 'common/Map/Settings/MapSettingsBackgroundSwitches' ;
5
7
import MapSettingsSpeedLimits from 'common/Map/Settings/MapSettingsSpeedLimits' ;
6
- import { useTranslation } from 'react-i18next' ;
7
8
import HearderPopUp from '../HeaderPopUp' ;
8
9
9
10
interface MapSettingsProps {
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ const MapSettingsMapStyle: FC<unknown> = () => {
16
16
const dispatch = useDispatch ( ) ;
17
17
18
18
return (
19
- < div className = "row ml-1" >
19
+ < div className = "row ml-1 mapstyle " >
20
20
< button
21
21
className = { cx ( 'col-xs-4 mb-2 mapstyle-style-select' , mapStyle === 'normal' && 'active' ) }
22
22
type = "button"
You can’t perform that action at this time.
0 commit comments