grid passt und ist einigermaßen eingefärbt
This commit is contained in:
parent
9d75411aa7
commit
e941b4539e
@ -8,32 +8,32 @@ namespace Project_Periodensystem.Persistence
|
||||
public static List<Element> Elements { get; } = new List<Element>
|
||||
{
|
||||
// Erste Periode
|
||||
new Element(1, "H", "Wasserstoff", 1.008, 2.2, 0.000, "Nichtmetall", 0, 0),
|
||||
new Element(2, "He", "Helium", 4.003, 0.0, 0.001, "Edelgas", 0, 17),
|
||||
new Element( 1, "H", "Wasserstoff", 1.008, 2.20, 0.000, "Nichtmetall", 0, 0),
|
||||
new Element( 2, "He", "Helium", 4.003, 0.00, 0.001, "Edelgas", 0, 17),
|
||||
|
||||
// Zweite Periode
|
||||
new Element(3, "Li", "Lithium", 6.940, 0.98, 0.534, "Metall", 1, 0),
|
||||
new Element(4, "Be", "Beryllium", 9.012, 1.57, 1.850, "Metall", 1, 1),
|
||||
new Element( 3, "Li", "Lithium", 6.940, 0.98, 0.534, "Alkalimetall", 1, 0),
|
||||
new Element( 4, "Be", "Beryllium", 9.012, 1.57, 1.850, "Erdalkalimetall", 1, 1),
|
||||
new Element( 5, "B", "Bor", 10.810,2.04, 2.340, "Halbmetall", 1, 12),
|
||||
new Element( 6, "C", "Kohlenstoff", 12.011,2.55, 2.267, "Nichtmetall", 1, 13),
|
||||
new Element( 7, "N", "Stickstoff", 14.007,3.04, 0.001, "Nichtmetall", 1, 14),
|
||||
new Element( 8, "O", "Sauerstoff", 15.999,3.44, 0.001, "Nichtmetall", 1, 15),
|
||||
new Element( 9, "F", "Fluor", 18.998,3.98, 0.002, "Halogen", 1, 16),
|
||||
new Element(10, "Ne", "Neon", 20.180, 0.0, 0.001, "Edelgas", 1, 17),
|
||||
new Element( 10, "Ne", "Neon", 20.180,0.00, 0.001, "Edelgas", 1, 17),
|
||||
|
||||
// Dritte Periode
|
||||
new Element(11, "Na", "Natrium", 22.990, 0.93, 0.971, "Metall", 2, 0),
|
||||
new Element(12, "Mg", "Magnesium", 24.305, 1.31, 1.738, "Metall", 2, 1),
|
||||
new Element(13, "Al", "Aluminium", 26.982, 1.61, 2.698, "Metall", 2, 12),
|
||||
new Element( 11, "Na", "Natrium", 22.990,0.93, 0.971, "Alkalimetall", 2, 0),
|
||||
new Element( 12, "Mg", "Magnesium", 24.305,1.31, 1.738, "Erdalkalimetall", 2, 1),
|
||||
new Element( 13, "Al", "Aluminium", 26.982,1.61, 2.698, "Post-Übergangsmetall",2, 12),
|
||||
new Element( 14, "Si", "Silizium", 28.085,1.90, 2.329, "Halbmetall", 2, 13),
|
||||
new Element( 15, "P", "Phosphor", 30.974,2.19, 1.820, "Nichtmetall", 2, 14),
|
||||
new Element( 16, "S", "Schwefel", 32.060,2.58, 2.067, "Nichtmetall", 2, 15),
|
||||
new Element( 17, "Cl", "Chlor", 35.450,3.16, 0.003, "Halogen", 2, 16),
|
||||
new Element(18, "Ar", "Argon", 39.948, 0.0, 0.002, "Edelgas", 2, 17),
|
||||
new Element( 18, "Ar", "Argon", 39.948,0.00, 0.002, "Edelgas", 2, 17),
|
||||
|
||||
// Vierte Periode
|
||||
new Element(19, "K", "Kalium", 39.098, 0.82, 0.862, "Metall", 3, 0),
|
||||
new Element(20, "Ca", "Calcium", 40.078, 1.00, 1.540, "Metall", 3, 1),
|
||||
new Element( 19, "K", "Kalium", 39.098,0.82, 0.862, "Alkalimetall", 3, 0),
|
||||
new Element( 20, "Ca", "Calcium", 40.078,1.00, 1.540, "Erdalkalimetall", 3, 1),
|
||||
new Element( 21, "Sc", "Scandium", 44.956,1.36, 2.989, "Metall", 3, 2),
|
||||
new Element( 22, "Ti", "Titan", 47.867,1.54, 4.540, "Metall", 3, 3),
|
||||
new Element( 23, "V", "Vanadium", 50.942,1.63, 6.110, "Metall", 3, 4),
|
||||
@ -44,15 +44,16 @@ namespace Project_Periodensystem.Persistence
|
||||
new Element( 28, "Ni", "Nickel", 58.693,1.91, 8.912, "Metall", 3, 9),
|
||||
new Element( 29, "Cu", "Kupfer", 63.546,1.90, 8.960, "Metall", 3, 10),
|
||||
new Element( 30, "Zn", "Zink", 65.380,1.65, 7.140, "Metall", 3, 11),
|
||||
new Element(31, "Ga", "Gallium", 69.723, 1.81, 5.910, "Metall", 3, 12),
|
||||
new Element( 31, "Ga", "Gallium", 69.723,1.81, 5.910, "Post-Übergangsmetall",3, 12),
|
||||
new Element( 32, "Ge", "Germanium", 72.630,2.01, 5.323, "Halbmetall", 3, 13),
|
||||
new Element( 33, "As", "Arsen", 74.922,2.18, 5.776, "Halbmetall", 3, 14),
|
||||
new Element( 34, "Se", "Selen", 78.971,2.55, 4.809, "Nichtmetall", 3, 15),
|
||||
new Element( 35, "Br", "Brom", 79.904,2.96, 3.122, "Halogen", 3, 16),
|
||||
new Element( 36, "Kr", "Krypton", 83.798,3.00, 0.004, "Edelgas", 3, 17),
|
||||
|
||||
// Fünfte Periode
|
||||
new Element(37, "Rb", "Rubidium", 85.468, 0.82, 1.532, "Metall", 4, 0),
|
||||
new Element(38, "Sr", "Strontium", 87.620, 0.95, 2.640, "Metall", 4, 1),
|
||||
new Element( 37, "Rb", "Rubidium", 85.468,0.82, 1.532, "Alkalimetall", 4, 0),
|
||||
new Element( 38, "Sr", "Strontium", 87.620,0.95, 2.640, "Erdalkalimetall", 4, 1),
|
||||
new Element( 39, "Y", "Yttrium", 88.906,1.22, 4.472, "Metall", 4, 2),
|
||||
new Element( 40, "Zr", "Zirconium", 91.224,1.33, 6.520, "Metall", 4, 3),
|
||||
new Element( 41, "Nb", "Niob", 92.906,1.60, 8.570, "Metall", 4, 4),
|
||||
@ -61,19 +62,19 @@ namespace Project_Periodensystem.Persistence
|
||||
new Element( 44, "Ru", "Ruthenium", 101.070,2.20,12.370, "Metall", 4, 7),
|
||||
new Element( 45, "Rh", "Rhodium", 102.910,2.28,12.410, "Metall", 4, 8),
|
||||
new Element( 46, "Pd", "Palladium", 106.420,2.20,12.020, "Metall", 4, 9),
|
||||
new Element(47, "Ag", "Silber", 107.870, 1.93, 10.490, "Metall", 4, 10),
|
||||
new Element(48, "Cd", "Cadmium", 112.410, 1.69, 8.650, "Metall", 4, 11),
|
||||
new Element(49, "In", "Indium", 114.820, 1.78, 7.310, "Metall", 4, 12),
|
||||
new Element(50, "Sn", "Zinn", 118.710, 1.96, 7.287, "Metall", 4, 13),
|
||||
new Element( 47, "Ag", "Silber", 107.868,1.93,10.490, "Metall", 4, 10),
|
||||
new Element( 48, "Cd", "Cadmium", 112.414,1.69, 8.650, "Metall", 4, 11),
|
||||
new Element( 49, "In", "Indium", 114.818,1.78, 7.310, "Post-Übergangsmetall",4, 12),
|
||||
new Element( 50, "Sn", "Zinn", 118.710,1.96, 7.287, "Post-Übergangsmetall",4, 13),
|
||||
new Element( 51, "Sb", "Antimon", 121.760,2.05, 6.685, "Halbmetall", 4, 14),
|
||||
new Element( 52, "Te", "Tellur", 127.600,2.10, 6.232, "Halbmetall", 4, 15),
|
||||
new Element( 53, "I", "Iod", 126.900,2.66, 4.930, "Halogen", 4, 16),
|
||||
new Element( 54, "Xe", "Xenon", 131.293,2.60, 0.006, "Edelgas", 4, 17),
|
||||
|
||||
// Sechste Periode
|
||||
new Element(55, "Cs", "Caesium", 132.910, 0.79, 1.930, "Metall", 5, 0),
|
||||
new Element(56, "Ba", "Barium", 137.330, 0.89, 3.620, "Metall", 5, 1),
|
||||
// La-Lu gehört hier dazwischen, aber wir setzen Lanthanoide meist unten
|
||||
new Element( 55, "Cs", "Caesium", 132.910,0.79, 1.930, "Alkalimetall", 5, 0),
|
||||
new Element( 56, "Ba", "Barium", 137.330,0.89, 3.620, "Erdalkalimetall", 5, 1),
|
||||
// Das 4f-Block (57–71) folgt unten
|
||||
new Element( 72, "Hf", "Hafnium", 178.490,1.30,13.310, "Metall", 5, 3),
|
||||
new Element( 73, "Ta", "Tantal", 180.950,1.50,16.654, "Metall", 5, 4),
|
||||
new Element( 74, "W", "Wolfram", 183.840,2.36,19.250, "Metall", 5, 5),
|
||||
@ -83,17 +84,16 @@ namespace Project_Periodensystem.Persistence
|
||||
new Element( 78, "Pt", "Platin", 195.080,2.28,21.450, "Metall", 5, 9),
|
||||
new Element( 79, "Au", "Gold", 196.970,2.54,19.320, "Metall", 5, 10),
|
||||
new Element( 80, "Hg", "Quecksilber", 200.590,2.00,13.534, "Metall", 5, 11),
|
||||
new Element(81, "Tl", "Thallium", 204.380, 1.62, 11.850, "Metall", 5, 12),
|
||||
new Element(82, "Pb", "Blei", 207.200, 2.33, 11.340, "Metall", 5, 13),
|
||||
new Element(83, "Bi", "Bismut", 208.980, 2.02, 9.780, "Metall", 5, 14),
|
||||
new Element( 81, "Tl", "Thallium", 204.380,1.62,11.850, "Post-Übergangsmetall",5, 12),
|
||||
new Element( 82, "Pb", "Blei", 207.200,2.33,11.340, "Post-Übergangsmetall",5, 13),
|
||||
new Element( 83, "Bi", "Bismut", 208.980,2.02, 9.780, "Post-Übergangsmetall",5, 14),
|
||||
new Element( 84, "Po", "Polonium", 209.000,2.00, 9.196, "Metall", 5, 15),
|
||||
new Element( 85, "At", "Astat", 210.000,2.20, 7.000, "Halogen", 5, 16),
|
||||
new Element( 86, "Rn", "Radon", 222.000,0.00, 0.010, "Edelgas", 5, 17),
|
||||
|
||||
// Siebte Periode
|
||||
new Element(87, "Fr", "Francium", 223.000, 0.70, 1.870, "Metall", 6, 0),
|
||||
new Element(88, "Ra", "Radium", 226.000, 0.90, 5.500, "Metall", 6, 1),
|
||||
// Ac-Lr gehört hier dazwischen (Actinoide)
|
||||
// Siebte Periode (ohne 5f-Block)
|
||||
new Element( 87, "Fr", "Francium", 223.000,0.70, 1.870, "Alkalimetall", 6, 0),
|
||||
new Element( 88, "Ra", "Radium", 226.000,0.90, 5.500, "Erdalkalimetall", 6, 1),
|
||||
new Element(104, "Rf", "Rutherfordium", 267.000,0.00,23.200, "Metall", 6, 3),
|
||||
new Element(105, "Db", "Dubnium", 270.000,0.00,29.300, "Metall", 6, 4),
|
||||
new Element(106, "Sg", "Seaborgium", 271.000,0.00,35.000, "Metall", 6, 5),
|
||||
@ -103,14 +103,14 @@ namespace Project_Periodensystem.Persistence
|
||||
new Element(110, "Ds", "Darmstadtium", 281.000,0.00,28.500, "Metall", 6, 9),
|
||||
new Element(111, "Rg", "Roentgenium", 282.000,0.00,32.000, "Metall", 6, 10),
|
||||
new Element(112, "Cn", "Copernicium", 285.000,0.00,23.700, "Metall", 6, 11),
|
||||
new Element(113, "Nh", "Nihonium", 286.000, 0.00, 16.000, "Unbekannt", 6, 12),
|
||||
new Element(114, "Fl", "Flerovium", 289.000, 0.00, 14.000, "Unbekannt", 6, 13),
|
||||
new Element(115, "Mc", "Moscovium", 290.000, 0.00, 13.500, "Unbekannt", 6, 14),
|
||||
new Element(116, "Lv", "Livermorium", 293.000, 0.00, 12.900, "Unbekannt", 6, 15),
|
||||
new Element(117, "Ts", "Tenness", 294.000, 0.00, 7.200, "Halogen", 6, 16),
|
||||
new Element(118, "Og", "Oganesson", 294.000, 0.00, 4.900, "Unbekannt", 6, 17),
|
||||
new Element(113, "Nh", "Nihonium", 286.000,0.00,16.000, "Post-Übergangsmetall",6, 12),
|
||||
new Element(114, "Fl", "Flerovium", 289.000,0.00,14.000, "Post-Übergangsmetall",6, 13),
|
||||
new Element(115, "Mc", "Moscovium", 290.000,0.00,13.500, "Post-Übergangsmetall",6, 14),
|
||||
new Element(116, "Lv", "Livermorium", 293.000,0.00,12.900, "Metall", 6, 15),
|
||||
new Element(117, "Ts", "Tennessine", 294.000,0.00, 7.200, "Halogen", 6, 16),
|
||||
new Element(118, "Og", "Oganesson", 294.000,0.00, 4.900, "Edelgas", 6, 17),
|
||||
|
||||
// Lanthanoide (La bis Lu) → in Zeile 8 (4f-Block)
|
||||
// Lanthanoide (La–Lu) → in Zeile 8 (4f-Block)
|
||||
new Element( 57, "La", "Lanthan", 138.910,1.10, 6.145, "Lanthanoid", 8, 0),
|
||||
new Element( 58, "Ce", "Cer", 140.120,1.12, 6.770, "Lanthanoid", 8, 1),
|
||||
new Element( 59, "Pr", "Praseodym", 140.910,1.13, 6.773, "Lanthanoid", 8, 2),
|
||||
@ -127,7 +127,7 @@ namespace Project_Periodensystem.Persistence
|
||||
new Element( 70, "Yb", "Ytterbium", 173.040,1.10, 6.965, "Lanthanoid", 8, 13),
|
||||
new Element( 71, "Lu", "Lutetium", 174.970,1.27, 9.840, "Lanthanoid", 8, 14),
|
||||
|
||||
// Actinoide (Ac bis Lr) → in Zeile 9 (5f-Block)
|
||||
// Actinoide (Ac–Lr) → in Zeile 9 (5f-Block)
|
||||
new Element( 89, "Ac", "Actinium", 227.000,1.10,10.070, "Actinoid", 9, 0),
|
||||
new Element( 90, "Th", "Thorium", 232.040,1.30,11.720, "Actinoid", 9, 1),
|
||||
new Element( 91, "Pa", "Protactinium", 231.040,1.50,15.370, "Actinoid", 9, 2),
|
||||
@ -143,8 +143,6 @@ namespace Project_Periodensystem.Persistence
|
||||
new Element(101, "Md", "Mendelevium", 258.000,0.00,10.300, "Actinoid", 9, 12),
|
||||
new Element(102, "No", "Nobelium", 259.000,0.00, 9.900, "Actinoid", 9, 13),
|
||||
new Element(103, "Lr", "Lawrencium", 262.000,0.00,15.600, "Actinoid", 9, 14)
|
||||
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@ -10,20 +10,21 @@ namespace Project_Periodensystem.View.Converters
|
||||
public object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
|
||||
{
|
||||
if (value is not string series)
|
||||
return new SolidColorBrush(Color.Parse("#222222")); // nocategory
|
||||
return new SolidColorBrush(Color.Parse("#222222")); // fallback
|
||||
|
||||
return series switch
|
||||
{
|
||||
"Nichtmetall" => new SolidColorBrush(Color.Parse("#3e6418")), // nonmetal
|
||||
"Metall" => new SolidColorBrush(Color.Parse("#711019")), // transition
|
||||
"Halbmetall" => new SolidColorBrush(Color.Parse("#015146")), // metalloid
|
||||
"Edelgas" => new SolidColorBrush(Color.Parse("#3a2151")), // noble
|
||||
"Halogen" => new SolidColorBrush(Color.Parse("#846011")), // alkaline (kein halogen-stil da)
|
||||
"Nichtmetall" => new SolidColorBrush(Color.Parse("#3e6418")),
|
||||
"Metall" => new SolidColorBrush(Color.Parse("#711019")), // Übergangsmetall
|
||||
"Post-Übergangsmetall" => new SolidColorBrush(Color.Parse("#555555")), // neu hinzugefügt
|
||||
"Halbmetall" => new SolidColorBrush(Color.Parse("#015146")),
|
||||
"Edelgas" => new SolidColorBrush(Color.Parse("#3a2151")),
|
||||
"Halogen" => new SolidColorBrush(Color.Parse("#846011")),
|
||||
"Alkalimetall" => new SolidColorBrush(Color.Parse("#6c3b01")),
|
||||
"Erdalkalimetall" => new SolidColorBrush(Color.Parse("#846011")),
|
||||
"Lanthanoid" => new SolidColorBrush(Color.Parse("#402c17")),
|
||||
"Actinoid" => new SolidColorBrush(Color.Parse("#732e4c")),
|
||||
"Alkalimetall" => new SolidColorBrush(Color.Parse("#6c3b01")), // alkali
|
||||
"Erdalkalimetall" => new SolidColorBrush(Color.Parse("#846011")), // alkaline
|
||||
_ => new SolidColorBrush(Color.Parse("#222222")), // fallback: nocategory
|
||||
_ => new SolidColorBrush(Color.Parse("#222222")),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user