Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
belinde committed May 3, 2024
1 parent d4b7147 commit 4efefa7
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 16 deletions.
Binary file modified assets/adaptive-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 22 additions & 13 deletions assets/source_icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/components/InitialNoteForm/SectionSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,33 +41,39 @@ export const SectionSelector: FC<{
<RadioButton.Item
value="tenori"
label="Tenori"
accessibilityLabel="Tenori"
style={style.compact}
/>
<RadioButton.Item
value="baritoni"
label="Baritoni"
accessibilityLabel="Baritoni"
style={style.compact}
/>
<RadioButton.Item
value="bassi"
label="Bassi"
accessibilityLabel="Bassi"
style={style.compact}
/>
</View>
<View style={style.sectionColumn}>
<RadioButton.Item
value="soprani"
label="Soprani"
accessibilityLabel="Soprani"
style={style.compact}
/>
<RadioButton.Item
value="mezzosoprani"
label="Mezzosoprani"
accessibilityLabel="Mezzosoprani"
style={style.compact}
/>
<RadioButton.Item
value="contralti"
label="Contralti"
accessibilityLabel="Contralti"
style={style.compact}
/>
</View>
Expand Down
2 changes: 2 additions & 0 deletions src/components/PlayNote.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ export const PlayNote: FC<{ note: Note }> = (props) => {
<IconButton
mode="outlined"
icon="volume-high"
aria-label="Suona nota"
accessibilityLabel="Suona nota"
onPressIn={() => {
sound.current?.playAsync();
}}
Expand Down
2 changes: 1 addition & 1 deletion src/components/SongForm/SongPhotoManagement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const SongPhotoManagement: FC<{
skipProcessing: true,
})
.then(async (picture) => {
if (picture) {
if (picture && picture.height > 0 && picture.width > 0) {
const cropped = await manipulateAsync(
picture.uri,
[
Expand Down
9 changes: 7 additions & 2 deletions src/pages/Library/ListSongsMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,15 @@ export const ListSongsMenu: FC = () => {

return (
<>
<IconButton icon="qrcode-scan" onPress={showScanner} />
<IconButton
icon="qrcode-scan"
onPress={showScanner}
accessibilityLabel="Scansiona QR code"
aria-label="Scansiona QR code"
/>
<Portal>
<Dialog visible={visible} onDismiss={() => setVisible(false)}>
<Dialog.Title>Scansiona QR</Dialog.Title>
<Dialog.Title>Scansiona QR code</Dialog.Title>
<Dialog.Content style={{ height: width }}>
<CameraView
barcodeScannerSettings={{ barcodeTypes: ["qr"] }}
Expand Down

0 comments on commit 4efefa7

Please sign in to comment.