You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

styles.ts 730B

1234567891011121314151617181920212223242526
  1. import { Theme } from '@mui/material';
  2. /**
  3. * The vertical padding for the display name.
  4. */
  5. export const DISPLAY_NAME_VERTICAL_PADDING = 4;
  6. /**
  7. * Returns the typography for stage participant display name badge.
  8. *
  9. * @param {Theme} theme - The current theme.
  10. * @returns {ITypographyType}
  11. */
  12. export function getStageParticipantTypography(theme: Theme) {
  13. return theme.typography.bodyShortRegularLarge;
  14. }
  15. /**
  16. * Returns the height + padding for stage participant display name badge.
  17. *
  18. * @param {Theme} theme - The current theme.
  19. * @returns {number}
  20. */
  21. export function getStageParticipantNameLabelHeight(theme: Theme) {
  22. return getStageParticipantTypography(theme).lineHeight ?? 0 + DISPLAY_NAME_VERTICAL_PADDING;
  23. }