diff --git a/src/client/spark/Images/Icons.cs b/src/client/spark/Images/Icons.cs index 3814e9b7f..60a7b0ca9 100644 --- a/src/client/spark/Images/Icons.cs +++ b/src/client/spark/Images/Icons.cs @@ -22,9 +22,9 @@ namespace mbts.ui { AddBoxesGeometryKey = nameof(AddBoxesGeometryKey), AddFileGeometryKey = nameof(AddFileGeometryKey), AddFileThinGeometryKey = nameof(AddFileThinGeometryKey), - AttachAlgosGeometryKey = nameof(AttachAlgosGeometryKey), + AttachAlgosKey = nameof(AttachAlgosKey), CheckMarkGeometryKey = nameof(CheckMarkGeometryKey), - DetachAlgosGeometryKey = nameof(DetachAlgosGeometryKey), + DetachAlgosKey = nameof(DetachAlgosKey), DiskGeometryKey = nameof(DiskGeometryKey), DiskFileGeometryKey = nameof(DiskFileGeometryKey), DocumentGeometryKey = nameof(DocumentGeometryKey), @@ -120,7 +120,7 @@ namespace mbts.ui { public static ImageSource AddBoxes => create_icon(AddBoxesGeometryKey); public static ImageSource AddEncircled { get { return load_resource_and_freeze("AddEncircled"); } } public static ImageSource AddFile => create_icon(Smashicons.AddFileGeometryKey); - public static ImageSource AttachAlgos => create_icon(AttachAlgosGeometryKey); + public static ImageSource AttachAlgos => create_icon(AttachAlgosKey); public static ImageSource Beaker { get { return load_resource_and_freeze("Beaker"); } } public static ImageSource Book { get { return load_resource_and_freeze("Book"); } } @@ -145,7 +145,7 @@ namespace mbts.ui { public static ImageSource CheckMark => create_icon(CheckMarkGeometryKey); public static ImageSource Clock { get { return load_resource_and_freeze("Clock"); } } public static ImageSource Defrag { get { return load_resource_and_freeze("Defrag"); } } - public static ImageSource DetachAlgos => create_icon(DetachAlgosGeometryKey); + public static ImageSource DetachAlgos => create_icon_and_rotate(DetachAlgosKey, Brushes.Red); public static ImageSource Disk => create_icon(DiskGeometryKey); public static ImageSource DiskFile => create_icon(DiskFileGeometryKey); public static ImageSource Display { get { return load_resource_and_freeze("Display"); } } @@ -183,8 +183,6 @@ namespace mbts.ui { public static ImageSource HandPointingOverDocument => load_resource_and_freeze("HandPointingOverDocument"); public static ImageSource Support => load_resource_and_freeze("SupportIcon"); public static ImageSource FloppyDisk => create_icon("FloppyDisk"); - public static ImageSource LetterA => create_icon(LetterAKey); - public static ImageSource LetterD => create_icon(LetterDKey); public static ImageSource create_icon(string geometric_path_key) => @@ -196,6 +194,19 @@ namespace mbts.ui { return rv; } + public static ImageSource create_icon_and_rotate(string geometric_path_key, Brush brush = null, Pen pen = null, Transform transform = null, double degrees = 90) { + if (brush == null) { + brush = Brushes.Black; + } + var drawing = create_drawing(geometric_path_key, brush, pen, transform); + var dg = new DrawingGroup(); + dg.Children.Add(drawing); + dg.Transform = new RotateTransform(degrees); + var rv = new DrawingImage(dg); + rv.Freeze(); + return rv; + } + public static Drawing create_drawing(string geometric_path_key) => create_drawing(geometric_path_key, Brushes.Black); diff --git a/src/client/spark/Images/Vector/Icons.xaml b/src/client/spark/Images/Vector/Icons.xaml index 113fa7937..67d56e46a 100644 --- a/src/client/spark/Images/Vector/Icons.xaml +++ b/src/client/spark/Images/Vector/Icons.xaml @@ -6,11 +6,11 @@ xmlns:sys="clr-namespace:System;assembly=mscorlib" > - - m 46.773076,111.03571 h -0.961181 l -0.785482,-2.07739 h -3.141927 l -0.738973,2.07739 h -0.966349 l 2.842203,-7.4104 h 0.89917 z m -2.030884,-2.8577 -1.162719,-3.15743 q -0.05684,-0.15503 -0.113688,-0.4961 h -0.02067 q -0.05168,0.31523 -0.118856,0.4961 l -1.152384,3.15743 z + + M10.519881,14.945064C11.300896,14.955074,12.079896,15.102078,12.819896,15.386075L10.878893,17.326085C9.6458764,17.201085,8.3688531,17.591071,7.4258485,18.533091L3.5977991,22.360102C1.9327704,24.026093 1.9317786,26.736124 3.5977991,28.402117 5.2638197,30.068108 7.9748359,30.068108 9.6398644,28.402117L13.467914,24.575106C14.410919,23.632109,14.800938,22.355097,14.675937,21.121083L16.615963,19.180096C17.523962,21.546103,17.034943,24.325104,15.126931,26.234108L11.298882,30.061119C8.7138591,32.64612 4.5238051,32.64612 1.9387672,30.062127 -0.64625573,27.477126 -0.64625573,23.287106 1.9387672,20.701098L5.7668166,16.875065C7.077837,15.564055,8.8018727,14.923061,10.519881,14.945064z M19.825993,10.418039L21.580012,12.17305 12.089907,21.665091 10.333873,19.911087z M25.383069,0C27.077088,3.0538786E-08 28.771109,0.64599859 30.063117,1.9390028 32.647133,4.5230274 32.647133,8.7120385 30.062109,11.298047L26.235068,15.125058C24.327055,17.033085,21.547022,17.52207,19.181973,16.614077L21.121998,14.674067C22.356022,14.799068,23.633046,14.409051,24.57605,13.466054L28.403094,9.6400513C30.068121,7.9740295 30.069129,5.2630205 28.403094,3.5980362 26.738064,1.9320143 24.027033,1.9320143 22.362034,3.5980362L18.533986,7.4240398C17.591958,8.3670363,17.201968,9.643042,17.32697,10.877056L15.385937,12.817066C14.478913,10.452035,14.968939,7.6730337,16.875945,5.7660436L20.703019,1.9390028C21.995026,0.64599859,23.689047,3.0538786E-08,25.383069,0z - - m 44.060804,79.285713 v -7.4104 h 2.046386 q 3.917074,0 3.917074,3.612183 0,1.715657 -1.090373,2.759521 -1.085205,1.038696 -2.909383,1.038696 z m 0.868164,-6.624918 v 5.839436 h 1.105875 q 1.457276,0 2.268596,-0.780314 0.81132,-0.780314 0.81132,-2.211751 0,-2.847371 -3.028239,-2.847371 z + + M19.522852,25.255011L20.920847,25.256994 20.920847,29.729012 19.522852,29.729012z M22.826874,21.952002L25.989905,25.113989 25.001887,26.101996 21.838856,22.941015z M25.269894,19.506992L29.742937,19.509007 29.742937,20.906012 25.269894,20.907995z M10.519729,14.945011C11.300744,14.954991,12.079745,15.103001,12.818766,15.386997L10.878742,17.327C9.6457264,17.200016,8.368704,17.592014,7.4257004,18.532993L3.597655,22.359015C1.9326275,24.025 1.9316508,26.734991 3.597655,28.40299 5.2636887,30.068001 7.9747178,30.066017 9.6397144,28.40299L13.468767,24.575018C14.410794,23.633001,14.800783,22.355993,14.674774,21.122015L16.615807,19.181004C17.523806,21.547003,17.034817,24.325995,15.126776,26.233008L11.298761,30.061012C8.713709,32.644997 4.5236599,32.644997 1.9396465,30.061012 -0.64638097,27.475012 -0.64638097,23.286017 1.9386395,20.702002L5.7666852,16.875004C7.0777046,15.562992,8.8017227,14.922001,10.519729,14.945011z M2.1536381,10.959994L6.6257035,10.959994 6.6266801,12.359988 2.1536381,12.359988z M6.7686803,5.894014L9.9307338,9.0549947 8.9427158,10.044008 5.7806932,6.8819901z M10.976735,2.1390082L12.374761,2.1390082 12.375768,6.6130081 10.975728,6.6130081z M25.382902,0C27.076922,-1.8170738E-08 28.770941,0.6470033 30.063955,1.9389956 32.646992,4.5220043 32.646992,8.7130147 30.061941,11.297L26.234902,15.126011C24.326891,17.032993,21.546862,17.521,19.181845,16.614994L21.121868,14.674015C22.35586,14.798008,23.63389,14.407992,24.575886,13.467013L28.403933,9.6390096C30.067953,7.972994 30.069967,5.2619945 28.403933,3.5960094 26.738905,1.9310002 24.0269,1.9320073 22.361872,3.5960094L18.533827,7.4249893C17.591829,8.3659993,17.201811,9.6440145,17.32782,10.87601L15.385781,12.817996C14.477781,10.453005,14.968784,7.6730062,16.875818,5.7659928L20.702858,1.9379885C21.994864,0.64599622,23.688883,-1.8170738E-08,25.382902,0z - - - M51.173,3.801c-5.068-5.068-13.315-5.066-18.384,0l-9.192,9.192c-0.781,0.781-0.781,2.047,0,2.828 - c0.781,0.781,2.047,0.781,2.828,0l9.192-9.192c1.691-1.69,3.951-2.622,6.363-2.622c2.413,0,4.673,0.932,6.364,2.623 - s2.623,3.951,2.623,6.364c0,2.412-0.932,4.672-2.623,6.363L36.325,31.379c-3.51,3.508-9.219,3.508-12.729,0 - c-0.781-0.781-2.047-0.781-2.828,0s-0.781,2.048,0,2.828c2.534,2.534,5.863,3.801,9.192,3.801s6.658-1.267,9.192-3.801 - l12.021-12.021c2.447-2.446,3.795-5.711,3.795-9.192C54.968,9.512,53.62,6.248,51.173,3.801z - - - M27.132,40.57l-7.778,7.778c-1.691,1.691-3.951,2.623-6.364,2.623c-2.412,0-4.673-0.932-6.364-2.623 - c-3.509-3.509-3.509-9.219,0-12.728L17.94,24.306c1.691-1.69,3.951-2.622,6.364-2.622c2.412,0,4.672,0.932,6.363,2.622 - c0.781,0.781,2.047,0.781,2.828,0s0.781-2.047,0-2.828c-5.067-5.067-13.314-5.068-18.384,0L3.797,32.793 - c-2.446,2.446-3.794,5.711-3.794,9.192c0,3.48,1.348,6.745,3.795,9.191c2.446,2.447,5.711,3.795,9.191,3.795 - c3.481,0,6.746-1.348,9.192-3.795l7.778-7.778c0.781-0.781,0.781-2.047,0-2.828S27.913,39.789,27.132,40.57z - - - - - - - M462.557,77.627c-14.323-25.556-41.488-41.423-70.889-41.423c-13.835,0-27.54,3.585-39.602,10.364 - l-152.557,85.635l17.55,31.279l152.565-85.635c6.747-3.78,14.371-5.779,22.069-5.779c16.428,0,31.596,8.852,39.594,23.11 - c5.909,10.535,7.356,22.752,4.072,34.408c-3.268,11.656-10.876,21.346-21.411,27.255l-138.291,77.604 - c-2.634-16.851-10.494-32.392-22.793-44.699c-21.687-21.663-56.063-29.328-84.935-18.964l-12.485,4.495l12.128,33.734 - l12.534-4.471c16.127-5.869,35.319-1.496,47.406,10.567c6.974,6.982,11.388,15.826,12.786,25.41 - c-0.585-0.138-1.171-0.285-1.731-0.447c-11.681-3.284-21.354-10.9-27.271-21.476l-6.519-11.518l-31.303,17.59l6.56,11.518 - c10.6,18.915,27.93,32.571,48.836,38.44c0.723,0.187,1.455,0.39,2.187,0.561c-1.105,1.398-2.284,2.731-3.536,3.983 - l-114.32,114.328c-8.551,8.543-19.931,13.241-32.035,13.241c-12.112,0-23.492-4.698-32.027-13.241 - c-8.535-8.543-13.233-19.907-13.233-32.027c0-12.112,4.698-23.483,13.233-32.018l99.291-99.282l-25.369-25.369l-99.282,99.282 - C8.446,319.427,0,339.806,0,361.468c0,21.679,8.446,42.049,23.776,57.396c15.339,15.339,35.709,23.768,57.388,23.768 - s42.049-8.429,57.388-23.768l114.345-114.32c8.372-8.405,14.81-18.566,18.842-29.71c6.625-1.764,12.924-4.3,18.777-7.6 - l140.99-79.115c18.875-10.608,32.514-27.946,38.375-48.828C475.749,118.4,473.148,96.493,462.557,77.627z - - - M173.171,141.769c4.503-0.821,7.511-5.145,6.69-9.657l-17.103-94.942 - c-0.821-4.519-5.162-7.527-9.665-6.722c-4.511,0.821-7.527,5.145-6.706,9.673l17.111,94.925 - C164.311,139.575,168.644,142.574,173.171,141.769z - - - M43.561,191.776l94.934-17.119c4.519-0.821,7.527-5.145,6.706-9.657 - c-0.821-4.528-5.145-7.543-9.649-6.722L40.61,175.405c-4.503,0.797-7.519,5.145-6.698,9.657 - C34.717,189.582,39.058,192.589,43.561,191.776z - - -