Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | import React from "react"; import { SongMetadataEditor } from "components/music/sidebar/SongMetadataEditor"; import { Button } from "ui/buttons/Button"; import { CaretRightIcon, HelpIcon, UndoIcon } from "ui/icons/Icons"; import { useAppDispatch, useAppSelector } from "store/hooks"; import trackerActions from "store/features/tracker/trackerActions"; import styled from "styled-components"; import { FormDivider, FormRow } from "ui/form/layout/FormLayout"; import { Label } from "ui/form/Label"; import l10n from "shared/lib/lang/l10n"; import { FixedSpacer, FlexGrow } from "ui/spacing/Spacing"; import { TRACKER_UNDO } from "consts"; import { StyledMobileListMenu, StyledMobileListMenuItem, StyledMobileListMenuCaret, } from "gbs-music-web/components/ui/style"; import { MusicWebViewSelect } from "gbs-music-web/components/MusicWebViewSelect"; const StyledViewSelection = styled.div` padding-top: 10px; width: 100%; `; const StyledHelpButton = styled.a` user-select: none; display: inline-flex; justify-content: center; align-items: center; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: ${(props) => props.theme.typography.fontSize}; border-radius: ${(props) => props.theme.borderRadius}px; height: 28px; min-width: 24px; white-space: nowrap; padding: 0px 10px; box-sizing: border-box; font-weight: normal; border-width: 1px; overflow: hidden; flex-shrink: 0; background: transparent; border-color: transparent; color: ${(props) => props.theme.colors.button.text}; min-width: 32px; height: 38px; margin-bottom: 10px; text-decoration: none; svg { height: 17px; width: 17px; max-width: 100%; max-height: 100%; min-width: 17px; fill: ${(props) => props.theme.colors.button.text}; } `; export const MusicWebSettingPane = () => { const dispatch = useAppDispatch(); const hasSong = useAppSelector( (state) => !!state.trackerDocument.present.song, ); Iif (!hasSong) { return null; } return ( <div> <SongMetadataEditor /> <StyledViewSelection> <FormRow> <Label>{l10n("MENU_VIEW")}</Label> </FormRow> <FormRow> <MusicWebViewSelect /> </FormRow> </StyledViewSelection> <FormDivider /> <StyledMobileListMenu> <StyledMobileListMenuItem onClick={() => { dispatch(trackerActions.setMobileOverlayView("instrumentsList")); }} > <span>{l10n("FIELD_EDIT_INSTRUMENTS")}</span> <StyledMobileListMenuCaret> <CaretRightIcon /> </StyledMobileListMenuCaret> </StyledMobileListMenuItem> <StyledMobileListMenuItem onClick={() => { dispatch(trackerActions.setMobileOverlayView("sequence")); }} > <span>{l10n("FIELD_EDIT_PATTERN_ORDER")}</span> <StyledMobileListMenuCaret> <CaretRightIcon /> </StyledMobileListMenuCaret> </StyledMobileListMenuItem> </StyledMobileListMenu> <FixedSpacer height={10} /> <FormDivider /> <FormRow> <StyledHelpButton href="https://www.gbstudio.dev/docs/assets/music/music-huge" target="_blank" rel="noreferrer" > <HelpIcon /> <FixedSpacer width={10} /> {l10n("MENU_HELP")} </StyledHelpButton> <FlexGrow /> <Button variant="transparent" onClick={() => { dispatch({ type: TRACKER_UNDO }); dispatch(trackerActions.setMobileOverlayView("none")); }} > <UndoIcon /> <FixedSpacer width={10} /> {l10n("MENU_UNDO")} </Button> </FormRow> </div> ); }; |