Bug 362325 - Current page title (in the breadcrumb) to be aligned to center
Summary: Current page title (in the breadcrumb) to be aligned to center
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kirigami
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: Not decided
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-26 20:54 UTC by Alex L
Modified: 2016-07-19 10:02 UTC (History)
1 user (show)

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


Attachments
title of the current page in the center (110.26 KB, image/png)
2016-04-26 20:54 UTC, Alex L
Details
last page centered (34.37 KB, image/png)
2016-04-27 13:23 UTC, Marco Martin
Details

Note You need to log in before you can comment on or make changes to this bug.
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