ryanw-mobile / OctoMeter

🔥Kotlin Multiplatform Desktop/Android/iOS Energy Tracker app
Other
88 stars 8 forks source link

(#187) dashboard widget text scaling #197

Closed ryanw-mobile closed 1 month ago

ryanw-mobile commented 1 month ago

The dashboard widget has a flaw that we scaled the fontScale but did not make the density constant so that the fontScale calculation is indeed incorrect if the density is not the one we expect.

Now we also hardcode the density so that the scaling will always be correct according to the available screen width.

Also we improved the drawHalfCircleArcSegment style a bit. It looks a bit better on hi-density screens.

codacy-production[bot] commented 1 month ago

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
:white_check_mark: +0.00% (target: -1.00%) :white_check_mark: ∅
Coverage variation details | | Coverable lines | Covered lines | Coverage | | ------------- | ------------- | ------------- | ------------- | | Common ancestor commit (e83f99cdaf2a9b349080bb3076f8878e845d9487) | 1705 | 780 | 45.75% | | | Head commit (ed3f06e945fbbd8c3b8e9edfa3af8b92942c1337) | 1705 (+0) | 780 (+0) | 45.75% (**+0.00%**) | **Coverage variation** is the difference between the coverage for the head and common ancestor commits of the pull request branch: ` - `
Diff coverage details | | Coverable lines | Covered lines | Diff coverage | | ------------- | ------------- | ------------- | ------------- | | Pull request (#197) | 0 | 0 | **∅ (not applicable)** | **Diff coverage** is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: `/ * 100%`

See your quality gate settings    Change summary preferences


:rocket: Don’t miss a bit, follow what’s new on Codacy.

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more