diff --git a/assets/ui-icons.afdesign b/assets/ui-icons.afdesign index e36bfcd3ca..79350f51d9 100644 Binary files a/assets/ui-icons.afdesign and b/assets/ui-icons.afdesign differ diff --git a/packages/frontend/src/components/global/MkResult.vue b/packages/frontend/src/components/global/MkResult.vue index dda35babdc..bddc89809b 100644 --- a/packages/frontend/src/components/global/MkResult.vue +++ b/packages/frontend/src/components/global/MkResult.vue @@ -7,41 +7,11 @@ SPDX-License-Identifier: AGPL-3.0-only
- - - - - - - - - - - + - - - - - - - - - - - + - - - - - - - - - - - +
{{ props.text ?? (type === 'empty' ? i18n.ts.nothing : type === 'notFound' ? i18n.ts.notFound : type === 'error' ? i18n.ts.somethingHappened : null) }}
@@ -66,18 +36,6 @@ const props = defineProps<{ position: relative; text-align: center; padding: 32px; - - &.error { - .icon { - color: var(--MI_THEME-error); - } - } - - &.warn { - .icon { - color: var(--MI_THEME-warn); - } - } } .img { @@ -91,6 +49,5 @@ const props = defineProps<{ width: 50px; height: 50px; margin: 0 auto; - color: var(--MI_THEME-accent); } diff --git a/packages/frontend/src/components/global/MkSystemIcon.vue b/packages/frontend/src/components/global/MkSystemIcon.vue new file mode 100644 index 0000000000..20ce524e6d --- /dev/null +++ b/packages/frontend/src/components/global/MkSystemIcon.vue @@ -0,0 +1,76 @@ + + + + + + + diff --git a/packages/frontend/src/components/index.ts b/packages/frontend/src/components/index.ts index 33d3532c1d..9981772ae8 100644 --- a/packages/frontend/src/components/index.ts +++ b/packages/frontend/src/components/index.ts @@ -25,6 +25,7 @@ import MkPageHeader from './global/MkPageHeader.vue'; import MkStickyContainer from './global/MkStickyContainer.vue'; import MkLazy from './global/MkLazy.vue'; import MkResult from './global/MkResult.vue'; +import MkSystemIcon from './global/MkSystemIcon.vue'; import PageWithHeader from './global/PageWithHeader.vue'; import PageWithAnimBg from './global/PageWithAnimBg.vue'; import SearchMarker from './global/SearchMarker.vue'; @@ -63,6 +64,7 @@ export const components = { MkStickyContainer: MkStickyContainer, MkLazy: MkLazy, MkResult: MkResult, + MkSystemIcon: MkSystemIcon, PageWithHeader: PageWithHeader, PageWithAnimBg: PageWithAnimBg, SearchMarker: SearchMarker, @@ -95,6 +97,7 @@ declare module '@vue/runtime-core' { MkStickyContainer: typeof MkStickyContainer; MkLazy: typeof MkLazy; MkResult: typeof MkResult; + MkSystemIcon: typeof MkSystemIcon; PageWithHeader: typeof PageWithHeader; PageWithAnimBg: typeof PageWithAnimBg; SearchMarker: typeof SearchMarker;