Bug: increase visual contrast in completed polls so the text is more easily readable.
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Packages/StatusKit/Sources/StatusKit/Poll/StatusPollView.swift を開き、_PercentWidthLayout 周辺にある完了済みの投票結果の背景を調査します。カスタムの tintColor を使ってビューを再現し、指定された iOS 環境で、完了済みの投票の読みやすさを未完了の状態と比較します。未完了の状態の背景を変更せずに、完了済みの投票のテキストがより読みやすくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Environment:
- OS: 18.7.3
- IceCubesApp version: 2.1.3 (64bc4e2450 built locally)
Description
When displaying a completed poll when a custom tintColor is set similar to this in Display Settings:
The text can be very difficult to read.
The normal background opacity for an uncompleted poll is 0.4. I set the background opacity for a completed poll to 0.6 and it improved the readability.
diff --git a/Packages/StatusKit/Sources/StatusKit/Poll/StatusPollView.swift b/Packages/StatusKit/Sources/StatusKit/Poll/StatusPollView.swift
index 39847cb3..ecaacf7a 100644
--- a/Packages/StatusKit/Sources/StatusKit/Poll/StatusPollView.swift
+++ b/Packages/StatusKit/Sources/StatusKit/Poll/StatusPollView.swift
@@ -170,21 +170,21 @@ public struct StatusPollView: View {
.foregroundColor(theme.labelColor)
.font(.scaledBody)
.lineLimit(3)
.minimumScaleFactor(0.7)
Spacer()
}
.padding(EdgeInsets(top: 5, leading: 10, bottom: 5, trailing: 10))
.background(alignment: .leading) {
if viewModel.showResults || status.account.id == currentAccount.account?.id {
_PercentWidthLayout(percent: relativePercent(for: option.votesCount ?? 0)) {
- RoundedRectangle(cornerRadius: 10).foregroundColor(theme.tintColor)
+ RoundedRectangle(cornerRadius: 10).foregroundColor(theme.tintColor.opacity(0.6))
.transition(
.asymmetric(
insertion: .push(from: .leading),
removal: .push(from: .trailing)))
}
}
}
.background { RoundedRectangle(cornerRadius: 10).fill(theme.tintColor.opacity(0.4)) }
.clipShape(RoundedRectangle(cornerRadius: 10))
}
A change like this might help.
Don't have any devices running os 26 so haven't tested extensively.
I'll run this change locally for awhile.
Related Issues
- Search that this bugs don't already exist before creating it.
#2188
- 主要言語
- Swift
- スター
- 7.1k
- フォーク
- 743
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Dimillian/IceCubesApp のほかの issue
-
Feature request: option to hide unread count from timeline対応中かも @SohaElgaly が 5 日前に担当しました。 オープンenhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Dimillian/IceCubesApp#2502 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
Dimillian/IceCubesApp#2256 ·
メンテナーはふだん 1 日以内に返信
-
Feature request: OpenAI ALT text in different languages対応中かも @meet4731 が 5 日前に担当しました。 オープンenhancement
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
Dimillian/IceCubesApp#2551 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
Dimillian/IceCubesApp#2550 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
Dimillian/IceCubesApp#2549 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
Dimillian/IceCubesApp の issue をすべて見る
似ている issue
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
manaflow-ai/cmux#68791 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
codual-ai/designlane#56 ·
メンテナーはふだん 1 日以内に返信
-
apple
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
erkamyaman/unslop-anything#375 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
openwatersio/slackwater-ios#976 ·
メンテナーはふだん 1 日以内に返信