Add new icons for alert boxes

This commit is contained in:
Veronica Berglyd Olsen
2023-08-07 17:02:18 +02:00
parent 8959af1f30
commit ec010bf18e
11 changed files with 49 additions and 8 deletions
@@ -17,6 +17,10 @@ licenseurl = https://creativecommons.org/licenses/by-sa/4.0/
[Map]
add = typ_plus.svg
alert_error = typ_info-large-full.svg
alert_info = typ_delete-full.svg
alert_question = typ_lightbulb-full.svg
alert_warn = typ_warning-full.svg
backward = typ_chevron-left.svg
bookmark = typ_bookmark.svg
browse = typ_folder-open.svg
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="24" height="24" version="1.2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="m12 0c-6.6285 0-12 5.373-12 12s5.3715 12 12 12 12-5.373 12-12-5.3715-12-12-12zm5.5605 15.44c0.5865 0.5865 0.5865 1.5345 0 2.121-0.2925 0.2925-0.6765 0.4395-1.0605 0.4395s-0.768-0.147-1.0605-0.4395l-3.4395-3.4395-3.4395 3.4395c-0.2925 0.2925-0.6765 0.4395-1.0605 0.4395s-0.768-0.147-1.0605-0.4395c-0.5865-0.5865-0.5865-1.5345 0-2.121l3.4395-3.4395-3.4395-3.4395c-0.5865-0.5865-0.5865-1.5345 0-2.121s1.5345-0.5865 2.121 0l3.4395 3.4395 3.4395-3.4395c0.5865-0.5865 1.5345-0.5865 2.121 0s0.5865 1.5345 0 2.121l-3.4395 3.4395z" fill="#d64848" stroke-width="1.5"/>
</svg>

After

Width:  |  Height:  |  Size: 713 B

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="24" height="24" version="1.2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="m14.251 5e-8a3.7505 3.7505 0 0 0-3.7505 3.7505 3.7505 3.7505 0 0 0 3.7505 3.7505 3.7505 3.7505 0 0 0 3.7505-3.7505 3.7505 3.7505 0 0 0-3.7505-3.7505zm-3.2787 8.9982c-2.7738 0-4.6394 1.6216-4.7174 1.6906-0.26853 0.23703-0.33381 0.62858-0.15529 0.93761 0.18002 0.30904 0.55162 0.45104 0.89366 0.33402 0.0075-3e-3 0.8387-0.28128 1.5588-0.28128 0.39455 0 0.55408 0.0827 0.60359 0.1172 0.25353 0.17702 0.72342 0.51058-0.07618 2.1038l-1.5002 2.9916c-0.89111 1.7777-1.0233 3.4948-0.36919 4.8375 0.53406 1.0996 1.5585 1.8542 2.8832 2.1243 0.47106 0.09451 0.9528 0.1465 1.4299 0.1465 2.7753 0 4.6452-1.6216 4.7232-1.6906 0.26853-0.23553 0.33088-0.62858 0.15236-0.93761-0.18002-0.30754-0.55176-0.44504-0.8878-0.33402-9e-3 3e-3 -0.8387 0.27835-1.5588 0.27835-0.39755 0-0.55844-0.0812-0.60945-0.1172-0.25203-0.17552-0.72198-0.50465 0.07911-2.1008l1.5002-2.9916c0.88961-1.7762 1.0233-3.4933 0.36918-4.8375-0.53406-1.0996-1.5586-1.8542-2.8802-2.1243-0.47556-0.09751-0.9601-0.1465-1.4387-0.1465z" fill="#69c" stroke-width="1.5002"/>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="24" height="24" version="1.2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="m12 5.1429c-0.31543 0-0.57143 0.256-0.57143 0.57143s0.256 0.57143 0.57143 0.57143c1.2377 0 2.2446 1.0069 2.2446 2.2446 0 0.31543 0.256 0.57143 0.57143 0.57143 0.31543 0 0.57143-0.256 0.57143-0.57143 0-1.8674-1.52-3.3874-3.3874-3.3874zm0-5.1429c-4.7269 0-8.5714 3.8446-8.5714 8.5714 0 1.6983 0.50286 3.3394 1.456 4.76l0.091429 0.15428c2.0857 2.9783 2.4526 3.92 2.4526 4.8v3.4286c0 0.63086 0.512 1.1429 1.1429 1.1429h2.2857c0 0.29714 0.12572 0.59429 0.33143 0.81143 0.21714 0.20572 0.51429 0.33143 0.81143 0.33143 0.29714 0 0.59428-0.12571 0.81143-0.33143 0.20571-0.21714 0.33143-0.51428 0.33143-0.81143h2.2857c0.63086 0 1.1429-0.512 1.1429-1.1429v-3.4286c0-0.89371 0.36457-1.84 2.4366-4.7989 1.0229-1.4571 1.5634-3.1566 1.5634-4.9154 0-4.7269-3.8446-8.5714-8.5714-8.5714zm2.2857 20.571h-4.5714v-1.1429h4.5714zm2.8514-8.3966c-1.6754 2.392-2.4491 3.7589-2.7257 4.968h-1.2686v-2.2857c0-0.63086-0.512-1.1429-1.1429-1.1429-0.63086 0-1.1429 0.512-1.1429 1.1429v2.2857h-1.272c-0.27428-1.1771-1.0263-2.5143-2.6354-4.8229l-0.088-0.14743c-0.75086-1.0674-1.1474-2.3131-1.1474-3.6011 0-3.4663 2.8194-6.2857 6.2857-6.2857 3.4663 0 6.2857 2.8194 6.2857 6.2857 0 1.2869-0.39657 2.5326-1.1486 3.6034z" fill="#ffff84" stroke-width="1.1429"/>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="24" height="24" version="1.2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="m23.197 16.312-7.2179-13.523c-0.94741-1.7744-2.3966-2.7899-3.9789-2.7899-1.5823 0-3.0315 1.0155-3.9789 2.7871l-7.2179 13.525c-0.95962 1.7963-1.0646 3.712-0.28691 5.2559 0.77648 1.5452 2.2928 2.4317 4.1583 2.4317h14.651c1.8655 0 3.3819-0.8865 4.1583-2.4303 0.7777-1.5438 0.67271-3.4595-0.28691-5.2572zm-11.197 2.9518c-1.0426 0-1.8924-0.95374-1.8924-2.1257 0-1.1733 0.84852-2.1284 1.8924-2.1284 1.0439 0 1.8924 0.95512 1.8924 2.1284 0 1.1719-0.84974 2.1257-1.8924 2.1257zm1.9937-10.188c-0.01343 0.04254-1.7105 4.7591-1.7105 4.7591-0.04639 0.129-0.15872 0.21408-0.28203 0.21408-0.12331 0-0.23563-0.08509-0.28202-0.21408l-1.6983-4.7179c-0.10988-0.31974-0.15749-0.60792-0.15749-0.89885 0-1.3243 0.9584-2.4015 2.1366-2.4015 1.1782 0 2.1366 1.0772 2.1366 2.4015 0 0.29092-0.04762 0.57911-0.14284 0.85768z" fill="#f99157" stroke-width="1.2944"/>
</svg>

After

Width:  |  Height:  |  Size: 992 B

