Fix visual glitches in dark themes
ClosedPublic

Authored by manuelal on Aug 9 2019, 2:46 PM.

Details

Summary

Fix some visual glitches in dark themes, like Breeze Dark.
Now, the LearningProgressChart respects the user's preferences and
uses the background and text color from the theme.

The InformationTable of the user profile now uses the theme's color
to show the data.

Before:


After:

Diff Detail

Repository
R336 KTouch
Lint
Lint Skipped
Unit
Unit Tests Skipped
manuelal created this revision.Aug 9 2019, 2:46 PM
Restricted Application added a project: KDE Edu. · View Herald TranscriptAug 9 2019, 2:46 PM
Restricted Application added a subscriber: kde-edu. · View Herald Transcript
manuelal requested review of this revision.Aug 9 2019, 2:46 PM
gottfried requested changes to this revision.Aug 12 2019, 11:54 AM
gottfried added inline comments.
src/qml/common/InformationTable.qml
28

Please remove all trailing whitespace.

29

Please use KColorScheme instead of SystemPalette for color scheme colors.

Most of KTouch uses the former now. It has some features like complementary colors SystemPalette lacks.

src/qml/common/LearningProgressChart.qml
110 ↗(On Diff #63416)

This is not related to colors.

src/qml/homescreen/StatPopupDialog.qml
46

See above.

src/qml/scorescreen/ScoreScreen.qml
110

See above.

342

This change is not necessary. The legend followed to the color scheme before, too.

351

This change is not necessary. The legend followed to the color scheme before, too.

378

Please use KColorScheme instead.

This revision now requires changes to proceed.Aug 12 2019, 11:54 AM
manuelal updated this revision to Diff 63607.Aug 12 2019, 2:20 PM
manuelal marked 8 inline comments as done.

Hello.
Thanks for the review. I have changed SystemPalette to KColorSheme. Sorry for the change of the width, but in Spanish the translation is too long for the popup, in my opinion.

This may be off of topic, but should we make bigger the popup?

gottfried accepted this revision.Aug 12 2019, 2:43 PM

Thanks for the update!

This may be off of topic, but should we make bigger the popup?

I see. Yes you can, but please in its own commit. This (and the changes here) should go into the Applications/19.08 branch.

This revision is now accepted and ready to land.Aug 12 2019, 2:43 PM

This (and the changes here) should go into the Applications/19.08 branch

I'm new to contribute to KDE. Is this done automatically or I need to do something else?

This (and the changes here) should go into the Applications/19.08 branch

I'm new to contribute to KDE. Is this done automatically or I need to do something else?

With Phabricator, an automatic merge is not possible, unfortunately. It can only do code review.

To push the changes yourself, you need to have a developer account. If you want to continue with KDE development, you should apply sooner or later. In the mean time, I can push the changes for you.

This revision was automatically updated to reflect the committed changes.