mirror of
https://github.com/jsmorabito/obsidian-commander.git
synced 2026-07-22 06:40:31 +00:00
Merge 3b4ebad189 into 3546c74572
This commit is contained in:
commit
60916d5fe8
1 changed files with 3 additions and 4 deletions
|
|
@ -33,10 +33,9 @@ export default class PageHeaderManager extends CommandManagerBase {
|
|||
buttons.set(id, buttonIcon);
|
||||
|
||||
buttonIcon.addClasses(["cmdr-page-header", id]);
|
||||
buttonIcon.style.color =
|
||||
pair.color === "#000000" || pair.color === undefined
|
||||
? "inherit"
|
||||
: pair.color;
|
||||
if (pair.color) {
|
||||
buttonIcon.style.color = pair.color;
|
||||
}
|
||||
buttonIcon.addEventListener("contextmenu", (event) => {
|
||||
event.stopImmediatePropagation();
|
||||
new Menu()
|
||||
|
|
|
|||
Loading…
Reference in a new issue