mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-12 15:52:57 +00:00
feat: update topology theme
This commit is contained in:
parent
ebbc71d3e9
commit
f95015ad02
@ -52,7 +52,7 @@ limitations under the License. -->
|
|||||||
<Icon iconName="retry" :loading="appStore.autoRefresh" class="middle" />
|
<Icon iconName="retry" :loading="appStore.autoRefresh" class="middle" />
|
||||||
</span>
|
</span>
|
||||||
<span class="ml-5">
|
<span class="ml-5">
|
||||||
<el-switch v-model="theme" active-text="D" inactive-text="L" size="small" inline-prompt @change="changeTheme" />
|
<el-switch v-model="theme" :active-icon="Moon" :inactive-icon="Sunny" inline-prompt @change="changeTheme" />
|
||||||
</span>
|
</span>
|
||||||
<span class="version ml-5 cp">
|
<span class="version ml-5 cp">
|
||||||
<el-popover trigger="hover" width="250" placement="bottom" :content="appStore.version">
|
<el-popover trigger="hover" width="250" placement="bottom" :content="appStore.version">
|
||||||
@ -77,7 +77,7 @@ limitations under the License. -->
|
|||||||
import { MetricCatalog } from "@/views/dashboard/data";
|
import { MetricCatalog } from "@/views/dashboard/data";
|
||||||
import type { DashboardItem } from "@/types/dashboard";
|
import type { DashboardItem } from "@/types/dashboard";
|
||||||
import router from "@/router";
|
import router from "@/router";
|
||||||
import { ArrowRight } from "@element-plus/icons-vue";
|
import { ArrowRight, Moon, Sunny } from "@element-plus/icons-vue";
|
||||||
|
|
||||||
/*global Indexable */
|
/*global Indexable */
|
||||||
const { t, te } = useI18n();
|
const { t, te } = useI18n();
|
||||||
|
@ -27,7 +27,6 @@ html {
|
|||||||
--border-color-primary: #eee;
|
--border-color-primary: #eee;
|
||||||
--layout-background: #f7f9fa;
|
--layout-background: #f7f9fa;
|
||||||
--box-shadow-color: #ccc;
|
--box-shadow-color: #ccc;
|
||||||
--el-border: 1px solid #000000;
|
|
||||||
--sw-bg-color-overlay: #fff;
|
--sw-bg-color-overlay: #fff;
|
||||||
--sw-border-color-light: #e4e7ed;
|
--sw-border-color-light: #e4e7ed;
|
||||||
--popper-hover-bg: #eee;
|
--popper-hover-bg: #eee;
|
||||||
@ -40,6 +39,9 @@ html {
|
|||||||
--sw-topology-operations-bg: #f7f9fa;
|
--sw-topology-operations-bg: #f7f9fa;
|
||||||
--vis-tooltip-bg: #fff;
|
--vis-tooltip-bg: #fff;
|
||||||
--sw-topology-switch-icon: rgba(0, 0, 0, 0.3);
|
--sw-topology-switch-icon: rgba(0, 0, 0, 0.3);
|
||||||
|
--sw-topology-box-shadow: #eee 1px 2px 10px;
|
||||||
|
--sw-topology-setting-bg: #fff;
|
||||||
|
--sw-topology-border: 1px solid #000000;
|
||||||
}
|
}
|
||||||
|
|
||||||
html.dark {
|
html.dark {
|
||||||
@ -64,7 +66,10 @@ html.dark {
|
|||||||
--sw-topology-color: #ccc;
|
--sw-topology-color: #ccc;
|
||||||
--sw-topology-operations-bg: #4b4b52;
|
--sw-topology-operations-bg: #4b4b52;
|
||||||
--vis-tooltip-bg: #414243;
|
--vis-tooltip-bg: #414243;
|
||||||
--sw-topology-switch-icon: rgba(0, 0, 0, 0.3);
|
--sw-topology-switch-icon: #aaa;
|
||||||
|
--sw-topology-box-shadow: 0 0 2px 0 #444;
|
||||||
|
--sw-topology-setting-bg: #333;
|
||||||
|
--sw-topology-border: 1px solid #999;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-table tr {
|
.el-table tr {
|
||||||
|
@ -120,7 +120,6 @@ limitations under the License. -->
|
|||||||
v-model="dashboardStore.editMode"
|
v-model="dashboardStore.editMode"
|
||||||
active-text="E"
|
active-text="E"
|
||||||
inactive-text="V"
|
inactive-text="V"
|
||||||
size="small"
|
|
||||||
inline-prompt
|
inline-prompt
|
||||||
@change="changeMode"
|
@change="changeMode"
|
||||||
/>
|
/>
|
||||||
|
@ -568,7 +568,7 @@ limitations under the License. -->
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
border: 1px solid #000;
|
border: var(--sw-topology-border);
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
background-color: $theme-background;
|
background-color: $theme-background;
|
||||||
}
|
}
|
||||||
|
@ -724,13 +724,9 @@ limitations under the License. -->
|
|||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
color: $disabled-color;
|
color: $disabled-color;
|
||||||
border: 1px solid $border-color-primary;
|
border: 1px solid $border-color-primary;
|
||||||
background-color: $theme-background;
|
background-color: var(--sw-topology-setting-bg);
|
||||||
box-shadow: #eee 1px 2px 10px;
|
box-shadow: var(--sw-topology-box-shadow);
|
||||||
transition: all 0.5ms linear;
|
transition: all 0.5ms linear;
|
||||||
|
|
||||||
&.dark {
|
|
||||||
background-color: #2b3037;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.label {
|
.label {
|
||||||
@ -746,8 +742,8 @@ limitations under the License. -->
|
|||||||
background-color: var(--sw-topology-operations-bg);
|
background-color: var(--sw-topology-operations-bg);
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
padding: 10px 0;
|
padding: 10px 0;
|
||||||
border: 1px solid #999;
|
border: 1px solid $border-color-primary;
|
||||||
box-shadow: #ddd 1px 2px 10px;
|
box-shadow: --sw-topology-box-shadow;
|
||||||
|
|
||||||
span {
|
span {
|
||||||
display: block;
|
display: block;
|
||||||
@ -772,7 +768,7 @@ limitations under the License. -->
|
|||||||
.switch-icon {
|
.switch-icon {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.5ms linear;
|
transition: all 0.5ms linear;
|
||||||
background: rgb(0 0 0 / 30%);
|
background: var(--sw-topology-switch-icon);
|
||||||
color: $text-color;
|
color: $text-color;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 2px 4px;
|
padding: 2px 4px;
|
||||||
@ -810,7 +806,7 @@ limitations under the License. -->
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
border: 1px solid #000;
|
border: var(--sw-topology-border);
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
background-color: $theme-background;
|
background-color: $theme-background;
|
||||||
}
|
}
|
||||||
|
@ -640,14 +640,14 @@ limitations under the License. -->
|
|||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
color: #666;
|
color: var(--sw-topology-color);
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.label {
|
.label {
|
||||||
font-size: $font-size-smaller;
|
font-size: $font-size-smaller;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
color: #666;
|
color: var(--sw-topology-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.legend-btn {
|
.legend-btn {
|
||||||
|
Loading…
Reference in New Issue
Block a user