Bug 355137

Summary: Oversized icons in left toolbar
Product: [Applications] krita Reporter: Kvaks <vaksdal>
Component: DockersAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: halla, osxyz
Priority: NOR    
Version First Reported In: 2.9.7   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
URL: http://imgur.com/ZCpE0Od
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: krita config file

Description Kvaks 2015-11-10 15:48:39 UTC
I just fired up Krita for the first time on this system, so a fresh start(*), and I'm experiencing the follow unwanted UI behaviour:

http://imgur.com/ZCpE0Od

- The icons in the left toolbar (docker is perhaps the correct nomenclature?) are huge, clearly upscaled since there's visible anti-aliasing on the edges
- As a consequence (I think), bug #349165 https://bugs.kde.org/show_bug.cgi?id=349165  is triggered (I can't shrink the Krita window vertically)

I have a 30" 2560x1600 screen, perhaps that has something to do with it? The PPI density is fairly average, so I definitely don't think UI element upscaling is warranted.

(*) To make sure, I shut down krita, deleted the ~/.kde/share/apps/krita folder and restarted

Reproducible: Always

Steps to Reproduce:
1. Open krita
2. Look at screen
3. File bug report

Actual Results:  
Icons are oversized on left hand toolbar, but normal size on other toolbars (top, right)

Expected Results:  
Normal size icons on left hand toolbar
Comment 1 Halla Rempt 2015-11-10 17:04:26 UTC
Yes, it's the pixel size of the screen that Krita is looking at, you should be getting the default 22px size for really big screens, as per this code:

    QRect rc = qApp->desktop()->screenGeometry(screen);
    if (rc.width() <= 1024) {
        return 12;
    }
    else if (rc.width() <= 1377) {
        return 14;
    }
    else  if (rc.width() <= 1920 ) {
        return 16;
    }
    else {
        return 22;
    }

But it looks like 32 or 48; can you:

* remove your kritarc
* start krita (which should reproduce the bug)
* close krita (which should save a new kritarc)
* and attach the kritarc to the bug?
Comment 2 Kvaks 2015-11-11 12:47:59 UTC
Created attachment 95437 [details]
krita config file

The bug is reproduced when starting Krita without a kritarc file (deleted). This is the kritarc file that is subsequently saved when exiting Krita.
Comment 3 eliotJ 2016-08-17 13:53:40 UTC
@Kvaks

Do you still have this bug in the latest version of Krita (3.0.1 alpha2) ?
Comment 4 Kvaks 2016-08-18 07:22:23 UTC
Let me see... No, the icons are no longer oversized in version 3.0.1 alpha2. You fixed it! Very nice! Thanks!
Comment 5 eliotJ 2016-08-18 23:09:38 UTC
No... I don't fixed it - I'm just an artist :). I simply supposed that somebody else fixed this... I remember some disscusion about HDPI screens support done in Krita.