Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions apps/accessibility/css/themedark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,15 @@ $color-border-dark: lighten($color-main-background, 14%);
filter: invert(100%);
}
}

input[type=checkbox] {
&.checkbox {
&:checked + label:before {
background-image: url('../../../core/img/actions/checkbox-mark-dark.svg');
}

&:indeterminate + label:before {
background-image: url('../../../core/img/actions/checkbox-mixed-dark.svg');
}
}
}
22 changes: 22 additions & 0 deletions apps/theming/css/theming.scss
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,28 @@ input.primary,
}
}

/** Handle primary buttons for bright colors */
@if (luma($color-primary) > 0.8) {
select,
button, .button,
input:not([type='range']),
textarea,
div[contenteditable=true],
.pager li a {
&.primary:not(:disabled) {
background-color: var(--color-background-dark);
color: var(--color-main-text);
border: 1px solid var(--color-background-darker);

&:hover, &:focus, &:active {
background-color: var(--color-background-darker);
color: var(--color-main-text);
}
}
}

}

@if ($color-primary == #ffffff) {
/* show grey border below header */
#body-user #header,
Expand Down
2 changes: 1 addition & 1 deletion apps/theming/lib/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function invertTextColor($color) {
public function elementColor($color) {
$l = $this->calculateLuminance($color);
if($l>0.8) {
return '#dddddd';
return '#aaaaaa';
}
return $color;
}
Expand Down
1 change: 1 addition & 0 deletions core/img/actions/checkbox-mark-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions core/img/actions/checkbox-mixed-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.