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:
@@ -375,7 +375,7 @@ limitations under the License. -->
|
||||
}
|
||||
|
||||
.vue-grid-item.active {
|
||||
border: 1px solid $active-color;
|
||||
border: 1px solid var(--sw-grid-item-active);
|
||||
}
|
||||
|
||||
.no-data-tips {
|
||||
|
@@ -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>
|
||||
|
@@ -91,7 +91,7 @@ limitations under the License. -->
|
||||
}
|
||||
|
||||
.vue-grid-item.active {
|
||||
border: 1px solid $active-color;
|
||||
border: 1px solid var(--sw-grid-item-active);
|
||||
}
|
||||
|
||||
.no-data-tips {
|
||||
|
@@ -44,6 +44,12 @@ limitations under the License. -->
|
||||
tooltip: {
|
||||
trigger: "item",
|
||||
confine: true,
|
||||
backgroundColor: appStore.theme === Themes.Dark ? "#333" : "#fff",
|
||||
borderColor: appStore.theme === Themes.Dark ? "#333" : "#fff",
|
||||
textStyle: {
|
||||
fontSize: 12,
|
||||
color: appStore.theme === Themes.Dark ? "#eee" : "#333",
|
||||
},
|
||||
},
|
||||
series: {
|
||||
type: "sankey",
|
||||
|
Reference in New Issue
Block a user