nextbox-ui-plugin icon indicating copy to clipboard operation
nextbox-ui-plugin copied to clipboard

Icons

Open dudusf04 opened this issue 6 years ago • 2 comments

Hi Igor,

I have a problem with my icons, it appears with icons unknown. In below, I leave the code I have of the file configuration.py.

`# Plugins configuration settings. These settings are used by various plugins that the user may have installed.
PLUGINS_CONFIG = {
    'nextbox_ui_plugin': {
        'layers_sort_order': (
#            ADD YOUR SETTINGS HERE
#            layer_sort_order is a tuple
             'Firewall',
             'Switch Core',
             'Switch Access',
             'VoIP Phone',
             'UPS',
        ),
#        'icon_model_map': {
#            ADD YOUR SETTINGS HERE
#            icon_model_map is a dict
#             'PA220': 'firewall',
#             'PA820': 'firewall',
#             'PA850': 'firewall',
#        },
#        'icon_role_map': {
#            ADD YOUR SETTINGS HERE
#            icon_role_map is a dict
#             'Switch Access': 'switch',
#             'Swicth Core': 'switch',
#             'Firewall': 'firewall',
#             'Wireless Access-Point': 'accesspoint',
#        }
       'undisplayed_device_role_slugs': (
#            ADD YOUR SETTINGS HERE
#            undisplayed_device_role_slugs value is a list or a tuple
#            Listed device role slugs are hidden on initial view load,
#            you may then hide/display any layer with a control button.
             'Organizador Escova',
        ),
        'DISPLAY_PASSIVE_DEVICES': False,
        'DISPLAY_LOGICAL_MULTICABLE_LINKS': True,
        'DISPLAY_UNCONNECTED': False,
        'INITIAL_LAYOUT': 'auto'
    }
}` 

I hope that you can help me. Thanks.

dudusf04 avatar Sep 04 '20 15:09 dudusf04

Hi. Are icon map config parameters commented out in your actual config? Please note, once set, custom 'icon_role_map' or 'icon_model_map' values rewrite the default mapping. Also keys in those mappings should match corresponding slug values, not display names.

iDebugAll avatar Nov 16 '20 15:11 iDebugAll

I also struggled with the keys in those mappings and used the display names first. Maybe you @iDebugAll can add in the documentation that we have to use the slug values.

BlangTech avatar Mar 03 '21 10:03 BlangTech