mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
feat(theming): land Ant Design v5 overhaul — dynamic themes, real dark mode + massive styling refactor (#31590)
Co-authored-by: Enzo Martellucci <52219496+EnxDev@users.noreply.github.com> Co-authored-by: Diego Pucci <diegopucci.me@gmail.com> Co-authored-by: Mehmet Salih Yavuz <salih.yavuz@proton.me> Co-authored-by: Geido <60598000+geido@users.noreply.github.com> Co-authored-by: Alexandru Soare <37236580+alexandrusoare@users.noreply.github.com> Co-authored-by: Damian Pendrak <dpendrak@gmail.com> Co-authored-by: Pius Iniobong <67148161+payose@users.noreply.github.com> Co-authored-by: Enzo Martellucci <enzomartellucci@gmail.com> Co-authored-by: Kamil Gabryjelski <kamil.gabryjelski@gmail.com>
This commit is contained in:
committed by
GitHub
parent
2cc1ef88c8
commit
dd129fa403
@@ -220,10 +220,10 @@ export default function transformProps(
|
||||
});
|
||||
const minShowLabelAngle = (showLabelsThreshold || 0) * 3.6;
|
||||
const padding = {
|
||||
top: theme.gridUnit * 3,
|
||||
right: theme.gridUnit,
|
||||
bottom: theme.gridUnit * 3,
|
||||
left: theme.gridUnit,
|
||||
top: theme.sizeUnit * 3,
|
||||
right: theme.sizeUnit,
|
||||
bottom: theme.sizeUnit * 3,
|
||||
left: theme.sizeUnit,
|
||||
};
|
||||
const containerWidth = width;
|
||||
const containerHeight = height;
|
||||
@@ -274,7 +274,11 @@ export default function transformProps(
|
||||
} else {
|
||||
linearColorScale(totalSecondaryValue / totalValue);
|
||||
}
|
||||
|
||||
const labelProps = {
|
||||
color: theme.colorText,
|
||||
textBorderColor: theme.colorBgBase,
|
||||
textBorderWidth: 1,
|
||||
};
|
||||
const traverse = (
|
||||
treeNodes: TreeNode[],
|
||||
path: string[],
|
||||
@@ -316,7 +320,7 @@ export default function transformProps(
|
||||
opacity: OpacityEnum.SemiTransparent,
|
||||
},
|
||||
label: {
|
||||
color: `rgba(0, 0, 0, ${OpacityEnum.SemiTransparent})`,
|
||||
...labelProps,
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -356,10 +360,10 @@ export default function transformProps(
|
||||
},
|
||||
},
|
||||
label: {
|
||||
...labelProps,
|
||||
width: (radius * 0.6) / (columns.length || 1),
|
||||
show: showLabels,
|
||||
formatter,
|
||||
color: theme.colors.grayscale.dark2,
|
||||
minAngle: minShowLabelAngle,
|
||||
overflow: 'breakAll',
|
||||
},
|
||||
@@ -381,7 +385,6 @@ export default function transformProps(
|
||||
}
|
||||
: null,
|
||||
};
|
||||
|
||||
return {
|
||||
formData,
|
||||
width,
|
||||
|
||||
Reference in New Issue
Block a user