ripose-jp / Memento

An mpv-based video player for studying Japanese
https://ripose-jp.github.io/Memento/
GNU General Public License v2.0
434 stars 21 forks source link

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

Closed kjgbkvhlvfiykfvil closed 4 months ago

kjgbkvhlvfiykfvil commented 4 months ago

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

ripose-jp commented 4 months ago

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

kjgbkvhlvfiykfvil commented 4 months ago

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?

ripose-jp commented 4 months ago

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.

kjgbkvhlvfiykfvil commented 4 months ago

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

kjgbkvhlvfiykfvil commented 4 months ago

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

ripose-jp commented 4 months ago

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.

kjgbkvhlvfiykfvil commented 4 months ago

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

kjgbkvhlvfiykfvil commented 4 months ago

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

ripose-jp commented 4 months ago

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.