enthought / traitsui
1
# -------------------------------------------------------------------------
2
#
3
#  Copyright (c) 2007, Enthought, Inc.
4
#  All rights reserved.
5
#
6
#  This software is provided without warranty under the terms of the BSD
7
#  license included in LICENSE.txt and may be redistributed only
8
#  under the conditions described in the aforementioned license.  The license
9
#  is also available online at http://www.enthought.com/licenses/BSD.txt
10
#
11
#  Thanks for using Enthought open source!
12
#
13
#  Author: David C. Morrill
14
#  Date:   07/14/2007
15
#
16
# -------------------------------------------------------------------------
17

18 0
""" Defines the default DockWindow theme.
19
"""
20

21

22

23 0
from .dock_window_theme import DockWindowTheme
24

25 0
from .theme import Theme
26

27

28
# The original DockWindows UI redone as a theme:
29 0
default_dock_window_theme = DockWindowTheme(
30
    use_theme_color=False,
31
    tab_active=Theme("@std:tab_active", label=(0, -3), content=(7, 6, 0, 0)),
32
    tab_inactive=Theme("@std:tab_inactive", label=(0, -1), content=(5, 0)),
33
    tab_hover=Theme("@std:tab_hover", label=(0, -2), content=(5, 0)),
34
    tab_background=Theme("@std:tab_background"),
35
    tab=Theme("@std:tab", content=0, label=(-7, 0)),
36
    vertical_splitter=Theme(
37
        "@std:vertical_splitter", content=0, label=(0, -25)
38
    ),
39
    horizontal_splitter=Theme(
40
        "@std:horizontal_splitter", content=0, label=(-24, 0)
41
    ),
42
    vertical_drag=Theme("@std:vertical_drag", content=(0, 10)),
43
    horizontal_drag=Theme("@std:horizontal_drag", content=(10, 0)),
44
)

Read our documentation on viewing source code .

Loading