Skip to content

Commit

Permalink
A new "view" menu and some icon changes and cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
bsteubing committed Nov 4, 2019
1 parent 60f4c55 commit 832a0f4
Showing 1 changed file with 49 additions and 28 deletions.
77 changes: 49 additions & 28 deletions activity_browser/app/ui/icons.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,42 +12,63 @@ def create_path(folder: str, filename: str) -> str:
return os.path.join(PACKAGE_DIRECTORY, "icons", folder, filename)


# CURRENTLY UNUSED ICONS

# Modular LCA (keep until this is reintegrated)
# add_db = create_path('metaprocess', 'add_database.png')
# close_db = create_path('metaprocess', 'close_database.png')
# cut = create_path('metaprocess', 'cut.png')
# duplicate = create_path('metaprocess', 'duplicate.png')
# graph_lmp = create_path('metaprocess', 'graph_linkedmetaprocess.png')
# graph_mp = create_path('metaprocess', 'graph_metaprocess.png')
# load_db = create_path('metaprocess', 'open_database.png')
# metaprocess = create_path('metaprocess', 'metaprocess.png')
# new = create_path('metaprocess', 'new_metaprocess.png')
# save_db = create_path('metaprocess', 'save_database.png')
# save_mp = create_path('metaprocess', 'save_metaprocess.png')

# key = create_path('main', 'key.png')
# search = create_path('main', 'search.png')
# switch = create_path('main', 'switch-state.png')

# left = create_path('main', 'left.png')
# forward = create_path('main', 'forward.png')
# backward = create_path('main', 'backward.png')


class Icons(object):
# Icons from href="https://www.flaticon.com/
# By https://www.flaticon.com/authors/freepik,
# https://www.flaticon.com/authors/rami-mcmin,
# and others
# And are licensed by CC BY 3.0

# MAIN
ab = create_path('main', 'activitybrowser.png')

# arrows
right = create_path('main', 'right.png')

# Simple actions
delete = create_path('context', 'delete.png')
copy = create_path('context', 'copy.png')
add = create_path('context', 'add.png')
# Icon made by 'Roundicons' from www.flaticon.com
edit = create_path('main', 'edit.png')
calculate = create_path('main', 'calculate.png')
question = create_path('context', 'question.png')

add_db = create_path('metaprocess', 'add_database.png')
close_db = create_path('metaprocess', 'close_database.png')
cut = create_path('metaprocess', 'cut.png')
duplicate = create_path('metaprocess', 'duplicate.png')
graph_lmp = create_path('metaprocess', 'graph_linkedmetaprocess.png')
graph_mp = create_path('metaprocess', 'graph_metaprocess.png')
load_db = create_path('metaprocess', 'open_database.png')
metaprocess = create_path('metaprocess', 'metaprocess.png')
new = create_path('metaprocess', 'new_metaprocess.png')
save_db = create_path('metaprocess', 'save_database.png')
save_mp = create_path('metaprocess', 'save_metaprocess.png')

debug = create_path('main', 'debug.png')
forward = create_path('main', 'forward.png')
right = create_path('main', 'right.png')
left = create_path('main', 'left.png')
backward = create_path('main', 'backward.png')
edit = create_path('main', 'edit.png')
key = create_path('main', 'key.png')
search = create_path('main', 'search.png')
switch = create_path('main', 'switch-state.png')
ab = create_path('main', 'activitybrowser.png')
# database
import_db = create_path('main', 'import_database.png')
duplicate_database = create_path('main', 'duplicate_database.png')

# activity
duplicate_activity = create_path('main', 'duplicate_activity.png')
duplicate_to_other_database = create_path('main', 'import_database.png')

# windows
graph_explorer = create_path('main', 'graph_explorer.png')
calculate = create_path('main', 'calculate.png')
debug = create_path('main', 'ladybird.png')
issue = create_path('main', 'idea.png')
settings = create_path('main', 'settings.png')
history = create_path('main', 'history.png')
welcome = create_path('main', 'welcome.png')
main_window = create_path('main', 'home.png')


class QIcons(Icons):
Expand Down

0 comments on commit 832a0f4

Please sign in to comment.