Revize f22a2126
Přidáno uživatelem Michal Schwob před více než 1 rok
src/components/plan/CastlePlanView.tsx | ||
---|---|---|
291 | 291 |
borderWidth={fullScreenMode ? 0 : 1} |
292 | 292 |
> |
293 | 293 |
{/* control panel */} |
294 |
<Flex direction="row" alignItems="center" justify="flex-end" style={{ height: 50, width: 100, top: fullScreenMode ? 10 : 0, right: fullScreenMode ? 20 : 15, position: "absolute", zIndex: 5 }}>
|
|
295 |
<Pressable padding={1.5} backgroundColor={"#654B07"} borderRadius={5} marginRight={selectedRoom ? 1 : -2} onPress={handleFullScreenPressed}>
|
|
294 |
<Flex direction="row" alignItems="center" justify="flex-end" style={{ height: 50, width: 100, top: fullScreenMode ? 30 : 0, right: fullScreenMode ? 20 : 15, position: "absolute", zIndex: 5 }}>
|
|
295 |
<Pressable padding={1.5} backgroundColor={"primary.500"} borderRadius={5} marginRight={selectedRoom ? 1 : -2} onPress={handleFullScreenPressed}>
|
|
296 | 296 |
<FullscreenIcon color="white" /> |
297 | 297 |
</Pressable> |
298 | 298 |
{ |
299 | 299 |
selectedRoom && |
300 |
<Pressable padding={1.5} backgroundColor={"#654B07"} borderRadius={5} marginRight={-2} onPress={() => { zoomToRoom(selectedRoom) }}>
|
|
300 |
<Pressable padding={1.5} backgroundColor={"primary.500"} borderRadius={5} marginRight={-2} onPress={() => { zoomToRoom(selectedRoom) }}>
|
|
301 | 301 |
<ExitfullscreenIcon color="white" /> |
302 | 302 |
</Pressable> |
303 | 303 |
} |
... | ... | |
354 | 354 |
<Path |
355 | 355 |
id={"roomList_" + index.toString()} |
356 | 356 |
d={room.svg_path} // The path data defining the shape of the room |
357 |
fill={selectedRoom && room.id == selectedRoom.id ? "#E6F7FF" : "white"} // Fill the room shape with no color
|
|
357 |
fill={selectedRoom && room.id == selectedRoom.id ? "primary.100" : "white"} // Fill the room shape with no color
|
|
358 | 358 |
stroke="#66B2FF" // Outline color |
359 |
strokeWidth={0.3} // Outline width
|
|
359 |
strokeWidth={1.0} // Outline width
|
|
360 | 360 |
fillOpacity={selectedRoom && room.id == selectedRoom.id ? 1 : 0.2} |
361 | 361 |
/> |
362 | 362 |
) |
Také k dispozici: Unified diff
FIX: colors fix
re #10896