New colors don't match old v4.x colors
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 25/100
Rechercherichtung
Beginne mit MaterialDesignTheme.ObsoleteBrushes.xaml und dem im Issue gezeigten Einstiegspunkt ThemeAssist.GetResourceDictionarySource. Vergleiche die veralteten Zuordnungen sowie die Ressourcen für helle und dunkle Themes mit den gemeldeten Erwartungen an Oberflächen in v4.x und MD3. Die Aufgabe wäre abgeschlossen, wenn ein abgestimmtes Oberflächenfarbschema und ein festgelegter Ansatz für benutzerdefinierte Theme-Ressourcenwörterbücher vorhanden sind.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Vorherrschende Sprache
- C#
- Sterne
- 16.3k
- Forks
- 3.5k
- Ø Merge
- 4 Std. 25 Min.
- Gemergte PRs (30 T.)
- 4
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus MaterialDesignInXAML/MaterialDesignInXamlToolkit
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
MaterialDesignInXAML/MaterialDesignInXamlToolkit#4124 ·
Maintainer antworten meist innerhalb von 1 Tag
-
MaterialDesignChoiceChipListBoxItem missing 'Path=Name' in GroupName binding causes selection conflict between ListBoxesEvtl. vergeben @corvinsz hat das vor 12 Tagen übernommen. Offenbug evaluation required
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 78/100
MaterialDesignInXAML/MaterialDesignInXamlToolkit#4118 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement up-for-grabs
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
MaterialDesignInXAML/MaterialDesignInXamlToolkit#2485 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement evaluation required
Schwierigkeit 3/5 Ein halber Tag Anfängerfreundlichkeit 30/100
MaterialDesignInXAML/MaterialDesignInXamlToolkit#4120 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Add Semantic, Theme-Aware ColorsEvtl. vergeben @corvinsz hat das vor 22 Tagen übernommen. Offenenhancement
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
MaterialDesignInXAML/MaterialDesignInXamlToolkit#4114 · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in MaterialDesignInXAML/MaterialDesignInXamlToolkit
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Natvs/Nt.Automaton#33 ·
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
-
a-corriger documentation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
christian-raj/S-Aloha#312 ·
-
ready-for-agent tech-debt
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 85/100
DigiBanks99/menlo#640 ·
Maintainer antworten meist innerhalb von 1 Tag
-
ci
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 62/100
OpenTabletDriver/OpenTabletDriver#5283 ·
Maintainer antworten meist innerhalb von 3 Tagen