texstudio icon indicating copy to clipboard operation
texstudio copied to clipboard

Misaligned & Invisible Page Number in Dark Theme

Open Sam-OT opened this issue 3 years ago • 5 comments

Environment

  • TeXstudio: 4.2.2
  • Qt: 6.2.3
  • OS: WIndows 10
  • TeX distribution: miktex

Issue

The page numbering in the "go to" part of the internal PDF viewer has the numbers misaligned.

image

This is hardly a big deal in the picture above. It also successfully rescales with more page.

image

However, there is a serious issue when swapping to dark themes. The first two pictures below are for Orion Dark and the other two for Adwatia Dark (txs). The page numbers should be 15 and 298.

image

image

image

image

Orion Dark has a similar issue with the scaling number at the bottom, but AD doesn't.

image

image

I do want to use a Dark Mode, but these issues are a bit annoying...

Sam-OT avatar Mar 29 '22 13:03 Sam-OT

There is a similar issue with the Find box:

image

image

The latter should have a red background and say \congr inside.

It seems like there a quire a lot of issues with the spacing in Orion Dark. I guess I should stick with Adwatia Dark for the time being.

Sam-OT avatar Mar 31 '22 11:03 Sam-OT

One point of advice from my experiments: Always start txs new after changes affecting the UI like themes, font sizes etc.

I try to reproduce starting with standard theme and 4.2.2 Qt 5.12.2 as well as dev 4.2.3 Qt 6.2.4. Using font MS Shell Dlg 2 in size 8 or Segoe UI 8 respectively (on second system MS Shell... not available):

The internal pdf-viewer shows nearly perfectly (screenshots showing GIMP zooming 8x):

grafik grafik

The ruler shows a small offset of 1 pixel (on a Full HD 1920x1080 screen).

What makes me wonder when looking at your screen shot, is the smaller size of the input field when on page 40. My screenshots show a field of constant size. What screen resolution do you use?

Orion dark (tested only with dev 4.2.3): grafik Interesting: Have a look at the adjustor for font size, you can only go down, the up button (not visible in the image) is far on the right. In standard config they are both on the right.

With orion dark I see an offset of 3 pixels and the number field can only show last to digits of the page number (should be 748): grafik

After increasing font size to 16 (Segoe UI) is better (all digits visible now, but offset increased to 4): grafik

A very close look (or a mouse click :-) shows whats going on with the zoom number field: grafik The dropdown list indicater moved in. It should be this way: grafik

Conclusion: Issues of Qt, maybe next version is better.

You may test these settings: grafik

Looks good to me: grafik grafik The dropdown list indicator is not present, just click on the zoom number.

Hope this helps a bit.

octaeder avatar Apr 11 '22 21:04 octaeder

Thanks for your comment and investigation. As you say, hopefully it will improve in later.

These are my settings.

image

It's not so bad with Adwatia, but I guess it's not not so well-optimised. It seems to mostly be the sizing which gets messed up.

image

Unfortunately, I had to downgrade back to v3, from v4. There were just too many things which were hindering me with the new thing.[*] As such, I'll have to wait to see if these things are reverted in later versions—or maybe post my own ticket requesting their reversion! As it stands, the misalignment from Adwatia Dark is pretty minimal and isn't causing me undue issue :)


[*] Off-topic, but I felt I should justify this statement. Mainly, it's the auto-indenting. This is nice sometimes, but other times I like to use my own manual indenting. It just makes some stuff easier to read. In version <=3, if you paste text, it auto-indents it, unless the text is commented out. In v4, it does some hybrid where it auto-indents some stuff and not others.

Sam-OT avatar Apr 12 '22 09:04 Sam-OT

Did you see the options for "Editor": grafik

octaeder avatar Apr 12 '22 09:04 octaeder

Did you see the options for "Editor": grafik

Yes, but unfortunately that was even worse for me 🤦 I like the auto-indentation when typing, but I don't want it when pasting. Naturally, if I paste something in with indents I've made, I want those kept. Anyway, don't want to get this off topic!

Sam-OT avatar Apr 12 '22 10:04 Sam-OT