@@ -17,6 +17,10 @@ licenseurl = https://creativecommons.org/licenses/by-sa/4.0/
[Map]
add = typ_plus.svg
alert_error = typ_info-large-full.svg
alert_info = typ_delete-full.svg
alert_question = typ_lightbulb-full.svg
alert_warn = typ_warning-full.svg
backward = typ_chevron-left.svg
bookmark = typ_bookmark.svg
browse = typ_folder-open.svg
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="24" height="24" version="1.2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="m12 0c-6.6285 0-12 5.373-12 12s5.3715 12 12 12 12-5.373 12-12-5.3715-12-12-12zm5.5605 15.44c0.5865 0.5865 0.5865 1.5345 0 2.121-0.2925 0.2925-0.6765 0.4395-1.0605 0.4395s-0.768-0.147-1.0605-0.4395l-3.4395-3.4395-3.4395 3.4395c-0.2925 0.2925-0.6765 0.4395-1.0605 0.4395s-0.768-0.147-1.0605-0.4395c-0.5865-0.5865-0.5865-1.5345 0-2.121l3.4395-3.4395-3.4395-3.4395c-0.5865-0.5865-0.5865-1.5345 0-2.121s1.5345-0.5865 2.121 0l3.4395 3.4395 3.4395-3.4395c0.5865-0.5865 1.5345-0.5865 2.121 0s0.5865 1.5345 0 2.121l-3.4395 3.4395z" fill="#c82829" stroke-width="1.5"/>
</svg>

After

Width:  |  Height:  |  Size: 713 B

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="24" height="24" version="1.2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="m14.251 5e-8a3.7505 3.7505 0 0 0-3.7505 3.7505 3.7505 3.7505 0 0 0 3.7505 3.7505 3.7505 3.7505 0 0 0 3.7505-3.7505 3.7505 3.7505 0 0 0-3.7505-3.7505zm-3.2787 8.9982c-2.7738 0-4.6394 1.6216-4.7174 1.6906-0.26853 0.23703-0.33381 0.62858-0.15529 0.93761 0.18002 0.30904 0.55162 0.45104 0.89366 0.33402 0.0075-3e-3 0.8387-0.28128 1.5588-0.28128 0.39455 0 0.55408 0.0827 0.60359 0.1172 0.25353 0.17702 0.72342 0.51058-0.07618 2.1038l-1.5002 2.9916c-0.89111 1.7777-1.0233 3.4948-0.36919 4.8375 0.53406 1.0996 1.5585 1.8542 2.8832 2.1243 0.47106 0.09451 0.9528 0.1465 1.4299 0.1465 2.7753 0 4.6452-1.6216 4.7232-1.6906 0.26853-0.23553 0.33088-0.62858 0.15236-0.93761-0.18002-0.30754-0.55176-0.44504-0.8878-0.33402-9e-3 3e-3 -0.8387 0.27835-1.5588 0.27835-0.39755 0-0.55844-0.0812-0.60945-0.1172-0.25203-0.17552-0.72198-0.50465 0.07911-2.1008l1.5002-2.9916c0.88961-1.7762 1.0233-3.4933 0.36918-4.8375-0.53406-1.0996-1.5586-1.8542-2.8802-2.1243-0.47556-0.09751-0.9601-0.1465-1.4387-0.1465z" fill="#4271ae" stroke-width="1.5002"/>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="24" height="24" version="1.2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="m12 5.1429c-0.31543 0-0.57143 0.256-0.57143 0.57143s0.256 0.57143 0.57143 0.57143c1.2377 0 2.2446 1.0069 2.2446 2.2446 0 0.31543 0.256 0.57143 0.57143 0.57143 0.31543 0 0.57143-0.256 0.57143-0.57143 0-1.8674-1.52-3.3874-3.3874-3.3874zm0-5.1429c-4.7269 0-8.5714 3.8446-8.5714 8.5714 0 1.6983 0.50286 3.3394 1.456 4.76l0.091429 0.15428c2.0857 2.9783 2.4526 3.92 2.4526 4.8v3.4286c0 0.63086 0.512 1.1429 1.1429 1.1429h2.2857c0 0.29714 0.12572 0.59429 0.33143 0.81143 0.21714 0.20572 0.51429 0.33143 0.81143 0.33143 0.29714 0 0.59428-0.12571 0.81143-0.33143 0.20571-0.21714 0.33143-0.51428 0.33143-0.81143h2.2857c0.63086 0 1.1429-0.512 1.1429-1.1429v-3.4286c0-0.89371 0.36457-1.84 2.4366-4.7989 1.0229-1.4571 1.5634-3.1566 1.5634-4.9154 0-4.7269-3.8446-8.5714-8.5714-8.5714zm2.2857 20.571h-4.5714v-1.1429h4.5714zm2.8514-8.3966c-1.6754 2.392-2.4491 3.7589-2.7257 4.968h-1.2686v-2.2857c0-0.63086-0.512-1.1429-1.1429-1.1429-0.63086 0-1.1429 0.512-1.1429 1.1429v2.2857h-1.272c-0.27428-1.1771-1.0263-2.5143-2.6354-4.8229l-0.088-0.14743c-0.75086-1.0674-1.1474-2.3131-1.1474-3.6011 0-3.4663 2.8194-6.2857 6.2857-6.2857 3.4663 0 6.2857 2.8194 6.2857 6.2857 0 1.2869-0.39657 2.5326-1.1486 3.6034z" fill="#eab700" stroke-width="1.1429"/>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="24" height="24" version="1.2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="m23.197 16.312-7.2179-13.523c-0.94741-1.7744-2.3966-2.7899-3.9789-2.7899-1.5823 0-3.0315 1.0155-3.9789 2.7871l-7.2179 13.525c-0.95962 1.7963-1.0646 3.712-0.28691 5.2559 0.77648 1.5452 2.2928 2.4317 4.1583 2.4317h14.651c1.8655 0 3.3819-0.8865 4.1583-2.4303 0.7777-1.5438 0.67271-3.4595-0.28691-5.2572zm-11.197 2.9518c-1.0426 0-1.8924-0.95374-1.8924-2.1257 0-1.1733 0.84852-2.1284 1.8924-2.1284 1.0439 0 1.8924 0.95512 1.8924 2.1284 0 1.1719-0.84974 2.1257-1.8924 2.1257zm1.9937-10.188c-0.01343 0.04254-1.7105 4.7591-1.7105 4.7591-0.04639 0.129-0.15872 0.21408-0.28203 0.21408-0.12331 0-0.23563-0.08509-0.28202-0.21408l-1.6983-4.7179c-0.10988-0.31974-0.15749-0.60792-0.15749-0.89885 0-1.3243 0.9584-2.4015 2.1366-2.4015 1.1782 0 2.1366 1.0772 2.1366 2.4015 0 0.29092-0.04762 0.57911-0.14284 0.85768z" fill="#f5871f" stroke-width="1.2944"/>
</svg>

