Merge pull request #7 from Miodec/master

baaaanaaaanaaaaaa
This commit is contained in:
UnrealApex 2021-04-12 10:45:39 -07:00 committed by GitHub
commit 5e5b4edd7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 25 additions and 0 deletions

View file

@ -490,6 +490,14 @@ let commandsCaretStyle = {
UpdateConfig.setCaretStyle("carrot");
},
},
{
id: "setCaretStyleBanana",
display: "banana",
visible: false,
exec: () => {
UpdateConfig.setCaretStyle("banana");
},
},
],
};

View file

@ -714,6 +714,8 @@ export function setCaretStyle(caretStyle, nosave) {
$("#caret").addClass("underline");
} else if (caretStyle == "carrot") {
$("#caret").addClass("carrot");
} else if (caretStyle == "banana") {
$("#caret").addClass("banana");
}
if (!nosave) saveToCookie();
}

View file

@ -1456,6 +1456,21 @@ a:hover {
}
}
&.banana {
background-color: transparent;
background-image: url("../images/banana.png");
background-size: contain;
background-position: center;
background-repeat: no-repeat;
width: 1rem;
&.size2 {
margin-left: -0.1rem;
}
&.size3 {
margin-left: -0.5rem;
}
}
&.block {
width: 0.7em;
margin-left: 0.25em;

BIN
static/images/banana.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB