Skip to content

Commit

Permalink
Merge pull request #9228 from juanis2112/Solve_issue9151
Browse files Browse the repository at this point in the history
PR: Add icon for Latex files
  • Loading branch information
ccordoba12 authored May 2, 2019
2 parents aeedf61 + c4402a9 commit 7a8509b
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
33 changes: 33 additions & 0 deletions NOTICE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1675,6 +1675,39 @@ spyder/images/notebook_light.svg
spyder/images/notebook_dark.svg


-------------------------------------------------------------------------------



Latex Logo
----------


Copyright (c) 2016 Roberto Huertas


Author: Roberto Huertas | https://github.com/vscode-icons/vscode-icons
Site: https://github.com/vscode-icons
Source: https://github.com/vscode-icons
License: The MIT License (MIT)
https://opensource.org/licenses/MIT


Distributed under the terms of The MIT License (MIT)


See below for the full text of The MIT License (MIT).

The current version of the original file can be viewed at:
https://github.com/vscode-icons/vscode-icons/blob/master/icons/file_type_tex.svg


Files covered:

spyder/images/file_type_light_tex.svg
spyder/images/file_type_tex.svg


===============================================================================


Expand Down
1 change: 1 addition & 0 deletions spyder/images/file_type_light_tex.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions spyder/images/file_type_tex.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions spyder/utils/icon_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,13 @@ def get_icon_by_extension(fname, scale_factor):
else:
icon_by_extension = QIcon(
get_image_path('notebook_light.svg'))
elif extension == '.tex':
if is_dark_interface():
icon_by_extension = QIcon(
get_image_path('file_type_tex.svg'))
else:
icon_by_extension = QIcon(
get_image_path('file_type_light_tex.svg'))
elif mime_type is not None:
try:
# Fix for issue 5080. Even though
Expand Down

0 comments on commit 7a8509b

Please sign in to comment.