Skip to content

Commit

Permalink
Merge pull request #11331 from owncloud/fix/color-contrasts
Browse files Browse the repository at this point in the history
feat: color contrasts in default theme
  • Loading branch information
JammingBen authored Aug 14, 2024
2 parents 26f8403 + db584b3 commit 6fcee17
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ x-ocis-server: &ocis-service
# WEB
WEB_ASSET_CORE_PATH: ${WEB_ASSET_CORE_PATH:-/web/dist}
WEB_ASSET_APPS_PATH: ${WEB_ASSET_APPS_PATH:-/web/apps}
WEB_UI_THEME_PATH: ${WEB_UI_THEME_PATH:-/themes/owncloud/theme.json}
WEB_ASSET_THEMES_PATH: ${WEB_ASSET_THEMES_PATH:-/themes}
WEB_UI_CONFIG_FILE: ${WEB_UI_CONFIG_FILE:-/web/config.json}

#FRONTEND
Expand Down
7 changes: 7 additions & 0 deletions packages/design-system/src/components/OcButton/OcButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,13 @@ export default defineComponent({
var(--oc-color-swatch-danger-muted),
var(--oc-color-swatch-danger-contrast)
);
&-filled:hover {
color: var(--oc-color-swatch-danger-default) !important;
span > svg {
fill: var(--oc-color-swatch-danger-default) !important;
}
}
}
&:disabled {
Expand Down
4 changes: 2 additions & 2 deletions packages/design-system/src/components/OcDrop/OcDrop.vue
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ export default defineComponent({
box-sizing: border-box;
padding: var(--oc-space-small);
color: var(--oc-color-swatch-passive-default);
&:focus,
&:hover {
&:focus:not([disabled]),
&:hover:not([disabled]) {
background-color: var(--oc-color-background-hover);
text-decoration: none !important;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,6 @@ export default defineComponent({
flex: 1;
font-weight: normal !important;
font-size: var(--oc-font-size-small);
opacity: 0.7;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,5 @@ export default defineComponent({
.oc-files-context-action-shortcut {
justify-content: right !important;
font-size: var(--oc-font-size-small);
font-weight: bold !important;
opacity: 0.7;
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -1206,7 +1206,7 @@ export default defineComponent({
.resource-table {
&-resource-cut {
opacity: 0.6;
opacity: 0.7;
}
&-resource-wrapper {
Expand Down
8 changes: 4 additions & 4 deletions packages/web-runtime/themes/owncloud/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
"background-default": "#292929",
"background-highlight": "#383838",
"background-muted": "#383838",
"background-secondary": "#4f4f4f",
"background-secondary": "#404040",
"background-hover": "#383838",
"color-components-apptopbar-background": "transparent",
"color-components-apptopbar-border": "#ceddee",
Expand Down Expand Up @@ -197,18 +197,18 @@
"swatch-primary-gradient-hover": "#76a1d5",
"swatch-primary-contrast": "#dadcdf",
"swatch-success-background": "rgba(0, 188, 140, 0)",
"swatch-success-default": "rgb(0, 188, 140)",
"swatch-success-default": "rgb(0, 200, 152)",
"swatch-success-hover": "#00f0b4",
"swatch-success-muted": "rgba(0, 188, 140, .5)",
"swatch-success-contrast": "#000000",
"swatch-warning-background": "rgba(0,0,0,0)",
"swatch-warning-default": "rgb(232, 191, 73)",
"swatch-warning-hover": "#eed077",
"swatch-warning-muted": "rgba(232, 178, 19, .5)",
"swatch-danger-default": "rgb(255, 72, 53)",
"swatch-danger-default": "rgb(255, 137, 126)",
"swatch-danger-hover": "#ff7566",
"swatch-danger-muted": "rgba(255, 72, 53, .5)",
"swatch-danger-contrast": "#dadcdf",
"swatch-danger-contrast": "#000000",
"swatch-warning-contrast": "#000000",
"text-default": "#dadcdf",
"text-inverse": "#000000",
Expand Down

0 comments on commit 6fcee17

Please sign in to comment.