Skip to content

Commit f4b4c94

Browse files
committed
Remove unused icons and update SVG files for consistency
- Deleted the checkmark-symbolic.svg and twitter-verified-badge.svg icons as they are no longer needed. - Updated software-update-available-symbolic.svg to remove height attribute for better responsiveness. - Modified verify-failed.svg to adjust Inkscape properties for better compatibility. - Replaced verify-ok-old.svg with a more detailed version of verify-ok.svg, including Inkscape metadata. - Enhanced verify-warning.svg with additional Inkscape properties and improved structure for better rendering. - Refactored drop_window.vala to remove unnecessary warning icon from the dialog and adjusted option defaults for clarity.
1 parent e4c59bd commit f4b4c94

8 files changed

Lines changed: 110 additions & 23 deletions

data/icons/checkmark-symbolic.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Loading

data/icons/twitter-verified-badge.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

data/icons/verify-failed.svg

Lines changed: 4 additions & 3 deletions
Loading

data/icons/verify-ok-old.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

data/icons/verify-ok.svg

Lines changed: 48 additions & 1 deletion
Loading

data/icons/verify-warning.svg

Lines changed: 54 additions & 6 deletions
Loading

src/windows/drop_window.vala

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -413,10 +413,6 @@ namespace AppManager {
413413
string replace_text;
414414
if (installed_newer) {
415415
replace_text = I18n.tr("A newer item named %s already exists in this location. Do you want to replace it with the older one you're copying?").printf(record.name);
416-
var warning_icon = new Gtk.Image.from_icon_name("dialog-warning-symbolic");
417-
warning_icon.set_pixel_size(32);
418-
warning_icon.halign = Gtk.Align.CENTER;
419-
dialog.append_body(warning_icon);
420416
if (record.version != null && resolved_app_version != null) {
421417
var versions = I18n.tr("Installed: %s | Incoming: %s").printf(record.version, resolved_app_version);
422418
dialog.append_body(UiUtils.create_wrapped_label(GLib.Markup.escape_text(versions, -1), true, true));
@@ -425,9 +421,9 @@ namespace AppManager {
425421
replace_text = I18n.tr("An item named %s already exists in this location. Do you want to replace it with one you're copying?").printf(record.name);
426422
}
427423
dialog.append_body(UiUtils.create_wrapped_label(GLib.Markup.escape_text(replace_text, -1), true));
428-
var stop_is_default = installed_newer;
429-
dialog.add_option("stop", I18n.tr("Stop"), !stop_is_default);
430-
dialog.add_option("replace", I18n.tr("Replace"), stop_is_default);
424+
var replace_is_default = !installed_newer;
425+
dialog.add_option("stop", I18n.tr("Stop"), !replace_is_default);
426+
dialog.add_option("replace", I18n.tr("Replace"), replace_is_default);
431427

432428
install_prompt_visible = true;
433429
dialog.close_request.connect(() => {

0 commit comments

Comments
 (0)