Skip to content

Commit

Permalink
Template dialog: Use FDO icon names
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Wilms committed Feb 13, 2024
1 parent 114f1ce commit 1194a94
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion images-ng/colibre/mapping.csv
Original file line number Diff line number Diff line change
@@ -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
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
8 changes: 4 additions & 4 deletions images.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
<file>images-ng/math.svg</file>
<file>images-ng/metapost.svg</file>
<file>images-ng/modified.svgz</file>
<file>images-ng/multifile.svg</file>
<file>images-ng/view-pages-overview.svg</file>
<file>images-ng/non-comment_dm.svg</file>
<file>images-ng/non-comment.svg</file>
<file>images-ng/non-math.svg</file>
Expand Down Expand Up @@ -187,7 +187,7 @@
<file>images-ng/syncSource.svg</file>
<file>images-ng/syncViewer-off.svg</file>
<file>images-ng/syncViewer.svg</file>
<file>images-ng/tex-template.svgz</file>
<file>images-ng/view-pages-single.svgz</file>
<file>images-ng/tikz.svg</file>
<file>images-ng/toc.svg</file>
<file>images-ng/underline.svg</file>
Expand Down Expand Up @@ -520,7 +520,7 @@
<file>images-ng/colibre/metapost.svg</file>
<file>images-ng/colibre/modified_dm.svg</file>
<file>images-ng/colibre/modified.svg</file>
<file>images-ng/colibre/multifile.svg</file>
<file>images-ng/colibre/view-pages-overview.svg</file>
<file>images-ng/colibre/newline_dm.svg</file>
<file>images-ng/colibre/newline.svg</file>
<file>images-ng/colibre/non-comment_dm.svg</file>
Expand Down Expand Up @@ -595,7 +595,7 @@
<file>images-ng/colibre/syncViewer-off_dm.svg</file>
<file>images-ng/colibre/syncViewer-off.svg</file>
<file>images-ng/colibre/syncViewer.svg</file>
<file>images-ng/colibre/tex-template.svg</file>
<file>images-ng/colibre/view-pages-single.svg</file>
<file>images-ng/colibre/tikz_dm.svg</file>
<file>images-ng/colibre/tikz.svg</file>
<file>images-ng/colibre/toc_dm.svg</file>
Expand Down
4 changes: 2 additions & 2 deletions src/templateselector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1194a94

Please sign in to comment.