This commit is contained in:
ymq1 2025-06-07 05:54:32 +00:00
parent 5fb7cbb357
commit e50012751d
7 changed files with 7 additions and 4 deletions

View File

@ -123,7 +123,7 @@ bricks.DataViewer = class extends bricks.VBox {
name:'update',
tip:'update selected record',
selected_row:true,
icon:this.editable.update_icon || bricks_resource('imgs/update.svg')
icon:this.editable.update_icon || bricks_resource('imgs/edit.svg')
},
{
name:'delete',

1
bricks/imgs/app.svg Normal file
View File

@ -0,0 +1 @@
<svg t="1749272572588" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2369" width="100%" height="100%"><path d="M61.577 621.3V500.492c0-11.07 9.09-20.123 20.229-20.123h213.477l-92.945 161.063H81.805c-11.138 0-20.228-9.023-20.228-20.132z m152.068 247.375l-68.127 46.157c-9.167 6.24-15.65 2.279-14.379-8.715l9.09-78.98c1.266-10.993 10.187-15.497 19.832-9.99l52.725 30.12c9.631 5.527 10.027 15.206 0.86 21.408z m16.36-44.513l-52.724-30.12c-9.64-5.526-13.037-17.872-7.43-27.474L413.996 343.36c5.535-9.62 18.026-12.994 27.657-7.419l52.725 30.06c9.64 5.575 12.963 17.931 7.428 27.513l-244.14 423.247c-5.529 9.602-18.025 12.888-27.66 7.4z m185.816-182.73L508.76 480.37h53.517l75.475 161.062H415.82zM718.528 689.5c-21.107-10.53-126.229-252.003-153.16-315.007-26.962-63.002-108.376-230.71-82.044-243.751 18.74-9.361 85.994 122.701 136.41 201.972 50.349 79.29 155.634 283.715 168.588 306.997 12.886 23.338-12.404 42.794-26.469 48.609-14.075 5.837-22.228 11.633-43.325 1.18z m69.079 110.995l-31.762-49.962c-6.57-10.376-3.159-23.205 7.496-28.69l30.274-15.497c10.676-5.428 24.035-1.043 29.715 9.835l25.058 47.972c5.699 10.856 1.815 24.787-8.463 30.91l-21.648 12.888c-10.277 6.222-24.1 2.84-30.67-7.456z m116.896 131.029c-6.636-21.156-57.303-22.567-79.985-54.445-22.76-31.763-3.95-48.125 3.95-55.68 92.004-51.586 76.035 110.125 76.035 110.125zM951.847 621.3c0 11.11-9.09 20.132-20.229 20.132H824.76c-1.178-6.2-3.092-12.422-6.318-18.239-2.783-4.965-9.815-18.314-19.61-36.958-14.142-26.893-34.458-65.36-56.202-105.865h188.98c11.138 0 20.228 9.052 20.228 20.123V621.3h0.01z" fill="${color} p-id="2370"></path></svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

1
bricks/imgs/reset.svg Normal file
View File

@ -0,0 +1 @@
<svg t="1749272997640" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3347" width="100%" height="100%"><path d="M978.179753 437.178602l8.25236-437.178602-149.131936 149.171233a488.107453 488.107453 0 0 0-341.7656-139.111213C224.464195 10.020723 4.715634 229.808581 4.715634 500.839665c0 271.109678 219.748561 490.818942 490.818943 490.818943 224.896462 0 413.993399-151.371863 472.074296-357.641569H827.161563c-52.815105 131.448308-181.276844 224.346304-331.626986 224.346304a357.484381 357.484381 0 0 1-357.484381-357.484381c0-197.506486 160.056489-357.602272 357.484381-357.602272 96.277535 0 182.809425 38.746796 246.981349 100.6002l-201.514775 201.475478 437.178602-8.213063z" fill="${color}" p-id="3348"></path></svg>

After

Width:  |  Height:  |  Size: 768 B

View File

@ -0,0 +1 @@
<svg t="1749275363339" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4322" width="100%" height="100%"><path d="M959.333 63.333v896h-896z" fill="${color}" p-id="4323"></path></svg>

After

Width:  |  Height:  |  Size: 226 B

View File

@ -418,7 +418,7 @@ bricks.PopupWindow = class extends bricks.Popup {
},
{
name:'minimax',
icon:bricks_resource('imgs/app_minimax.svg'),
icon:bricks_resource('imgs/app_minimize.svg'),
dynsize:true,
tip:'minimax this window'
},

View File

@ -21,7 +21,7 @@ bricks.Svg = class extends bricks.VBox {
this.color = bricks.app.get_color();
}
if (!this.blinkcolor){
this.blinkcolor = bricks.app.get_blinkcolor()
this.blinkcolor = bricks.app.get_bgcolor()
}
if (opts.url){
this.set_url(opts.url);

View File

@ -117,7 +117,7 @@ bricks.TreeNode = class extends bricks.VBox {
}
var icon_url = self.this.icons_urls.leaf;
if (this.is_leaf) icon_url = this.icons_urls.leaf;
else if this.node_state == 'expand') this.icon_url = this.icons_urls.open;
else if (this.node_state == 'expand') this.icon_url = this.icons_urls.open;
else this.icon_url = this.icons_urls.close;
var img = new bricks.Svg({
rate:1,