
    JeW                     V    d Z ddlmZmZ ddlmZmZ ddlmZ ddl	m
Z
  G d de      Zy)	z
Appearance Plugin.
    )PluginsSpyderPluginV2)on_plugin_availableon_plugin_teardown_)AppearanceConfigPagec                       e Zd ZdZdZej                  gZdZeZ	e
ZdZdZed        Zd Zd Zd Z eej                  	      d
        Z eej                  	      d        Zy)
Appearancez
    Appearance Plugin.
    
appearanceNFc                      t        d      S )Nr   r        B/usr/lib/python3/dist-packages/spyder/plugins/appearance/plugin.pyget_namezAppearance.get_name'   s    r   c                     t        d      S )Nz)Manage application appearance and themes.r   selfs    r   get_descriptionzAppearance.get_description+   s    <==r   c                 $    | j                  d      S )N
eyedropper)create_iconr   s    r   get_iconzAppearance.get_icon.   s    --r   c                 &    | j                  d       y )Nui_theme)disable_confr   s    r   on_initializezAppearance.on_initialize1   s     	*%r   )pluginc                 d    | j                  t        j                        }|j                  |        y N)
get_pluginr   Preferencesregister_plugin_preferencesr   preferencess     r   register_preferenceszAppearance.register_preferences9   s$    oog&9&9://5r   c                 d    | j                  t        j                        }|j                  |        y r    )r!   r   r"   deregister_plugin_preferencesr$   s     r   deregister_preferencesz!Appearance.deregister_preferences>   s$    oog&9&9:11$7r   )__name__
__module____qualname____doc__NAMEr   r"   REQUIRESCONTAINER_CLASSCONF_SECTIONr	   CONF_WIDGET_CLASS	CONF_FILECAN_BE_DISABLEDstaticmethodr   r   r   r   r   r&   r   r)   r   r   r   r   r      s     D##$HOL,IO  >.&  3 346 56 w2238 48r   r   N)r-   spyder.api.pluginsr   r   )spyder.api.plugin_registration.decoratorsr   r   spyder.api.translationsr   "spyder.plugins.appearance.confpager	   r   r   r   r   <module>r:      s&   
 7- % C
*8 *8r   