mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 00:19:04 +01:00
style/quick edit dialog: ignore monochromatic custom colors
This commit is contained in:
parent
b58f37cd4a
commit
535b960b76
@ -120,11 +120,17 @@ export default class PopupEditorDialog extends Container<BasicWidget> {
|
||||
const wrapperElement = this.$wrapper.get(0)!;
|
||||
|
||||
if (colorClass) {
|
||||
wrapperElement.className = "quick-edit-dialog-wrapper tinted-dialog " + colorClass;
|
||||
wrapperElement.className = "quick-edit-dialog-wrapper " + colorClass;
|
||||
} else {
|
||||
wrapperElement.className = "quick-edit-dialog-wrapper";
|
||||
}
|
||||
|
||||
const customHue = getComputedStyle(wrapperElement).getPropertyValue("--custom-color-hue");
|
||||
if (customHue) {
|
||||
/* Apply the tinted-dialog class only if the custom color CSS class specifies a hue */
|
||||
wrapperElement.classList.add("tinted-dialog");
|
||||
}
|
||||
|
||||
const activeEl = document.activeElement;
|
||||
if (activeEl && "blur" in activeEl) {
|
||||
(activeEl as HTMLElement).blur();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user