Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ui): fix RTL layout in list delegates #1475

Merged
merged 5 commits into from
Apr 5, 2023

Conversation

ratijas
Copy link
Contributor

@ratijas ratijas commented Mar 21, 2023

After:

image

image

image

Fixes #1463

@ratijas ratijas requested a review from trollixx as a code owner March 21, 2023 16:23
Copy link
Member

@trollixx trollixx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RTL is hard, thanks for working on this!

@@ -59,13 +59,19 @@ void DocsetListItemDelegate::paint(QPainter *painter,
font.setItalic(true);

const QFontMetrics fontMetrics(font);
const int margin = 4; // Random small number
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's probably margin provided by theme we should use here. I'll look into this later.

@trollixx trollixx changed the title Fix RTL layout, add margins to "Updates available" text label fix(ui): fix RTL layout in list delegates Apr 5, 2023
@trollixx trollixx merged commit ef90f24 into zealdocs:main Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

All custom delegate layouts are broken in RTL (Right-to-left) environment
2 participants