Use distinct icons for save and download

Closes #12627
This commit is contained in:
Cédric Krier committed 2023-10-09 14:41:24 +02:00
1 parent d6c69503e6
commit 325c4866a6
11 files changed
+11 -13

No files matched your search

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="M480-320 280-520l56-58 104 104v-326h80v326l104-104 56 58-200 200ZM240-160q-33 0-56.5-23.5T160-240v-120h80v120h480v-120h80v120q0 33-23.5 56.5T720-160H240Z"/></svg>

After

Width:  |  Height:  |  Size: 259 B

+1 -4
View File
@@ -1,4 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path d="M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"/>
<path fill="none" d="M0 0h24v24H0z"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="M840-680v480q0 33-23.5 56.5T760-120H200q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h480l160 160Zm-80 34L646-760H200v560h560v-446ZM480-240q50 0 85-35t35-85q0-50-35-85t-85-35q-50 0-85 35t-35 85q0 50 35 85t85 35ZM240-560h360v-160H240v160Zm-40-86v446-560 114Z"/></svg>

Before

Width:  |  Height:  |  Size: 264 B

After

Width:  |  Height:  |  Size: 369 B

+1
View File
@@ -3043,6 +3043,7 @@
'tryton-create',
'tryton-date',
'tryton-delete',
'tryton-download',
'tryton-email',
'tryton-error',
'tryton-exit',
+1 -1
View File
@@ -4142,7 +4142,7 @@ function eval_pyson(value){
'type': 'button',
'aria-label': Sao.i18n.gettext("Save As"),
'title': Sao.i18n.gettext("Save As..."),
}).append(Sao.common.ICONFACTORY.get_icon_img('tryton-save')
}).append(Sao.common.ICONFACTORY.get_icon_img('tryton-download')
).appendTo(group);
this.but_save_as.click(this.save_as.bind(this));
+1 -1
View File
@@ -2855,7 +2855,7 @@
'class': 'btn btn-default btn-sm',
'type': 'button',
'title': Sao.i18n.gettext("Save As..."),
}).append(Sao.common.ICONFACTORY.get_icon_img('tryton-save')
}).append(Sao.common.ICONFACTORY.get_icon_img('tryton-download')
).appendTo(cell)
.click(record, event => {
// Prevent editable tree to start edition
+1 -1
View File
@@ -38,7 +38,7 @@ class CellRendererBinary(Gtk.CellRenderer):
for key, icon in (
('select', 'tryton-search'),
('open', 'tryton-open'),
('save', 'tryton-save'),
('save', 'tryton-download'),
('clear', 'tryton-clear')):
img_sensitive = IconFactory.get_pixbuf(
icon, Gtk.IconSize.SMALL_TOOLBAR)
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="M480-320 280-520l56-58 104 104v-326h80v326l104-104 56 58-200 200ZM240-160q-33 0-56.5-23.5T160-240v-120h80v120h480v-120h80v120q0 33-23.5 56.5T720-160H240Z"/></svg>

After

Width:  |  Height:  |  Size: 259 B

@@ -1,4 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path d="M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zm-6 .67l2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"/>
<path fill="none" d="M0 0h24v24H0z"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path d="M840-680v480q0 33-23.5 56.5T760-120H200q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h480l160 160Zm-80 34L646-760H200v560h560v-446ZM480-240q50 0 85-35t35-85q0-50-35-85t-85-35q-50 0-85 35t-35 85q0 50 35 85t85 35ZM240-560h360v-160H240v160Zm-40-86v446-560 114Z"/></svg>

Before

Width:  |  Height:  |  Size: 264 B

After

Width:  |  Height:  |  Size: 369 B

@@ -28,7 +28,7 @@ class BinaryMixin(Widget):
self.but_save_as = Gtk.Button()
self.but_save_as.set_image(common.IconFactory.get_image(
'tryton-save', Gtk.IconSize.SMALL_TOOLBAR))
'tryton-download', Gtk.IconSize.SMALL_TOOLBAR))
self.but_save_as.set_relief(Gtk.ReliefStyle.NONE)
self.but_save_as.connect('clicked', self.save_as)
tooltips.set_tip(self.but_save_as, _('Save As...'))
@@ -633,7 +633,7 @@ class _BinaryIcon(Cell):
class _BinarySave(_BinaryIcon):
icon_name = 'tryton-save'
icon_name = 'tryton-download'
def __init__(self, binary):
super().__init__(binary)
+1
View File
@@ -36,6 +36,7 @@ CLIENT_ICONS = [(x, x) for x in [
'tryton-create',
'tryton-date',
'tryton-delete',
'tryton-download',
'tryton-email',
'tryton-error',
'tryton-exit',