New colors don't match old v4.x colors
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
調査の方向性
MaterialDesignTheme.ObsoleteBrushes.xaml と、issue に示されているエントリーポイント ThemeAssist.GetResourceDictionarySource から始めます。obsolete なマッピングと light/dark theme のリソースを、報告されている v4.x および MD3 の surface に関する期待値と比較します。完了には、合意された surface-color スキームと、カスタム theme resource dictionaries に対する方針の決定が必要です。
索引モデルが issue の本文から書いたものです。
説明
Bug explanation
When using MaterialDesignTheme.ObsoleteBrushes.xaml to substitute the new colors to the old ones, the swap isn't good enough. For instance, some of the colors:
It can clearly be seen that, in dark mode, the old background being substituted by the card background is not at all the same. I used it as the lowest layer of the app, but now it doesn't work anymore for that. In light mode instead, the situation wasn't great before either with way too much similarity between the colors, and now it's even worse, with the colors having been reduced to just two shades.
This all scheme also doesn't really match MD3 guidelines, since it doesn't really go from the lowest surface to the highest surface, like this:
Up until now I've personally used the surfaces as lowest to highest like this: Background->Toolbar->Paper->Card
- We could keep doing this by fixing the colors so that they follow more MD3 guidelines, maybe with a couple more surfaces.
- Alternatively, new colors could be added to represent the various surfaces (ie MaterialDesign.Brush.Surface.Lowest etc...)
- Alternatively, again, the ElevationAssist.Elevation could be used in some way to change the colors, but I wouldn't know how.
In my opinion, the first one would be easier to do and less disruptive to everyone's work. I've tried throwing together as a proposal:
Other things that could be added would be more Neutral colors, so every x50 step from 0 to 1000 in order to have more granularity. I'm not sure how the colors were chosen, though.
Also a simple way to substitute the default themes with custom ones (ie create my one resource dictionary and pass it to the ThemeAssist when calling ChangeTheme(). Right now I can only find this hard-coded reference to the themes:
private static string? GetResourceDictionarySource(BaseTheme theme)
{
return theme switch
{
BaseTheme.Light => "pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Light.xaml",
BaseTheme.Dark => "pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Dark.xaml",
_ => null,
};
}
I'm not sure what would be the best way to pass a new dictionary to the ThemeAssist, or if it's even the best place to do such thing.
What do you think?
Version
5.0.0
- 主要言語
- C#
- スター
- 16.3k
- フォーク
- 3.5k
- 平均マージ
- 4時間 25分
- マージ済み PR(30日)
- 4
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
MaterialDesignInXAML/MaterialDesignInXamlToolkit のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
MaterialDesignInXAML/MaterialDesignInXamlToolkit#4124 ·
メンテナーはふだん 1 日以内に返信
-
MaterialDesignChoiceChipListBoxItem missing 'Path=Name' in GroupName binding causes selection conflict between ListBoxes対応中かも @corvinsz が 12 日前に担当しました。 オープンbug evaluation required
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
MaterialDesignInXAML/MaterialDesignInXamlToolkit#4118 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement up-for-grabs
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
MaterialDesignInXAML/MaterialDesignInXamlToolkit#2485 ·
メンテナーはふだん 1 日以内に返信
-
enhancement evaluation required
難易度 3/5 半日 初心者へのやさしさ 30/100
MaterialDesignInXAML/MaterialDesignInXamlToolkit#4120 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Add Semantic, Theme-Aware Colors対応中かも @corvinsz が 22 日前に担当しました。 オープンenhancement
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
MaterialDesignInXAML/MaterialDesignInXamlToolkit#4114 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
MaterialDesignInXAML/MaterialDesignInXamlToolkit の issue をすべて見る
似ている issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
a-corriger documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
christian-raj/S-Aloha#312 ·
-
ready-for-agent tech-debt
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
DigiBanks99/menlo#640 ·
メンテナーはふだん 1 日以内に返信
-
ci
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
OpenTabletDriver/OpenTabletDriver#5283 ·
メンテナーはふだん 3 日以内に返信
-
area / templates
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
bitfoundation/bitplatform#15109 ·
メンテナーはふだん 1 日以内に返信