Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: digiKam - Unable to change tooltip font size.

  1. #1
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,329

    Default digiKam - Unable to change tooltip font size.

    This is a problem I've had for quite some time, affecting multiple versions of digiKam (4.1.0 - 5.7.0) and openSUSE (13.1 - 42.3 & TW).

    Existing users, and new test user are affected alike, changing theme/widget style does not make any difference.

    I reported a bug https://bugs.kde.org/show_bug.cgi?id=337243 back in July 2014 which was closed as "WORKSFORME" with the suggestion it was a distribution specific problem. I had at that stage intended to report a bug against openSUSE, but didn't actually get around to it.

    However I now need to try to address this issue.

    digiKam also has the option to change font family and size for "Icon View" and "Tree View", that works as intended.

    However when attempting to change digiKam's Tool-Tip text, font family changes as expected, font size does not. This is not restricted to any particular font, it appears to be any.

    When setting the Tool-Tip font size, ( Settings -> Configure digiKam -> Tool-Tip -> Tool-Tips Font -> Custom Font -> Choose ), the text label of the "Custom Font" button correctly shows a preview of the font family at the correctly set size. In the actual Tool-Tips however, font size remains unchanged.

    As this has failed across multiple users, themes, and digiKam & OS versions it rather points to a digiKam bug, I thought. However from the bug report it is clear this does work, although not for me...

    I'd be appreciative of conformation or otherwise of this, and any suggestions as to solving the problem.
    Regards, Paul

    2x Tumbleweed (Snapshot: 20191207) KDE Plasma 5
    2x Leap 15.1 KDE Plasma 5

  2. #2

    Default Re: digiKam - Unable to change tooltip font size.

    I can confirm it here.

    But TBH, I don't really see how this could possibly be a distribution specific problem...

  3. #3
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,329

    Default Re: digiKam - Unable to change tooltip font size.

    Thanks.

    I've re-opened the original bug report and will await it's outcome.
    Regards, Paul

    2x Tumbleweed (Snapshot: 20191207) KDE Plasma 5
    2x Leap 15.1 KDE Plasma 5

  4. #4
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,329

    Default Re: digiKam - Unable to change tooltip font size.

    A response from Maik Qualmann ( https://bugs.kde.org/show_bug.cgi?id=337243#c11 ) on the re-opened bug report.

    The font size is hardcoded in the HTML document for the tooltips.
    Regards, Paul

    2x Tumbleweed (Snapshot: 20191207) KDE Plasma 5
    2x Leap 15.1 KDE Plasma 5

  5. #5

    Default Re: digiKam - Unable to change tooltip font size.

    Quote Originally Posted by tannington View Post
    A response from Maik Qualmann ( https://bugs.kde.org/show_bug.cgi?id=337243#c11 ) on the re-opened bug report.
    The font size is hardcoded in the HTML document for the tooltips.
    So indeed not distribution specific, after all...

  6. #6
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,329

    Default Re: digiKam - Unable to change tooltip font size.

    Quote Originally Posted by wolfi323 View Post
    So indeed not distribution specific, after all...
    Quite so...

    Actually, reading the original bug report again, specifically comment #3 ( https://bugs.kde.org/show_bug.cgi?id=337243#c3 ), I believe that Gilles' was thinking the problem was font family, not size; perhaps I didn't make it too clear.

    I've added further comment to that report, but whether it will be fixed or not will, perhaps, depend upon the amount of coding needed.
    Regards, Paul

    2x Tumbleweed (Snapshot: 20191207) KDE Plasma 5
    2x Leap 15.1 KDE Plasma 5

  7. #7

    Default Re: digiKam - Unable to change tooltip font size.

    Quote Originally Posted by tannington View Post
    I've added further comment to that report, but whether it will be fixed or not will, perhaps, depend upon the amount of coding needed.
    Well, I had a quick look myself (I downloaded the 122 MiB source code archive a few days ago anyway to update the openSUSE package to 5.8.0).
    The font size is indeed hardcoded (to "-1") in the embedded html code.

    But I think it should be possible to explicitly specify the configured font size (and maybe use "-1" as default), like it is done with the font family already.
    Needs some rework though of course, I'm not sure how much work it would be.
    Last edited by wolfi323; 17-Jan-2018 at 07:29.

  8. #8
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,329

    Default Re: digiKam - Unable to change tooltip font size.

    Quote Originally Posted by wolfi323 View Post
    Needs some rework though of course, I'm not sure how much work it would be.
    Thanks for taking a quick look.

    The latest on the bug report is suggesting it's actually a regression and may be a trivial fix....

    It can be easy to customize the font size in tooltip CSS.
    So I guess we can leave it at that for the moment, hopefully a fix will emerge in due course.
    Regards, Paul

    2x Tumbleweed (Snapshot: 20191207) KDE Plasma 5
    2x Leap 15.1 KDE Plasma 5

  9. #9

    Default Re: digiKam - Unable to change tooltip font size.

    Quote Originally Posted by tannington View Post
    The latest on the bug report is suggesting it's actually a regression and may be a trivial fix....
    I don't know whether it's a regression (but you wrote that it happens since 4.1.0, I tried 4.14.0 and that does have this problem as well), but the current code uses the HTML <font> tag to specify the font (family, size and color), which only allows to choose from a fixed number of font sizes (and the browser decides how big they really are).
    This would need to be changed to use CSS "font-size" specifications instead, that allow to specify the exact size.
    I.e. the embedded HTML code would need to be reworked.

    But that's basically been said in your bug report anyway.

    I see it has been done already, I'll add the patch to our package... (will take a few days until it reaches Tumbleweed of course)

  10. #10

    Default Re: digiKam - Unable to change tooltip font size.


Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •