-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up ToobAmp log messages and rdf:comment's.
- Loading branch information
Showing
22 changed files
with
618 additions
and
382 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
|
||
import React, { ReactElement } from 'react'; | ||
import Tooltip from "@mui/material/Tooltip" | ||
import { UiControl } from './Lv2Plugin'; | ||
import Typography from "@mui/material/Typography"; | ||
import Divider from '@mui/material/Divider'; | ||
|
||
|
||
interface ControlTooltipProps { | ||
children: ReactElement, | ||
uiControl: UiControl | ||
} | ||
|
||
|
||
export default function ControlTooltip(props: ControlTooltipProps) { | ||
let { children, uiControl } = props; | ||
if (uiControl.comment && (uiControl.comment !== uiControl.name)) { | ||
return ( | ||
<Tooltip title={( | ||
<React.Fragment> | ||
<Typography variant="caption">{uiControl.name}</Typography> | ||
<Divider /> | ||
<Typography variant="caption">{uiControl.comment}</Typography> | ||
|
||
</React.Fragment> | ||
)} | ||
placement="top-start" arrow enterDelay={1500} enterNextDelay={1500} | ||
> | ||
{children} | ||
</Tooltip> | ||
); | ||
} else { | ||
return ( | ||
<Tooltip title={uiControl.name} | ||
placement="top-start" arrow enterDelay={1500} enterNextDelay={1500} | ||
> | ||
{children} | ||
</Tooltip> | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.