From 7ed949fd74bfb10ff3db5cf61da84520e5705246 Mon Sep 17 00:00:00 2001 From: Pascal Wengerter Date: Wed, 4 Dec 2024 20:42:32 +0100 Subject: [PATCH 1/6] Add hacky approach to upload&apply material-ui json --- .../components/General/AppearanceSection.vue | 123 ++++++++++++++++++ .../src/composables/piniaStores/theme.ts | 15 +++ 2 files changed, 138 insertions(+) diff --git a/packages/web-app-admin-settings/src/components/General/AppearanceSection.vue b/packages/web-app-admin-settings/src/components/General/AppearanceSection.vue index 0d602813223..d7549862415 100644 --- a/packages/web-app-admin-settings/src/components/General/AppearanceSection.vue +++ b/packages/web-app-admin-settings/src/components/General/AppearanceSection.vue @@ -38,11 +38,30 @@ @change="uploadImage" /> +
+

+ + Try MaterialUI (Upload JSON File) + + +

diff --git a/packages/web-app-app-store/src/components/AppImageGallery.vue b/packages/web-app-app-store/src/components/AppImageGallery.vue index cea696fcbfa..0bd572727c6 100644 --- a/packages/web-app-app-store/src/components/AppImageGallery.vue +++ b/packages/web-app-app-store/src/components/AppImageGallery.vue @@ -117,7 +117,7 @@ export default defineComponent({ &-primary { span { color: var(--oc-color-swatch-primary-contrast); - background-color: var(--oc-color-swatch-primary-default); + background-color: var(--oc-color-primary); } } &-success { @@ -128,8 +128,8 @@ export default defineComponent({ } &-danger { span { - color: var(--oc-color-swatch-danger-contrast); - background-color: var(--oc-color-swatch-danger-default); + color: var(--oc-color-onError); + background-color: var(--oc-color-error); } } diff --git a/packages/web-app-app-store/src/components/AppTile.vue b/packages/web-app-app-store/src/components/AppTile.vue index 7a218007006..14be5eef5b4 100644 --- a/packages/web-app-app-store/src/components/AppTile.vue +++ b/packages/web-app-app-store/src/components/AppTile.vue @@ -60,7 +60,7 @@ export default defineComponent({ diff --git a/packages/web-app-files/src/components/Shares/SharedWithMeSection.vue b/packages/web-app-files/src/components/Shares/SharedWithMeSection.vue index dc7b5873a86..fb958066a62 100644 --- a/packages/web-app-files/src/components/Shares/SharedWithMeSection.vue +++ b/packages/web-app-files/src/components/Shares/SharedWithMeSection.vue @@ -262,6 +262,6 @@ export default defineComponent({ diff --git a/packages/web-app-files/src/components/Spaces/SpaceHeader.vue b/packages/web-app-files/src/components/Spaces/SpaceHeader.vue index 769de299c91..d3a16222392 100644 --- a/packages/web-app-files/src/components/Spaces/SpaceHeader.vue +++ b/packages/web-app-files/src/components/Spaces/SpaceHeader.vue @@ -306,7 +306,7 @@ export default defineComponent({ max-height: 158px; &-default { - background-color: var(--oc-color-background-highlight); + background-color: var(--oc-color-surfaceBright); height: 100%; border-radius: 10px; } diff --git a/packages/web-app-files/src/views/trash/Overview.vue b/packages/web-app-files/src/views/trash/Overview.vue index c14a79a941d..47e06a146eb 100644 --- a/packages/web-app-files/src/views/trash/Overview.vue +++ b/packages/web-app-files/src/views/trash/Overview.vue @@ -280,7 +280,7 @@ export default defineComponent({ .trash-bin { &-route { - color: var(--oc-color-text-default); + color: var(--oc-color-onSurface); } } diff --git a/packages/web-app-ocm/src/views/App.vue b/packages/web-app-ocm/src/views/App.vue index d18101e4373..cc3fdfdd696 100644 --- a/packages/web-app-ocm/src/views/App.vue +++ b/packages/web-app-ocm/src/views/App.vue @@ -143,7 +143,7 @@ export default defineComponent({ #sciencemesh-accept-invites, #sciencemesh-connections { margin: var(--oc-space-small); - background-color: var(--oc-color-background-default); + background-color: var(--oc-color-background); border-radius: 15px; padding: var(--oc-space-small); @media (max-width: $oc-breakpoint-large-default) { diff --git a/packages/web-app-preview/src/components/MediaControls.vue b/packages/web-app-preview/src/components/MediaControls.vue index 5de7dfbae44..178d026a890 100644 --- a/packages/web-app-preview/src/components/MediaControls.vue +++ b/packages/web-app-preview/src/components/MediaControls.vue @@ -230,7 +230,7 @@ export default defineComponent({ } .preview-controls-action-count { - color: var(--oc-color-swatch-brand-contrast); + color: var(--oc-color-background); } .preview-controls-image-original-size { diff --git a/packages/web-app-search/src/portals/SearchBar.vue b/packages/web-app-search/src/portals/SearchBar.vue index e72f3cd7169..0d55e879377 100644 --- a/packages/web-app-search/src/portals/SearchBar.vue +++ b/packages/web-app-search/src/portals/SearchBar.vue @@ -551,7 +551,7 @@ export default defineComponent({ @media (max-width: 639px) { visibility: hidden; - background-color: var(--oc-color-swatch-brand-default); + background-color: var(--oc-color-primary); position: absolute; height: 48px; left: 0; @@ -615,7 +615,7 @@ export default defineComponent({ &:hover, &.active { - background-color: var(--oc-color-background-highlight); + background-color: var(--oc-color-surfaceBright); } &.disabled { diff --git a/packages/web-app-text-editor/src/App.vue b/packages/web-app-text-editor/src/App.vue index 8a69501e4ee..f183ebedf2e 100644 --- a/packages/web-app-text-editor/src/App.vue +++ b/packages/web-app-text-editor/src/App.vue @@ -60,6 +60,6 @@ export default defineComponent({ .toastui-editor-defaultUI-toolbar, .toastui-editor-md-tab-container { - background-color: var(--oc-color-background-default) !important; + background-color: var(--oc-color-background) !important; } diff --git a/packages/web-app-webfinger/src/views/Resolve.vue b/packages/web-app-webfinger/src/views/Resolve.vue index 18c1ef6cf28..0a6e5bc9753 100644 --- a/packages/web-app-webfinger/src/views/Resolve.vue +++ b/packages/web-app-webfinger/src/views/Resolve.vue @@ -88,7 +88,7 @@ export default defineComponent({ diff --git a/packages/web-pkg/src/components/FilesList/ResourceIcon.vue b/packages/web-pkg/src/components/FilesList/ResourceIcon.vue index fbcb8879517..0fd2e902ad2 100644 --- a/packages/web-pkg/src/components/FilesList/ResourceIcon.vue +++ b/packages/web-pkg/src/components/FilesList/ResourceIcon.vue @@ -30,7 +30,7 @@ const defaultSpaceIcon: IconType = { } const defaultFallbackIcon: IconType = { name: 'resource-type-file', - color: 'var(--oc-color-text-default)' + color: 'var(--oc-color-onSurface)' } const defaultFileIconMapping = createDefaultFileIconMapping() diff --git a/packages/web-pkg/src/components/FilesList/ResourceListItem.vue b/packages/web-pkg/src/components/FilesList/ResourceListItem.vue index 1132ce8314d..963f0f7fae2 100644 --- a/packages/web-pkg/src/components/FilesList/ResourceListItem.vue +++ b/packages/web-pkg/src/components/FilesList/ResourceListItem.vue @@ -264,7 +264,7 @@ export default defineComponent({ .text { &:hover { - color: var(--oc-color-text-default); + color: var(--oc-color-onSurface); text-decoration: underline; } } diff --git a/packages/web-pkg/src/components/FilesList/ResourceName.vue b/packages/web-pkg/src/components/FilesList/ResourceName.vue index f4903ad51f8..eb94b0af83b 100644 --- a/packages/web-pkg/src/components/FilesList/ResourceName.vue +++ b/packages/web-pkg/src/components/FilesList/ResourceName.vue @@ -159,13 +159,13 @@ export default defineComponent({ &:hover { text-decoration: underline; - text-decoration-color: var(--oc-color-text-default); + text-decoration-color: var(--oc-color-onSurface); } } &-basename, &-extension { - color: var(--oc-color-text-default); + color: var(--oc-color-onSurface); white-space: pre; } diff --git a/packages/web-pkg/src/components/FilesList/ResourceTable.vue b/packages/web-pkg/src/components/FilesList/ResourceTable.vue index 078ad38560a..49481216964 100644 --- a/packages/web-pkg/src/components/FilesList/ResourceTable.vue +++ b/packages/web-pkg/src/components/FilesList/ResourceTable.vue @@ -1237,7 +1237,7 @@ export default defineComponent({ &:hover > .resource-table-edit-name { svg { - fill: var(--oc-color-text-default); + fill: var(--oc-color-onSurface); } } } diff --git a/packages/web-pkg/src/components/FilesList/ResourceTile.vue b/packages/web-pkg/src/components/FilesList/ResourceTile.vue index 98c15c9cbf0..338cc520830 100644 --- a/packages/web-pkg/src/components/FilesList/ResourceTile.vue +++ b/packages/web-pkg/src/components/FilesList/ResourceTile.vue @@ -229,7 +229,7 @@ export default defineComponent({ diff --git a/packages/web-runtime/src/components/UploadInfo.vue b/packages/web-runtime/src/components/UploadInfo.vue index 4d6e2c89d55..b141f0e9d38 100644 --- a/packages/web-runtime/src/components/UploadInfo.vue +++ b/packages/web-runtime/src/components/UploadInfo.vue @@ -706,7 +706,7 @@ export default defineComponent({ diff --git a/packages/web-app-files/src/components/SideBar/Actions/SpaceActions.vue b/packages/web-app-files/src/components/SideBar/Actions/SpaceActions.vue index 97ec2630c9e..97d9219438d 100644 --- a/packages/web-app-files/src/components/SideBar/Actions/SpaceActions.vue +++ b/packages/web-app-files/src/components/SideBar/Actions/SpaceActions.vue @@ -112,7 +112,7 @@ export default defineComponent({ #oc-spaces-actions-sidebar { > li a, > li a:hover { - color: var(--oc-color-swatch-passive-default); + color: var(--oc-color-secondary); display: inline-flex; gap: 10px; vertical-align: top; @@ -120,7 +120,7 @@ export default defineComponent({ > li:hover { text-decoration: none !important; - background-color: var(--oc-color-background-hover); + background-color: var(--oc-color-surfaceContainerHigh); } } diff --git a/packages/web-app-files/src/components/SideBar/Details/FileDetails.vue b/packages/web-app-files/src/components/SideBar/Details/FileDetails.vue index f5197c43095..060b9222d8a 100644 --- a/packages/web-app-files/src/components/SideBar/Details/FileDetails.vue +++ b/packages/web-app-files/src/components/SideBar/Details/FileDetails.vue @@ -412,8 +412,8 @@ export default defineComponent({ .details-preview, .details-icon-wrapper { - background-color: var(--oc-color-background-muted); - border: 10px solid var(--oc-color-background-muted); + background-color: var(--oc-color-surfaceDim); + border: 10px solid var(--oc-color-surfaceDim); height: 230px; background-size: contain; diff --git a/packages/web-app-files/src/components/SideBar/Details/FileDetailsMultiple.vue b/packages/web-app-files/src/components/SideBar/Details/FileDetailsMultiple.vue index 16f07e0ed96..172f25be27b 100644 --- a/packages/web-app-files/src/components/SideBar/Details/FileDetailsMultiple.vue +++ b/packages/web-app-files/src/components/SideBar/Details/FileDetailsMultiple.vue @@ -97,8 +97,8 @@ export default defineComponent({ diff --git a/packages/web-app-search/src/portals/SearchBar.vue b/packages/web-app-search/src/portals/SearchBar.vue index 0d55e879377..91e91542676 100644 --- a/packages/web-app-search/src/portals/SearchBar.vue +++ b/packages/web-app-search/src/portals/SearchBar.vue @@ -619,7 +619,7 @@ export default defineComponent({ } &.disabled { - background-color: var(--oc-color-background-muted); + background-color: var(--oc-color-surfaceDim); pointer-events: none; opacity: 0.7; filter: grayscale(0.6); diff --git a/packages/web-pkg/src/cern/components/CollapsibleOcTable.vue b/packages/web-pkg/src/cern/components/CollapsibleOcTable.vue index d10f5e8317a..6d397234a8b 100644 --- a/packages/web-pkg/src/cern/components/CollapsibleOcTable.vue +++ b/packages/web-pkg/src/cern/components/CollapsibleOcTable.vue @@ -703,16 +703,16 @@ export default defineComponent({ border-top: 1px solid var(--oc-color-outline); } &-hover tr:not(&-footer-row):hover { - background-color: var(--oc-color-background-hover); + background-color: var(--oc-color-surfaceContainerHigh); } &-highlighted { background-color: var(--oc-color-surfaceBright) !important; } &-accentuated { - background-color: var(--oc-color-background-accentuate); + background-color: var(--oc-color-surfaceContainerHighaccentuate); } &-disabled { - background-color: var(--oc-color-background-muted); + background-color: var(--oc-color-surfaceDim); opacity: 0.8; pointer-events: none; } @@ -730,7 +730,7 @@ export default defineComponent({ &-thead-content { vertical-align: middle; display: inline-table; - color: var(--oc-color-swatch-passive-default); + color: var(--oc-color-secondary); &:hover { text-decoration: underline; } @@ -752,7 +752,7 @@ export default defineComponent({ display: table-cell !important; vertical-align: middle !important; &:hover { - background-color: var(--oc-color-background-hover); + background-color: var(--oc-color-surfaceContainerHigh); } } } diff --git a/packages/web-pkg/src/components/BatchActions.vue b/packages/web-pkg/src/components/BatchActions.vue index a23cd144495..0edd67b5dc8 100644 --- a/packages/web-pkg/src/components/BatchActions.vue +++ b/packages/web-pkg/src/components/BatchActions.vue @@ -55,8 +55,8 @@ export default defineComponent({ } .action-menu-item:hover:not([disabled]), .action-menu-item:focus:not([disabled]) { - background-color: var(--oc-color-background-hover); - border-color: var(--oc-color-background-hover); + background-color: var(--oc-color-surfaceContainerHigh); + border-color: var(--oc-color-surfaceContainerHigh); } li { diff --git a/packages/web-pkg/src/components/CreateLinkModal.vue b/packages/web-pkg/src/components/CreateLinkModal.vue index 861eead3e3c..58b708a7b6d 100644 --- a/packages/web-pkg/src/components/CreateLinkModal.vue +++ b/packages/web-pkg/src/components/CreateLinkModal.vue @@ -380,13 +380,13 @@ export default defineComponent({ &:hover, &:focus { - background-color: var(--oc-color-background-hover); + background-color: var(--oc-color-surfaceContainerHigh); text-decoration: none; } } .selected span { - color: var(--oc-color-swatch-primary-contrast); + color: var(--oc-color-onPrimary); } } diff --git a/packages/web-pkg/src/components/FilesList/ResourceGhostElement.vue b/packages/web-pkg/src/components/FilesList/ResourceGhostElement.vue index 421b096f988..173b04401d9 100644 --- a/packages/web-pkg/src/components/FilesList/ResourceGhostElement.vue +++ b/packages/web-pkg/src/components/FilesList/ResourceGhostElement.vue @@ -46,11 +46,11 @@ export default defineComponent({ diff --git a/packages/web-pkg/src/components/SearchBarFilter.vue b/packages/web-pkg/src/components/SearchBarFilter.vue index b4aa6a5706c..1a67660dbbe 100644 --- a/packages/web-pkg/src/components/SearchBarFilter.vue +++ b/packages/web-pkg/src/components/SearchBarFilter.vue @@ -143,7 +143,7 @@ export default defineComponent({ } .search-bar-filter-item { &:hover { - background-color: var(--oc-color-background-hover) !important; + background-color: var(--oc-color-surfaceContainerHigh) !important; } } diff --git a/packages/web-pkg/src/components/SideBar/Files/FileInfo.vue b/packages/web-pkg/src/components/SideBar/Files/FileInfo.vue index 465f4dd6133..aea900003ab 100644 --- a/packages/web-pkg/src/components/SideBar/Files/FileInfo.vue +++ b/packages/web-pkg/src/components/SideBar/Files/FileInfo.vue @@ -82,7 +82,7 @@ export default defineComponent({ fill: #ffba0a !important; path:not([fill='none']) { - stroke: var(--oc-color-swatch-passive-default); + stroke: var(--oc-color-secondary); } } } diff --git a/packages/web-pkg/src/components/SideBar/SideBar.vue b/packages/web-pkg/src/components/SideBar/SideBar.vue index 04fea6e9a97..56fd4dcf2c5 100644 --- a/packages/web-pkg/src/components/SideBar/SideBar.vue +++ b/packages/web-pkg/src/components/SideBar/SideBar.vue @@ -412,7 +412,7 @@ export default defineComponent({ } &:hover { - background-color: var(--oc-color-background-muted) !important; + background-color: var(--oc-color-surfaceDim) !important; } } } diff --git a/packages/web-pkg/src/components/SideBar/Spaces/Details/SpaceDetailsMultiple.vue b/packages/web-pkg/src/components/SideBar/Spaces/Details/SpaceDetailsMultiple.vue index 091e39bae2c..4b8f271789d 100644 --- a/packages/web-pkg/src/components/SideBar/Spaces/Details/SpaceDetailsMultiple.vue +++ b/packages/web-pkg/src/components/SideBar/Spaces/Details/SpaceDetailsMultiple.vue @@ -92,8 +92,8 @@ export default defineComponent({ diff --git a/packages/design-system/src/styles/theme/background.scss b/packages/design-system/src/styles/theme/background.scss index 5ca0f41f4fb..798f5e3d05e 100644 --- a/packages/design-system/src/styles/theme/background.scss +++ b/packages/design-system/src/styles/theme/background.scss @@ -45,7 +45,7 @@ } .oc-background-highlight { - background-color: var(--oc-color-surfaceBright) !important; + border:1px solid var(--oc-color-outlineVariant) } .oc-background-contain { diff --git a/packages/web-app-files/src/components/SideBar/Details/FileDetails.vue b/packages/web-app-files/src/components/SideBar/Details/FileDetails.vue index 060b9222d8a..db3bd235abb 100644 --- a/packages/web-app-files/src/components/SideBar/Details/FileDetails.vue +++ b/packages/web-app-files/src/components/SideBar/Details/FileDetails.vue @@ -412,8 +412,6 @@ export default defineComponent({ .details-preview, .details-icon-wrapper { - background-color: var(--oc-color-surfaceDim); - border: 10px solid var(--oc-color-surfaceDim); height: 230px; background-size: contain; diff --git a/packages/web-app-files/src/components/SideBar/Shares/Collaborators/EditDropdown.vue b/packages/web-app-files/src/components/SideBar/Shares/Collaborators/EditDropdown.vue index e4a1c8f4fb8..1281c20dc17 100644 --- a/packages/web-app-files/src/components/SideBar/Shares/Collaborators/EditDropdown.vue +++ b/packages/web-app-files/src/components/SideBar/Shares/Collaborators/EditDropdown.vue @@ -287,7 +287,7 @@ export default defineComponent({ .collaborator-edit-dropdown-options-list { &-remove { margin-top: var(--oc-space-small) !important; - border-top: 1px solid var(--oc-color-border) !important; + border-top: 1px solid var(--oc-color-outlineVariant) !important; } .action-menu-item { diff --git a/packages/web-app-files/src/components/SideBar/Shares/Links/EditDropdown.vue b/packages/web-app-files/src/components/SideBar/Shares/Links/EditDropdown.vue index d4378ea62e1..993371f03a5 100644 --- a/packages/web-app-files/src/components/SideBar/Shares/Links/EditDropdown.vue +++ b/packages/web-app-files/src/components/SideBar/Shares/Links/EditDropdown.vue @@ -285,7 +285,7 @@ export default defineComponent({ &-delete { margin-top: var(--oc-space-small) !important; - border-top: 1px solid var(--oc-color-border) !important; + border-top: 1px solid var(--oc-color-outlineVariant) !important; } } diff --git a/packages/web-pkg/src/cern/components/CollapsibleOcTable.vue b/packages/web-pkg/src/cern/components/CollapsibleOcTable.vue index 6d397234a8b..963a11bfa8c 100644 --- a/packages/web-pkg/src/cern/components/CollapsibleOcTable.vue +++ b/packages/web-pkg/src/cern/components/CollapsibleOcTable.vue @@ -719,7 +719,6 @@ export default defineComponent({ &-sticky { position: relative; .oc-table-header-cell { - background-color: var(--oc-color-background); position: sticky; z-index: 1; } diff --git a/packages/web-pkg/src/components/AppBar/AppBar.vue b/packages/web-pkg/src/components/AppBar/AppBar.vue index a2c192ba395..35a8d710f2f 100644 --- a/packages/web-pkg/src/components/AppBar/AppBar.vue +++ b/packages/web-pkg/src/components/AppBar/AppBar.vue @@ -347,7 +347,6 @@ export default defineComponent({ diff --git a/packages/web-pkg/src/components/SideBar/Files/FileInfo.vue b/packages/web-pkg/src/components/SideBar/Files/FileInfo.vue index aea900003ab..9b045a22076 100644 --- a/packages/web-pkg/src/components/SideBar/Files/FileInfo.vue +++ b/packages/web-pkg/src/components/SideBar/Files/FileInfo.vue @@ -57,7 +57,6 @@ export default defineComponent({