🐞 fix(UI模块): 根据设计要求更换主页插图

This commit is contained in:
huheng@kylinos.cn 2023-04-27 09:38:38 +08:00
parent 4c431d4ca6
commit 71d6d96e5d
7 changed files with 33 additions and 230 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 281 KiB

BIN
res/homepage/homepage.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 235 KiB

View File

@ -1,215 +0,0 @@
<svg width="400" height="400" viewBox="0 0 400 400" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M121.428 333.735C121.428 331.45 123.223 328.675 125.182 327.532C126.216 326.975 127.135 326.884 127.785 327.22L127.794 327.206L135.212 331.625C135.965 331.966 136.445 332.821 136.445 334.061C136.445 334.072 136.445 334.082 136.445 334.093C136.462 334.287 136.462 334.495 136.445 334.714C136.445 336.836 134.976 339.448 133.181 340.427C132.42 340.842 131.718 340.935 131.161 340.742C130.834 340.747 130.533 340.68 130.268 340.547L130.242 340.59L122.945 336.271C122.031 336.031 121.428 335.124 121.428 333.735Z" fill="#4A2C00"/>
<mask id="path-2-inside-1_2184_95559" fill="white">
<path fill-rule="evenodd" clip-rule="evenodd" d="M117.999 329.201C117.999 327.732 118.979 325.937 120.284 325.284C120.932 324.96 121.5 324.917 121.907 325.136L121.917 325.12L126.65 327.895L123.386 333.445L118.885 330.744C118.339 330.592 117.999 330.066 117.999 329.201Z"/>
</mask>
<path fill-rule="evenodd" clip-rule="evenodd" d="M117.999 329.201C117.999 327.732 118.979 325.937 120.284 325.284C120.932 324.96 121.5 324.917 121.907 325.136L121.917 325.12L126.65 327.895L123.386 333.445L118.885 330.744C118.339 330.592 117.999 330.066 117.999 329.201Z" fill="url(#paint0_linear_2184_95559)"/>
<path d="M120.284 325.284L120.398 325.51L120.284 325.284ZM121.907 325.136L122.121 325.272L121.995 325.47L121.787 325.359L121.907 325.136ZM121.917 325.12L121.703 324.984L121.834 324.778L122.045 324.902L121.917 325.12ZM126.65 327.895L126.779 327.677L126.997 327.805L126.869 328.024L126.65 327.895ZM123.386 333.445L123.604 333.573L123.475 333.793L123.256 333.662L123.386 333.445ZM118.885 330.744L118.953 330.5L118.986 330.509L119.015 330.527L118.885 330.744ZM120.398 325.51C119.802 325.808 119.263 326.378 118.872 327.062C118.482 327.745 118.253 328.519 118.253 329.201H117.746C117.746 328.415 118.007 327.555 118.432 326.811C118.857 326.067 119.461 325.412 120.171 325.057L120.398 325.51ZM121.787 325.359C121.483 325.196 121.01 325.204 120.398 325.51L120.171 325.057C120.855 324.715 121.516 324.639 122.027 324.912L121.787 325.359ZM122.131 325.256L122.121 325.272L121.693 325L121.703 324.984L122.131 325.256ZM126.522 328.114L121.789 325.339L122.045 324.902L126.779 327.677L126.522 328.114ZM123.168 333.316L126.432 327.767L126.869 328.024L123.604 333.573L123.168 333.316ZM119.015 330.527L123.516 333.227L123.256 333.662L118.755 330.961L119.015 330.527ZM118.253 329.201C118.253 330.005 118.56 330.39 118.953 330.5L118.817 330.988C118.118 330.793 117.746 330.128 117.746 329.201H118.253Z" fill="white" mask="url(#path-2-inside-1_2184_95559)"/>
<path d="M135.465 330.997L127.793 326.427L122.244 335.078L130.242 339.811L135.465 330.997Z" fill="url(#paint1_linear_2184_95559)"/>
<path d="M125.182 326.753C123.223 327.895 121.428 330.67 121.428 332.955C121.428 335.241 123.06 336.22 125.019 335.077C126.977 333.935 128.773 331.16 128.773 328.875C128.936 326.426 127.304 325.61 125.182 326.753Z" fill="url(#paint2_linear_2184_95559)"/>
<path d="M132.853 331.159C130.895 332.302 129.099 335.077 129.099 337.362C129.099 339.647 130.732 340.626 132.69 339.484C134.649 338.341 136.444 335.566 136.444 333.281C136.444 330.996 134.812 330.017 132.853 331.159Z" fill="#5F8ED3"/>
<path d="M175.455 355.317L137.8 332.312C135.643 330.994 132.828 331.637 131.456 333.761C130.034 335.962 130.706 338.902 132.944 340.267L170.722 363.315L175.455 355.317Z" fill="url(#paint3_linear_2184_95559)"/>
<path d="M169.905 361.193C169.905 359.234 171.374 356.623 173.17 355.643C174.33 354.905 175.354 355.053 175.933 355.822L175.945 355.806L183.453 363.641L181.657 366.416L171.568 363.555C171.34 363.534 171.129 363.474 170.94 363.377L170.721 363.315L170.756 363.265C170.228 362.895 169.905 362.187 169.905 361.193Z" fill="url(#paint4_linear_2184_95559)"/>
<path d="M182.473 363.641C181.82 363.967 181.33 364.947 181.33 365.6C181.33 366.416 181.82 366.579 182.473 366.253C183.126 365.926 183.615 364.947 183.615 364.294C183.615 363.478 183.126 363.315 182.473 363.641Z" fill="#5F8ED3"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M181.821 365.273C181.821 364.784 182.147 364.294 182.474 364.131C182.768 364.033 183.004 364.053 183.109 364.155L183.126 364.131L186.228 367.069L186.271 367.232H186.064L181.984 365.763L182.006 365.732C181.894 365.664 181.821 365.505 181.821 365.273Z" fill="url(#paint5_linear_2184_95559)"/>
<path d="M121.917 332.792C124.354 334.221 139.027 342.645 143.005 344.929C143.627 345.286 144 345.942 144 346.658V349.882C144 350.261 143.786 350.607 143.447 350.776L143.245 350.877C143.093 350.954 142.911 350.947 142.765 350.859L138 348L142.809 346.503L119.958 333.282L120.611 332.955C121.101 332.629 121.59 332.629 121.917 332.792Z" fill="url(#paint6_linear_2184_95559)"/>
<path d="M119.794 333.608V336.873C119.794 337.036 119.958 337.363 120.121 337.363L142.244 350.549C142.577 350.748 143 350.508 143 350.12V346.576C143 346.219 142.81 345.89 142.501 345.711L120.774 333.119C120.447 332.792 119.794 333.119 119.794 333.608Z" fill="url(#paint7_linear_2184_95559)"/>
<path d="M188.701 33.5196C189.996 33.1854 191.369 33.3486 192.549 33.977L357.286 121.701C359.029 122.629 360.118 124.443 360.118 126.418V253.298C360.118 255.167 359.141 256.901 357.542 257.869L352.764 260.762V127.905L182.789 35.0461L188.701 33.5196Z" fill="url(#paint8_linear_2184_95559)"/>
<path d="M357.044 121.875C358.862 122.777 360.013 124.631 360.013 126.661V253.436C360.013 255.305 359.036 257.038 357.437 258.007L352.659 260.9V128.043L343.982 122.948L348.435 117.604L357.044 121.875Z" fill="url(#paint9_linear_2184_95559)"/>
<path d="M184.509 170.579C182.86 169.683 181.834 167.957 181.834 166.08V38.964C181.834 36.437 184.532 34.8255 186.757 36.0236L352.357 125.193C354.016 126.086 355.05 127.818 355.05 129.702V257.667C355.05 260.2 352.341 261.811 350.115 260.601L184.509 170.579Z" fill="url(#paint10_linear_2184_95559)" stroke="white" stroke-width="0.445285"/>
<path d="M186.352 157.14C186.352 158.448 187.068 159.651 188.218 160.273L347.115 246.267C348.302 246.909 349.744 246.05 349.744 244.701V135.822C349.744 134.507 349.02 133.3 347.861 132.68L188.972 47.7596C187.786 47.1254 186.352 47.9851 186.352 49.3304V157.14Z" fill="url(#paint11_linear_2184_95559)"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M242.315 122.764L249.21 119.16C250.832 118.312 253.411 119.907 254.97 122.722C255.027 122.826 255.083 122.93 255.136 123.034L270.986 154.158C271.253 154.683 271.257 155.221 270.996 155.437L255.126 168.552C253.7 169.73 251.133 168.501 249.392 165.807C249.309 165.678 249.228 165.547 249.151 165.414L242.315 153.707C241.812 152.846 241.527 151.9 241.527 151.089V124.446C241.527 123.634 241.812 123.027 242.315 122.764Z" fill="#A9CCFF"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M274.311 134.15L281.148 145.858C281.651 146.719 281.935 147.665 281.935 148.476V175.118C281.935 175.93 281.651 176.537 281.148 176.8L274.253 180.404C272.63 181.252 270.051 179.657 268.492 176.842C268.435 176.739 268.38 176.634 268.326 176.53L252.852 145.629C252.585 145.105 252.58 144.566 252.842 144.35L268.337 131.012C269.762 129.834 272.329 131.063 274.07 133.757C274.153 133.886 274.234 134.017 274.311 134.15Z" fill="#B3D2FF"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M252.416 143.775C252.416 144.437 252.553 145.273 252.899 146L252.971 146.145L261.612 163.093L268.531 176.679L268.616 176.84L268.705 176.994C269.422 178.292 270.5 179.437 271.565 180.07V156.19C271.565 155.529 271.235 154.691 270.889 153.964L270.818 153.819L262.104 136.663L262.1 136.665L255.189 123.067L255.108 122.911L255.024 122.756C254.307 121.458 253.373 120.402 252.416 119.746V143.775Z" fill="#CFE3FF"/>
<path d="M180.814 172.216L62.0615 233.81V239.414C62.0615 241.305 63.0604 243.054 64.6883 244.016L229.432 341.281C231.113 342.274 233.202 342.27 234.88 341.272L347.763 274.117C349.382 273.154 350.374 271.409 350.374 269.525V263.658L185.829 172.216C184.366 171.171 182.485 171.171 180.814 172.216Z" fill="url(#paint12_linear_2184_95559)"/>
<path d="M61.3838 233.378V239.086C61.3838 240.978 62.3842 242.729 64.014 243.689L229.674 341.328C231.341 342.31 233.409 342.315 235.08 341.34L243.06 336.685V328.669L232.373 334.013L61.3838 233.378Z" fill="url(#paint13_linear_2184_95559)"/>
<path d="M179.072 170.798C180.594 169.994 182.418 170.008 183.928 170.836L349.278 261.55C350.941 262.462 350.981 264.837 349.349 265.804L235.844 333.066C234.25 334.011 232.271 334.021 230.668 333.093L63.2906 236.222C61.6243 235.258 61.671 232.837 63.3731 231.937L179.072 170.798Z" fill="url(#paint14_linear_2184_95559)" stroke="white" stroke-width="0.445285"/>
<path d="M160.633 249.558C159.467 248.91 158.051 248.904 156.879 249.54L129.737 264.285C128.399 265.012 128.374 266.923 129.691 267.685L173.892 293.258C175.126 293.972 176.651 293.956 177.87 293.215L204.3 277.143C205.578 276.367 205.541 274.5 204.234 273.774L160.633 249.558Z" fill="url(#paint15_linear_2184_95559)"/>
<path d="M190.141 185.403C188.983 184.775 187.586 184.775 186.428 185.402L124.426 218.949C123.081 219.677 123.059 221.599 124.388 222.357L256.01 297.419C257.205 298.1 258.671 298.101 259.867 297.422L323.689 261.169C325.02 260.413 325 258.489 323.655 257.76L190.141 185.403Z" fill="url(#paint16_linear_2184_95559)"/>
<path d="M217.521 189.663L302.126 236.05V231.889C302.126 230.587 301.415 229.389 300.273 228.764L220.157 184.948C218.97 184.299 217.521 185.158 217.521 186.511V189.663Z" fill="url(#paint17_linear_2184_95559)"/>
<path d="M382.98 335.212L383 342.186C383 343.103 382.542 343.944 381.701 344.402L309.034 386.352C307.276 387.345 305.137 387.345 303.379 386.352L268.46 366.18C267.466 365.645 266.931 364.575 267.008 363.505L267.256 356.646L306.589 350.397L382.98 335.212Z" fill="url(#paint18_linear_2184_95559)"/>
<path d="M307.982 386.531C307.982 386.531 306.594 387.883 303.379 386.352L268.459 366.18C267.466 365.645 266.931 364.575 267.008 363.505L267.255 356.646L307.982 378.25V386.531Z" fill="url(#paint19_linear_2184_95559)"/>
<path d="M381.657 336.966L381.656 336.967L308.531 379.146L308.527 379.148C307.076 380.018 305.262 380.018 303.811 379.148L303.807 379.146L268.429 358.744C267.14 357.997 267.14 356.092 268.429 355.345L381.657 336.966ZM381.657 336.966C383.098 336.143 383.098 334.163 381.657 333.339L381.656 333.339L346.049 312.784L346.047 312.783C344.824 312.064 343.39 312.064 342.168 312.783L342.166 312.784L268.429 355.345L381.657 336.966Z" fill="url(#paint20_linear_2184_95559)" stroke="white" stroke-width="0.48713"/>
<path d="M376.627 336.525L309.867 374.448C308.46 375.304 306.63 375.304 305.223 374.448L273.924 357.579C273.08 357.08 273.08 355.866 273.924 355.367L342.362 315.97C343.206 315.47 344.191 315.47 345.036 315.97L352.423 320.324C352.916 320.609 352.986 321.251 352.634 321.68C352.353 321.965 352.423 322.465 352.775 322.679L363.258 328.959C363.821 329.316 364.595 329.388 365.228 329.174L365.651 329.031C366.284 328.817 366.987 328.888 367.621 329.245L376.627 334.526C377.401 335.026 377.401 336.096 376.627 336.525Z" fill="url(#paint21_linear_2184_95559)"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M321.599 335.822L329.063 335.909C330.82 335.929 332.215 336.768 332.18 337.782C332.178 337.819 332.175 337.856 332.17 337.893L330.627 348.888C330.601 349.074 330.349 349.222 330.029 349.24L310.562 350.361C308.813 350.462 307.255 349.725 307.08 348.716C307.072 348.667 307.067 348.619 307.065 348.57L306.916 344.298C306.905 343.984 307.116 343.681 307.501 343.458L320.144 336.16C320.529 335.937 321.055 335.815 321.599 335.822Z" fill="#A9CCFF"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M343.115 344.021L343.264 348.294C343.275 348.608 343.064 348.911 342.679 349.133L330.037 356.432C329.652 356.654 329.126 356.776 328.582 356.77L321.118 356.683C319.361 356.663 317.966 355.824 318.001 354.81C318.002 354.773 318.006 354.736 318.011 354.699L319.761 343.823C319.787 343.638 320.039 343.489 320.359 343.471L339.619 342.231C341.367 342.13 342.926 342.867 343.1 343.876C343.109 343.924 343.114 343.973 343.115 344.021Z" fill="#B3D2FF"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M320.058 343.151C319.744 343.333 319.461 343.583 319.405 343.836L319.396 343.887L318.565 349.876L317.891 354.676L317.886 354.733L317.887 354.789C317.87 355.256 318.225 355.738 318.814 356.077L330.145 349.536C330.459 349.354 330.582 349.074 330.638 348.821L330.647 348.77L331.517 342.712L331.512 342.712L332.198 337.911L332.205 337.855L332.208 337.8C332.226 337.332 331.947 336.898 331.46 336.569L320.058 343.151Z" fill="#CFE3FF"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M375.72 344.17C375.634 344.02 375.442 343.968 375.292 344.054L368.644 347.875C368.494 347.961 368.442 348.153 368.528 348.303C368.615 348.453 368.806 348.505 368.957 348.419L375.604 344.598C375.754 344.512 375.806 344.32 375.72 344.17Z" stroke="#79A8EB" stroke-width="2.37133" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M365.404 350.131C365.317 349.98 365.125 349.929 364.975 350.015L358.328 353.835C358.177 353.922 358.126 354.114 358.212 354.264C358.298 354.414 358.49 354.466 358.64 354.379L365.288 350.559C365.438 350.473 365.49 350.281 365.404 350.131Z" fill="#79A8EB" stroke="#79A8EB" stroke-width="2.37133" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M44.2695 344.328L50.4706 380.788C50.5544 381.28 50.7069 381.754 50.974 382.177C52.461 384.529 58.5425 392.5 72.6668 392.5C86.5812 392.5 92.6901 384.764 94.2903 382.285C94.6061 381.796 94.7723 381.235 94.8419 380.657L99.4633 342.27L44.2695 344.328Z" fill="url(#paint22_linear_2184_95559)"/>
<path d="M48 366C48 366 84.5 368 98 354L98.5 347.5L45 348.5L48 366Z" fill="url(#paint23_linear_2184_95559)"/>
<path d="M71.5 359C88.8969 359 103 350.941 103 341C103 331.059 88.8969 323 71.5 323C54.103 323 40 331.059 40 341C40 350.941 54.103 359 71.5 359Z" fill="url(#paint24_linear_2184_95559)"/>
<path d="M40.0762 333.274V341.432H103.046L103.122 334.418L40.0762 333.274Z" fill="url(#paint25_linear_2184_95559)"/>
<path d="M102.806 334.57C102.806 339.484 99.3824 343.992 93.7193 347.289C88.0641 350.581 80.2306 352.627 71.561 352.627C62.8914 352.627 55.058 350.581 49.4028 347.289C43.7397 343.992 40.3156 339.484 40.3156 334.57C40.3156 329.656 43.7397 325.148 49.4028 321.852C55.058 318.56 62.8914 316.513 71.561 316.513C80.2306 316.513 88.0641 318.56 93.7193 321.852C99.3824 325.148 102.806 329.656 102.806 334.57Z" fill="url(#paint26_linear_2184_95559)" stroke="white" stroke-width="0.631222"/>
<path d="M71.5475 348.512C85.1047 348.512 96.095 342.129 96.095 334.256C96.095 326.383 85.1047 320 71.5475 320C57.9903 320 47 326.383 47 334.256C47 342.129 57.9903 348.512 71.5475 348.512Z" fill="url(#paint27_linear_2184_95559)"/>
<path d="M55.0943 329.067C50.717 331.541 48.3774 334.765 48 338.064C48.9811 340.538 51.0943 342.937 54.4906 344.886C63.9245 350.359 79.3962 350.359 88.9056 344.961C93.283 342.487 95.6226 339.263 96 335.965C95.0189 333.491 92.9057 331.091 89.5095 329.142C80.0755 323.669 64.6038 323.595 55.0943 329.067Z" fill="url(#paint28_linear_2184_95559)"/>
<path d="M70.8034 339.748C70.8034 339.748 73.9397 319.3 71.9795 288.582C70.5682 266.156 75.2725 244.767 77.9383 234.967C78.3303 233.459 76.7622 232.329 75.8214 233.459C71.117 239.584 63.5901 253.153 62.2573 277.275C60.2971 312.61 70.2546 322.221 67.9808 339.182C69.4705 340.596 70.8034 339.748 70.8034 339.748Z" fill="url(#paint29_linear_2184_95559)"/>
<path d="M68.8848 340.668C68.0133 340.703 67.1361 340.168 66.5289 339.306C63.1753 334.475 54 320.039 51.7122 302.095C49.2013 282.661 52.3695 270.282 51.0161 258.58C50.8012 256.612 52.6246 255.482 53.9392 256.809C57.777 260.615 63.3699 268.159 64.5592 280.362C66.4686 299.505 66.7429 326.893 70.0979 337.058C71.3016 340.306 70.7197 340.679 68.8848 340.668Z" fill="url(#paint30_linear_2184_95559)"/>
<path d="M72.8901 337.095C72.8901 337.095 76.5505 299.25 85.6877 280.32C91.8662 267.492 93.2048 259.473 93.4395 255.579C93.4321 255.194 93.9032 255.085 93.9837 255.483C95.0055 260.367 96.5107 271.478 93.6135 283.638C88.9321 303.353 78.6754 321.798 79.4379 334.986C79.4527 335.757 79.0858 336.556 78.549 337.037C74.8336 339.742 72.8901 337.095 72.8901 337.095Z" fill="url(#paint31_linear_2184_95559)"/>
<path d="M72.4849 342.429C72.2521 342.24 72.0193 341.957 71.9417 341.58C70.8554 337.144 67.131 305.146 74.2695 277.491C77.7612 263.899 76.7525 255.782 75.0454 251.062C74.7351 250.307 75.5886 249.646 76.0541 250.213C79.701 255.215 83.9686 264.748 82.8047 281.172C81.796 295.613 71.321 325.817 75.5886 340.919C75.8214 341.863 75.4334 342.712 74.5799 342.901C73.6488 343.184 72.9504 342.807 72.4849 342.429Z" fill="url(#paint32_linear_2184_95559)"/>
<g filter="url(#filter0_b_2184_95559)">
<path d="M46 62.7495C46 56.1221 50.6172 53.4965 56.3129 56.885L183.687 132.665C189.383 136.053 194 144.173 194 150.8V236.723C194 243.35 189.383 245.976 183.687 242.587L56.3129 166.807C50.6172 163.419 46 155.299 46 148.672V62.7495Z" fill="url(#paint33_linear_2184_95559)" fill-opacity="0.35"/>
</g>
<g filter="url(#filter1_b_2184_95559)">
<path fill-rule="evenodd" clip-rule="evenodd" d="M63.313 34.4804C57.6173 31.0919 53.0001 33.7175 53.0001 40.3449V55.5466C54.0399 55.755 55.1541 56.1955 56.313 56.885L183.687 132.665C189.383 136.053 194 144.173 194 150.8V236.723C194 242.345 191 243.345 190 243.845C194.177 244.796 201 237.199 201 231.832V145.8C201 139.173 196.383 131.053 190.687 127.664L135.624 94.9053C131.702 92.572 128.119 87.8522 126.38 82.7272L124.66 77.6567C122.921 72.5317 119.338 67.8119 115.416 65.4786L63.313 34.4804Z" fill="url(#paint34_linear_2184_95559)" fill-opacity="0.65"/>
</g>
<path d="M330 282.5C330 282.5 342.5 293.048 324.5 303.5C309 312.5 253.707 345.5 237.5 355.5C204.748 375.709 239.863 411.202 269 388C282.111 377.56 285.5 375 285.5 375" stroke="#D6E6FF" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M332.5 279.5L326 283.5" stroke="#D6E6FF" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
<defs>
<filter id="filter0_b_2184_95559" x="34" y="43.4048" width="172" height="212.663" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feGaussianBlur in="BackgroundImageFix" stdDeviation="6"/>
<feComposite in2="SourceAlpha" operator="in" result="effect1_backgroundBlur_2184_95559"/>
<feBlend mode="normal" in="SourceGraphic" in2="effect1_backgroundBlur_2184_95559" result="shape"/>
</filter>
<filter id="filter1_b_2184_95559" x="41" y="21" width="172" height="234.926" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feGaussianBlur in="BackgroundImageFix" stdDeviation="6"/>
<feComposite in2="SourceAlpha" operator="in" result="effect1_backgroundBlur_2184_95559"/>
<feBlend mode="normal" in="SourceGraphic" in2="effect1_backgroundBlur_2184_95559" result="shape"/>
</filter>
<linearGradient id="paint0_linear_2184_95559" x1="118.465" y1="328.918" x2="126.367" y2="327.842" gradientUnits="userSpaceOnUse">
<stop stop-color="#D5E6FF"/>
<stop offset="1" stop-color="#A5CAFF"/>
</linearGradient>
<linearGradient id="paint1_linear_2184_95559" x1="131" y1="329" x2="127" y2="336.5" gradientUnits="userSpaceOnUse">
<stop stop-color="#A3C4F4"/>
<stop offset="1" stop-color="#78A7EB"/>
</linearGradient>
<linearGradient id="paint2_linear_2184_95559" x1="131" y1="329" x2="127" y2="336.5" gradientUnits="userSpaceOnUse">
<stop stop-color="#A3C4F4"/>
<stop offset="1" stop-color="#78A7EB"/>
</linearGradient>
<linearGradient id="paint3_linear_2184_95559" x1="152.5" y1="352" x2="156.752" y2="344.264" gradientUnits="userSpaceOnUse">
<stop stop-color="#A5CAFF"/>
<stop offset="1" stop-color="#D5E6FF"/>
</linearGradient>
<linearGradient id="paint4_linear_2184_95559" x1="173.5" y1="364.5" x2="177.5" y2="357.5" gradientUnits="userSpaceOnUse">
<stop stop-color="#6196E2"/>
<stop offset="1" stop-color="#A3C4F4"/>
</linearGradient>
<linearGradient id="paint5_linear_2184_95559" x1="181.879" y1="365.869" x2="183.816" y2="366.228" gradientUnits="userSpaceOnUse">
<stop stop-color="#78A7EB"/>
<stop offset="1" stop-color="#A3C4F4"/>
</linearGradient>
<linearGradient id="paint6_linear_2184_95559" x1="121" y1="333.5" x2="144.196" y2="334.962" gradientUnits="userSpaceOnUse">
<stop stop-color="#A3C4F4"/>
<stop offset="1" stop-color="#78A7EB"/>
</linearGradient>
<linearGradient id="paint7_linear_2184_95559" x1="121.069" y1="341.028" x2="142.385" y2="337.159" gradientUnits="userSpaceOnUse">
<stop stop-color="#D5E6FF"/>
<stop offset="1" stop-color="#A5CAFF"/>
</linearGradient>
<linearGradient id="paint8_linear_2184_95559" x1="357.446" y1="127.263" x2="224.516" y2="-3.91747" gradientUnits="userSpaceOnUse">
<stop stop-color="#A3C4F4"/>
<stop offset="1" stop-color="#78A7EB"/>
</linearGradient>
<linearGradient id="paint9_linear_2184_95559" x1="385.394" y1="191.077" x2="354.669" y2="122.948" gradientUnits="userSpaceOnUse">
<stop offset="0.578128" stop-color="#A3C4F4" stop-opacity="0"/>
<stop offset="0.955156" stop-color="#78A7EB"/>
<stop offset="1" stop-color="#78A7EB" stop-opacity="0"/>
</linearGradient>
<linearGradient id="paint10_linear_2184_95559" x1="355.187" y1="134.962" x2="191.315" y2="118.186" gradientUnits="userSpaceOnUse">
<stop stop-color="#D5E6FF"/>
<stop offset="0.588545" stop-color="#A5CAFF"/>
</linearGradient>
<linearGradient id="paint11_linear_2184_95559" x1="352.164" y1="145.629" x2="195.817" y2="112.784" gradientUnits="userSpaceOnUse">
<stop stop-color="#FDFEFF"/>
<stop offset="1" stop-color="#DDEBFF"/>
</linearGradient>
<linearGradient id="paint12_linear_2184_95559" x1="346.579" y1="269.039" x2="222.847" y2="296.465" gradientUnits="userSpaceOnUse">
<stop stop-color="#78A7EB"/>
<stop offset="1" stop-color="#A3C4F4"/>
</linearGradient>
<linearGradient id="paint13_linear_2184_95559" x1="61.3838" y1="342.919" x2="234.155" y2="338.911" gradientUnits="userSpaceOnUse">
<stop stop-color="#7BAAEC" stop-opacity="0.65"/>
<stop offset="0.989541" stop-color="#7BAAEC" stop-opacity="0.985625"/>
<stop offset="1" stop-color="#7BAAEC" stop-opacity="0"/>
</linearGradient>
<linearGradient id="paint14_linear_2184_95559" x1="348.226" y1="241.299" x2="78.455" y2="178.498" gradientUnits="userSpaceOnUse">
<stop stop-color="#D5E6FF"/>
<stop offset="1" stop-color="#A5CAFF"/>
</linearGradient>
<linearGradient id="paint15_linear_2184_95559" x1="207.444" y1="268.129" x2="131.271" y2="250.786" gradientUnits="userSpaceOnUse">
<stop stop-color="#A3C4F4"/>
<stop offset="1" stop-color="#78A7EB"/>
</linearGradient>
<linearGradient id="paint16_linear_2184_95559" x1="327.532" y1="238.894" x2="112.439" y2="189.934" gradientUnits="userSpaceOnUse">
<stop stop-color="#A3C4F4"/>
<stop offset="1" stop-color="#78A7EB"/>
</linearGradient>
<linearGradient id="paint17_linear_2184_95559" x1="290.548" y1="227.144" x2="243.336" y2="180.987" gradientUnits="userSpaceOnUse">
<stop stop-color="#A3C4F4"/>
<stop offset="0.619797" stop-color="#78A7EB"/>
</linearGradient>
<linearGradient id="paint18_linear_2184_95559" x1="275.767" y1="364.169" x2="380.366" y2="329.367" gradientUnits="userSpaceOnUse">
<stop stop-color="#78A7EB"/>
<stop offset="1" stop-color="#A3C4F4"/>
</linearGradient>
<linearGradient id="paint19_linear_2184_95559" x1="268.038" y1="363.636" x2="307.769" y2="364.181" gradientUnits="userSpaceOnUse">
<stop stop-color="#78A7EB"/>
<stop offset="0.927101" stop-color="#A9C9F9"/>
<stop offset="1" stop-color="#A3C4F4" stop-opacity="0"/>
</linearGradient>
<linearGradient id="paint20_linear_2184_95559" x1="267.063" y1="355.842" x2="365.47" y2="304.248" gradientUnits="userSpaceOnUse">
<stop stop-color="#D5E6FF"/>
<stop offset="1" stop-color="#A5CAFF"/>
</linearGradient>
<linearGradient id="paint21_linear_2184_95559" x1="273.673" y1="356.854" x2="349.976" y2="299.129" gradientUnits="userSpaceOnUse">
<stop stop-color="#FDFEFF"/>
<stop offset="1" stop-color="#DDEBFF"/>
</linearGradient>
<linearGradient id="paint22_linear_2184_95559" x1="98.5024" y1="358.903" x2="48.3128" y2="349.67" gradientUnits="userSpaceOnUse">
<stop stop-color="#D5E6FF"/>
<stop offset="1" stop-color="#A5CAFF"/>
</linearGradient>
<linearGradient id="paint23_linear_2184_95559" x1="98" y1="355" x2="48.8473" y2="365.806" gradientUnits="userSpaceOnUse">
<stop stop-color="#3C74C4" stop-opacity="0.75"/>
<stop offset="1" stop-color="#3F76C6" stop-opacity="0.25"/>
</linearGradient>
<linearGradient id="paint24_linear_2184_95559" x1="102.191" y1="342.975" x2="75.9113" y2="349.045" gradientUnits="userSpaceOnUse">
<stop stop-color="#78A7EB"/>
<stop offset="1" stop-color="#A3C4F4"/>
</linearGradient>
<linearGradient id="paint25_linear_2184_95559" x1="102.312" y1="337.8" x2="88.7364" y2="351.648" gradientUnits="userSpaceOnUse">
<stop stop-color="#78A7EB"/>
<stop offset="1" stop-color="#A3C4F4"/>
</linearGradient>
<linearGradient id="paint26_linear_2184_95559" x1="102.023" y1="331.765" x2="45.536" y2="319.067" gradientUnits="userSpaceOnUse">
<stop stop-color="#D5E6FF"/>
<stop offset="1" stop-color="#A5CAFF"/>
</linearGradient>
<linearGradient id="paint27_linear_2184_95559" x1="95.4642" y1="335.82" x2="46.2985" y2="336.375" gradientUnits="userSpaceOnUse">
<stop stop-color="#568CDB"/>
<stop offset="1" stop-color="#91B9F3"/>
</linearGradient>
<linearGradient id="paint28_linear_2184_95559" x1="95.5" y1="337" x2="49.2161" y2="328.334" gradientUnits="userSpaceOnUse">
<stop stop-color="#78A7EB"/>
<stop offset="1" stop-color="#A3C4F4"/>
</linearGradient>
<linearGradient id="paint29_linear_2184_95559" x1="62.2785" y1="278.331" x2="77.3146" y2="278.037" gradientUnits="userSpaceOnUse">
<stop offset="0.703133" stop-color="#00EDD0"/>
<stop offset="1" stop-color="#6FFFEE"/>
</linearGradient>
<linearGradient id="paint30_linear_2184_95559" x1="65.9426" y1="291.074" x2="51.0212" y2="292.938" gradientUnits="userSpaceOnUse">
<stop stop-color="#77FBEB"/>
<stop offset="1" stop-color="#0DECD1"/>
</linearGradient>
<linearGradient id="paint31_linear_2184_95559" x1="92.1186" y1="291.511" x2="81.0486" y2="289.347" gradientUnits="userSpaceOnUse">
<stop stop-color="#6FFFEE"/>
<stop offset="1" stop-color="#00EDD0"/>
</linearGradient>
<linearGradient id="paint32_linear_2184_95559" x1="82.7737" y1="289.4" x2="70.5563" y2="289.176" gradientUnits="userSpaceOnUse">
<stop stop-color="#89FFF1"/>
<stop offset="1" stop-color="#14FFE3"/>
</linearGradient>
<linearGradient id="paint33_linear_2184_95559" x1="52" y1="57.345" x2="188.5" y2="245.345" gradientUnits="userSpaceOnUse">
<stop stop-color="#CCADFF"/>
<stop offset="1" stop-color="#B454FF"/>
</linearGradient>
<linearGradient id="paint34_linear_2184_95559" x1="65.5" y1="41.345" x2="63.011" y2="234.115" gradientUnits="userSpaceOnUse">
<stop stop-color="#CCADFF"/>
<stop offset="1" stop-color="#B454FF"/>
</linearGradient>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 26 KiB

View File

@ -43,7 +43,6 @@
<file>connectinterface/nextDarkIcon.png</file>
<file>devicetype/pc.svg</file>
<file>devicetype/phone.svg</file>
<file>homepage/homepage.svg</file>
<file>homepage/remote.svg</file>
<file>homepage/folder.svg</file>
<file>homepage/screen-share.svg</file>
@ -78,5 +77,7 @@
<file>filemanageview/add.png</file>
<file>filemanageview/download.svg</file>
<file>filemanageview/videodefault.svg</file>
<file>homepage/homepage-dark.png</file>
<file>homepage/homepage.png</file>
</qresource>
</RCC>

View File

@ -886,6 +886,9 @@ void MainWindow::changeTheme()
if (m_titlebar != nullptr) {
m_titlebar->setTheme(m_theme);
}
if (m_homepage != nullptr) {
m_homepage->setTheme(m_theme);
}
if (m_connectInterfaceWin != nullptr) {
m_connectInterfaceWin->setTheme(m_theme);
}

View File

@ -29,7 +29,7 @@ HomePage::HomePage(QWidget *parent) : QWidget(parent)
m_connectBtn = new QPushButton(this);
connect(m_connectBtn, &QPushButton::clicked, this, &HomePage::sigConnectBtnClicked);
m_homePageLab->setPixmap(QPixmap(":/homepage/homepage.svg").scaled(400, 400));
m_homePageLab->setPixmap(QPixmap(":/homepage/homepage.png").scaled(400, 400));
QFont font;
font.setPointSizeF(24);
@ -39,7 +39,7 @@ HomePage::HomePage(QWidget *parent) : QWidget(parent)
QPalette palette = m_titleLab->palette();
palette.setColor(QPalette::Text, QColor("#3690F8"));
m_titleLab->setPalette(palette);
m_titleLab->setText(tr("Multiterminal")); // Multiterminal
m_titleLab->setText(tr("Multiterminal")); // Multiterminal
QFont fonts;
fonts.setBold(true);
@ -47,7 +47,7 @@ HomePage::HomePage(QWidget *parent) : QWidget(parent)
m_describeLab->setText(
tr("Cross equipment and cross system collaboration. "
"It is more convenient to share resources and screens, "
"and more convenient and efficient to work!")); // Cross system interaction between devices
"and more convenient and efficient to work!")); // Cross system interaction between devices
m_describeLab->setFixedWidth(342);
m_describeLab->setWordWrap(true);
m_describeLab->setFont(fonts);
@ -63,18 +63,18 @@ HomePage::HomePage(QWidget *parent) : QWidget(parent)
m_codeLab->setText("");
m_folderIconLab->setPixmap(QPixmap(":/homepage/folder.svg").scaled(ICON_W, ICON_H));
m_folderLab->setText(tr("Folder")); //文件浏览
m_folderLab->setText(tr("Folder")); //文件浏览
m_folderLab->setAlignment(Qt::AlignCenter);
m_shareIconLab->setPixmap(QPixmap(":/homepage/screen-share.svg").scaled(ICON_W, ICON_H));
m_shareLab->setText(tr("Share")); //共享屏幕
m_shareLab->setText(tr("Share")); //共享屏幕
m_shareLab->setAlignment(Qt::AlignCenter);
m_crossIconLab->setPixmap(QPixmap(":/homepage/remote.svg").scaled(ICON_W, ICON_H));
m_crossLab->setText(tr("Cross")); //跨屏操控
m_crossLab->setText(tr("Cross")); //跨屏操控
m_crossLab->setAlignment(Qt::AlignCenter);
m_connectBtn->setText(tr("Connect Now")); // Connect
m_connectBtn->setText(tr("Connect Now")); // Connect
m_connectBtn->setFixedSize(256, 56);
m_connectBtn->setProperty("isImportant", true);
m_connectBtn->setFocusPolicy(Qt::NoFocus);
@ -167,6 +167,18 @@ HomePage::HomePage(QWidget *parent) : QWidget(parent)
this->setLayout(mainVLayout);
}
void HomePage::setTheme(PublicAttributes::Theme theme)
{
switch (theme) {
case PublicAttributes::Theme::Light:
m_homePageLab->setPixmap(QPixmap(":/homepage/homepage.png").scaled(400, 400));
break;
case PublicAttributes::Theme::Dark:
m_homePageLab->setPixmap(QPixmap(":/homepage/homepage-dark.png").scaled(400, 400));
break;
}
}
void HomePage::setDeviceCode(QString code)
{
if (code.isEmpty()) {

View File

@ -4,12 +4,14 @@
#include <QWidget>
#include <QLabel>
#include <QPushButton>
#include "publicattributes.hpp"
class HomePage : public QWidget
{
Q_OBJECT
public:
HomePage(QWidget *parent = nullptr);
void setTheme(PublicAttributes::Theme theme);
void setDeviceCode(QString code = "");
void changeFontSize(double fontSize);
@ -23,14 +25,14 @@ private:
QLabel *m_deviceCodeLab = nullptr;
QLabel *m_codeLab = nullptr;
QLabel *m_folderIconLab = nullptr; //文件浏览Icon
QLabel *m_shareIconLab = nullptr; //共享屏幕Icon
QLabel *m_crossIconLab = nullptr; //跨屏操控Icon
QLabel *m_folderLab = nullptr; //文件浏览
QLabel *m_shareLab = nullptr; //共享屏幕
QLabel *m_crossLab = nullptr; //跨屏操控
QLabel *m_folderIconLab = nullptr; //文件浏览Icon
QLabel *m_shareIconLab = nullptr; //共享屏幕Icon
QLabel *m_crossIconLab = nullptr; //跨屏操控Icon
QLabel *m_folderLab = nullptr; //文件浏览
QLabel *m_shareLab = nullptr; //共享屏幕
QLabel *m_crossLab = nullptr; //跨屏操控
QPushButton *m_connectBtn = nullptr;
};
#endif // HOMEPAGE_H
#endif // HOMEPAGE_H