|
| 1 | +import json |
| 2 | +from pathlib import Path |
| 3 | + |
| 4 | +accurate_mapping = { |
| 5 | + "Icons.Default.CloudDone": "solar_cloud_check", |
| 6 | + "Icons.Default.CloudOff": "solar_cloud_cross", |
| 7 | + "Icons.Outlined.Album": "solar_album", |
| 8 | + "Icons.Outlined.Hearing": "solar_ear", |
| 9 | + "Icons.Outlined.LibraryMusic": "solar_music_library", |
| 10 | + "Icons.Outlined.MusicNote": "solar_music_note", |
| 11 | + "Icons.Outlined.PersonAdd": "solar_user_plus", |
| 12 | + "Icons.Outlined.QueueMusic": "solar_playlist", |
| 13 | + "R.drawable.about_appbar": "solar_info_circle", |
| 14 | + "R.drawable.about_splash": "solar_info_circle", |
| 15 | + "R.drawable.account": "solar_user", |
| 16 | + "R.drawable.add": "solar_add_circle", |
| 17 | + "R.drawable.add_circle": "solar_add_circle", |
| 18 | + "R.drawable.ai": "solar_magic_stick_3", |
| 19 | + "R.drawable.album": "solar_album", |
| 20 | + "R.drawable.all_inclusive": "solar_infinity", |
| 21 | + "R.drawable.alternate_email": "solar_letter", |
| 22 | + "R.drawable.android_cell": "solar_smartphone", |
| 23 | + "R.drawable.animation": "solar_video_frame", |
| 24 | + "R.drawable.anime_blank": "solar_gallery", |
| 25 | + "R.drawable.app_icon_small": "solar_album", |
| 26 | + "R.drawable.arrow_back": "solar_arrow_left", |
| 27 | + "R.drawable.arrow_downward": "solar_arrow_down", |
| 28 | + "R.drawable.arrow_forward": "solar_arrow_right", |
| 29 | + "R.drawable.arrow_top_left": "solar_arrow_to_top_left", |
| 30 | + "R.drawable.arrow_upward": "solar_arrow_up", |
| 31 | + "R.drawable.artist": "solar_users_group_two_rounded", |
| 32 | + "R.drawable.auto_awesome": "solar_stars", |
| 33 | + "R.drawable.backup": "solar_cloud_upload", |
| 34 | + "R.drawable.bedtime": "solar_moon", |
| 35 | + "R.drawable.block": "solar_forbidden", |
| 36 | + "R.drawable.bluetooth": "solar_bluetooth", |
| 37 | + "R.drawable.blur_off": "solar_eye_closed", |
| 38 | + "R.drawable.blur_on": "solar_eye", |
| 39 | + "R.drawable.bolt": "solar_bolt", |
| 40 | + "R.drawable.bookmark": "solar_bookmark", |
| 41 | + "R.drawable.bookmark_filled": "solar_bookmark_circle", |
| 42 | + "R.drawable.buttons": "solar_menu_dots", |
| 43 | + "R.drawable.cached": "solar_refresh", |
| 44 | + "R.drawable.calendar_today": "solar_calendar", |
| 45 | + "R.drawable.check": "solar_check_read", |
| 46 | + "R.drawable.clear_all": "solar_broom", |
| 47 | + "R.drawable.close": "solar_close_circle", |
| 48 | + "R.drawable.coffee": "solar_cup", |
| 49 | + "R.drawable.contrast": "solar_sun_fog", |
| 50 | + "R.drawable.copy": "solar_copy", |
| 51 | + "R.drawable.dark_mode": "solar_moon", |
| 52 | + "R.drawable.delete": "solar_trash_bin_trash", |
| 53 | + "R.drawable.delete_history": "solar_history_cross", |
| 54 | + "R.drawable.deselect": "solar_close_circle", |
| 55 | + "R.drawable.desktop_windows": "solar_monitor", |
| 56 | + "R.drawable.discord": "solar_gamepad", |
| 57 | + "R.drawable.discover_tune": "solar_music_note_slider", |
| 58 | + "R.drawable.done": "solar_check_circle", |
| 59 | + "R.drawable.download": "solar_download", |
| 60 | + "R.drawable.drag_handle": "solar_hamburger_menu", |
| 61 | + "R.drawable.edit": "solar_pen", |
| 62 | + "R.drawable.equalizer": "solar_slider_vertical", |
| 63 | + "R.drawable.error": "solar_danger_circle", |
| 64 | + "R.drawable.expand_less": "solar_alt_arrow_up", |
| 65 | + "R.drawable.expand_more": "solar_alt_arrow_down", |
| 66 | + "R.drawable.experiment": "solar_test_tube", |
| 67 | + "R.drawable.explicit": "solar_danger", |
| 68 | + "R.drawable.fast_forward": "solar_forward", |
| 69 | + "R.drawable.favorite": "solar_heart", |
| 70 | + "R.drawable.favorite_border": "solar_heart", |
| 71 | + "R.drawable.filter_alt": "solar_filter", |
| 72 | + "R.drawable.fire": "solar_fire", |
| 73 | + "R.drawable.format_align_center": "solar_align_vertical_center", |
| 74 | + "R.drawable.format_align_left": "solar_align_left", |
| 75 | + "R.drawable.format_paint": "solar_pallete_2", |
| 76 | + "R.drawable.github": "solar_code", |
| 77 | + "R.drawable.gradient": "solar_pallete_2", |
| 78 | + "R.drawable.graphic_eq": "solar_soundwave", |
| 79 | + "R.drawable.grid_view": "solar_widget", |
| 80 | + "R.drawable.hide_image": "solar_gallery_remove", |
| 81 | + "R.drawable.history": "solar_history", |
| 82 | + "R.drawable.home_filled": "solar_home", |
| 83 | + "R.drawable.home_outlined": "solar_home", |
| 84 | + "R.drawable.ic_dialog_info": "solar_info_circle", |
| 85 | + "R.drawable.ic_download": "solar_download", |
| 86 | + "R.drawable.ic_music": "solar_music_note", |
| 87 | + "R.drawable.ic_music_placeholder": "solar_music_note", |
| 88 | + "R.drawable.ic_pause_white": "solar_pause_circle", |
| 89 | + "R.drawable.image": "solar_gallery", |
| 90 | + "R.drawable.info": "solar_info_circle", |
| 91 | + "R.drawable.input": "solar_login", |
| 92 | + "R.drawable.integration": "solar_link_round", |
| 93 | + "R.drawable.join": "solar_user_plus", |
| 94 | + "R.drawable.kick": "solar_logout", |
| 95 | + "R.drawable.language": "solar_global", |
| 96 | + "R.drawable.leave": "solar_logout", |
| 97 | + "R.drawable.library_add": "solar_playlist_plus", |
| 98 | + "R.drawable.library_add_check": "solar_playlist_check", |
| 99 | + "R.drawable.library_filled": "solar_music_library", |
| 100 | + "R.drawable.library_music": "solar_music_library_2", |
| 101 | + "R.drawable.library_outlined": "solar_music_library", |
| 102 | + "R.drawable.link": "solar_link", |
| 103 | + "R.drawable.list": "solar_list", |
| 104 | + "R.drawable.listening": "solar_ear", |
| 105 | + "R.drawable.location_on": "solar_map_point", |
| 106 | + "R.drawable.lock": "solar_lock", |
| 107 | + "R.drawable.lock_open": "solar_unlock", |
| 108 | + "R.drawable.login": "solar_login", |
| 109 | + "R.drawable.logout": "solar_logout", |
| 110 | + "R.drawable.lyrics": "solar_document_text", |
| 111 | + "R.drawable.lyrics_preview": "solar_document_add", |
| 112 | + "R.drawable.manage_search": "solar_magnifer_zoom_in", |
| 113 | + "R.drawable.mic": "solar_microphone", |
| 114 | + "R.drawable.mix": "solar_shuffle", |
| 115 | + "R.drawable.more_horiz": "solar_menu_dots_circle", |
| 116 | + "R.drawable.more_vert": "solar_menu_dots", |
| 117 | + "R.drawable.motion_photos_on": "solar_play_stream", |
| 118 | + "R.drawable.multi_user": "solar_users_group_two_rounded", |
| 119 | + "R.drawable.music_note": "solar_music_note", |
| 120 | + "R.drawable.nav_bar": "solar_sidebar_minimalistic", |
| 121 | + "R.drawable.navigate_next": "solar_alt_arrow_right", |
| 122 | + "R.drawable.new_release": "solar_stars", |
| 123 | + "R.drawable.newspaper": "solar_document_text", |
| 124 | + "R.drawable.offline": "solar_cloud_cross", |
| 125 | + "R.drawable.palette": "solar_palette", |
| 126 | + "R.drawable.pause": "solar_pause", |
| 127 | + "R.drawable.person": "solar_user", |
| 128 | + "R.drawable.play": "solar_play", |
| 129 | + "R.drawable.player_preview": "solar_play_circle", |
| 130 | + "R.drawable.playlist_add": "solar_playlist_plus", |
| 131 | + "R.drawable.playlist_import": "solar_import", |
| 132 | + "R.drawable.playlist_play": "solar_playlist", |
| 133 | + "R.drawable.queue_music": "solar_playlist", |
| 134 | + "R.drawable.radio": "solar_radio", |
| 135 | + "R.drawable.radio_button_checked": "solar_record_circle", |
| 136 | + "R.drawable.radio_button_unchecked": "solar_stop_circle", |
| 137 | + "R.drawable.remove": "solar_minus_circle", |
| 138 | + "R.drawable.repeat": "solar_repeat", |
| 139 | + "R.drawable.repeat_on": "solar_repeat", |
| 140 | + "R.drawable.repeat_one": "solar_repeat_one", |
| 141 | + "R.drawable.repeat_one_on": "solar_repeat_one", |
| 142 | + "R.drawable.replay": "solar_restart", |
| 143 | + "R.drawable.restore": "solar_history", |
| 144 | + "R.drawable.screenshot": "solar_camera", |
| 145 | + "R.drawable.search": "solar_magnifer", |
| 146 | + "R.drawable.search_off": "solar_close_circle", |
| 147 | + "R.drawable.security": "solar_shield", |
| 148 | + "R.drawable.select_all": "solar_check_square", |
| 149 | + "R.drawable.settings": "solar_settings", |
| 150 | + "R.drawable.share": "solar_share", |
| 151 | + "R.drawable.shuffle": "solar_shuffle", |
| 152 | + "R.drawable.shuffle_on": "solar_shuffle", |
| 153 | + "R.drawable.skip_next": "solar_skip_next", |
| 154 | + "R.drawable.skip_previous": "solar_skip_previous", |
| 155 | + "R.drawable.sliders": "solar_tuning_4", |
| 156 | + "R.drawable.slow_motion_video": "solar_play_circle", |
| 157 | + "R.drawable.small_icon": "solar_album", |
| 158 | + "R.drawable.snippet_folder": "solar_folder", |
| 159 | + "R.drawable.speed": "solar_stopwatch", |
| 160 | + "R.drawable.spotify_icon": "solar_soundwave", |
| 161 | + "R.drawable.star": "solar_star", |
| 162 | + "R.drawable.stats": "solar_chart", |
| 163 | + "R.drawable.status": "solar_info_circle", |
| 164 | + "R.drawable.storage": "solar_database", |
| 165 | + "R.drawable.style": "solar_palette", |
| 166 | + "R.drawable.subscribe": "solar_bell", |
| 167 | + "R.drawable.subscribed": "solar_bell", |
| 168 | + "R.drawable.swipe": "solar_routing", |
| 169 | + "R.drawable.sync": "solar_refresh", |
| 170 | + "R.drawable.tab": "solar_laptop", |
| 171 | + "R.drawable.telegram": "solar_paperclip", |
| 172 | + "R.drawable.text_fields": "solar_text", |
| 173 | + "R.drawable.timer": "solar_alarm", |
| 174 | + "R.drawable.token": "solar_tag", |
| 175 | + "R.drawable.translate": "solar_translation", |
| 176 | + "R.drawable.trending_up": "solar_graph_up", |
| 177 | + "R.drawable.tune": "solar_tuning_4", |
| 178 | + "R.drawable.update": "solar_refresh", |
| 179 | + "R.drawable.vibration": "solar_smartphone", |
| 180 | + "R.drawable.visibility_off": "solar_eye_closed", |
| 181 | + "R.drawable.volume_off": "solar_muted", |
| 182 | + "R.drawable.volume_up": "solar_volume_loud", |
| 183 | + "R.drawable.waves": "solar_soundwave", |
| 184 | + "R.drawable.website": "solar_global", |
| 185 | + "R.drawable.wifi_proxy": "solar_wi_fi_router" |
| 186 | +} |
| 187 | + |
| 188 | +with open('icon_mapping.json', 'w') as f: |
| 189 | + json.dump(accurate_mapping, f, indent=4) |
| 190 | + |
| 191 | +print("Created accurate_icon_mapping.py and updated icon_mapping.json!") |
0 commit comments