a
    §ˆcL  ã                   @   sV   d Z ddlmZ ddlmZmZmZmZ ddlm	Z	 G dd„ deƒZ
dadd	d
„ZdS )zJ Defines the theme style information for a DockWindow and its components.
é    )ÚImage)ÚHasPrivateTraitsÚBoolÚPropertyÚcached_propertyé   )ÚAThemec                   @   sx   e Zd ZdZedƒZedƒZeZeZ	e
ZeZe
ZeZeZeZeZeZeZedd�Zedd�Zedd„ ƒZedd	„ ƒZd
S )ÚDockWindowThemezHDefines the theme style information for a DockWindow and its components.TÚtab_inactive_edge)ZobserveÚtab_hover_edgec                 C   s   | j }|d u rd S | ¡ S ©N)r
   Úcreate_bitmap©ÚselfÚimage© r   ú]/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/traitsui/dock_window_theme.pyÚ_get_tab_inactive_edge_bitmapH   s    z-DockWindowTheme._get_tab_inactive_edge_bitmapc                 C   s   | j }|d u r| jS | ¡ S r   )r   Útab_inactive_edge_bitmapr   r   r   r   r   Ú_get_tab_hover_edge_bitmapP   s    z*DockWindowTheme._get_tab_hover_edge_bitmapN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Zuse_theme_colorZtabs_at_topr   Z
tab_activeZtab_inactiver   r
   Z	tab_hoverr   Ztab_backgroundÚtabZvertical_splitterZhorizontal_splitterZvertical_dragZhorizontal_dragr   r   Ztab_hover_edge_bitmapr   r   r   r   r   r   r   r	      s(   


r	   Nc                 C   s,   t du rddlm} |a t }| dur(| a |S )z(Get or set the default DockWindow theme.Nr   )Údefault_dock_window_theme)Ú_dock_window_themer   )Zthemer   Z	old_themer   r   r   Údock_window_themea   s    r   )N)r   Zpyface.ui_traitsr   Z
traits.apir   r   r   r   Z	ui_traitsr   r	   r   r   r   r   r   r   Ú<module>   s   J