Skip to content
Snippets Groups Projects
Commit 89235726 authored by Chris Beer's avatar Chris Beer
Browse files

Name Window slots

parent 589a51eb
No related branches found
No related tags found
1 merge request!19Draft: Merge video support into mui5
...@@ -26,7 +26,7 @@ const columnMixin = { ...@@ -26,7 +26,7 @@ const columnMixin = {
minHeight: 0, minHeight: 0,
}; };
const Root = styled(Paper)(({ ownerState, theme }) => ({ const Root = styled(Paper, { name: 'Window', slot: 'root' })(({ ownerState, theme }) => ({
...columnMixin, ...columnMixin,
backgroundColor: theme.palette.shades?.dark, backgroundColor: theme.palette.shades?.dark,
borderRadius: 0, borderRadius: 0,
...@@ -41,27 +41,27 @@ const Root = styled(Paper)(({ ownerState, theme }) => ({ ...@@ -41,27 +41,27 @@ const Root = styled(Paper)(({ ownerState, theme }) => ({
}), }),
})); }));
const ContentRow = styled('div')(() => ({ const ContentRow = styled('div', { name: 'Window', slot: 'row' })(() => ({
...rowMixin, ...rowMixin,
})); }));
const ContentColumn = styled('div')(() => ({ const ContentColumn = styled('div', { name: 'Window', slot: 'column' })(() => ({
...columnMixin, ...columnMixin,
})); }));
const StyledPrimaryWindow = styled(PrimaryWindow)(() => ({ const StyledPrimaryWindow = styled(PrimaryWindow, { name: 'Window', slot: 'primary' })(() => ({
...rowMixin, ...rowMixin,
height: '300px', height: '300px',
position: 'relative', position: 'relative',
})); }));
const StyledCompanionAreaBottom = styled(CompanionArea)(() => ({ const StyledCompanionAreaBottom = styled(CompanionArea, { name: 'Window', slot: 'bottom' })(() => ({
...rowMixin, ...rowMixin,
flex: '0', flex: '0',
flexBasis: 'auto', flexBasis: 'auto',
})); }));
const StyledCompanionAreaRight = styled('div')(() => ({ const StyledCompanionAreaRight = styled('div', { name: 'Window', slot: 'right' })(() => ({
...rowMixin, ...rowMixin,
flex: '0 1 auto', flex: '0 1 auto',
})); }));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment