From 1194a9440520414e868220e99fb299d11770b502 Mon Sep 17 00:00:00 2001 From: Alexander Wilms Date: Tue, 13 Feb 2024 23:55:59 +0100 Subject: [PATCH] Template dialog: Use FDO icon names --- images-ng/colibre/mapping.csv | 2 +- .../{multifile.svg => view-pages-overview.svg} | 0 .../{tex-template.svg => view-pages-single.svg} | 0 .../{multifile.svg => view-pages-overview.svg} | 0 .../{tex-template.svgz => view-pages-single.svgz} | Bin images.qrc | 8 ++++---- src/templateselector.cpp | 4 ++-- 7 files changed, 7 insertions(+), 7 deletions(-) rename images-ng/colibre/{multifile.svg => view-pages-overview.svg} (100%) rename images-ng/colibre/{tex-template.svg => view-pages-single.svg} (100%) rename images-ng/{multifile.svg => view-pages-overview.svg} (100%) rename images-ng/{tex-template.svgz => view-pages-single.svgz} (100%) diff --git a/images-ng/colibre/mapping.csv b/images-ng/colibre/mapping.csv index c8607489f3..e34d8c0aa9 100644 --- a/images-ng/colibre/mapping.csv +++ b/images-ng/colibre/mapping.csv @@ -1,4 +1,4 @@ colibre,texstudio sc_compilebasic,builtin onlineupdate_16,folder-cloud -sc_flowchartshapes.flowchart-multidocument,multifile +sc_flowchartshapes.flowchart-multidocument,view-pages-overview diff --git a/images-ng/colibre/multifile.svg b/images-ng/colibre/view-pages-overview.svg similarity index 100% rename from images-ng/colibre/multifile.svg rename to images-ng/colibre/view-pages-overview.svg diff --git a/images-ng/colibre/tex-template.svg b/images-ng/colibre/view-pages-single.svg similarity index 100% rename from images-ng/colibre/tex-template.svg rename to images-ng/colibre/view-pages-single.svg diff --git a/images-ng/multifile.svg b/images-ng/view-pages-overview.svg similarity index 100% rename from images-ng/multifile.svg rename to images-ng/view-pages-overview.svg diff --git a/images-ng/tex-template.svgz b/images-ng/view-pages-single.svgz similarity index 100% rename from images-ng/tex-template.svgz rename to images-ng/view-pages-single.svgz diff --git a/images.qrc b/images.qrc index 7d3ef1ca3a..ba190aa37a 100644 --- a/images.qrc +++ b/images.qrc @@ -147,7 +147,7 @@ images-ng/math.svg images-ng/metapost.svg images-ng/modified.svgz -images-ng/multifile.svg +images-ng/view-pages-overview.svg images-ng/non-comment_dm.svg images-ng/non-comment.svg images-ng/non-math.svg @@ -187,7 +187,7 @@ images-ng/syncSource.svg images-ng/syncViewer-off.svg images-ng/syncViewer.svg -images-ng/tex-template.svgz +images-ng/view-pages-single.svgz images-ng/tikz.svg images-ng/toc.svg images-ng/underline.svg @@ -520,7 +520,7 @@ images-ng/colibre/metapost.svg images-ng/colibre/modified_dm.svg images-ng/colibre/modified.svg -images-ng/colibre/multifile.svg +images-ng/colibre/view-pages-overview.svg images-ng/colibre/newline_dm.svg images-ng/colibre/newline.svg images-ng/colibre/non-comment_dm.svg @@ -595,7 +595,7 @@ images-ng/colibre/syncViewer-off_dm.svg images-ng/colibre/syncViewer-off.svg images-ng/colibre/syncViewer.svg -images-ng/colibre/tex-template.svg +images-ng/colibre/view-pages-single.svg images-ng/colibre/tikz_dm.svg images-ng/colibre/tikz.svg images-ng/colibre/toc_dm.svg diff --git a/src/templateselector.cpp b/src/templateselector.cpp index 5805c82136..36d080d1be 100644 --- a/src/templateselector.cpp +++ b/src/templateselector.cpp @@ -308,8 +308,8 @@ void TemplateSelector::onRequestCompleted() if(i<0) continue; auto *item=rootItem->child(i); item->setData(0,TexRole,dd["download_url"].toString()); - if (name.endsWith(".tex")) item->setIcon(0,getRealIcon("tex-template")); - if (name.endsWith(".zip")) item->setIcon(0,getRealIcon("multifile")); + if (name.endsWith(".tex")) item->setIcon(0,getRealIcon("view-pages-single")); + if (name.endsWith(".zip")) item->setIcon(0,getRealIcon("view-pages-overview")); } }else{ // folder