Highlight the tab of the currently viewed PDF

Asked by Mark on 2021-03-20

Hi,

I'm running 0.4.17.99 under Debian.

With many PDFs open, it's not easy for me to see which tab is the current tab. I'm thinking if the current tab could be grey, that would be helpful to see it.

Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
qpdfview Edit question
Assignee:
No assignee Edit question
Solved by:
Adam Reichold
Solved:
2021-03-20
Last query:
2021-03-20
Last reply:
2021-03-20
Adam Reichold (adamreichold) said : #1

Hello Mark,

you should be able to control the appearance of things like the tab bar using Qt style sheets. [1] This can be modified by setting the "styleSheet" key in the "mainWindow" section of the configuration file as described in the man page.

Regards,
Adam

[1] https://doc.qt.io/qt-5/stylesheet-reference.html

Mark (markd89) said : #2

Thanks, Adam.

I added a line to the .conf under [mainWindow] but I must not have the syntax exactly correct. Can you see what I'm missing?

styleSheet=QTabBar::tab:selected {background-color: red; border:none;}

Best Adam Reichold (adamreichold) said : #3

I think that you just need to quote the style sheet, e.g.

styleSheet="QTabBar::tab:selected {background-color: red; border:none;}"

worked for me.

Mark (markd89) said : #4

Perfect, thanks!

I ended up using grey not red

On Sat, Mar 20, 2021, at 6:40 AM, Adam Reichold wrote:
> Your question #696152 on qpdfview changed:
> https://answers.launchpad.net/qpdfview/+question/696152
>
> Status: Open => Answered
>
> Adam Reichold proposed the following answer:
> I think that you just need to quote the style sheet, e.g.
>
> styleSheet="QTabBar::tab:selected {background-color: red; border:none;}"
>
> worked for me.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/qpdfview/+question/696152/+confirm?answer_id=2
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/qpdfview/+question/696152
>
> You received this question notification because you asked the question.
>

Mark (markd89) said : #5

Thanks Adam Reichold, that solved my question.