[systemsettings] [Bug 358254] Setting the toolbar font does nothing

Henrik Fehlauer bugzilla_noreply at kde.org
Sun Aug 20 15:25:19 BST 2017


https://bugs.kde.org/show_bug.cgi?id=358254

Henrik Fehlauer <rkflx at lab12.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Version Fixed In|                            |5.11.0
             Status|CONFIRMED                   |RESOLVED
      Latest Commit|                            |https://commits.kde.org/pla
                   |                            |sma-integration/86be8d49d89
                   |                            |88fb6c35e847ed9e0aad3e85142
                   |                            |08
         Resolution|---                         |FIXED

--- Comment #6 from Henrik Fehlauer <rkflx at lab12.net> ---
Git commit 86be8d49d8988fb6c35e847ed9e0aad3e8514208 by Henrik Fehlauer.
Committed on 20/08/2017 at 14:16.
Pushed by rkflx into branch 'master'.

Allow to change toolbar font separately again

Summary:
The fonts KCM supports changing the toolbar font, but with the port to
QPA/Plasma 5 in aa16577f this stopped working and toolbars just used the
general font. This is fixed by setting QPlatformTheme's ToolButtonFont
to the toolbar font chosen. However, there are some caveats:

Default toolbar font size is 9, while the general font size is 10.
This would result in a sudden shrink in toolbar widths everywhere (or
worse for weird leftover settings users might have tried unsuccessfully).

In some places QToolButtons are used outside of toolbars, sometimes
right next to QPushButtons. As due to the bug both had the same font,
this might now lead to unexpected differences.

Therefore, to keep visual consistency with past Plasma 5 releases, let's
change the default toolbar font size to 10 and provide a kconf_update
script to copy the general font to the toolbar font once.
FIXED-IN: 5.11.0

Test Plan:
make install, run kconf_update: toolBarFont in kdeglobals gets updated
immediately

Change "Toolbar" font in "kcmshell5 fonts", start your favorite KDE
and Qt-only applications: toolbar font and/or font size changed
accordingly

Reviewers: #plasma, davidedmundson, fvogt

Reviewed By: #plasma, davidedmundson, fvogt

Subscribers: fvogt, davidedmundson, jensreuterberg, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D6697

M  +1    -1    src/platformtheme/CMakeLists.txt
A  +9    -0    src/platformtheme/fonts_global_toolbar.upd
M  +2    -1    src/platformtheme/kdeplatformtheme.cpp
M  +1    -1    src/platformtheme/kfontsettingsdata.cpp

https://commits.kde.org/plasma-integration/86be8d49d8988fb6c35e847ed9e0aad3e8514208

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.


More information about the Unassigned-bugs mailing list