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: add missing foreground color attribute #7501

Merged
merged 1 commit into from
Apr 18, 2023

Conversation

nimau
Copy link
Contributor

@nimau nimau commented Apr 17, 2023

If the event formatter fails to create an attributed string for an event, a default attributed string is generated but it does not have a colour attribute, making it difficult to see in dark mode.

Current behaviour:
missing-color-attribute

With this fix:
missing-color-attribute-fix

@nimau nimau force-pushed the nimau/PSB-307-lasteventdescription-color branch from 853d89e to 2197268 Compare April 17, 2023 13:53
@nimau nimau marked this pull request as ready for review April 17, 2023 13:54
@nimau nimau requested a review from Anderas April 17, 2023 13:54
@sonarcloud
Copy link

sonarcloud bot commented Apr 17, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@codecov
Copy link

codecov bot commented Apr 17, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.05 🎉

Comparison is base (c1a9f31) 12.31% compared to head (2197268) 12.36%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #7501      +/-   ##
===========================================
+ Coverage    12.31%   12.36%   +0.05%     
===========================================
  Files         1645     1645              
  Lines       163418   163433      +15     
  Branches     67077    67090      +13     
===========================================
+ Hits         20120    20204      +84     
+ Misses      142644   142570      -74     
- Partials       654      659       +5     
Flag Coverage Δ
uitests 55.28% <ø> (+0.08%) ⬆️
unittests 6.23% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
Riot/Utils/EventFormatter.m 7.60% <0.00%> (-0.02%) ⬇️

... and 7 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@nimau nimau requested review from a team and pixlwave and removed request for Anderas and a team April 18, 2023 08:22
Copy link
Member

@pixlwave pixlwave left a comment

Choose a reason for hiding this comment

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

👍

@nimau nimau merged commit 568b0d1 into develop Apr 18, 2023
@nimau nimau deleted the nimau/PSB-307-lasteventdescription-color branch April 18, 2023 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants