Skip to content

Portable Tool for an Ideal Windows Setup

upd. addons page (display files)/flowpanel /images & add filecard

Greedeks4722cc7b7370
diff --git a/.Source/GTweak/Assets/DrawingImages/Cards.xaml b/.Source/GTweak/Assets/DrawingImages/Cards.xaml
index d79f573b..8bb16fa6 100644
--- a/.Source/GTweak/Assets/DrawingImages/Cards.xaml
+++ b/.Source/GTweak/Assets/DrawingImages/Cards.xaml
@@ -91,40 +91,4 @@
</DrawingImage.Drawing>
</DrawingImage>
- <DrawingImage x:Key="Icon_PS1">
- <DrawingImage.Drawing>
- <DrawingGroup ClipGeometry="M0,0 V32 H32 V0 H0 Z">
- <GeometryDrawing Brush="{DynamicResource Brush_Accent}" Geometry="F1 M32,32z M0,0z M9.914,2.387L10.664,2.375C11.191,2.367 11.711,2.363 12.238,2.363 13.035,2.363 13.828,2.34 14.621,2.316Q18.875,2.256 20.351,3.531 20.909,4.151 21.438,4.801C21.895,5.231,22.352,5.661,22.82,6.082L24.18,7.402C24.414,7.622,24.648,7.844,24.895,8.07Q25.222,8.393,25.563,8.723L26.168,9.305Q26.561,9.925,26.461,10.797L26.238,11.523C25.098,11.551,23.957,11.566,22.816,11.586L21.84,11.609Q18.834,11.639,17.598,10.566C17.035,9.441,17.145,8.098,17.082,6.859A8.4,8.4,0,0,0,16.637,4.489L7.355,4.489C7.055,5.691,6.996,6.605,6.996,7.836L6.996,25.977Q6.996,26.913,7.356,27.847C8.141,28.238,8.652,28.207,9.531,28.207L23.316,28.207Q24.015,28.207,24.636,27.847C24.93,26.965 25.004,26.398 25.023,25.484 25.031,25.204 25.035,24.922 25.043,24.629 25.051,24.329 25.055,24.019 25.059,23.711L25.079,22.77C25.102,21.773 25.117,20.777 25.137,19.785 25.148,19.109 25.164,18.437 25.176,17.762 25.211,16.113 25.246,14.457 25.277,12.805Q25.897,12.629,26.559,12.488C27.055,12.984,26.922,13.477,26.929,14.168Q26.931,14.602,26.938,15.047C26.938,15.363 26.938,15.676 26.941,16.004 26.941,16.328 26.945,16.648 26.945,16.98 26.945,17.664 26.953,18.348 26.953,19.035 26.953,20.078 26.965,21.125 26.977,22.168 26.977,22.836 26.98,23.496 26.98,24.164 26.984,24.477 26.988,24.789 26.996,25.109Q26.984,27.876,25.918,29.125C24.918,30.027 24.273,30.207 22.934,30.223 22.594,30.227 22.258,30.23 21.902,30.238L20.797,30.238C20.418,30.238,20.043,30.242,19.657,30.242Q18.459,30.248,17.262,30.242C16.043,30.242,14.824,30.258,13.602,30.27L11.277,30.27C10.91,30.273,10.547,30.277,10.172,30.285Q7.347,30.261,6.168,29.328C5.03900000000001,28.028 5.07,27.051 5.062,25.378 5.062,25.16 5.062,24.945 5.05500000000001,24.723 5.05500000000001,24.008 5.05100000000001,23.297 5.04700000000001,22.578Q5.046,21.834,5.03900000000001,21.09C5.03500000000001,20.043 5.03500000000001,19.004 5.03500000000001,17.96 5.03500000000001,16.629 5.02300000000001,15.293 5.01500000000001,13.957 5.00800000000001,12.93 5.00800000000001,11.902 5.00400000000001,10.875 5.00400000000001,10.383 5.00000000000001,9.89499999999999 5.00000000000001,9.40199999999999A91,91,0,0,1,5.00000000000001,7.33599999999999C5.00000000000001,6.94599999999999 5.00000000000001,6.55499999999999 4.99600000000001,6.15199999999999 5.15200000000001,4.76599999999999 5.66400000000001,3.94499999999999 6.61300000000001,2.94499999999999 7.68300000000001,2.37899999999999 8.72700000000001,2.39099999999999 9.91000000000001,2.37899999999999z M9.914,2.387" />
- <GeometryDrawing Brush="{DynamicResource Brush_Accent}" Geometry="F1 M32,32z M0,0z M10.805,21.39Q10.47,21.392,10.469,21.055L10.469,16.305C10.469,16.078,10.582,15.969,10.805,15.969L12.68,15.969Q13.408,15.969 13.8,16.359 14.192,16.747 14.191,17.48L14.191,17.723Q14.191,18.45 13.801,18.843 13.413,19.235 12.68,19.234L11.14,19.234 11.14,21.059C11.14,21.281,11.031,21.395,10.805,21.395z M11.141,18.559L12.68,18.559Q13.13,18.559 13.324,18.367 13.518,18.173 13.516,17.723L13.516,17.48Q13.516,17.03,13.324,16.836C13.195,16.703,12.98,16.641,12.68,16.641L11.14,16.641z M16.73,21.39Q16.045,21.39 15.664,21.117 15.282,20.841 15.188,20.266 15.17,20.091 15.258,20.004A0.35,0.35,0,0,1,15.512,19.914C15.625,19.914,15.707,19.937,15.762,19.992A0.5,0.5,0,0,1,15.867,20.242C15.902,20.426,15.992,20.555,16.125,20.622Q16.323,20.722,16.73,20.722L17.883,20.722C18.227,20.722,18.461,20.664,18.582,20.539Q18.77,20.353 18.77,19.844 18.769,19.332 18.574,19.137 18.387,18.943 17.883,18.945L16.891,18.945C16.383,18.945 16.011,18.825 15.766,18.575 15.523,18.328 15.402,17.957 15.402,17.449Q15.402,16.694 15.762,16.332 16.127,15.969 16.879,15.969L17.832,15.969Q18.471,15.969 18.828,16.227 19.192,16.484 19.285,17.023 19.309,17.199 19.223,17.285C19.164,17.348 19.074,17.375 18.957,17.375 18.852,17.375 18.77,17.348 18.719,17.293A0.45,0.45,0,0,1,18.609,17.051A0.46,0.46,0,0,0,18.367,16.727Q18.187,16.64,17.828,16.641L16.875,16.641Q16.4,16.643,16.235,16.809C16.125,16.922 16.07,17.137 16.07,17.445 16.07,17.758 16.129,17.977 16.238,18.098Q16.409,18.273,16.891,18.273L17.883,18.273Q18.668,18.271 19.055,18.656 19.442,19.037 19.441,19.84C19.441,20.375,19.316,20.762,19.059,21.016Q18.678,21.391,17.887,21.391z M21.496,21.39Q21.161,21.392,21.16,21.055L21.16,16.93 21.348,16.8 20.468,17.621A0.4,0.4,0,0,1,20.258,17.738Q20.146,17.755 20.035,17.648 19.82,17.433 20.062,17.195L21.132,16.137A0.57,0.57,0,0,1,21.547,15.969Q21.837,15.967,21.836,16.305L21.836,21.055Q21.838,21.392,21.5,21.391z M21.496,21.39" />
- </DrawingGroup>
- </DrawingImage.Drawing>
- </DrawingImage>
-
- <DrawingImage x:Key="Icon_CMD">
- <DrawingImage.Drawing>
- <DrawingGroup ClipGeometry="M0,0 V32 H32 V0 H0 Z">
- <GeometryDrawing Brush="{DynamicResource Brush_Accent}" Geometry="F1 M32,32z M0,0z M9.914,2.387L10.664,2.375C11.191,2.367 11.711,2.363 12.238,2.363 13.035,2.363 13.828,2.34 14.621,2.316Q18.875,2.256 20.351,3.531 20.909,4.151 21.438,4.801C21.895,5.231,22.352,5.661,22.82,6.082L24.18,7.402C24.414,7.622,24.648,7.844,24.895,8.07Q25.222,8.393,25.563,8.723L26.168,9.305Q26.561,9.925,26.461,10.797L26.238,11.523C25.098,11.551,23.957,11.566,22.816,11.586L21.84,11.609Q18.834,11.639,17.598,10.566C17.035,9.441,17.145,8.098,17.082,6.859A8.4,8.4,0,0,0,16.637,4.489L7.355,4.489C7.055,5.691,6.996,6.605,6.996,7.836L6.996,25.977Q6.996,26.913,7.356,27.847C8.141,28.238,8.652,28.207,9.531,28.207L23.316,28.207Q24.015,28.207,24.636,27.847C24.93,26.965 25.004,26.398 25.023,25.484 25.031,25.204 25.035,24.922 25.043,24.629 25.051,24.329 25.055,24.019 25.059,23.711L25.079,22.77C25.102,21.773 25.117,20.777 25.137,19.785 25.148,19.109 25.164,18.437 25.176,17.762 25.211,16.113 25.246,14.457 25.277,12.805Q25.897,12.629,26.559,12.488C27.055,12.984,26.922,13.477,26.929,14.168Q26.931,14.602,26.938,15.047C26.938,15.363 26.938,15.676 26.941,16.004 26.941,16.328 26.945,16.648 26.945,16.98 26.945,17.664 26.953,18.348 26.953,19.035 26.953,20.078 26.965,21.125 26.977,22.168 26.977,22.836 26.98,23.496 26.98,24.164 26.984,24.477 26.988,24.789 26.996,25.109Q26.984,27.876,25.918,29.125C24.918,30.027 24.273,30.207 22.934,30.223 22.594,30.227 22.258,30.23 21.902,30.238L20.797,30.238C20.418,30.238,20.043,30.242,19.657,30.242Q18.459,30.248,17.262,30.242C16.043,30.242,14.824,30.258,13.602,30.27L11.277,30.27C10.91,30.273,10.547,30.277,10.172,30.285Q7.347,30.261,6.168,29.328C5.03900000000001,28.028 5.07,27.051 5.062,25.378 5.062,25.16 5.062,24.945 5.05500000000001,24.723 5.05500000000001,24.008 5.05100000000001,23.297 5.04700000000001,22.578Q5.046,21.834,5.03900000000001,21.09C5.03500000000001,20.043 5.03500000000001,19.004 5.03500000000001,17.96 5.03500000000001,16.629 5.02300000000001,15.293 5.01500000000001,13.957 5.00800000000001,12.93 5.00800000000001,11.902 5.00400000000001,10.875 5.00400000000001,10.383 5.00000000000001,9.89499999999999 5.00000000000001,9.40199999999999A91,91,0,0,1,5.00000000000001,7.33599999999999C5.00000000000001,6.94599999999999 5.00000000000001,6.55499999999999 4.99600000000001,6.15199999999999 5.15200000000001,4.76599999999999 5.66400000000001,3.94499999999999 6.61300000000001,2.94499999999999 7.68300000000001,2.37899999999999 8.72700000000001,2.39099999999999 9.91000000000001,2.37899999999999z M9.914,2.387" />
- <GeometryDrawing Brush="{DynamicResource Brush_Accent}" Geometry="F1 M32,32z M0,0z M9.55,21.39C8.941,21.39,8.488,21.246,8.2,20.953Q7.76,20.517,7.762,19.602L7.762,17.762C7.762,17.145 7.902,16.692 8.195,16.398 8.488,16.105 8.934,15.961 9.543,15.968L10.508,15.968C11.012,15.968 11.391,16.07 11.656,16.278 11.922,16.488 12.074,16.808 12.117,17.258Q12.141,17.428 12.055,17.512 11.967,17.6 11.797,17.602 11.495,17.603 11.445,17.266C11.422,17.02,11.335,16.859,11.195,16.77Q10.98,16.643,10.512,16.645L9.547,16.645C9.266,16.645,9.03900000000001,16.672,8.879,16.738A0.6,0.6,0,0,0,8.53900000000001,17.086C8.469,17.246,8.434,17.476,8.434,17.762L8.434,19.602Q8.434,20.032 8.53900000000001,20.273 8.63700000000001,20.521 8.883,20.621 9.128,20.722 9.55500000000001,20.723L10.515,20.723Q10.985,20.723 11.195,20.593 11.413,20.46 11.449,20.098C11.48,19.875,11.602,19.762,11.801,19.762Q11.971,19.764,12.059,19.848C12.113,19.906,12.137,19.992,12.121,20.105Q12.058,20.778,11.661,21.085C11.395,21.289,11.016,21.391,10.511,21.391z M13.855,21.39Q13.521,21.392,13.52,21.055L13.52,16.305C13.52,16.078,13.633,15.969,13.855,15.969Q14.077,15.969,14.223,16.188L16.113,19.023 15.969,19.051 17.871,16.188A0.45,0.45,0,0,1,18.277,15.968Q18.549,15.966,18.551,16.305L18.551,21.055Q18.551,21.392 18.215,21.391 17.88,21.393 17.879,21.055L17.879,16.977 18.086,17.047 16.406,19.52A0.47,0.47,0,0,1,15.996,19.734C15.875,19.734,15.766,19.66,15.672,19.52L13.992,17.047 14.187,17.105 14.187,21.055C14.187,21.281,14.078,21.391,13.852,21.391z M20.55,21.39Q20.216,21.392,20.215,21.055L20.215,16.305C20.215,16.078,20.328,15.969,20.551,15.969L22.477,15.969Q23.521,15.969 24.016,16.461 24.508,16.952 24.508,18L24.508,19.36Q24.507,20.404,24.02,20.898C23.691,21.23,23.176,21.391,22.477,21.391z M20.887,20.719L22.477,20.719Q22.992,20.72 23.285,20.594 23.583,20.471 23.711,20.172C23.797,19.972,23.836,19.707,23.836,19.363L23.836,18.003Q23.837,17.495,23.711,17.195A0.78,0.78,0,0,0,23.285,16.77Q22.992,16.643,22.477,16.645L20.887,16.645 20.887,20.723z M20.887,20.719" />
- </DrawingGroup>
- </DrawingImage.Drawing>
- </DrawingImage>
-
- <DrawingImage x:Key="Icon_BAT">
- <DrawingImage.Drawing>
- <DrawingGroup ClipGeometry="M0,0 V32 H32 V0 H0 Z">
- <GeometryDrawing Brush="{DynamicResource Brush_Accent}" Geometry="F1 M32,32z M0,0z M9.914,2.387L10.664,2.375C11.191,2.367 11.711,2.363 12.238,2.363 13.035,2.363 13.828,2.34 14.621,2.316Q18.875,2.256 20.351,3.531 20.909,4.151 21.438,4.801C21.895,5.231,22.352,5.661,22.82,6.082L24.18,7.402C24.414,7.622,24.648,7.844,24.895,8.07Q25.222,8.393,25.563,8.723L26.168,9.305Q26.561,9.925,26.461,10.797L26.238,11.523C25.098,11.551,23.957,11.566,22.816,11.586L21.84,11.609Q18.834,11.639,17.598,10.566C17.035,9.441,17.145,8.098,17.082,6.859A8.4,8.4,0,0,0,16.637,4.489L7.355,4.489C7.055,5.691,6.996,6.605,6.996,7.836L6.996,25.977Q6.996,26.913,7.356,27.847C8.141,28.238,8.652,28.207,9.531,28.207L23.316,28.207Q24.015,28.207,24.636,27.847C24.93,26.965 25.004,26.398 25.023,25.484 25.031,25.204 25.035,24.922 25.043,24.629 25.051,24.329 25.055,24.019 25.059,23.711L25.079,22.77C25.102,21.773 25.117,20.777 25.137,19.785 25.148,19.109 25.164,18.437 25.176,17.762 25.211,16.113 25.246,14.457 25.277,12.805Q25.897,12.629,26.559,12.488C27.055,12.984,26.922,13.477,26.929,14.168Q26.931,14.602,26.938,15.047C26.938,15.363 26.938,15.676 26.941,16.004 26.941,16.328 26.945,16.648 26.945,16.98 26.945,17.664 26.953,18.348 26.953,19.035 26.953,20.078 26.965,21.125 26.977,22.168 26.977,22.836 26.98,23.496 26.98,24.164 26.984,24.477 26.988,24.789 26.996,25.109Q26.984,27.876,25.918,29.125C24.918,30.027 24.273,30.207 22.934,30.223 22.594,30.227 22.258,30.23 21.902,30.238L20.797,30.238C20.418,30.238,20.043,30.242,19.657,30.242Q18.459,30.248,17.262,30.242C16.043,30.242,14.824,30.258,13.602,30.27L11.277,30.27C10.91,30.273,10.547,30.277,10.172,30.285Q7.347,30.261,6.168,29.328C5.03900000000001,28.028 5.07,27.051 5.062,25.378 5.062,25.16 5.062,24.945 5.05500000000001,24.723 5.05500000000001,24.008 5.05100000000001,23.297 5.04700000000001,22.578Q5.046,21.834,5.03900000000001,21.09C5.03500000000001,20.043 5.03500000000001,19.004 5.03500000000001,17.96 5.03500000000001,16.629 5.02300000000001,15.293 5.01500000000001,13.957 5.00800000000001,12.93 5.00800000000001,11.902 5.00400000000001,10.875 5.00400000000001,10.383 5.00000000000001,9.89499999999999 5.00000000000001,9.40199999999999A91,91,0,0,1,5.00000000000001,7.33599999999999C5.00000000000001,6.94599999999999 5.00000000000001,6.55499999999999 4.99600000000001,6.15199999999999 5.15200000000001,4.76599999999999 5.66400000000001,3.94499999999999 6.61300000000001,2.94499999999999 7.68300000000001,2.37899999999999 8.72700000000001,2.39099999999999 9.91000000000001,2.37899999999999z M9.914,2.387" />
- <GeometryDrawing Brush="{DynamicResource Brush_Accent}" Geometry="F1 M32,32z M0,0z M9.813,21.39C9.586,21.39,9.477,21.281,9.477,21.055L9.477,16.305C9.477,16.078,9.586,15.969,9.812,15.969L11.898,15.969C12.324,15.969,12.645,16.079,12.875,16.305Q13.219,16.639,13.219,17.265L13.219,17.48Q13.219,18.022 12.879,18.316 13.517,18.674 13.516,19.617L13.516,19.887Q13.516,20.627,13.125,21.007C12.867,21.266,12.492,21.391,12.004,21.391z M10.148,18.117L12.043,18.117Q12.333,18.119,12.438,17.937A0.9,0.9,0,0,0,12.543,17.477L12.543,17.262Q12.544,16.916,12.398,16.773C12.305,16.68,12.133,16.637,11.895,16.637L10.145,16.637 10.145,18.113z M10.148,20.719L12.004,20.719Q12.455,20.721 12.648,20.523 12.846,20.331 12.844,19.887L12.844,19.617Q12.844,19.169 12.656,18.98 12.467,18.793 12.004,18.793L10.148,18.793 10.148,20.723z M14.602,21.36Q14.28,21.235,14.41,20.918L16.312,16.23Q16.436,15.966,16.687,15.965L16.703,15.965A0.37,0.37,0,0,1,17.055,16.23L18.992,20.918C19.078,21.128 19.016,21.278 18.805,21.359 18.594,21.44 18.449,21.383 18.363,21.176L17.933,20.125 15.441,20.125 15.027,21.175C14.945,21.383,14.801,21.441,14.594,21.359z M15.711,19.457L17.664,19.457 16.668,17.031z M21.172,21.39Q21.004,21.39,20.918,21.309C20.859,21.254,20.836,21.168,20.836,21.055L20.836,16.645 19.28,16.645Q19.117,16.645,19.03,16.563A0.36,0.36,0,0,1,18.944,16.309C18.944,16.199,18.976,16.113,19.03,16.059Q19.114,15.975,19.28,15.973L23.058,15.973Q23.226,15.974,23.311,16.059C23.366,16.113,23.394,16.199,23.394,16.309Q23.394,16.477 23.312,16.562 23.229,16.645 23.058,16.645L21.507,16.645 21.507,21.055A0.34,0.34,0,0,1,21.421,21.301A0.34,0.34,0,0,1,21.171,21.391 M21.171,21.391" />
- </DrawingGroup>
- </DrawingImage.Drawing>
- </DrawingImage>
-
- <DrawingImage x:Key="Icon_REG">
- <DrawingImage.Drawing>
- <DrawingGroup ClipGeometry="M0,0 V32 H32 V0 H0 Z">
- <GeometryDrawing Brush="{DynamicResource Brush_Accent}" Geometry="F1 M32,32z M0,0z M9.914,2.387L10.664,2.375C11.191,2.367 11.711,2.363 12.238,2.363 13.035,2.363 13.828,2.34 14.621,2.316Q18.875,2.256 20.351,3.531 20.909,4.151 21.438,4.801C21.895,5.231,22.352,5.661,22.82,6.082L24.18,7.402C24.414,7.622,24.648,7.844,24.895,8.07Q25.222,8.393,25.563,8.723L26.168,9.305Q26.561,9.925,26.461,10.797L26.238,11.523C25.098,11.551,23.957,11.566,22.816,11.586L21.84,11.609Q18.834,11.639,17.598,10.566C17.035,9.441,17.145,8.098,17.082,6.859A8.4,8.4,0,0,0,16.637,4.489L7.355,4.489C7.055,5.691,6.996,6.605,6.996,7.836L6.996,25.977Q6.996,26.913,7.356,27.847C8.141,28.238,8.652,28.207,9.531,28.207L23.316,28.207Q24.015,28.207,24.636,27.847C24.93,26.965 25.004,26.398 25.023,25.484 25.031,25.204 25.035,24.922 25.043,24.629 25.051,24.329 25.055,24.019 25.059,23.711L25.079,22.77C25.102,21.773 25.117,20.777 25.137,19.785 25.148,19.109 25.164,18.437 25.176,17.762 25.211,16.113 25.246,14.457 25.277,12.805Q25.897,12.629,26.559,12.488C27.055,12.984,26.922,13.477,26.929,14.168Q26.931,14.602,26.938,15.047C26.938,15.363 26.938,15.676 26.941,16.004 26.941,16.328 26.945,16.648 26.945,16.98 26.945,17.664 26.953,18.348 26.953,19.035 26.953,20.078 26.965,21.125 26.977,22.168 26.977,22.836 26.98,23.496 26.98,24.164 26.984,24.477 26.988,24.789 26.996,25.109Q26.984,27.876,25.918,29.125C24.918,30.027 24.273,30.207 22.934,30.223 22.594,30.227 22.258,30.23 21.902,30.238L20.797,30.238C20.418,30.238,20.043,30.242,19.657,30.242Q18.459,30.248,17.262,30.242C16.043,30.242,14.824,30.258,13.602,30.27L11.277,30.27C10.91,30.273,10.547,30.277,10.172,30.285Q7.347,30.261,6.168,29.328C5.03900000000001,28.028 5.07,27.051 5.062,25.378 5.062,25.16 5.062,24.945 5.05500000000001,24.723 5.05500000000001,24.008 5.05100000000001,23.297 5.04700000000001,22.578Q5.046,21.834,5.03900000000001,21.09C5.03500000000001,20.043 5.03500000000001,19.004 5.03500000000001,17.96 5.03500000000001,16.629 5.02300000000001,15.293 5.01500000000001,13.957 5.00800000000001,12.93 5.00800000000001,11.902 5.00400000000001,10.875 5.00400000000001,10.383 5.00000000000001,9.89499999999999 5.00000000000001,9.40199999999999A91,91,0,0,1,5.00000000000001,7.33599999999999C5.00000000000001,6.94599999999999 5.00000000000001,6.55499999999999 4.99600000000001,6.15199999999999 5.15200000000001,4.76599999999999 5.66400000000001,3.94499999999999 6.61300000000001,2.94499999999999 7.68300000000001,2.37899999999999 8.72700000000001,2.39099999999999 9.91000000000001,2.37899999999999z M9.914,2.387" />
- <GeometryDrawing Brush="{DynamicResource Brush_Accent}" Geometry="F1 M32,32z M0,0z M12.828,21.406Q12.698,21.489,12.574,21.461A0.38,0.38,0,0,1,12.371,21.297L11.13,19.23 10.009,19.23 10.009,21.055Q10.01,21.392 9.673,21.391 9.338,21.393 9.337,21.055L9.337,16.305C9.337,16.078,9.45,15.969,9.673,15.969L11.548,15.969Q12.276,15.969 12.669,16.359 13.061,16.747 13.059,17.48L13.059,17.723Q13.06,18.358 12.763,18.734 12.463,19.114 11.907,19.207L12.954,20.953Q13.107,21.236,12.825,21.406z M10.012,18.559L11.547,18.559Q12.004,18.559 12.195,18.367 12.389,18.173 12.387,17.723L12.387,17.48Q12.387,17.03,12.195,16.836C12.066,16.703,11.852,16.641,11.547,16.641L10.012,16.641z M14.68,21.39C14.453,21.39,14.344,21.281,14.344,21.055L14.344,16.305C14.344,16.078,14.454,15.969,14.68,15.969L17.547,15.969Q17.887,15.967 17.887,16.305 17.887,16.639 17.547,16.641L15.016,16.641 15.016,18.321 16.606,18.321Q16.94,18.322 16.941,18.656 16.941,18.991 16.605,18.992L15.015,18.992 15.015,20.719 17.547,20.719Q17.887,20.719 17.887,21.055 17.887,21.392 17.547,21.391z M20.605,21.39Q19.687,21.391 19.25,20.953 18.814,20.517 18.813,19.602L18.813,17.762Q18.813,16.838 19.246,16.398 19.686,15.958 20.594,15.968L21.562,15.968Q22.312,15.967,22.711,16.278C22.977,16.488,23.125,16.808,23.171,17.258Q23.195,17.428 23.105,17.512 23.023,17.6 22.852,17.602 22.547,17.604 22.5,17.266C22.473,17.02,22.387,16.859,22.246,16.77Q22.03,16.643,21.566,16.645L20.598,16.645C20.316,16.645,20.094,16.672,19.934,16.738A0.63,0.63,0,0,0,19.586,17.086C19.52,17.246,19.484,17.476,19.484,17.762L19.484,19.602Q19.486,20.032,19.586,20.273A0.62,0.62,0,0,0,19.934,20.621Q20.179,20.722,20.605,20.723L21.566,20.723Q21.937,20.723,22.148,20.641A0.5,0.5,0,0,0,22.441,20.348C22.496,20.211,22.523,20.012,22.523,19.762L22.523,19.382 21.903,19.375Q21.564,19.377 21.566,19.039 21.564,18.704 21.902,18.703L22.859,18.715C23.086,18.715,23.195,18.825,23.195,19.051L23.195,19.761C23.195,20.328,23.066,20.746,22.801,21.004Q22.403,21.396,21.566,21.394L20.606,21.394z M20.605,21.39" />
- </DrawingGroup>
- </DrawingImage.Drawing>
- </DrawingImage>
-
</ResourceDictionary>
\ No newline at end of file
diff --git a/.Source/GTweak/Assets/ImageAddonsFiles/BatFile.png b/.Source/GTweak/Assets/ImageAddonsFiles/BatFile.png
new file mode 100644
index 00000000..281b22a9
Binary files /dev/null and b/.Source/GTweak/Assets/ImageAddonsFiles/BatFile.png differ
diff --git a/.Source/GTweak/Assets/ImageAddonsFiles/CmdFile.png b/.Source/GTweak/Assets/ImageAddonsFiles/CmdFile.png
new file mode 100644
index 00000000..7ae763cf
Binary files /dev/null and b/.Source/GTweak/Assets/ImageAddonsFiles/CmdFile.png differ
diff --git a/.Source/GTweak/Assets/ImageAddonsFiles/PowershellFile.png b/.Source/GTweak/Assets/ImageAddonsFiles/PowershellFile.png
new file mode 100644
index 00000000..adbc1535
Binary files /dev/null and b/.Source/GTweak/Assets/ImageAddonsFiles/PowershellFile.png differ
diff --git a/.Source/GTweak/Assets/ImageAddonsFiles/RegistryFile.png b/.Source/GTweak/Assets/ImageAddonsFiles/RegistryFile.png
new file mode 100644
index 00000000..4bffe629
Binary files /dev/null and b/.Source/GTweak/Assets/ImageAddonsFiles/RegistryFile.png differ
diff --git a/.Source/GTweak/Assets/Images.xaml b/.Source/GTweak/Assets/Images.xaml
index 9b25cb90..a0d90c74 100644
--- a/.Source/GTweak/Assets/Images.xaml
+++ b/.Source/GTweak/Assets/Images.xaml
@@ -1,6 +1,11 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
+ <BitmapImage x:Key="Img_BatFile" UriSource="pack://application:,,,/GTweak;component/Assets/ImageAddonsFiles/BatFile.png"/>
+ <BitmapImage x:Key="Img_CmdFile" UriSource="pack://application:,,,/GTweak;component/Assets/ImageAddonsFiles/CmdFile.png"/>
+ <BitmapImage x:Key="Img_PowershellFile" UriSource="pack://application:,,,/GTweak;component/Assets/ImageAddonsFiles/PowershellFile.png"/>
+ <BitmapImage x:Key="Img_RegistryFile" UriSource="pack://application:,,,/GTweak;component/Assets/ImageAddonsFiles/RegistryFile.png"/>
+
<BitmapImage x:Key="Img_SandTimer" UriSource="pack://application:,,,/GTweak;component/Assets/ImagePackages/SandTimer.png"/>
<BitmapImage x:Key="Img_Alarms" UriSource="pack://application:,,,/GTweak;component/Assets/ImagePackages/Alarms.png"/>
diff --git a/.Source/GTweak/Assets/UserControl/FileCard.xaml b/.Source/GTweak/Assets/UserControl/FileCard.xaml
new file mode 100644
index 00000000..e5da101e
--- /dev/null
+++ b/.Source/GTweak/Assets/UserControl/FileCard.xaml
@@ -0,0 +1,33 @@
+<UserControl x:Class="GTweak.Assets.UserControl.FileCard"
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:local="clr-namespace:GTweak.Assets.UserControl"
+ mc:Ignorable="d"
+ d:Height="Auto" d:Width="Auto" IsTabStop="False" KeyboardNavigation.TabNavigation="None" SnapsToDevicePixels="True"
+ UseLayoutRounding="True" Cursor="Hand" MaxWidth="200">
+ <Grid>
+ <Border CornerRadius="8" Opacity="0.45" Background="#33000000" IsHitTestVisible="False" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Panel.ZIndex="0">
+ <Border.RenderTransform>
+ <TranslateTransform X="3" Y="6" />
+ </Border.RenderTransform>
+ </Border>
+
+ <Border x:Name="CardBody" Background="{StaticResource Brush_Background_Card}" CornerRadius="8" Padding="15" HorizontalAlignment="Stretch" VerticalAlignment="Top" SnapsToDevicePixels="True" Panel.ZIndex="1" MouseEnter="Card_MouseEnter" MouseLeave="Card_MouseLeave" MouseLeftButtonDown="Card_MouseClick">
+ <Grid>
+ <Grid.RowDefinitions>
+ <RowDefinition Height="*"/>
+ <RowDefinition Height="Auto"/>
+ </Grid.RowDefinitions>
+
+ <Viewbox Grid.Row="0" Width="50" Height="50" Stretch="Uniform" HorizontalAlignment="Center" VerticalAlignment="Center">
+ <Image Source="{Binding IconSource, RelativeSource={RelativeSource AncestorType=local:FileCard}, TargetNullValue={StaticResource Img_BatFile}}" Stretch="Uniform"/>
+ </Viewbox>
+
+ <TextBlock Grid.Row="1" Margin="0,15,0,0" FontSize="13px" FontFamily="{StaticResource Jura}" Foreground="{StaticResource Brush_Highlighted}" Text="{Binding FileName, RelativeSource={RelativeSource AncestorType=local:FileCard}}"
+ TextWrapping="Wrap" TextAlignment="Center" VerticalAlignment="Top" HorizontalAlignment="Center" MaxWidth="150" MaxHeight="200" TextTrimming="CharacterEllipsis"/>
+ </Grid>
+ </Border>
+ </Grid>
+</UserControl>
\ No newline at end of file
diff --git a/.Source/GTweak/Assets/UserControl/FileCard.xaml.cs b/.Source/GTweak/Assets/UserControl/FileCard.xaml.cs
new file mode 100644
index 00000000..22fed9b9
--- /dev/null
+++ b/.Source/GTweak/Assets/UserControl/FileCard.xaml.cs
@@ -0,0 +1,63 @@
+using System.Windows;
+using System.Windows.Input;
+using System.Windows.Media;
+using GTweak.Utilities.Animation;
+
+namespace GTweak.Assets.UserControl
+{
+ public partial class FileCard
+ {
+ public static readonly DependencyProperty FileNameProperty = DependencyProperty.Register(nameof(FileName), typeof(string), typeof(FileCard), new PropertyMetadata(string.Empty));
+
+ public static readonly DependencyProperty IconSourceProperty = DependencyProperty.Register(nameof(IconSource), typeof(ImageSource), typeof(FileCard), new PropertyMetadata(null));
+
+ public static readonly DependencyProperty CommandProperty = DependencyProperty.Register(nameof(Command), typeof(ICommand), typeof(FileCard), new PropertyMetadata(null));
+
+ public static readonly DependencyProperty CommandParameterProperty = DependencyProperty.Register(nameof(CommandParameter), typeof(object), typeof(FileCard), new PropertyMetadata(null));
+
+ public string FileName
+ {
+ get => (string)GetValue(FileNameProperty);
+ set => SetValue(FileNameProperty, value);
+ }
+
+ public ImageSource IconSource
+ {
+ get => (ImageSource)GetValue(IconSourceProperty);
+ set => SetValue(IconSourceProperty, value);
+ }
+
+ public ICommand Command
+ {
+ get => (ICommand)GetValue(CommandProperty);
+ set => SetValue(CommandProperty, value);
+ }
+
+ public object CommandParameter
+ {
+ get => GetValue(CommandParameterProperty);
+ set => SetValue(CommandParameterProperty, value);
+ }
+
+ public FileCard()
+ {
+ InitializeComponent();
+ }
+
+ private void Card_MouseEnter(object sender, MouseEventArgs e) => CardBody.BeginAnimation(OpacityProperty, FactoryAnimation.CreateIn(1.0, 0.6, 0.2));
+
+
+ private void Card_MouseLeave(object sender, MouseEventArgs e) => CardBody.BeginAnimation(OpacityProperty, FactoryAnimation.CreateIn(0.6, 1.0, 0.2));
+
+
+ private void Card_MouseClick(object sender, MouseButtonEventArgs e)
+ {
+ if (Command != null && Command.CanExecute(CommandParameter))
+ {
+ Command.Execute(CommandParameter);
+ }
+ CardBody.BeginAnimation(OpacityProperty, FactoryAnimation.CreateIn(1.0, 0.7, 0.1, reverse: true));
+ }
+
+ }
+}
\ No newline at end of file
diff --git a/.Source/GTweak/Assets/UserControl/FlowPanel.cs b/.Source/GTweak/Assets/UserControl/FlowPanel.cs
index 6efdb1bf..33ac867d 100644
--- a/.Source/GTweak/Assets/UserControl/FlowPanel.cs
+++ b/.Source/GTweak/Assets/UserControl/FlowPanel.cs
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
-using System.Linq;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
@@ -10,105 +9,159 @@ namespace GTweak.Assets.UserControl
{
internal sealed class FlowPanel : Panel
{
- private class FlowItemGroup
+ private sealed class FlowItemGroup
{
- internal List<UIElement> Elements { get; set; } = new List<UIElement>();
- internal double Width { get; set; }
- internal double Height { get; set; }
+ internal readonly List<UIElement> Elements = new List<UIElement>();
+ internal double Width;
+ internal double Height;
}
- internal enum FlowOrientation
+ public enum FlowOrientation
{
Unset = 0,
Vertical = 1,
Horizontal = 2
}
- internal static readonly DependencyProperty HorizontalSpacingProperty = DependencyProperty.Register(nameof(HorizontalSpacing), typeof(double), typeof(FlowPanel),
+ public static readonly DependencyProperty HorizontalSpacingProperty = DependencyProperty.Register(nameof(HorizontalSpacing), typeof(double), typeof(FlowPanel),
new FrameworkPropertyMetadata(20.0, FrameworkPropertyMetadataOptions.AffectsArrange));
- internal static readonly DependencyProperty VerticalSpacingProperty = DependencyProperty.Register(nameof(VerticalSpacing), typeof(double), typeof(FlowPanel),
+ public static readonly DependencyProperty VerticalSpacingProperty = DependencyProperty.Register(nameof(VerticalSpacing), typeof(double), typeof(FlowPanel),
new FrameworkPropertyMetadata(10.0, FrameworkPropertyMetadataOptions.AffectsArrange));
- internal static readonly DependencyProperty ContentAlignmentProperty = DependencyProperty.Register(nameof(ContentAlignment), typeof(HorizontalAlignment), typeof(FlowPanel),
+ public static readonly DependencyProperty ContentAlignmentProperty = DependencyProperty.Register(nameof(ContentAlignment), typeof(HorizontalAlignment), typeof(FlowPanel),
new FrameworkPropertyMetadata(HorizontalAlignment.Left, FrameworkPropertyMetadataOptions.AffectsArrange));
- internal static readonly DependencyProperty UseMasonryLayoutProperty = DependencyProperty.Register(nameof(UseMasonryLayout), typeof(bool), typeof(FlowPanel),
+ public static readonly DependencyProperty UseMasonryLayoutProperty = DependencyProperty.Register(nameof(UseMasonryLayout), typeof(bool), typeof(FlowPanel),
new FrameworkPropertyMetadata(true, FrameworkPropertyMetadataOptions.AffectsArrange | FrameworkPropertyMetadataOptions.AffectsMeasure));
- internal static readonly DependencyProperty OrientationProperty = DependencyProperty.Register(nameof(Orientation), typeof(FlowOrientation), typeof(FlowPanel),
+ public static readonly DependencyProperty OrientationProperty = DependencyProperty.Register(nameof(Orientation), typeof(FlowOrientation), typeof(FlowPanel),
new FrameworkPropertyMetadata(FlowOrientation.Unset, FrameworkPropertyMetadataOptions.AffectsArrange | FrameworkPropertyMetadataOptions.AffectsMeasure));
- internal double HorizontalSpacing
+ public static readonly DependencyProperty EqualizeItemSizeProperty = DependencyProperty.Register(nameof(EqualizeItemSize), typeof(bool), typeof(FlowPanel),
+ new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsArrange | FrameworkPropertyMetadataOptions.AffectsMeasure));
+
+ public static readonly DependencyProperty ItemWidthProperty = DependencyProperty.Register(nameof(ItemWidth), typeof(double), typeof(FlowPanel),
+ new FrameworkPropertyMetadata(320.0, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsArrange));
+
+ public double HorizontalSpacing
{
get => (double)GetValue(HorizontalSpacingProperty);
set => SetValue(HorizontalSpacingProperty, value);
}
- internal double VerticalSpacing
+ public double VerticalSpacing
{
get => (double)GetValue(VerticalSpacingProperty);
set => SetValue(VerticalSpacingProperty, value);
}
- internal HorizontalAlignment ContentAlignment
+ public HorizontalAlignment ContentAlignment
{
get => (HorizontalAlignment)GetValue(ContentAlignmentProperty);
set => SetValue(ContentAlignmentProperty, value);
}
- internal bool UseMasonryLayout
+ public bool UseMasonryLayout
{
get => (bool)GetValue(UseMasonryLayoutProperty);
set => SetValue(UseMasonryLayoutProperty, value);
}
- internal FlowOrientation Orientation
+ public FlowOrientation Orientation
{
get => (FlowOrientation)GetValue(OrientationProperty);
set => SetValue(OrientationProperty, value);
}
+ public bool EqualizeItemSize
+ {
+ get => (bool)GetValue(EqualizeItemSizeProperty);
+ set => SetValue(EqualizeItemSizeProperty, value);
+ }
+
+ public double ItemWidth
+ {
+ get => (double)GetValue(ItemWidthProperty);
+ set => SetValue(ItemWidthProperty, value);
+ }
+
+ private readonly Dictionary<UIElement, Point> _lastPos = new Dictionary<UIElement, Point>();
+
+ private static bool Moved(Point a, Point b) => Math.Abs(a.X - b.X) > 0.5 || Math.Abs(a.Y - b.Y) > 0.5;
+
+ private double GetChildWidth(UIElement child) => EqualizeItemSize ? ItemWidth : child.DesiredSize.Width;
+
+ private double GetChildHeight(UIElement child) => child.DesiredSize.Height;
+
protected override Size MeasureOverride(Size availableSize)
{
- List<UIElement> visibleChildren = InternalChildren.Cast<UIElement>().Where(c => c != null && c.Visibility != Visibility.Collapsed).ToList();
+ List<UIElement> visible = new List<UIElement>(InternalChildren.Count);
+ for (int i = 0; i < InternalChildren.Count; i++)
+ {
+ UIElement c = InternalChildren[i];
+ if (c != null && c.Visibility != Visibility.Collapsed)
+ {
+ visible.Add(c);
+ }
+ }
- if (visibleChildren.Count == 0)
+ if (visible.Count == 0)
{
return new Size(0, 0);
}
- double availableWidth = double.IsInfinity(availableSize.Width) ? 1200 : availableSize.Width;
- double availableHeight = double.IsInfinity(availableSize.Height) ? 800 : availableSize.Height;
+ double aw = double.IsInfinity(availableSize.Width) ? 1200 : availableSize.Width;
- foreach (UIElement child in visibleChildren)
+ double ah = double.PositiveInfinity;
+
+ if (EqualizeItemSize)
{
- child.Measure(new Size(double.PositiveInfinity, double.PositiveInfinity));
+ Size constraint = new Size(ItemWidth, double.PositiveInfinity);
+ foreach (UIElement child in visible)
+ {
+ child.Measure(constraint);
+ }
+ }
+ else
+ {
+ Size constraint = new Size(double.PositiveInfinity, double.PositiveInfinity);
+ foreach (UIElement child in visible)
+ {
+ child.Measure(constraint);
+ }
}
- double neededHeight = CalculateNeededHeight(availableWidth, availableHeight, visibleChildren);
-
- return new Size(availableWidth, neededHeight);
+ double neededHeight = CalculateNeededHeight(aw, ah, visible);
+ return new Size(aw, neededHeight);
}
protected override Size ArrangeOverride(Size finalSize)
{
- List<UIElement> visibleChildren = InternalChildren.Cast<UIElement>().Where(c => c != null && c.Visibility != Visibility.Collapsed).ToList();
+ List<UIElement> visible = new List<UIElement>(InternalChildren.Count);
+ for (int i = 0; i < InternalChildren.Count; i++)
+ {
+ UIElement c = InternalChildren[i];
+ if (c != null && c.Visibility != Visibility.Collapsed)
+ {
+ visible.Add(c);
+ }
+ }
- if (visibleChildren?.Count == 0)
+ if (visible.Count == 0)
{
- return new Size(0, 0);
+ return finalSize;
}
- List<FlowItemGroup> columns = CreateOptimalColumns(finalSize.Width, finalSize.Height, visibleChildren);
- ArrangeAligned(columns ?? new List<FlowItemGroup>(), finalSize.Width);
+ List<FlowItemGroup> groups = CreateOptimalColumns(finalSize.Width, finalSize.Height, visible);
+ ArrangeAligned(groups, finalSize.Width);
return finalSize;
}
- private void ArrangeAligned(List<FlowItemGroup> columns, double availableWidth)
+ private void ArrangeAligned(List<FlowItemGroup> groups, double availableWidth)
{
- if (columns?.Count == 0)
+ if (groups == null || groups.Count == 0)
{
return;
}
@@ -116,13 +169,13 @@ namespace GTweak.Assets.UserControl
if (Orientation == FlowOrientation.Horizontal)
{
double y = 0;
- for (int i = 0; i < columns.Count; i++)
+
+ for (int i = 0; i < groups.Count; i++)
{
- var row = columns[i];
- if (row?.Elements == null || row.Elements.Count == 0)
+ FlowItemGroup row = groups[i];
+ if (row.Elements.Count == 0)
{
- y += row?.Height ?? 0;
- y += VerticalSpacing;
+ y += row.Height + VerticalSpacing;
continue;
}
@@ -135,25 +188,30 @@ namespace GTweak.Assets.UserControl
};
double x = xStart;
- foreach (var child in row.Elements)
+
+ foreach (UIElement child in row.Elements)
{
- if (child.Visibility == Visibility.Collapsed)
- {
- continue;
- }
+ double w = GetChildWidth(child);
+ double h = GetChildHeight(child);
- if (!(child.RenderTransform is TranslateTransform transform))
+ Point newPos = new Point(x, y);
+ child.Arrange(new Rect(newPos.X, newPos.Y, w, h));
+
+ if (!_lastPos.TryGetValue(child, out var oldPos) || Moved(oldPos, newPos))
{
- transform = new TranslateTransform(0, 0);
- child.RenderTransform = transform;
- }
+ _lastPos[child] = newPos;
- child.Arrange(new Rect(x, y, child.DesiredSize.Width, child.DesiredSize.Height));
+ if (!(child.RenderTransform is TranslateTransform transform))
+ {
+ transform = new TranslateTransform(0, 0);
+ child.RenderTransform = transform;
+ }
- transform.BeginAnimation(TranslateTransform.XProperty, FactoryAnimation.CreateIn(transform.X, 0, 0.30, null, false, true));
- transform.BeginAnimation(TranslateTransform.YProperty, FactoryAnimation.CreateIn(transform.Y, 0, 0.30, null, false, true));
+ transform.BeginAnimation(TranslateTransform.XProperty, FactoryAnimation.CreateIn(transform.X, 0, 0.30, null, false, true));
+ transform.BeginAnimation(TranslateTransform.YProperty, FactoryAnimation.CreateIn(transform.Y, 0, 0.30, null, false, true));
+ }
- x += child.DesiredSize.Width + HorizontalSpacing;
+ x += w + HorizontalSpacing;
}
y += row.Height + VerticalSpacing;
@@ -162,99 +220,130 @@ namespace GTweak.Assets.UserControl
return;
}
- double contentWidth = (columns?.Sum(c => c.Width) ?? 0) + Math.Max(0, (columns?.Count ?? 0) - 1) * HorizontalSpacing;
+ double contentWidth = 0;
+ for (int i = 0; i < groups.Count; i++)
+ {
+ contentWidth += groups[i].Width;
+ if (i > 0)
+ {
+ contentWidth += HorizontalSpacing;
+ }
+ }
+
double extraSpaceV = Math.Max(0, availableWidth - contentWidth);
double xStartV = ContentAlignment switch
{
- HorizontalAlignment.Center => (availableWidth - contentWidth) / 2.0,
- HorizontalAlignment.Right => availableWidth - contentWidth,
+ HorizontalAlignment.Center => extraSpaceV / 2.0,
+ HorizontalAlignment.Right => extraSpaceV,
_ => 0
};
double xV = xStartV;
- for (int i = 0; i < columns.Count; i++)
+ for (int i = 0; i < groups.Count; i++)
{
- FlowItemGroup column = columns[i];
- if (column?.Elements == null || column.Elements.Count == 0)
+ FlowItemGroup col = groups[i];
+ if (col.Elements.Count == 0)
{
- xV += column?.Width ?? 0;
- xV += HorizontalSpacing;
+ xV += col.Width + HorizontalSpacing;
continue;
}
- double shift = (Orientation == FlowOrientation.Unset && columns != null && i > 0 && columns.Count > 1) ? (extraSpaceV * (i / (double)(columns.Count - 1)) * 0.3) : 0;
+ double shift = 0;
+ if (Orientation == FlowOrientation.Unset && groups.Count > 1 && i > 0)
+ {
+ shift = extraSpaceV * (i / (double)(groups.Count - 1)) * 0.3;
+ }
+
double columnX = xV + shift;
double y = 0;
- foreach (var child in column.Elements)
+ foreach (UIElement child in col.Elements)
{
- if (child.Visibility == Visibility.Collapsed)
- {
- continue;
- }
+ double w = GetChildWidth(child);
+ double h = GetChildHeight(child);
- if (!(child.RenderTransform is TranslateTransform transform))
+ Point newPos = new Point(columnX, y);
+ child.Arrange(new Rect(newPos.X, newPos.Y, w, h));
+
+ if (!_lastPos.TryGetValue(child, out var oldPos) || Moved(oldPos, newPos))
{
- transform = new TranslateTransform(0, 0);
- child.RenderTransform = transform;
- }
+ _lastPos[child] = newPos;
- child.Arrange(new Rect(columnX, y, child.DesiredSize.Width, child.DesiredSize.Height));
+ if (!(child.RenderTransform is TranslateTransform transform))
+ {
+ transform = new TranslateTransform(0, 0);
+ child.RenderTransform = transform;
+ }
- transform.BeginAnimation(TranslateTransform.XProperty, FactoryAnimation.CreateIn(transform.X, 0, 0.30, null, false, true));
- transform.BeginAnimation(TranslateTransform.YProperty, FactoryAnimation.CreateIn(transform.Y, 0, 0.30, null, false, true));
+ transform.BeginAnimation(TranslateTransform.XProperty, FactoryAnimation.CreateIn(transform.X, 0, 0.30, null, false, true));
+ transform.BeginAnimation(TranslateTransform.YProperty, FactoryAnimation.CreateIn(transform.Y, 0, 0.30, null, false, true));
+ }
- y += child.DesiredSize.Height + VerticalSpacing;
+ y += h + VerticalSpacing;
}
- xV += column.Width + HorizontalSpacing;
+ xV += col.Width + HorizontalSpacing;
}
}
private double CalculateNeededHeight(double availableWidth, double availableHeight, List<UIElement> visibleChildren)
{
- List<FlowItemGroup> columns = CreateOptimalColumns(availableWidth, availableHeight, visibleChildren);
+ List<FlowItemGroup> groups = CreateOptimalColumns(availableWidth, availableHeight, visibleChildren);
if (Orientation == FlowOrientation.Horizontal)
{
- return (columns?.Sum(r => r.Height) ?? 0) + Math.Max(0, (columns?.Count ?? 0) - 1) * VerticalSpacing;
+ double total = 0;
+ for (int i = 0; i < groups.Count; i++)
+ {
+ total += groups[i].Height;
+ if (i > 0)
+ {
+ total += VerticalSpacing;
+ }
+ }
+ return total;
}
- return CalculateMaxColumnHeight(columns);
+ return CalculateMaxColumnHeight(groups);
}
private double CalculateMaxColumnHeight(List<FlowItemGroup> columns)
{
- if (columns?.Count == 0)
+ if (columns == null || columns.Count == 0)
{
return 0;
}
- return columns.Max(column =>
- {
- if (column?.Elements == null)
- {
- return 0;
- }
+ double max = 0;
+ for (int i = 0; i < columns.Count; i++)
+ {
+ FlowItemGroup col = columns[i];
double h = 0;
- foreach (var child in column.Elements)
+
+ for (int j = 0; j < col.Elements.Count; j++)
{
- if (child.Visibility == Visibility.Collapsed)
+ UIElement child = col.Elements[j];
+ h += GetChildHeight(child);
+ if (j > 0)
{
- continue;
+ h += VerticalSpacing;
}
+ }
- h += child.DesiredSize.Height + (h > 0 ? VerticalSpacing : 0);
+ if (h > max)
+ {
+ max = h;
}
- return h;
- });
+ }
+
+ return max;
}
private List<FlowItemGroup> CreateOptimalColumns(double availableWidth, double availableHeight, List<UIElement> visibleChildren)
{
- if (visibleChildren?.Count == 0)
+ if (visibleChildren == null || visibleChildren.Count == 0)
{
return new List<FlowItemGroup>();
}
@@ -270,6 +359,7 @@ namespace GTweak.Assets.UserControl
}
int maxPossibleColumns = Math.Max(1, (int)(availableWidth / 100));
+
for (int columnCount = maxPossibleColumns; columnCount >= 1; columnCount--)
{
List<FlowItemGroup> columns = TryDistributeToColumns(columnCount, availableHeight, visibleChildren);
@@ -287,10 +377,10 @@ namespace GTweak.Assets.UserControl
List<FlowItemGroup> rows = new List<FlowItemGroup>();
FlowItemGroup current = null;
- foreach (var child in visibleChildren)
+ foreach (UIElement child in visibleChildren)
{
- double childWidth = child.DesiredSize.Width;
- double childHeight = child.DesiredSize.Height;
+ double childWidth = GetChildWidth(child);
+ double childHeight = GetChildHeight(child);
if (current == null)
{
@@ -328,10 +418,10 @@ namespace GTweak.Assets.UserControl
List<FlowItemGroup> cols = new List<FlowItemGroup>();
FlowItemGroup current = null;
- foreach (var child in visibleChildren)
+ foreach (UIElement child in visibleChildren)
{
- double childWidth = child.DesiredSize.Width;
- double childHeight = child.DesiredSize.Height;
+ double childWidth = GetChildWidth(child);
+ double childHeight = GetChildHeight(child);
if (current == null)
{
@@ -366,16 +456,30 @@ namespace GTweak.Assets.UserControl
private List<FlowItemGroup> TryDistributeToColumns(int columnCount, double maxHeight, List<UIElement> visibleChildren)
{
- List<FlowItemGroup> columns = Enumerable.Range(0, columnCount).Select(_ => new FlowItemGroup()).ToList();
+ List<FlowItemGroup> columns = new List<FlowItemGroup>(columnCount);
+ for (int i = 0; i < columnCount; i++)
+ {
+ columns.Add(new FlowItemGroup());
+ }
if (UseMasonryLayout)
{
- double[] heights = new double[columnCount];
+ var heights = new double[columnCount];
foreach (UIElement child in visibleChildren)
{
- int minIndex = Array.IndexOf(heights, heights.Min());
- double h = child.DesiredSize.Height;
+ int minIndex = 0;
+ double minH = heights[0];
+ for (int i = 1; i < columnCount; i++)
+ {
+ if (heights[i] < minH)
+ {
+ minH = heights[i];
+ minIndex = i;
+ }
+ }
+
+ double h = GetChildHeight(child);
double newHeight = heights[minIndex] + (heights[minIndex] > 0 ? VerticalSpacing : 0) + h;
if (newHeight > maxHeight)
@@ -384,7 +488,7 @@ namespace GTweak.Assets.UserControl
}
columns[minIndex].Elements.Add(child);
- columns[minIndex].Width = Math.Max(columns[minIndex].Width, child.DesiredSize.Width);
+ columns[minIndex].Width = Math.Max(columns[minIndex].Width, GetChildWidth(child));
heights[minIndex] = newHeight;
}
@@ -396,25 +500,21 @@ namespace GTweak.Assets.UserControl
else
{
int index = 0;
- for (int i = 0; i < columnCount; i++)
- {
- columns[i].Width = 0;
- columns[i].Height = 0;
- }
foreach (UIElement child in visibleChildren)
{
int colIndex = index % columnCount;
- double addedHeight = (columns[colIndex].Height > 0 ? VerticalSpacing : 0) + child.DesiredSize.Height;
+ double addedHeight = (columns[colIndex].Height > 0 ? VerticalSpacing : 0) + GetChildHeight(child);
double newHeight = columns[colIndex].Height + addedHeight;
+
if (newHeight > maxHeight)
{
return null;
}
columns[colIndex].Elements.Add(child);
- columns[colIndex].Width = Math.Max(columns[colIndex].Width, child.DesiredSize.Width);
+ columns[colIndex].Width = Math.Max(columns[colIndex].Width, GetChildWidth(child));
columns[colIndex].Height = newHeight;
index++;
@@ -428,16 +528,40 @@ namespace GTweak.Assets.UserControl
{
FlowItemGroup col = new FlowItemGroup();
double totalHeight = 0;
+
foreach (UIElement child in visibleChildren)
{
col.Elements.Add(child);
- col.Width = Math.Max(col.Width, child.DesiredSize.Width);
- totalHeight += child.DesiredSize.Height + (totalHeight > 0 ? VerticalSpacing : 0);
+ col.Width = Math.Max(col.Width, GetChildWidth(child));
+
+ totalHeight += GetChildHeight(child);
+ if (col.Elements.Count > 1)
+ {
+ totalHeight += VerticalSpacing;
+ }
}
+
col.Height = totalHeight;
return new List<FlowItemGroup> { col };
}
- private double CalculateTotalWidth(List<FlowItemGroup> columns) => (columns?.Sum(c => c.Width) ?? 0) + Math.Max(0, (columns?.Count ?? 0) - 1) * HorizontalSpacing;
+ private double CalculateTotalWidth(List<FlowItemGroup> columns)
+ {
+ if (columns == null || columns.Count == 0)
+ {
+ return 0;
+ }
+
+ double total = 0;
+ for (int i = 0; i < columns.Count; i++)
+ {
+ total += columns[i].Width;
+ if (i > 0)
+ {
+ total += HorizontalSpacing;
+ }
+ }
+ return total;
+ }
}
}
\ No newline at end of file
diff --git a/.Source/GTweak/Core/Model/AddonsModel.cs b/.Source/GTweak/Core/Model/AddonsModel.cs
index a9b35609..020a3d64 100644
--- a/.Source/GTweak/Core/Model/AddonsModel.cs
+++ b/.Source/GTweak/Core/Model/AddonsModel.cs
@@ -2,5 +2,6 @@ namespace GTweak.Core.Model
{
internal class AddonsModel
{
+
}
}
diff --git a/.Source/GTweak/Core/ViewModel/AddonsViewModel.cs b/.Source/GTweak/Core/ViewModel/AddonsViewModel.cs
index e468ce2f..1fcdd8f9 100644
--- a/.Source/GTweak/Core/ViewModel/AddonsViewModel.cs
+++ b/.Source/GTweak/Core/ViewModel/AddonsViewModel.cs
@@ -1,8 +1,160 @@
+using System;
+using System.Collections.ObjectModel;
+using System.ComponentModel;
+using System.IO;
+using System.Linq;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Input;
+using System.Windows.Media;
using GTweak.Core.Base;
+using GTweak.Utilities.Controls;
+using Ookii.Dialogs.Wpf;
namespace GTweak.Core.ViewModel
{
internal class AddonsViewModel : ViewModelBase
{
+ internal class AddonItem
+ {
+ public string FilePath { get; }
+ public string FileName { get; }
+ public ImageSource IconImage { get; }
+ public ICommand RunCommand { get; }
+ private readonly Action _onRunComplete;
+ public bool RequiresElevation { get; }
+
+ public AddonItem(string filePath, string fileName, ImageSource iconImage, Action onRunComplete, bool requiresElevation = false)
+ {
+ FilePath = filePath;
+ FileName = fileName;
+ IconImage = iconImage;
+ _onRunComplete = onRunComplete;
+ RequiresElevation = requiresElevation;
+
+ RunCommand = new RelayCommand(async _ => await RunFileAsync());
+ }
+
+ private async Task RunFileAsync()
+ {
+ try
+ {
+ var ext = Path.GetExtension(FilePath).ToLowerInvariant();
+
+ if (RequiresElevation)
+ {
+
+ }
+ else
+ {
+
+ }
+
+ _onRunComplete?.Invoke();
+ }
+ catch (Exception ex) { ErrorLogging.LogDebug(ex); }
+ }
+ }
+
+ private static readonly string[] AllowedExtensions = new[] { ".ps1", ".bat", ".cmd", ".reg" };
+
+ public ObservableCollection<AddonItem> Addons { get; } = new ObservableCollection<AddonItem>();
+
+ public ICommand SelectFolderCommand { get; }
+ public ICommand UpdateCommand { get; }
+
+ private bool _isRunAsTrustedInstaller;
+
+ public bool IsRunAsTrustedInstaller
+ {
+ get => _isRunAsTrustedInstaller;
+ set
+ {
+ _isRunAsTrustedInstaller = value;
+ OnPropertyChanged();
+ }
+ }
+
+ public AddonsViewModel()
+ {
+ if (!DesignerProperties.GetIsInDesignMode(new DependencyObject()))
+ {
+ SelectFolderCommand = new RelayCommand(_ => SelectFolder());
+ UpdateCommand = new RelayCommand(_ => ScanFolder());
+
+ if (!string.IsNullOrWhiteSpace(SettingsEngine.UserAddonsPath) && Directory.Exists(SettingsEngine.UserAddonsPath))
+ {
+ ScanFolder();
+ }
+ }
+ }
+
+ private void SelectFolder()
+ {
+ try
+ {
+ var folderDialog = new VistaFolderBrowserDialog();
+ if (folderDialog.ShowDialog() == false)
+ {
+ return;
+ }
+
+ string selectedPath = folderDialog.SelectedPath;
+ if (!string.IsNullOrWhiteSpace(selectedPath) && Directory.Exists(selectedPath))
+ {
+ SettingsEngine.UserAddonsPath = selectedPath;
+ ScanFolder();
+ }
+ }
+ catch (Exception ex) { ErrorLogging.LogDebug(ex); }
+ }
+
+ private void ScanFolder()
+ {
+ Addons.Clear();
+
+ try
+ {
+ string path = SettingsEngine.UserAddonsPath;
+
+ if (string.IsNullOrWhiteSpace(path) || !Directory.Exists(path))
+ {
+ return;
+ }
+
+ IOrderedEnumerable<string> files = Directory.EnumerateFiles(path, "*.*", SearchOption.TopDirectoryOnly)
+ .Where(f => AllowedExtensions.Contains(Path.GetExtension(f), StringComparer.OrdinalIgnoreCase))
+ .OrderBy(f => Path.GetFileName(f));
+
+ foreach (string file in files)
+ {
+ string iconRes = Path.GetExtension(file).ToLowerInvariant() switch
+ {
+ ".ps1" => "Img_PowershellFile",
+ ".reg" => "Img_RegistryFile",
+ ".bat" => "Img_BatFile",
+ ".cmd" => "Img_CmdFile",
+ _ => "Img_BatFile"
+ };
+
+ ImageSource iconImage = null;
+ try
+ {
+ if (Application.Current != null)
+ {
+ if (Application.Current.Resources.Contains(iconRes))
+ {
+ iconImage = Application.Current.Resources[iconRes] as ImageSource;
+ }
+ }
+ }
+ catch (Exception ex) { ErrorLogging.LogDebug(ex); }
+
+ AddonItem addonItem = new AddonItem(file, Path.GetFileName(file), iconImage, () => ScanFolder(), IsRunAsTrustedInstaller);
+ Addons.Add(addonItem);
+ }
+ }
+ catch (Exception ex) { ErrorLogging.LogDebug(ex); }
+ }
}
}
diff --git a/.Source/GTweak/GTweak.csproj b/.Source/GTweak/GTweak.csproj
index 7b67e78c..e7437db4 100644
--- a/.Source/GTweak/GTweak.csproj
+++ b/.Source/GTweak/GTweak.csproj
@@ -135,6 +135,9 @@
<DependentUpon>DescriptionBlock.xaml</DependentUpon>
</Compile>
<Compile Include="Assets\UserControl\FlowPanel.cs" />
+ <Compile Include="Assets\UserControl\FileCard.xaml.cs">
+ <DependentUpon>FileCard.xaml</DependentUpon>
+ </Compile>
<Compile Include="Core\Base\ViewModelPageBase.cs" />
<Compile Include="Core\Model\AddonsModel.cs" />
<Compile Include="Core\Model\ConfidentialityModel.cs" />
@@ -239,6 +242,10 @@
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
+ <Page Include="Assets\UserControl\FileCard.xaml">
+ <SubType>Designer</SubType>
+ <Generator>MSBuild:Compile</Generator>
+ </Page>
<Page Include="Assets\UserControl\ToggleButton.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
@@ -554,6 +561,10 @@
<Resource Include="Assets\ImagePackages\WhatsApp.png" />
<Resource Include="Assets\ImagePackages\WhiteBoard.png" />
<Resource Include="GTweak.ico" />
+ <Resource Include="Assets\ImageAddonsFiles\BatFile.png" />
+ <Resource Include="Assets\ImageAddonsFiles\CmdFile.png" />
+ <Resource Include="Assets\ImageAddonsFiles\PowershellFile.png" />
+ <Resource Include="Assets\ImageAddonsFiles\RegistryFile.png" />
<Content Include="Properties\AssemblyInfo.tt">
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>AssemblyInfo.cs</LastGenOutput>
diff --git a/.Source/GTweak/Languages/en/Localize.xaml b/.Source/GTweak/Languages/en/Localize.xaml
index 23599e89..67726306 100644
--- a/.Source/GTweak/Languages/en/Localize.xaml
+++ b/.Source/GTweak/Languages/en/Localize.xaml
@@ -481,7 +481,6 @@
<!--#region Addons Page -->
<v:String x:Key="btn_open_dir">Select folder</v:String>
- <v:String x:Key="btn_run">Run</v:String>
<v:String x:Key="chk_run_ti_adds">Run as TrustedInstaller</v:String>
<v:String x:Key="text_info_adds">Select a directory or make sure it is not empty</v:String>
<v:String x:Key="scripts_info_adds">After that, you will be able to run scripts (.ps1, .cmd, .bat, .reg) on this page</v:String>
diff --git a/.Source/GTweak/Languages/fr/Localize.xaml b/.Source/GTweak/Languages/fr/Localize.xaml
index f62f35a4..90eb0a96 100644
--- a/.Source/GTweak/Languages/fr/Localize.xaml
+++ b/.Source/GTweak/Languages/fr/Localize.xaml
@@ -482,7 +482,6 @@
<!--#region Addons Page -->
<v:String x:Key="btn_open_dir">Select folder</v:String>
- <v:String x:Key="btn_run">Run</v:String>
<v:String x:Key="chk_run_ti_adds">Run as TrustedInstaller</v:String>
<v:String x:Key="text_info_adds">Select a directory or make sure it is not empty</v:String>
<v:String x:Key="scripts_info_adds">After that, you will be able to run scripts (.ps1, .cmd, .bat, .reg) on this page</v:String>
@@ -492,3 +491,4 @@
+
diff --git a/.Source/GTweak/Languages/hu/Localize.xaml b/.Source/GTweak/Languages/hu/Localize.xaml
index a7dd9d6b..ad1c2796 100644
--- a/.Source/GTweak/Languages/hu/Localize.xaml
+++ b/.Source/GTweak/Languages/hu/Localize.xaml
@@ -481,7 +481,6 @@
<!--#region Addons Page -->
<v:String x:Key="btn_open_dir">Select folder</v:String>
- <v:String x:Key="btn_run">Run</v:String>
<v:String x:Key="chk_run_ti_adds">Run as TrustedInstaller</v:String>
<v:String x:Key="text_info_adds">Select a directory or make sure it is not empty</v:String>
<v:String x:Key="scripts_info_adds">After that, you will be able to run scripts (.ps1, .cmd, .bat, .reg) on this page</v:String>
@@ -491,3 +490,4 @@
+
diff --git a/.Source/GTweak/Languages/it/Localize.xaml b/.Source/GTweak/Languages/it/Localize.xaml
index d094b3d4..d5ca3ad7 100644
--- a/.Source/GTweak/Languages/it/Localize.xaml
+++ b/.Source/GTweak/Languages/it/Localize.xaml
@@ -481,7 +481,6 @@
<!--#region Addons Page -->
<v:String x:Key="btn_open_dir">Select folder</v:String>
- <v:String x:Key="btn_run">Run</v:String>
<v:String x:Key="chk_run_ti_adds">Run as TrustedInstaller</v:String>
<v:String x:Key="text_info_adds">Select a directory or make sure it is not empty</v:String>
<v:String x:Key="scripts_info_adds">After that, you will be able to run scripts (.ps1, .cmd, .bat, .reg) on this page</v:String>
@@ -491,3 +490,4 @@
+
diff --git a/.Source/GTweak/Languages/ko/Localize.xaml b/.Source/GTweak/Languages/ko/Localize.xaml
index 7aa69350..1b43bb24 100644
--- a/.Source/GTweak/Languages/ko/Localize.xaml
+++ b/.Source/GTweak/Languages/ko/Localize.xaml
@@ -481,7 +481,6 @@
<!--#region Addons Page -->
<v:String x:Key="btn_open_dir">Select folder</v:String>
- <v:String x:Key="btn_run">Run</v:String>
<v:String x:Key="chk_run_ti_adds">Run as TrustedInstaller</v:String>
<v:String x:Key="text_info_adds">Select a directory or make sure it is not empty</v:String>
<v:String x:Key="scripts_info_adds">After that, you will be able to run scripts (.ps1, .cmd, .bat, .reg) on this page</v:String>
@@ -491,3 +490,4 @@
+
diff --git a/.Source/GTweak/Languages/pl/Localize.xaml b/.Source/GTweak/Languages/pl/Localize.xaml
index c6651f47..2d4862fc 100644
--- a/.Source/GTweak/Languages/pl/Localize.xaml
+++ b/.Source/GTweak/Languages/pl/Localize.xaml
@@ -470,7 +470,6 @@
<!--#region Addons Page -->
<v:String x:Key="btn_open_dir">Select folder</v:String>
- <v:String x:Key="btn_run">Run</v:String>
<v:String x:Key="chk_run_ti_adds">Run as TrustedInstaller</v:String>
<v:String x:Key="text_info_adds">Select a directory or make sure it is not empty</v:String>
<v:String x:Key="scripts_info_adds">After that, you will be able to run scripts (.ps1, .cmd, .bat, .reg) on this page</v:String>
@@ -479,3 +478,4 @@
</ResourceDictionary>
+
diff --git a/.Source/GTweak/Languages/pt-br/Localize.xaml b/.Source/GTweak/Languages/pt-br/Localize.xaml
index 2c5f236e..ebdb3cfe 100644
--- a/.Source/GTweak/Languages/pt-br/Localize.xaml
+++ b/.Source/GTweak/Languages/pt-br/Localize.xaml
@@ -481,7 +481,6 @@
<!--#region Addons Page -->
<v:String x:Key="btn_open_dir">Select folder</v:String>
- <v:String x:Key="btn_run">Run</v:String>
<v:String x:Key="chk_run_ti_adds">Run as TrustedInstaller</v:String>
<v:String x:Key="text_info_adds">Select a directory or make sure it is not empty</v:String>
<v:String x:Key="scripts_info_adds">After that, you will be able to run scripts (.ps1, .cmd, .bat, .reg) on this page</v:String>
@@ -490,3 +489,4 @@
</ResourceDictionary>
+
diff --git a/.Source/GTweak/Languages/ru/Localize.xaml b/.Source/GTweak/Languages/ru/Localize.xaml
index 1c3f28ed..263dad6f 100644
--- a/.Source/GTweak/Languages/ru/Localize.xaml
+++ b/.Source/GTweak/Languages/ru/Localize.xaml
@@ -481,7 +481,6 @@
<!--#region Addons Page -->
<v:String x:Key="btn_open_dir">Выбрать папку</v:String>
- <v:String x:Key="btn_run">Выполнить</v:String>
<v:String x:Key="chk_run_ti_adds">Запуск от имени TrustedInstaller</v:String>
<v:String x:Key="text_info_adds">Выберите директорию или убедитесь, что она не пуста</v:String>
<v:String x:Key="scripts_info_adds">После этого вы сможете запускать скрипты (.ps1, .cmd, .bat, .reg) на этой странице</v:String>
@@ -489,3 +488,4 @@
</ResourceDictionary>
+
diff --git a/.Source/GTweak/Languages/uk/Localize.xaml b/.Source/GTweak/Languages/uk/Localize.xaml
index 46095119..fa3b5d53 100644
--- a/.Source/GTweak/Languages/uk/Localize.xaml
+++ b/.Source/GTweak/Languages/uk/Localize.xaml
@@ -481,7 +481,6 @@
<!--#region Addons Page -->
<v:String x:Key="btn_open_dir">Select folder</v:String>
- <v:String x:Key="btn_run">Run</v:String>
<v:String x:Key="chk_run_ti_adds">Run as TrustedInstaller</v:String>
<v:String x:Key="text_info_adds">Select a directory or make sure it is not empty</v:String>
<v:String x:Key="scripts_info_adds">After that, you will be able to run scripts (.ps1, .cmd, .bat, .reg) on this page</v:String>
@@ -490,3 +489,4 @@
</ResourceDictionary>
+
diff --git a/.Source/GTweak/Languages/zh-TW/Localize.xaml b/.Source/GTweak/Languages/zh-TW/Localize.xaml
index 9823cf14..67a3d3ff 100644
--- a/.Source/GTweak/Languages/zh-TW/Localize.xaml
+++ b/.Source/GTweak/Languages/zh-TW/Localize.xaml
@@ -481,10 +481,10 @@
<!--#region Addons Page -->
<v:String x:Key="btn_open_dir">Select folder</v:String>
- <v:String x:Key="btn_run">Run</v:String>
<v:String x:Key="chk_run_ti_adds">Run as TrustedInstaller</v:String>
<v:String x:Key="text_info_adds">Select a directory or make sure it is not empty</v:String>
<v:String x:Key="scripts_info_adds">After that, you will be able to run scripts (.ps1, .cmd, .bat, .reg) on this page</v:String>
<!--#endregion-->
</ResourceDictionary>
+
diff --git a/.Source/GTweak/Utilities/Helpers/TrustedInstaller.cs b/.Source/GTweak/Utilities/Helpers/TrustedInstaller.cs
index b23a9d82..a0dfda22 100644
--- a/.Source/GTweak/Utilities/Helpers/TrustedInstaller.cs
+++ b/.Source/GTweak/Utilities/Helpers/TrustedInstaller.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Runtime.InteropServices;
diff --git a/.Source/GTweak/View/AddonsView.xaml b/.Source/GTweak/View/AddonsView.xaml
index 1280ffc0..4e3b0928 100644
--- a/.Source/GTweak/View/AddonsView.xaml
+++ b/.Source/GTweak/View/AddonsView.xaml
@@ -19,8 +19,7 @@
</Grid.RowDefinitions>
<uc:FlowPanel Grid.Row="0" ContentAlignment="Left" Orientation="Horizontal" HorizontalSpacing="10" VerticalSpacing="5" Margin="10,5,10,0">
-
- <Button Style="{StaticResource ButtonContent}" HorizontalAlignment="Right" Margin="0,0,0,0">
+ <Button Command="{Binding SelectFolderCommand}" Style="{StaticResource ButtonContent}" HorizontalAlignment="Right" Margin="0,0,0,0">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<ui:SymbolIcon Symbol="FolderOpen20" FontSize="15" Margin="0,0,5,0"/>
<TextBlock VerticalAlignment="Center">
@@ -29,30 +28,62 @@
</StackPanel>
</Button>
- <Button Style="{StaticResource ButtonContent_Inverted}" HorizontalAlignment="Right">
+ <Button Command="{Binding UpdateCommand}" Style="{StaticResource ButtonContent_Inverted}" HorizontalAlignment="Right">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<ui:SymbolIcon Symbol="ArrowClockwise20" FontSize="15" Margin="0,0,5,0"/>
<TextBlock Text="{DynamicResource btn_upd}" VerticalAlignment="Center"/>
</StackPanel>
</Button>
- <CheckBox VerticalAlignment="Top" Content="{DynamicResource chk_run_ti_adds}" Margin="0,6,0,0"/>
-
+ <CheckBox VerticalAlignment="Top" IsChecked="{Binding IsRunAsTrustedInstaller}" Content="{DynamicResource chk_run_ti_adds}" Margin="0,6,0,0"/>
</uc:FlowPanel>
<Border Grid.Row="1" Background="{StaticResource Brush_Separator}" Height="1.2" Margin="10,10,10,0" CornerRadius="10" HorizontalAlignment="Stretch"/>
- <Grid Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
-
- <ui:SymbolIcon Symbol="DocumentFlowchart20" Foreground="{StaticResource Brush_TextBlock_Inactivity}" FontSize="55" Margin="0,0,5,0" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="0"/>
- <TextBlock Width="Auto" Height="Auto" TextWrapping="Wrap" TextAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="{StaticResource Jura}" FontSize="17pt" Foreground="{StaticResource Brush_TextBlock_Inactivity}" Grid.Row="1" Margin="0,5,0,0">
- <Run Text="{DynamicResource text_info_adds}"/><LineBreak/>
- <Run FontSize="15pt" Text="{DynamicResource scripts_info_adds}"/>
- </TextBlock>
+ <Grid Grid.Row="2" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
+ <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">
+ <Grid>
+ <ItemsControl ItemsSource="{Binding Addons}">
+ <ItemsControl.ItemsPanel>
+ <ItemsPanelTemplate>
+ <uc:FlowPanel Margin="20,10,0,20" EqualizeItemSize="True" ItemWidth="200" UseMasonryLayout="True" HorizontalSpacing="5" VerticalSpacing="5" ContentAlignment="Stretch" HorizontalAlignment="Left" VerticalAlignment="Top"/>
+ </ItemsPanelTemplate>
+ </ItemsControl.ItemsPanel>
+
+ <ItemsControl.ItemTemplate>
+ <DataTemplate>
+ <uc:FileCard FileName="{Binding FileName}" IconSource="{Binding IconImage}" Command="{Binding RunCommand}"/>
+ </DataTemplate>
+ </ItemsControl.ItemTemplate>
+ </ItemsControl>
+
+ <Grid>
+ <Grid.Style>
+ <Style TargetType="Grid">
+ <Setter Property="Visibility" Value="Collapsed"/>
+ <Style.Triggers>
+ <DataTrigger Binding="{Binding Addons.Count}" Value="0">
+ <Setter Property="Visibility" Value="Visible"/>
+ </DataTrigger>
+ </Style.Triggers>
+ </Style>
+ </Grid.Style>
+
+ <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
+ <Grid.RowDefinitions>
+ <RowDefinition Height="Auto"/>
+ <RowDefinition Height="Auto"/>
+ </Grid.RowDefinitions>
+ <ui:SymbolIcon Symbol="DocumentFlowchart20" Foreground="{StaticResource Brush_TextBlock_Inactivity}" FontSize="55" Margin="0,0,5,0" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="0"/>
+ <TextBlock Width="Auto" Height="Auto" TextWrapping="Wrap" TextAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="{StaticResource Jura}" FontSize="17pt" Foreground="{StaticResource Brush_TextBlock_Inactivity}" Grid.Row="1" Margin="0,5,0,0">
+ <Run Text="{DynamicResource text_info_adds}"/><LineBreak/>
+ <Run FontSize="15pt" Text="{DynamicResource scripts_info_adds}"/>
+ </TextBlock>
+ </Grid>
+ </Grid>
+ </Grid>
+ </ScrollViewer>
</Grid>
+
</Grid>
</UserControl>
diff --git a/Assets/Cards/BAT.svg b/Assets/Cards/BAT.svg
deleted file mode 100644
index 98447c92..00000000
--- a/Assets/Cards/BAT.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path d="m9.914 2.387.75-.012c.527-.008 1.047-.012 1.574-.012.797 0 1.59-.023 2.383-.047q4.254-.06 5.73 1.215.558.62 1.087 1.27c.457.43.914.86 1.382 1.281l1.36 1.32c.234.22.468.442.715.668q.327.323.668.653l.605.582q.393.62.293 1.492l-.223.726c-1.14.028-2.281.043-3.422.063l-.976.023q-3.006.03-4.242-1.043c-.563-1.125-.453-2.468-.516-3.707a8.4 8.4 0 0 0-.445-2.37H7.355c-.3 1.202-.359 2.116-.359 3.347v18.141q0 .936.36 1.87c.785.391 1.296.36 2.175.36h13.785q.699 0 1.32-.36c.294-.882.368-1.449.387-2.363.008-.28.012-.562.02-.855.008-.3.012-.61.016-.918l.02-.941c.023-.997.038-1.993.058-2.985.011-.676.027-1.348.039-2.023.035-1.649.07-3.305.101-4.957q.62-.176 1.282-.317c.496.496.363.989.37 1.68q.002.434.009.879c0 .316 0 .629.003.957 0 .324.004.644.004.976 0 .684.008 1.368.008 2.055 0 1.043.012 2.09.024 3.133 0 .668.003 1.328.003 1.996.004.313.008.625.016.945q-.012 2.767-1.078 4.016c-1 .902-1.645 1.082-2.984 1.098-.34.004-.676.007-1.032.015h-1.105c-.379 0-.754.004-1.14.004q-1.198.006-2.395 0c-1.219 0-2.438.016-3.66.028h-2.325c-.367.003-.73.007-1.105.015q-2.825-.024-4.004-.957c-1.129-1.3-1.098-2.277-1.106-3.95 0-.218 0-.433-.007-.655 0-.715-.004-1.426-.008-2.145q-.001-.744-.008-1.488c-.004-1.047-.004-2.086-.004-3.13 0-1.331-.012-2.667-.02-4.003-.007-1.027-.007-2.055-.011-3.082 0-.492-.004-.98-.004-1.473a91 91 0 0 1 0-2.066c0-.39 0-.781-.004-1.184.156-1.386.668-2.207 1.617-3.207 1.07-.566 2.114-.554 3.297-.566Zm0 0"/><path d="M9.813 21.39c-.227 0-.336-.109-.336-.335v-4.75c0-.227.109-.336.335-.336h2.086c.426 0 .747.11.977.336q.344.334.344.96v.215q0 .542-.34.836.638.358.637 1.301v.27q0 .74-.391 1.12c-.258.259-.633.384-1.121.384Zm.335-3.273h1.895q.29.002.395-.18a.9.9 0 0 0 .105-.46v-.215q.001-.346-.145-.489c-.093-.093-.265-.136-.503-.136h-1.75v1.476Zm0 2.602h1.856q.451.002.644-.196.198-.192.196-.636v-.27q0-.448-.188-.637-.189-.187-.652-.187h-1.856v1.93Zm4.454.641q-.322-.125-.192-.442l1.902-4.688q.124-.264.375-.265h.016a.37.37 0 0 1 .352.265l1.937 4.688c.086.21.024.36-.187.441s-.356.024-.442-.183l-.43-1.051h-2.492l-.414 1.05c-.082.208-.226.266-.433.184Zm1.109-1.903h1.953l-.996-2.426Zm5.461 1.933q-.168 0-.254-.081c-.059-.055-.082-.141-.082-.254v-4.41H19.28q-.163 0-.25-.082a.36.36 0 0 1-.086-.254c0-.11.032-.196.086-.25q.084-.084.25-.086h3.778q.168.001.253.086c.055.054.083.14.083.25q0 .168-.082.253-.083.083-.254.083h-1.551v4.41a.34.34 0 0 1-.086.246.34.34 0 0 1-.25.09m0 0"/></svg>
\ No newline at end of file
diff --git a/Assets/Cards/CMD.svg b/Assets/Cards/CMD.svg
deleted file mode 100644
index 9ef5c632..00000000
--- a/Assets/Cards/CMD.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path d="m9.914 2.387.75-.012c.527-.008 1.047-.012 1.574-.012.797 0 1.59-.023 2.383-.047q4.254-.06 5.73 1.215.558.62 1.087 1.27c.457.43.914.86 1.382 1.281l1.36 1.32c.234.22.468.442.715.668q.327.323.668.653l.605.582q.393.62.293 1.492l-.223.726c-1.14.028-2.281.043-3.422.063l-.976.023q-3.006.03-4.242-1.043c-.563-1.125-.453-2.468-.516-3.707a8.4 8.4 0 0 0-.445-2.37H7.355c-.3 1.202-.359 2.116-.359 3.347v18.141q0 .936.36 1.87c.785.391 1.296.36 2.175.36h13.785q.699 0 1.32-.36c.294-.882.368-1.449.387-2.363.008-.28.012-.562.02-.855.008-.3.012-.61.016-.918l.02-.941c.023-.997.038-1.993.058-2.985.011-.676.027-1.348.039-2.023.035-1.649.07-3.305.101-4.957q.62-.176 1.282-.317c.496.496.363.989.37 1.68q.002.434.009.879c0 .316 0 .629.003.957 0 .324.004.644.004.976 0 .684.008 1.368.008 2.055 0 1.043.012 2.09.024 3.133 0 .668.003 1.328.003 1.996.004.313.008.625.016.945q-.012 2.767-1.078 4.016c-1 .902-1.645 1.082-2.984 1.098-.34.004-.676.007-1.032.015h-1.105c-.379 0-.754.004-1.14.004q-1.198.006-2.395 0c-1.219 0-2.438.016-3.66.028h-2.325c-.367.003-.73.007-1.105.015q-2.825-.024-4.004-.957c-1.129-1.3-1.098-2.277-1.106-3.95 0-.218 0-.433-.007-.655 0-.715-.004-1.426-.008-2.145q-.001-.744-.008-1.488c-.004-1.047-.004-2.086-.004-3.13 0-1.331-.012-2.667-.02-4.003-.007-1.027-.007-2.055-.011-3.082 0-.492-.004-.98-.004-1.473a91 91 0 0 1 0-2.066c0-.39 0-.781-.004-1.184.156-1.386.668-2.207 1.617-3.207 1.07-.566 2.114-.554 3.297-.566Zm0 0"/><path d="M9.55 21.39c-.609 0-1.062-.144-1.35-.437q-.44-.436-.438-1.351v-1.84c0-.617.14-1.07.433-1.364.293-.293.739-.437 1.348-.43h.965c.504 0 .883.102 1.148.31.266.21.418.53.461.98q.024.17-.062.254-.088.088-.258.09-.302.001-.352-.336c-.023-.246-.11-.407-.25-.496q-.215-.127-.683-.125h-.965c-.281 0-.508.027-.668.093a.6.6 0 0 0-.34.348c-.07.16-.105.39-.105.676v1.84q0 .43.105.671.098.248.344.348.245.101.672.102h.96q.47 0 .68-.13.218-.133.254-.495c.031-.223.153-.336.352-.336q.17.002.258.086c.054.058.078.144.062.257q-.063.673-.46.98c-.266.204-.645.306-1.15.306Zm4.305 0q-.334.002-.335-.335v-4.75c0-.227.113-.336.335-.336q.222 0 .368.219l1.89 2.835-.144.028 1.902-2.863a.45.45 0 0 1 .406-.22q.272-.002.274.337v4.75q0 .337-.336.336-.335.002-.336-.336v-4.078l.207.07-1.68 2.473a.47.47 0 0 1-.41.214c-.121 0-.23-.074-.324-.214l-1.68-2.473.195.058v3.95c0 .226-.109.336-.335.336Zm6.695 0q-.334.002-.335-.335v-4.75c0-.227.113-.336.336-.336h1.926q1.044 0 1.539.492.492.491.492 1.539v1.36q-.001 1.044-.488 1.538c-.329.332-.844.493-1.543.493Zm.337-.671h1.59q.515.001.808-.125.298-.123.426-.422c.086-.2.125-.465.125-.809v-1.36q.001-.508-.125-.808a.78.78 0 0 0-.426-.425q-.293-.127-.808-.125h-1.59v4.078Zm0 0"/></svg>
\ No newline at end of file
diff --git a/Assets/Cards/PS1.svg b/Assets/Cards/PS1.svg
deleted file mode 100644
index 56053e20..00000000
--- a/Assets/Cards/PS1.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path d="m9.914 2.387.75-.012c.527-.008 1.047-.012 1.574-.012.797 0 1.59-.023 2.383-.047q4.254-.06 5.73 1.215.558.62 1.087 1.27c.457.43.914.86 1.382 1.281l1.36 1.32c.234.22.468.442.715.668q.327.323.668.653l.605.582q.393.62.293 1.492l-.223.726c-1.14.028-2.281.043-3.422.063l-.976.023q-3.006.03-4.242-1.043c-.563-1.125-.453-2.468-.516-3.707a8.4 8.4 0 0 0-.445-2.37H7.355c-.3 1.202-.359 2.116-.359 3.347v18.141q0 .936.36 1.87c.785.391 1.296.36 2.175.36h13.785q.699 0 1.32-.36c.294-.882.368-1.449.387-2.363.008-.28.012-.562.02-.855.008-.3.012-.61.016-.918l.02-.941c.023-.997.038-1.993.058-2.985.011-.676.027-1.348.039-2.023.035-1.649.07-3.305.101-4.957q.62-.176 1.282-.317c.496.496.363.989.37 1.68q.002.434.009.879c0 .316 0 .629.003.957 0 .324.004.644.004.976 0 .684.008 1.368.008 2.055 0 1.043.012 2.09.024 3.133 0 .668.003 1.328.003 1.996.004.313.008.625.016.945q-.012 2.767-1.078 4.016c-1 .902-1.645 1.082-2.984 1.098-.34.004-.676.007-1.032.015h-1.105c-.379 0-.754.004-1.14.004q-1.198.006-2.395 0c-1.219 0-2.438.016-3.66.028h-2.325c-.367.003-.73.007-1.105.015q-2.825-.024-4.004-.957c-1.129-1.3-1.098-2.277-1.106-3.95 0-.218 0-.433-.007-.655 0-.715-.004-1.426-.008-2.145q-.001-.744-.008-1.488c-.004-1.047-.004-2.086-.004-3.13 0-1.331-.012-2.667-.02-4.003-.007-1.027-.007-2.055-.011-3.082 0-.492-.004-.98-.004-1.473a91 91 0 0 1 0-2.066c0-.39 0-.781-.004-1.184.156-1.386.668-2.207 1.617-3.207 1.07-.566 2.114-.554 3.297-.566Zm0 0"/><path d="M10.805 21.39q-.335.002-.336-.335v-4.75c0-.227.113-.336.336-.336h1.875q.728 0 1.12.39.392.388.391 1.121v.243q0 .727-.39 1.12-.388.392-1.121.391h-1.54v1.825c0 .222-.109.336-.335.336Zm.336-2.831h1.539q.45 0 .644-.192.194-.194.192-.644v-.243q0-.45-.192-.644c-.129-.133-.344-.195-.644-.195h-1.54Zm5.589 2.831q-.685 0-1.066-.273-.382-.276-.476-.851-.018-.175.07-.262a.35.35 0 0 1 .254-.09c.113 0 .195.023.25.078a.5.5 0 0 1 .105.25c.035.184.125.313.258.38q.198.1.605.1h1.153c.344 0 .578-.058.699-.183q.188-.186.188-.695-.001-.512-.196-.707-.187-.194-.691-.192h-.992c-.508 0-.88-.12-1.125-.37-.243-.247-.364-.618-.364-1.126q0-.755.36-1.117.365-.363 1.117-.363h.953q.639 0 .996.258.364.257.457.796.024.176-.062.262c-.059.063-.149.09-.266.09-.105 0-.187-.027-.238-.082a.45.45 0 0 1-.11-.242.46.46 0 0 0-.242-.324q-.18-.087-.539-.086h-.953q-.475.002-.64.168c-.11.113-.165.328-.165.636 0 .313.059.532.168.653q.171.175.653.175h.992q.785-.002 1.172.383.387.381.386 1.184c0 .535-.125.922-.382 1.176q-.381.375-1.172.375Zm4.766 0q-.335.002-.336-.335V16.93l.188-.13-.88.821a.4.4 0 0 1-.21.117q-.112.017-.223-.09-.215-.215.027-.453l1.07-1.058a.57.57 0 0 1 .415-.168q.29-.002.289.336v4.75q.002.337-.336.336Zm0 0"/></svg>
\ No newline at end of file
diff --git a/Assets/Cards/REG.svg b/Assets/Cards/REG.svg
deleted file mode 100644
index b4116c22..00000000
--- a/Assets/Cards/REG.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path d="m9.914 2.387.75-.012c.527-.008 1.047-.012 1.574-.012.797 0 1.59-.023 2.383-.047q4.254-.06 5.73 1.215.558.62 1.087 1.27c.457.43.914.86 1.382 1.281l1.36 1.32c.234.22.468.442.715.668q.327.323.668.653l.605.582q.393.62.293 1.492l-.223.726c-1.14.028-2.281.043-3.422.063l-.976.023q-3.006.03-4.242-1.043c-.563-1.125-.453-2.468-.516-3.707a8.4 8.4 0 0 0-.445-2.37H7.355c-.3 1.202-.359 2.116-.359 3.347v18.141q0 .936.36 1.87c.785.391 1.296.36 2.175.36h13.785q.699 0 1.32-.36c.294-.882.368-1.449.387-2.363.008-.28.012-.562.02-.855.008-.3.012-.61.016-.918l.02-.941c.023-.997.038-1.993.058-2.985.011-.676.027-1.348.039-2.023.035-1.649.07-3.305.101-4.957q.62-.176 1.282-.317c.496.496.363.989.37 1.68q.002.434.009.879c0 .316 0 .629.003.957 0 .324.004.644.004.976 0 .684.008 1.368.008 2.055 0 1.043.012 2.09.024 3.133 0 .668.003 1.328.003 1.996.004.313.008.625.016.945q-.012 2.767-1.078 4.016c-1 .902-1.645 1.082-2.984 1.098-.34.004-.676.007-1.032.015h-1.105c-.379 0-.754.004-1.14.004q-1.198.006-2.395 0c-1.219 0-2.438.016-3.66.028h-2.325c-.367.003-.73.007-1.105.015q-2.825-.024-4.004-.957c-1.129-1.3-1.098-2.277-1.106-3.95 0-.218 0-.433-.007-.655 0-.715-.004-1.426-.008-2.145q-.001-.744-.008-1.488c-.004-1.047-.004-2.086-.004-3.13 0-1.331-.012-2.667-.02-4.003-.007-1.027-.007-2.055-.011-3.082 0-.492-.004-.98-.004-1.473a91 91 0 0 1 0-2.066c0-.39 0-.781-.004-1.184.156-1.386.668-2.207 1.617-3.207 1.07-.566 2.114-.554 3.297-.566Zm0 0"/><path d="M12.828 21.406q-.13.083-.254.055a.38.38 0 0 1-.203-.164L11.13 19.23h-1.121v1.825q.001.337-.336.336-.335.002-.336-.336v-4.75c0-.227.113-.336.336-.336h1.875q.728 0 1.121.39.392.388.39 1.121v.243q.001.635-.296 1.011-.3.38-.856.473l1.047 1.746q.153.283-.129.453Zm-2.816-2.847h1.535q.457 0 .648-.192.194-.194.192-.644v-.243q0-.45-.192-.644c-.129-.133-.343-.195-.648-.195h-1.535Zm4.668 2.831c-.227 0-.336-.109-.336-.335v-4.75c0-.227.11-.336.336-.336h2.867q.34-.002.34.336 0 .334-.34.336h-2.531v1.68h1.59q.334.001.335.335 0 .335-.336.336h-1.59v1.727h2.532q.34 0 .34.336 0 .337-.34.336Zm5.925 0q-.918.001-1.355-.437-.436-.436-.437-1.351v-1.84q0-.924.433-1.364.44-.44 1.348-.43h.968q.75-.001 1.149.31c.266.21.414.53.46.98q.024.17-.066.254-.082.088-.253.09-.305.002-.352-.336c-.027-.246-.113-.407-.254-.496q-.216-.127-.68-.125h-.968c-.282 0-.504.027-.664.093a.63.63 0 0 0-.348.348c-.066.16-.102.39-.102.676v1.84q.002.43.102.671a.62.62 0 0 0 .348.348q.245.101.671.102h.961q.371 0 .582-.082a.5.5 0 0 0 .293-.293c.055-.137.082-.336.082-.586v-.38l-.62-.007q-.339.002-.337-.336-.002-.335.336-.336l.957.012c.227 0 .336.11.336.336v.71c0 .567-.129.985-.394 1.243q-.398.392-1.235.39h-.96Zm0 0"/></svg>
\ No newline at end of file
diff --git a/Assets/ImagesAddons/BatFile.png b/Assets/ImagesAddons/BatFile.png
new file mode 100644
index 00000000..281b22a9
Binary files /dev/null and b/Assets/ImagesAddons/BatFile.png differ
diff --git a/Assets/ImagesAddons/CmdFile.png b/Assets/ImagesAddons/CmdFile.png
new file mode 100644
index 00000000..7ae763cf
Binary files /dev/null and b/Assets/ImagesAddons/CmdFile.png differ
diff --git a/Assets/ImagesAddons/PowershellFile.png b/Assets/ImagesAddons/PowershellFile.png
new file mode 100644
index 00000000..adbc1535
Binary files /dev/null and b/Assets/ImagesAddons/PowershellFile.png differ
diff --git a/Assets/ImagesAddons/RegistryFile.png b/Assets/ImagesAddons/RegistryFile.png
new file mode 100644
index 00000000..4bffe629
Binary files /dev/null and b/Assets/ImagesAddons/RegistryFile.png differ