Bug 426692

Summary: Okular opened from Ark has different toolbar icon size
Product: [Applications] ark Reporter: medin <med.medin.2014>
Component: generalAssignee: Elvis Angelaccio <elvis.angelaccio>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: nate, rthomsen6
Priority: NOR    
Version First Reported In: 20.08.1   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Ark and Okular

Description medin 2020-09-18 15:12:21 UTC
If I open a zipped pdf file directly by double clicking on it inside Ark, then Okular opens but with different (the default) toolbar icons size.
Comment 1 Elvis Angelaccio 2020-09-18 17:35:56 UTC
You previewed the file, right? That's the Okular "part", not the full Okular app.
Comment 2 Nate Graham 2020-09-18 21:28:55 UTC
Can you attach a screenshot of the viewer alongside Okular itself so we can see the different sizes?
Comment 3 medin 2020-09-18 21:43:47 UTC
(In reply to Elvis Angelaccio from comment #1)
> You previewed the file, right? That's the Okular "part", not the full Okular
> app.

Yes I previewed the file, but what I see is that Okular is the responsible for previewing so why it doesn't have the same icon size that is used in normal use case.
Comment 4 medin 2020-09-18 21:44:49 UTC
Here's the screenshot of two pdfs one zipped and the other not zipped.
Comment 5 medin 2020-09-18 21:45:16 UTC
Created attachment 131753 [details]
Ark and Okular
Comment 6 Nate Graham 2020-09-18 22:06:59 UTC
Thanks. Are you using a global scale factor or have you changed the font size or font DPI at all?
Comment 7 medin 2020-09-18 22:12:45 UTC
(In reply to Nate Graham from comment #6)
> Thanks. Are you using a global scale factor or have you changed the font
> size or font DPI at all?

I have a laptop with small 15.6" screen so I always change my font size to 9pt and force font DPI to 96.
Comment 8 Nate Graham 2020-09-18 22:15:34 UTC
Was the default DPI something other than 96 when you changed it to 96?
Comment 9 medin 2020-09-18 22:22:20 UTC
(In reply to Nate Graham from comment #8)
> Was the default DPI something other than 96 when you changed it to 96?

To be sincere I don't remember what was the default value because it's more than a year that I installed Manjaro on my machine.
Comment 10 Christoph Feck 2020-09-19 00:35:08 UTC
> why it doesn't have the same icon size that is used in normal use case.

Because these two applications are using two different rc files. You can configuring icon sizes by right-clicking the toolbar.
Comment 11 medin 2020-09-19 09:41:29 UTC
(In reply to Christoph Feck from comment #10)
> > why it doesn't have the same icon size that is used in normal use case.
> 
> Because these two applications are using two different rc files. You can
> configuring icon sizes by right-clicking the toolbar.

Why should there be two applications with two rc files if they are launched by same user ? is there any benefit of this implementation ? on Windows the pdf viewer (Adobe reader, Foxit, Sumatra) that open a pdf preview from zipped file has the same settings used in normal case.

Is this weird Ark behavior implemented for each application that open a preview of zipped file ?
Comment 12 Christoph Feck 2020-09-19 14:23:17 UTC
On Windows the complete application is embedded, not only a part of it. KParts requires the hosting application to offer the menubars and toolbars, that's why the configuration of them is part of the application, not part of the KPart.

You are free to discuss this, but also remember that changing this requires someone working on it, ideally without breaking the workflow of other users of KParts.

What I suggest is not to use the Preview option, but just open the PDF. You can configure Ark to start the "normal" Okular when opening files. That saves you from the trouble to configure the icon sizes to match.

Unless you can come up with a convincing patch, I don't see the need to change the behavior. Most users simply configure the toolbar icon size in systemsettings to be respected by all applications, instead of changing them in each application individually, and then complaining that they don't match.