forked from MapComplete/MapComplete
new color and icon for navigation
This commit is contained in:
parent
bd1b29e344
commit
3a16518bcb
2 changed files with 5 additions and 5 deletions
|
@ -202,7 +202,7 @@ export class InitUiElements {
|
|||
|
||||
const plus = new MapControlButton(
|
||||
new CenterFlexedElement(
|
||||
Img.AsImageElement(Svg.plus_zoom, "", "width:1.5rem;height:1.5rem")
|
||||
Img.AsImageElement(Svg.plus_zoom, "", "width:1.25rem;height:1.25rem")
|
||||
)
|
||||
).onClick(() => {
|
||||
State.state.locationControl.data.zoom++;
|
||||
|
@ -211,7 +211,7 @@ export class InitUiElements {
|
|||
|
||||
const min = new MapControlButton(
|
||||
new CenterFlexedElement(
|
||||
Img.AsImageElement(Svg.min_zoom, "", "width:1.5rem;height:1.5rem")
|
||||
Img.AsImageElement(Svg.min_zoom, "", "width:1.25rem;height:1.25rem")
|
||||
)
|
||||
).onClick(() => {
|
||||
State.state.locationControl.data.zoom--;
|
||||
|
|
|
@ -73,16 +73,16 @@ export default class GeoLocationHandler extends VariableUiElement {
|
|||
(hasLocation) => {
|
||||
if (hasLocation) {
|
||||
return new CenterFlexedElement(
|
||||
Img.AsImageElement(Svg.location, "", "width:1.5rem;height:1.5rem")
|
||||
Img.AsImageElement(Svg.location, "", "width:1.25rem;height:1.25rem")
|
||||
); // crosshair_blue_ui()
|
||||
}
|
||||
if (isActive.data) {
|
||||
return new CenterFlexedElement(
|
||||
Img.AsImageElement(Svg.location, "", "width:1.5rem;height:1.5rem")
|
||||
Img.AsImageElement(Svg.location, "", "width:1.25rem;height:1.25rem")
|
||||
); // crosshair_blue_center_ui
|
||||
}
|
||||
return new CenterFlexedElement(
|
||||
Img.AsImageElement(Svg.location, "", "width:1.5rem;height:1.5rem")
|
||||
Img.AsImageElement(Svg.location, "", "width:1.25rem;height:1.25rem")
|
||||
); //crosshair_ui
|
||||
},
|
||||
[isActive]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue