Bug 365947 - Icons inside toolbutton are not centered vertically/horizontally
Summary: Icons inside toolbutton are not centered vertically/horizontally
Status: RESOLVED FIXED
Alias: None
Product: libplasma
Classification: Frameworks and Libraries
Component: components (show other bugs)
Version: 5.24.0
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Marco Martin
URL: http://i.imgur.com/6PkUAIW.jpg
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-21 14:42 UTC by soee
Modified: 2016-07-26 12:09 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soee 2016-07-21 14:42:49 UTC
Icons inside toolbutton are not centered vertically/horizontally (close button for notification or windows in present mode)

Reproducible: Always

Steps to Reproduce:
1. Load some element that uses toolbutton, it can be dummy (notify-send test) or real notification or trigger the present windows effect (and hover one of them)
2. The tollbutton for closing those elements has icon inside that is not centered vertically/horizontally
3.

Actual Results:  
Icon inside  toolbutton is not centered v/h

Expected Results:  
Icon inside  toolbutton should be centered v/h
Comment 1 Kai Uwe Broulik 2016-07-26 12:09:27 UTC
Git commit 16f825706887ef77751ebf38cf177ce01f786bd7 by Kai Uwe Broulik.
Committed on 26/07/2016 at 12:09.
Pushed by broulik into branch 'master'.

[Button Styles] Horizontally center in icon-only mode

QtQuick.Layouts by default left aligns content and because the Layout is
anchors.fill'd the icon would show off-center in a button when no text has been set.
This fixes this.

REVIEW: 128493

M  +1    -0    src/declarativeimports/plasmastyle/ButtonStyle.qml
M  +1    -0    src/declarativeimports/plasmastyle/ToolButtonStyle.qml

http://commits.kde.org/plasma-framework/16f825706887ef77751ebf38cf177ce01f786bd7