After

Width:  |  Height:  |  Size: 992 B

+9 -8
View File
@@ -445,14 +445,15 @@ class GuiIcons:
ICON_KEYS = {
# Project and GUI Icons
"novelwriter", "build_excluded", "build_filtered", "build_included", "cls_archive",
"cls_character", "cls_custom", "cls_entity", "cls_none", "cls_novel", "cls_object",
"cls_plot", "cls_timeline", "cls_trash", "cls_world", "proj_chapter", "proj_details",
"proj_document", "proj_folder", "proj_note", "proj_nwx", "proj_section", "proj_scene",
"proj_stats", "proj_title", "search_cancel", "search_case", "search_loop",
"search_preserve", "search_project", "search_regex", "search_word", "status_idle",
"status_lang", "status_lines", "status_stats", "status_time", "view_build", "view_editor",
"view_novel", "view_outline",
"novelwriter", "alert_error", "alert_info", "alert_question", "alert_warn",
"build_excluded", "build_filtered", "build_included", "cls_archive", "cls_character",
"cls_custom", "cls_entity", "cls_none", "cls_novel", "cls_object", "cls_plot",
"cls_timeline", "cls_trash", "cls_world", "proj_chapter", "proj_details", "proj_document",
"proj_folder", "proj_note", "proj_nwx", "proj_section", "proj_scene", "proj_stats",
"proj_title", "search_cancel", "search_case", "search_loop", "search_preserve",
"search_project", "search_regex", "search_word", "status_idle", "status_lang",
"status_lines", "status_stats", "status_time", "view_build", "view_editor", "view_novel",
"view_outline",
# General Button Icons
"add", "backward", "bookmark", "browse", "checked", "close", "cross", "down", "edit",