Bug 365947

Summary: Icons inside toolbutton are not centered vertically/horizontally
Product: [Frameworks and Libraries] libplasma Reporter: soee <kontakt>
Component: componentsAssignee: Marco Martin <notmart>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 5.24.0   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
URL: http://i.imgur.com/6PkUAIW.jpg
Latest Commit: Version Fixed In:
Sentry Crash Report:

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