kiwix-desktop
kiwix-desktop copied to clipboard
Buttons in toolbar drawn incorrectly in right-to-left layout
Found on current 'master' (ca776b46)
Steps to reproduce:
- Run Kiwix application with right-to-left interface layout by adding -reverse CLI option
- See the buttons in toolbar
- Open any .zim file from library
- See the buttons in toolbar again
Actual result:
Expected result:
Graphical items in toolbar should not overwrite each other, no duplicate drawings.
Additional info
There is another issue about Back/Forward buttons order: #595
@asashnov and the icons should be on the right!!!
@kelson42 Which icons did you ment in your previous comment?
Icons inside tab headers (close button and the content web page icon) are reverted- that's right, this is a standard behaviour of QTabbar. At least, on my Linux.
On Windows it can be different, need to check with Kiwix.
One of the example I manage to find on the Internet with Arabic interface is ESET:
Source: https://help.eset.com/ees/6/ar-EG/index.html?idh_config_antiphish.htm
Qt manual says (https://doc.qt.io/qt-5/qtquick-positioning-righttoleft.html):
The general rule of thumb is that content (like photos, videos and maps) is not mirrored, but positioning of the content (like application layouts and the flow of visual elements) is mirrored. ... Also, there are some special cases you may need to take into account where right-to-left language speakers are used to left-to-right positioning, for example when using number dialers in phones and media play, pause, rewind and forward buttons in music players.
But it says nothing clearly about tabs header.
So I'm confused here. I think we can rely on the default behaviour of QTabbar now, and may setLayoutDirection(Qt::LeftToRight);
in Tabbar constructor if users ask us about it:
This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.
@asashnov One #525 is fixed, we shoukd really fix this one.
@asashnov Sorry for my lack of feedback. I did not meant the tab headers. I meant the context of the search box:
- The text should be aligned right (like the suggestions)
- Any magnify logo should be on the right as well
This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.