Skip to content

Commit

Permalink
Merge pull request Expensify#53554 from twilight2294/cameraFlash
Browse files Browse the repository at this point in the history
Tweak camera flash control to make it more obvious
  • Loading branch information
mountiny authored Dec 6, 2024
2 parents 2c3f9eb + 6e2eb15 commit 7d42188
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 5 deletions.
9 changes: 9 additions & 0 deletions assets/images/bolt-slash.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion assets/images/bolt.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/components/Icon/Expensicons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import Bell from '@assets/images/bell.svg';
import BellSlash from '@assets/images/bellSlash.svg';
import Bill from '@assets/images/bill.svg';
import Binoculars from '@assets/images/binoculars.svg';
import boltSlash from '@assets/images/bolt-slash.svg';
import Bolt from '@assets/images/bolt.svg';
import Bookmark from '@assets/images/bookmark.svg';
import Box from '@assets/images/box.svg';
Expand Down Expand Up @@ -412,4 +413,5 @@ export {
Star,
QBDSquare,
GalleryNotFound,
boltSlash,
};
Original file line number Diff line number Diff line change
Expand Up @@ -684,8 +684,8 @@ function IOURequestStepScan({
<Icon
height={32}
width={32}
src={Expensicons.Bolt}
fill={flash ? theme.iconHovered : theme.textSupporting}
src={flash ? Expensicons.Bolt : Expensicons.boltSlash}
fill={theme.textSupporting}
/>
</PressableWithFeedback>
)}
Expand Down
4 changes: 2 additions & 2 deletions src/pages/iou/request/step/IOURequestStepScan/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -715,8 +715,8 @@ function IOURequestStepScan({
<Icon
height={32}
width={32}
src={Expensicons.Bolt}
fill={isFlashLightOn ? theme.iconHovered : theme.textSupporting}
src={isFlashLightOn ? Expensicons.Bolt : Expensicons.boltSlash}
fill={theme.textSupporting}
/>
</PressableWithFeedback>
</View>
Expand Down

0 comments on commit 7d42188

Please sign in to comment.