mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-15 04:09:14 +00:00
feat: enhance the Dark Theme (#336)
This commit is contained in:
@@ -74,7 +74,7 @@ limitations under the License. -->
|
||||
},
|
||||
};
|
||||
});
|
||||
const color: string[] = chartColors(keys);
|
||||
const color: string[] = chartColors();
|
||||
return {
|
||||
color,
|
||||
tooltip: {
|
||||
|
@@ -92,7 +92,7 @@ limitations under the License. -->
|
||||
}
|
||||
return serie;
|
||||
});
|
||||
const color: string[] = chartColors(keys);
|
||||
const color: string[] = chartColors();
|
||||
const tooltip = {
|
||||
trigger: "axis",
|
||||
backgroundColor: appStore.theme === Themes.Dark ? "#333" : "#fff",
|
||||
|
@@ -111,9 +111,8 @@ limitations under the License. -->
|
||||
const isRight = computed(() => useLegendProcess(props.config).isRight);
|
||||
const width = computed(() => (props.config.width ? props.config.width + "px" : isRight.value ? "150px" : "100%"));
|
||||
const colors = computed(() => {
|
||||
const keys = Object.keys(props.data || {}).filter((i: any) => Array.isArray(props.data[i]) && props.data[i].length);
|
||||
const { chartColors } = useLegendProcess(props.config);
|
||||
return chartColors(keys);
|
||||
return chartColors();
|
||||
});
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
|
Reference in New Issue
Block a user