ripose-jp/Memento

Is there a way to make the word on popup bigger?

Closed this issue · 9 comments

In Yomichan you can edit it like this:
.source-text {
font-size: 17px;
}

Unfortunately those can't be changed with stylesheets and are hard coded. You'll have to edit these lines and recompile.

Thanks, I was able to build it, even if it took me a while since I don't have experience in building from source. Although I still don't know what is Json-C. Is there a way to make popup smaller, remove popup's border, make tags smaller and have compact tags like on Yomichan?

I recommend keeping your own fork with all your patches so you don't have a ton of issues keeping things up to date with your own patch set.


make popup smaller

Change these numbers.

remove popup's border

Change this to QFrame::NoFrame.

make tags smaller

Go to SettingsOptionsInterface. Check Enable custom style sheets, go to Definitions, and change the font size.

have compact tags like on Yomichan

Apply this patch.

I don't think patch worked. Isn't font size in Definitions for general glossary font size, not just tags?

Also what should I do if it doesn't play hevc videos smoothly? Do I have to install codec support additionally? Videos play normally on PotPlayer

I don't think patch worked.

It still works on the latest commit. It'll look like this if it worked:
image

Definitions for general glossary font size, not just tags?

It affects both. If you want it to only affect tags, only apply it to the QLabels and not to QTextEdits. It works the same as standard CSS syntax.

Also what should I do if it doesn't play hevc videos smoothly?

What is your OS, graphics card, and CPU?
Try updating your graphics driver first.
Try enabling hardware decoding with ctrl+h. If this fixes it, you can add hwdec=auto to your mpv.conf, though be warned that hardware decoding can be buggy.

Do I have to install codec support additionally?

No. HEVC wouldn't play at all if your didn't have a decoder.

I mean when it won't show repeated tags like JMdict(English)

Windows. Ctrl+h worked, but there is no mpv folder in Roaming folder. I don't know where to find conf file

I mean when it won't show repeated tags like JMdict(English)

Sorry, I misunderstood what you wanted. This isn't something I've implemented and would take a little bit of know-how to do. I recommend opening a new issue as a feature request if you want this.

Windows. Ctrl+h worked, but there is no mpv folder in Roaming folder. I don't know where to find conf file

Go to SettingsOpen Config Folder and it will open the folder you need to put your mpv.conf in. All you need to have in it is the line hwdec=auto.