Skip to content

Commit

Permalink
organize the images folder
Browse files Browse the repository at this point in the history
  • Loading branch information
steff456 committed Mar 16, 2021
1 parent 1dd460b commit c219148
Show file tree
Hide file tree
Showing 45 changed files with 26 additions and 1,389 deletions.
2 changes: 1 addition & 1 deletion spyder/app/mac_stylesheet.qss
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ QTabBar::tab:only-one#plugin-tab {
}

QTabBar::close-button {
image: url($IMAGE_PATH/CloseButton.png);
image: url($IMAGE_PATH/mac_light_icons/close_button.png);
border-radius: 2px;
}

Expand Down
9 changes: 7 additions & 2 deletions spyder/config/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,12 @@ def is_pynsist():
return False


#==============================================================================
# =============================================================================
# Image path list
#==============================================================================
# =============================================================================
IMG_PATH = []


def add_image_path(path):
if not osp.isdir(path):
return
Expand All @@ -341,10 +343,13 @@ def add_image_path(path):
for dirname in dirnames:
IMG_PATH.append(osp.join(dirpath, dirname))


add_image_path(get_module_data_path('spyder', relpath='images'))


def get_image_path(name, default="not_found.png"):
"""Return image absolute path"""
print('*****', IMG_PATH, name)
for img_path in IMG_PATH:
full_path = osp.join(img_path, name)
if osp.isfile(full_path):
Expand Down
Binary file removed spyder/images/CloseButton@2x.png
Binary file not shown.
Binary file removed spyder/images/arredit.png
Binary file not shown.
Binary file removed spyder/images/arrow.png
Binary file not shown.
Binary file removed spyder/images/bold.png
Binary file not shown.
Binary file removed spyder/images/browser.png
Binary file not shown.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file removed spyder/images/matplotlib.png
Binary file not shown.
Binary file removed spyder/images/none.png
Binary file not shown.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading

0 comments on commit c219148

Please sign in to comment.