Menu emoji customization
-
Is it possible to hide the default icons?
I would like to use all icons from the same source. So just "my" emojis and not mixed with Vivaldis default ones ^^
-
@oudstand Not possible I’m afraid.
-
@luetage said in Menu emoji customization:
@oudstand Not possible I’m afraid.
Sad. I wanted to do it with CSS, but I can't inspect the menu, because it disappears as soon as I try to inspect it ^^
-
@oudstand We can’t change the menu with custom CSS, or at least we have never found out how to do it in all those years. You have to live with it. Personally I don’t assign emoji to entries which already have an icon. It’s ok.
-
@luetage said in Menu emoji customization:
@oudstand We can’t change the menu with custom CSS, or at least we have never found out how to do it in all those years. You have to live with it. Personally I don’t assign emoji to entries which already have an icon. It’s ok.
Ah, that explains it
Thanks for your help -
CSS is no good for this!
Open bundle.js and after(() => {
add your own constants for icons. The icon itself in the string is converted to base64 format, for example:
const icon_uni_OPEN = "iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAMAAABFjsb+AAAArlBMVEVHcEzJpT7JpT67mD5yWymsiT6siT4AAAAAAACCZDWObjvJpT6HaDiScD3JpT7csnKsiT72x4X63aT0wn742J730JL0vHT+99zIpD6WdD6ObT764ar75rH3zIz98MDnu3r41Jm6lk/+89WbeT6jgT786reGZT61kj7527P97s776Mf748H637q9mT742rL97r3Am0P////p15zbwHHpx5r16cHSsH/31663lV8AzP+chndvAAAAD3RSTlMASIAwGfCYJDJJycCN5eDHjyVMAAAA30lEQVQY00XP25qCIBSGYdqC1YwiGpBaBppRbp72zf3f2MDSp77D9+RfCyGEJqPReLxc/gqBhoQQt9v1+nhwLmQR9Ka4TSllrPn73vi2r/taw7ddV5ZlmqrmawBpkphmM1ilAJIwNJW12XziDCCMopM1f7e305UBiPLc2S6LrAUGII7jc2DtL3R2AsiyDOzSGwCltP5YcQagjNXF4WMAbL0+OqNuo6gZyGDM3aJrCmJNH3w9m08R1q+2bV9RHlNrG40xRkRK+X4/n/d7e5TWCCHuY8/zVqvF4kdKQjCeon/IuCEBkOkBewAAAABJRU5ErkJggg==";
then we find the place of context menus in the code and add our icon, for example:
switch (t.action) { case "CONTEXT_OPEN_FILE": return { iconPNG: icon_uni_OPEN, iconPNGWhite: icon_uni_OPEN, ...o, ...i || s.numFiles < 2 ? (0, Hn.Z)("the file", "Open") : (0, Hn.Z)("Open Files")
That's about ~800 different places with icons)
Then there will be beautiful menus.
-
@Capushon Yes, and then rinse and repeat after every update
-
@luetage said in Menu emoji customization:
Yes, and then rinse and repeat after every update
Yes, beauty requires sacrifice )
-
@Capushon I agree ^^
-
@oudstand Usually can be done using
Open Link
f.ex usingvivaldi://settings
instead of the actual command (Vivaldi Settings...
). One funny exception is the link to Bug Report page which always add the vivaldi logo
Sadly, also removing all the icons, won't remove the gap (area reserved for menu icons).
Not always works though, because f.ex chromium settings only haschrome://settings
which will always put the blue gear icon. -
@luetage, another quick way to access Emojis on the keyboard is: LSHIFT+:; on Windows.
-
@Vivaldiscool Actually is WinKey + DotKey
-
@luetage Thanks for your extensive post on emojis. From links you supplied, I have copied a number of emojis which I want to utilize in Vivaldi (and maybe other programs). The question I have is: where am I to store these emojis; i.e. what folder? TIA
-
@janrif I always used notepad++ by the way any text editor with unicode support should be fine, even the classic notepad:
-
@Hadden89 said in Menu emoji customization:
@janrif I always used notepad++ by the way any text editor with unicode support should be fine, even the classic notepad:
...so from your reply I could copy all emojis and place in a note to be inserted? TIA
-
@janrif You should be able to... then you just need to highlight and paste the emoji where you need, as long it support emojis/unicode. The only issue are emoji may not be cross platform but in such case they should still have the textual fallback symbol placeholder.
-
@Hadden89 One last question. Should I store the emojis in a folder where I can use via the <Windows>+<Period> command or some other place within the Vivaldi folder structure. If so, is this a matter of creating a new folder or appending to an existing Vivaldi folder? TIA
-
@janrif Imho, the best way is just to do a file/note with description on when is used + the emoji.
I keep my own - which I directly pasted on the forum - in ac:\vivaldi\emoji.md
file.
Just don't use subfolders otherwise the update will remove the file. -
@Hadden89 said in Menu emoji customization:
I keep my own in c:\vivaldi\emoji.md file.
I'm not familiar with the .md extension. Is it used for particularly file types?
-
@janrif Actually is pretty much a text file. MD just stands for saved as markdown. But txt/UTF-8 is fine too.