Bug 362325

Summary: Current page title (in the breadcrumb) to be aligned to center
Product: [Frameworks and Libraries] frameworks-kirigami Reporter: Alex L <alexlong92>
Component: generalAssignee: Marco Martin <notmart>
Status: RESOLVED FIXED    
Severity: normal CC: thomas.pfeiffer
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: Not decided   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: title of the current page in the center
last page centered

Description Alex L 2016-04-26 20:54:57 UTC
Created attachment 98629 [details]
title of the current page in the center

Currently the titles of the pages are aligned to the left in the breadcrumb. When go deeper in the hierarchy opening new pages, the title of the current one is more at the right because of the previous pages' titles. It looks a little strange.
It would be better to align the current page title to the center of the breadcrumb, with previous/next pages at its left/right side.
See examples in the attached image for clarification.
Comment 1 Marco Martin 2016-04-27 13:20:46 UTC
i'm not sure about it, i have it partly working (not easy to make it reliable), but in the case the current page is either the first or the last it looks very unbalanced as there is half of the titlebar oddly empty
Comment 2 Marco Martin 2016-04-27 13:23:09 UTC
Created attachment 98639 [details]
last page centered
Comment 3 Marco Martin 2016-04-27 14:23:05 UTC
Git commit 6761711de24c328d0f02d75cca074abbca128bb3 by Marco Martin.
Committed on 27/04/2016 at 14:21.
Pushed by mart into branch 'master'.

try to chenter the current item when index changes

this will only work when the current index is neither the first
or the last as they will always be left and right aligned respectively

M  +2    -2    src/qml/ApplicationHeader.qml

http://commits.kde.org/kirigami/6761711de24c328d0f02d75cca074abbca128bb3